diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-02-10 04:14:09 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-02-10 04:14:09 +0000 |
commit | 03260f25f3f1fe4b24006bbfd11e3ab182c65c84 (patch) | |
tree | cef2ae5d805b9f5c531c9d7091b3584c5d9e2e3f | |
parent | 2200861844f2120383b84e0486e6abfdfe78ac5b (diff) | |
parent | 9ad1f9da87da60f3fb72fd8af6b9e3ab08057a28 (diff) | |
download | atv-03260f25f3f1fe4b24006bbfd11e3ab182c65c84.tar.gz |
Snap for 5297348 from 9ad1f9da87da60f3fb72fd8af6b9e3ab08057a28 to qt-release
Change-Id: Icaa67bc8488866fdf3b344b3721e71eba4a66041
4 files changed, 195 insertions, 0 deletions
diff --git a/overlay/frameworks/base/packages/SystemUI/res/layout/volume_dialog.xml b/overlay/frameworks/base/packages/SystemUI/res/layout/volume_dialog.xml new file mode 100644 index 0000000..eb110b1 --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/layout/volume_dialog.xml @@ -0,0 +1,104 @@ +<!-- + Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:theme="@style/qs_theme"> + <LinearLayout + android:id="@+id/volume_dialog" + android:minWidth="@dimen/volume_dialog_row_width" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_horizontal|bottom" + android:background="@android:color/transparent" + android:paddingLeft="@dimen/volume_dialog_panel_transparent_padding" + android:paddingRight="@dimen/volume_dialog_panel_transparent_padding" + android:orientation="horizontal" + android:clipToPadding="false" > + + <FrameLayout + android:id="@+id/ringer" + android:layout_width="@dimen/volume_dialog_ringer_size" + android:layout_height="@dimen/volume_dialog_ringer_size" + android:layout_marginBottom="@dimen/volume_dialog_spacer" + android:translationZ="@dimen/volume_dialog_elevation" + android:layout_gravity="right" + android:clipToPadding="false" + android:visibility="gone" + android:background="@drawable/rounded_bg_full"> + <com.android.keyguard.AlphaOptimizedImageButton + android:id="@+id/ringer_icon" + style="@style/VolumeButtons" + android:background="@drawable/rounded_ripple" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:tint="@color/accent_tint_color_selector" + android:layout_gravity="center" + android:visibility="gone" + android:soundEffectsEnabled="false" /> + + <include layout="@layout/volume_dnd_icon" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginRight="@dimen/volume_dialog_stream_padding" + android:visibility="gone" + android:layout_marginTop="6dp"/> + </FrameLayout> + + <LinearLayout + android:id="@+id/main" + android:layout_height="wrap_content" + android:minWidth="@dimen/volume_dialog_row_width" + android:layout_width="wrap_content" + android:orientation="horizontal" + android:translationZ="@dimen/volume_dialog_elevation" + android:clipToPadding="false" + android:alpha="0.5" + android:background="@drawable/rounded_bg_full" > + <LinearLayout + android:id="@+id/volume_dialog_rows" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:orientation="vertical" + android:paddingRight="@dimen/volume_dialog_stream_padding" + android:paddingLeft="@dimen/volume_dialog_stream_padding"> + <!-- volume rows added and removed here! :-) --> + </LinearLayout> + <FrameLayout + android:id="@+id/settings_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="gone" + android:background="@drawable/rounded_bg_bottom_background"> + <com.android.keyguard.AlphaOptimizedImageButton + android:id="@+id/settings" + android:src="@drawable/ic_settings_16dp" + android:layout_width="@dimen/volume_dialog_tap_target_size" + android:layout_height="@dimen/volume_dialog_tap_target_size" + android:layout_gravity="center" + android:contentDescription="@string/accessibility_volume_settings" + android:background="@drawable/ripple_drawable_20dp" + android:tint="?android:attr/textColorSecondary" + android:soundEffectsEnabled="false" + android:visibility="gone" /> + </FrameLayout> + </LinearLayout> + + </LinearLayout> +</FrameLayout> diff --git a/overlay/frameworks/base/packages/SystemUI/res/layout/volume_dialog_row.xml b/overlay/frameworks/base/packages/SystemUI/res/layout/volume_dialog_row.xml new file mode 100644 index 0000000..08209ab --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/layout/volume_dialog_row.xml @@ -0,0 +1,69 @@ +<!-- + Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:tag="row" + android:layout_width="@dimen/volume_dialog_row_width" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:clipChildren="false" + android:clipToPadding="false" + android:theme="@style/qs_theme"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:background="@android:color/transparent" + android:gravity="center" + android:layout_gravity="center" + android:orientation="horizontal" > + <com.android.keyguard.AlphaOptimizedImageButton + android:id="@+id/volume_row_icon" + style="@style/VolumeButtons" + android:layout_width="@dimen/volume_dialog_tap_target_size" + android:layout_height="@dimen/volume_dialog_tap_target_size" + android:background="@drawable/ripple_drawable_20dp" + android:tint="@color/accent_tint_color_selector" + android:soundEffectsEnabled="false" /> + <TextView + android:id="@+id/volume_row_header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:maxLength="10" + android:maxLines="1" + android:visibility="gone" + android:textColor="?android:attr/colorControlNormal" + android:textAppearance="@style/TextAppearance.Volume.Header" /> + <FrameLayout + android:id="@+id/volume_row_slider_frame" + android:layout_height="match_parent" + android:layoutDirection="ltr" + android:layout_width="@dimen/volume_dialog_row_width"> + <SeekBar + android:id="@+id/volume_row_slider" + android:clickable="false" + android:layout_width="@dimen/volume_dialog_row_width" + android:layout_height="match_parent" + android:layoutDirection="ltr" + android:layout_gravity="center" + android:rotation="0" /> + </FrameLayout> + </LinearLayout> + + <include layout="@layout/volume_dnd_icon"/> + +</FrameLayout> diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml new file mode 100644 index 0000000..499341c --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2019 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources> + <!-- Width of volume bar --> + <dimen name="volume_dialog_row_width">252dp</dimen> + <dimen name="volume_dialog_tap_target_size">36dp</dimen> +</resources> diff --git a/sdk/images_x86_source.prop_template b/sdk/images_x86_source.prop_template index c3bc0ea..3634a00 100644 --- a/sdk/images_x86_source.prop_template +++ b/sdk/images_x86_source.prop_template @@ -1,6 +1,7 @@ Pkg.Desc=Android SDK Platform ${PLATFORM_VERSION} Pkg.UserSrc=false Pkg.Revision=1 +Pkg.Dependencies=emulator#28.1.6 AndroidVersion.ApiLevel=${PLATFORM_SDK_VERSION} AndroidVersion.CodeName=${PLATFORM_VERSION_CODENAME} SystemImage.Abi=x86 |