summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2015-04-28 11:19:13 -0400
committerJohn Spurlock <jspurlock@google.com>2015-04-29 09:58:38 -0400
commitd9c75dba75ad4742dbaadc34db99d2b76cebca91 (patch)
treeaf6a1b4b78602174ec8442b5d019abe1f18f0903 /packages/SystemUI/res
parentfa1c1f97df601df50b3998f7ae98a2d3bfb03466 (diff)
downloadframeworks_base-d9c75dba75ad4742dbaadc34db99d2b76cebca91.zip
frameworks_base-d9c75dba75ad4742dbaadc34db99d2b76cebca91.tar.gz
frameworks_base-d9c75dba75ad4742dbaadc34db99d2b76cebca91.tar.bz2
Volume: Simple dialog footer, DND in quick settings.
- Show DND tile by default, this is now the only place to manage DND modes / end conditions. - Remove super footer from volume dialog, replace with a simplified version that displays the current mode and allows ending DND. - Remove obsolete text-only footer from codebase. - Migrate remaining volume items into main resource files. - Rename "No interruptions" to "Total silence". - Add new user information banner for "Total silence" - Crude media filtering for Total Silence. (deeper muting changes will be done as a followup) - Disable volume dialog sliders completely if muted due to zen. - Cleanup ZenModePanel: assume embedded mode, remove expandable subhead - Remember "favorite" DND mode inside the DND config panel. - AudioService: consult ringer-mode-delegate before voluming down into silent. - Add new hour options to time-based exit conditions. - Volume dialog visual updates to move closer to final visuals. - Unify ringer=silent with DND. Bug: 19260237 Change-Id: I05d7e001eca3b5125418ec3bc4087d0cb8866717
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/layout/qs_detail.xml4
-rw-r--r--packages/SystemUI/res/layout/segmented_button.xml8
-rw-r--r--packages/SystemUI/res/layout/volume_dialog.xml21
-rw-r--r--packages/SystemUI/res/layout/volume_dialog_row.xml11
-rw-r--r--packages/SystemUI/res/layout/volume_text_footer.xml54
-rw-r--r--packages/SystemUI/res/layout/volume_zen_footer.xml99
-rw-r--r--packages/SystemUI/res/layout/zen_mode_panel.xml81
-rw-r--r--packages/SystemUI/res/values/colors.xml4
-rw-r--r--packages/SystemUI/res/values/config.xml4
-rw-r--r--packages/SystemUI/res/values/dimens.xml9
-rw-r--r--packages/SystemUI/res/values/strings.xml63
-rw-r--r--packages/SystemUI/res/values/styles.xml29
-rw-r--r--packages/SystemUI/res/values/volume.xml87
13 files changed, 137 insertions, 337 deletions
diff --git a/packages/SystemUI/res/layout/qs_detail.xml b/packages/SystemUI/res/layout/qs_detail.xml
index 2eb99ba..ddff0f0 100644
--- a/packages/SystemUI/res/layout/qs_detail.xml
+++ b/packages/SystemUI/res/layout/qs_detail.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/qs_detail_background"
- android:paddingBottom="16dp"
+ android:paddingBottom="8dp"
android:orientation="vertical">
<FrameLayout
@@ -30,7 +30,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingEnd="16dp"
+ android:paddingEnd="8dp"
android:gravity="end">
<TextView
diff --git a/packages/SystemUI/res/layout/segmented_button.xml b/packages/SystemUI/res/layout/segmented_button.xml
index ead735f..b7a7932 100644
--- a/packages/SystemUI/res/layout/segmented_button.xml
+++ b/packages/SystemUI/res/layout/segmented_button.xml
@@ -19,10 +19,10 @@
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/segmented_button_spacing"
android:layout_weight="1"
- android:paddingStart="8dp"
- android:gravity="start|center_vertical"
+ android:gravity="center"
android:maxLines="2"
+ android:lineSpacingMultiplier="1.05026"
android:textColor="@color/segmented_button_text_selector"
android:background="@drawable/btn_borderless_rect"
- android:textAppearance="@style/TextAppearance.Volume.ZenSwitchSummary"
- android:minHeight="48dp" />
+ android:textAppearance="@style/TextAppearance.QS.SegmentedButton"
+ android:minHeight="64dp" />
diff --git a/packages/SystemUI/res/layout/volume_dialog.xml b/packages/SystemUI/res/layout/volume_dialog.xml
index c86e9dc..0ed1e2a 100644
--- a/packages/SystemUI/res/layout/volume_dialog.xml
+++ b/packages/SystemUI/res/layout/volume_dialog.xml
@@ -21,40 +21,31 @@
android:layout_marginBottom="4dp"
android:layout_marginLeft="@dimen/notification_side_padding"
android:layout_marginRight="@dimen/notification_side_padding"
- android:layout_marginTop="4dp"
android:background="@drawable/volume_dialog_background"
android:translationZ="4dp" >
<com.android.keyguard.AlphaOptimizedImageButton
android:id="@+id/volume_expand_button"
style="@style/VolumeButtons"
- android:layout_alignParentLeft="true"
android:layout_width="@dimen/volume_button_size"
android:layout_height="@dimen/volume_button_size"
+ android:layout_alignParentLeft="true"
android:clickable="true"
android:soundEffectsEnabled="false"
- android:src="@drawable/ic_volume_collapse_animation" />
+ android:src="@drawable/ic_volume_collapse_animation"
+ tools:ignore="RtlHardcoded" />
<LinearLayout
android:id="@+id/volume_dialog_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
- android:paddingBottom="4dp"
- android:paddingTop="6dp" >
+ android:paddingBottom="8dp"
+ android:paddingTop="8dp" >
<!-- volume rows added and removed here! :-) -->
- <FrameLayout
- android:id="@+id/volume_footer"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- tools:ignore="UselessParent" >
-
- <include layout="@layout/volume_text_footer" />
-
- <include layout="@layout/volume_zen_footer" />
- </FrameLayout>
+ <include layout="@layout/volume_zen_footer" />
</LinearLayout>
</RelativeLayout> \ No newline at end of file
diff --git a/packages/SystemUI/res/layout/volume_dialog_row.xml b/packages/SystemUI/res/layout/volume_dialog_row.xml
index b51aa96..53ae61b 100644
--- a/packages/SystemUI/res/layout/volume_dialog_row.xml
+++ b/packages/SystemUI/res/layout/volume_dialog_row.xml
@@ -16,16 +16,15 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingStart="4dp"
- android:paddingEnd="4dp"
- android:clipChildren="false" >
+ android:clipChildren="false"
+ android:paddingEnd="8dp"
+ android:paddingStart="8dp" >
<TextView
android:id="@+id/volume_row_header"
style="?android:attr/textAppearanceButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:alpha="@dimen/volume_secondary_alpha"
android:ellipsize="end"
android:maxLines="1"
android:paddingBottom="0dp"
@@ -50,8 +49,8 @@
android:layout_below="@id/volume_row_header"
android:layout_toEndOf="@id/volume_row_icon"
android:layout_toStartOf="@+id/volume_settings_button"
- android:paddingEnd="4dp"
- android:paddingStart="4dp"
+ android:paddingEnd="8dp"
+ android:paddingStart="8dp"
android:progressTint="@android:color/white"
android:thumbTint="@android:color/white" />
diff --git a/packages/SystemUI/res/layout/volume_text_footer.xml b/packages/SystemUI/res/layout/volume_text_footer.xml
deleted file mode 100644
index 7436488..0000000
--- a/packages/SystemUI/res/layout/volume_text_footer.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<!--
- 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.
--->
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/volume_text_footer"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"
- tools:ignore="UselessParent" >
-
- <TextView
- android:id="@+id/volume_footline_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBaseline="@+id/volume_footline_action_button"
- android:alpha="@dimen/volume_secondary_alpha"
- android:fontFamily="sans-serif"
- android:paddingEnd="8dp"
- android:paddingStart="13dp"
- android:textColor="?android:attr/textColorPrimary" />
-
- <Button
- android:id="@+id/volume_footline_action_button"
- style="@android:style/Widget.Material.Button.Borderless"
- android:layout_width="wrap_content"
- android:layout_height="@dimen/volume_button_size"
- android:layout_toEndOf="@id/volume_footline_text"
- android:layout_toStartOf="@+id/volume_settings_button"
- android:alpha="@dimen/volume_secondary_alpha"
- android:paddingEnd="0dp"
- android:paddingStart="0dp" />
-
- <com.android.keyguard.AlphaOptimizedImageButton
- android:id="@+id/volume_settings_button"
- style="@style/VolumeButtons"
- android:layout_width="@dimen/volume_button_size"
- android:layout_height="@dimen/volume_button_size"
- android:layout_alignParentEnd="true"
- android:src="@drawable/ic_volume_settings" />
-
-</RelativeLayout> \ No newline at end of file
diff --git a/packages/SystemUI/res/layout/volume_zen_footer.xml b/packages/SystemUI/res/layout/volume_zen_footer.xml
index dcdc859..9e761e2 100644
--- a/packages/SystemUI/res/layout/volume_zen_footer.xml
+++ b/packages/SystemUI/res/layout/volume_zen_footer.xml
@@ -20,93 +20,58 @@
android:layout_height="wrap_content"
android:orientation="vertical" > <!-- extends LinearLayout -->
+ <View
+ android:id="@+id/zen_embedded_divider"
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_marginBottom="8dp"
+ android:layout_marginTop="8dp"
+ android:background="#4dffffff" />
+
<LinearLayout
- android:id="@+id/volume_zen_switch_bar"
android:layout_width="match_parent"
- android:layout_height="@dimen/volume_button_size"
- android:layout_marginStart="4dp"
- android:layout_marginEnd="4dp"
- android:clickable="true"
- android:orientation="horizontal" >
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ android:paddingEnd="8dp"
+ android:paddingStart="8dp" >
<ImageView
- android:id="@+id/volume_zen_switch_bar_icon"
+ android:id="@+id/volume_zen_icon"
android:layout_width="@dimen/volume_button_size"
android:layout_height="@dimen/volume_button_size"
+ android:layout_marginEnd="7dp"
android:scaleType="center"
android:src="@drawable/ic_dnd" />
- <TextView
+ <LinearLayout
android:layout_width="0dp"
- android:layout_height="fill_parent"
- android:layout_weight="1"
- android:gravity="center_vertical"
- android:textDirection="locale"
- android:padding="3dp"
- android:text="@string/volume_zen_switch_text"
- android:textAppearance="@style/TextAppearance.Volume.ZenSwitch" />
-
- <Switch
- android:id="@+id/volume_zen_switch"
- android:layout_width="wrap_content"
- android:layout_height="fill_parent"
- android:layout_marginEnd="11dp" />
-
- </LinearLayout>
-
- <RelativeLayout
- android:id="@+id/volume_zen_panel_summary"
- android:layout_width="match_parent"
- android:layout_height="@dimen/volume_button_size"
- android:layout_marginStart="@dimen/volume_button_size"
- android:paddingEnd="7dp"
- android:paddingStart="7dp" >
-
- <TextView
- android:id="@+id/volume_zen_panel_summary_line_1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textAppearance="@style/TextAppearance.Volume.ZenSwitchSummary" />
-
- <TextView
- android:id="@+id/volume_zen_panel_summary_line_2"
- android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_below="@id/volume_zen_panel_summary_line_1"
- android:textAppearance="@style/TextAppearance.Volume.ZenSwitchDetail" />
- </RelativeLayout>
-
- <include layout="@layout/zen_mode_panel" />
+ android:layout_weight="1"
+ android:orientation="vertical" >
- <LinearLayout
- android:id="@+id/volume_zen_mode_panel_buttons"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="4dp"
- android:layout_marginEnd="4dp"
- android:gravity="end" >
+ <TextView
+ android:id="@+id/volume_zen_summary_line_1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="@style/TextAppearance.Volume.ZenSummary" />
- <TextView
- android:id="@+id/volume_zen_mode_panel_more"
- style="@style/QSBorderlessButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="8dp"
- android:clickable="true"
- android:focusable="true"
- android:minWidth="132dp"
- android:text="@string/quick_settings_more_settings"
- android:textAppearance="@style/TextAppearance.QS.DetailButton" />
+ <TextView
+ android:id="@+id/volume_zen_summary_line_2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="@style/TextAppearance.Volume.ZenDetail" />
+ </LinearLayout>
<TextView
- android:id="@+id/volume_zen_mode_panel_done"
+ android:id="@+id/volume_zen_end_now"
style="@style/QSBorderlessButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
- android:minWidth="66dp"
- android:text="@string/quick_settings_done"
+ android:minWidth="91dp"
+ android:text="@string/volume_zen_end_now"
android:textAppearance="@style/TextAppearance.QS.DetailButton" />
</LinearLayout>
diff --git a/packages/SystemUI/res/layout/zen_mode_panel.xml b/packages/SystemUI/res/layout/zen_mode_panel.xml
index b676bce..595c9ed 100644
--- a/packages/SystemUI/res/layout/zen_mode_panel.xml
+++ b/packages/SystemUI/res/layout/zen_mode_panel.xml
@@ -22,81 +22,21 @@
android:clipChildren="false"
android:orientation="vertical" >
- <FrameLayout
- android:id="@+id/zen_buttons_container"
+ <com.android.systemui.volume.SegmentedButtons
+ android:id="@+id/zen_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:minHeight="8dp"
- android:layout_marginStart="39dp"
- android:elevation="4dp"
- android:background="@drawable/qs_background_secondary" >
-
- <com.android.systemui.volume.SegmentedButtons
- android:id="@+id/zen_buttons"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:layout_marginRight="8dp"
- android:layout_marginBottom="8dp"
- android:clipChildren="false" />
- </FrameLayout>
+ android:layout_marginStart="8dp"
+ android:layout_marginEnd="8dp" />
<View
android:id="@+id/zen_embedded_divider"
android:layout_width="match_parent"
+ android:layout_marginTop="8dp"
android:layout_height="1dp"
- android:visibility="gone"
android:background="#4dffffff" />
<RelativeLayout
- android:id="@+id/zen_subhead"
- android:layout_width="match_parent"
- android:layout_height="62dp"
- android:layout_marginStart="39dp"
- android:gravity="center_vertical"
- android:paddingLeft="8dp"
- android:paddingRight="8dp" >
-
- <TextView
- android:id="@+id/zen_subhead_collapsed"
- android:layout_width="wrap_content"
- android:layout_height="48dp"
- android:layout_gravity="center_vertical"
- android:gravity="center_vertical"
- android:paddingLeft="8dp"
- android:paddingRight="4dp"
- android:background="@drawable/btn_borderless_rect"
- android:clickable="true"
- android:drawableEnd="@drawable/qs_subhead_caret"
- android:maxLines="2"
- android:ellipsize="end"
- android:textAppearance="@style/TextAppearance.QS.Subhead" />
-
- <TextView
- android:id="@+id/zen_subhead_expanded"
- android:layout_width="wrap_content"
- android:layout_height="48dp"
- android:layout_gravity="center_vertical"
- android:gravity="center_vertical"
- android:paddingLeft="8dp"
- android:maxLines="2"
- android:ellipsize="end"
- android:textAppearance="@style/TextAppearance.QS.Subhead" />
-
- <ImageView
- android:id="@+id/zen_more_settings"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_alignParentEnd="true"
- android:background="@drawable/btn_borderless_rect"
- android:clickable="true"
- android:contentDescription="@string/accessibility_desc_settings"
- android:scaleType="center"
- android:src="@drawable/ic_settings" />
-
- </RelativeLayout>
-
- <RelativeLayout
android:id="@+id/zen_introduction"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -122,10 +62,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
- android:layout_marginStart="55dp"
+ android:layout_marginStart="24dp"
android:lineSpacingMultiplier="1.20029"
android:layout_toStartOf="@id/zen_introduction_confirm"
- android:text="@string/zen_priority_introduction"
android:textAppearance="@style/TextAppearance.QS.Introduction" />
<TextView
@@ -141,6 +80,12 @@
android:text="@string/zen_priority_customize_button"
android:textAppearance="@style/TextAppearance.QS.DetailButton.White" />
+ <View
+ android:layout_width="0dp"
+ android:layout_height="16dp"
+ android:layout_below="@id/zen_introduction_message"
+ android:layout_alignParentEnd="true" />
+
</RelativeLayout>
<LinearLayout
@@ -149,7 +94,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginEnd="4dp"
- android:layout_marginStart="39dp"
+ android:layout_marginStart="4dp"
android:orientation="vertical"
android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding" />
diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml
index 1f1455a..7a108ed 100644
--- a/packages/SystemUI/res/values/colors.xml
+++ b/packages/SystemUI/res/values/colors.xml
@@ -128,7 +128,7 @@
<color name="screen_pinning_request_window_bg">#80000000</color>
<color name="segmented_button_selected">#FFFFFFFF</color>
- <color name="segmented_button_unselected">#B3B0BEC5</color><!-- 70% blue grey 200 -->
+ <color name="segmented_button_unselected">#FFB0BEC5</color><!-- blue grey 200 -->
<color name="dark_mode_icon_color_single_tone">#99000000</color>
<color name="dark_mode_icon_color_dual_tone_background">#3d000000</color>
@@ -139,4 +139,6 @@
<color name="light_mode_icon_color_dual_tone_fill">#ffffff</color>
<color name="zen_introduction_message_background">#ff009688</color><!-- deep teal 500 -->
+ <color name="volume_icon_color">#ffffffff</color>
+ <color name="volume_settings_icon_color">#7fffffff</color>
</resources>
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
index 2e44547..6afc5e5 100644
--- a/packages/SystemUI/res/values/config.xml
+++ b/packages/SystemUI/res/values/config.xml
@@ -293,5 +293,9 @@
<!-- Duration of the full carrier network change icon animation. -->
<integer name="carrier_network_change_anim_time">3000</integer>
+
+ <!-- Duration of the expansion animation in the volume dialog -->
+ <item name="volume_expand_animation_duration" type="integer">300</item>
+
</resources>
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
index 6e59029..a0ef5e2 100644
--- a/packages/SystemUI/res/values/dimens.xml
+++ b/packages/SystemUI/res/values/dimens.xml
@@ -573,4 +573,13 @@
<!-- Minimum margin of the notification panel on the side, when being positioned dynamically -->
<dimen name="notification_panel_min_side_margin">48dp</dimen>
+
+ <!-- Vertical spacing between multiple volume slider rows -->
+ <dimen name="volume_slider_interspacing">8dp</dimen>
+
+ <!-- Volume dialog vertical offset from the top of the screen -->
+ <dimen name="volume_offset_top">0dp</dimen>
+
+ <!-- Standard image button size for volume dialog buttons -->
+ <dimen name="volume_button_size">48dp</dimen>
</resources>
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml
index f12fd0c..8b50774 100644
--- a/packages/SystemUI/res/values/strings.xml
+++ b/packages/SystemUI/res/values/strings.xml
@@ -439,7 +439,7 @@
<!-- Content description of the do not disturb tile in quick settings when on in priority (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_quick_settings_dnd_priority_on">Do not disturb on, priority only.</string>
<!-- Content description of the do not disturb tile in quick settings when on in none (not shown on the screen). [CHAR LIMIT=NONE] -->
- <string name="accessibility_quick_settings_dnd_none_on">Do not disturb on, no interruptions.</string>
+ <string name="accessibility_quick_settings_dnd_none_on">Do not disturb on, total silence.</string>
<!-- Content description of the do not disturb tile in quick settings when on in alarms only (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_quick_settings_dnd_alarms_on">Do not disturb on, alarms only.</string>
<!-- Content description of the do not disturb tile in quick settings when off (not shown on the screen). [CHAR LIMIT=NONE] -->
@@ -576,8 +576,8 @@
<string name="quick_settings_dnd_priority_label">Priority only</string>
<!-- QuickSettings: Do not disturb - Alarms only [CHAR LIMIT=NONE] -->
<string name="quick_settings_dnd_alarms_label">Alarms only</string>
- <!-- QuickSettings: Do not disturb - No interruptions [CHAR LIMIT=NONE] -->
- <string name="quick_settings_dnd_none_label">No interruptions</string>
+ <!-- QuickSettings: Do not disturb - Total silence [CHAR LIMIT=NONE] -->
+ <string name="quick_settings_dnd_none_label">Total silence</string>
<!-- QuickSettings: Bluetooth [CHAR LIMIT=NONE] -->
<string name="quick_settings_bluetooth_label">Bluetooth</string>
<!-- QuickSettings: Bluetooth (Multiple) [CHAR LIMIT=NONE] -->
@@ -725,32 +725,14 @@
<!-- Description of the left direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] -->
<string name="description_direction_left">"Slide left for <xliff:g id="target_description" example="Unlock">%s</xliff:g>.</string>
- <!-- Zen mode: No interruptions title, with a warning about alarms. [CHAR LIMIT=60] -->
- <string name="zen_no_interruptions_with_warning">No interruptions. Not even alarms.</string>
-
<!-- Zen mode: Priority only introduction message on first use -->
- <string name="zen_priority_introduction">You won\'t be disturbed by sounds and vibrations, except from alarms, reminders, events, and callers you specify.</string>
+ <string name="zen_priority_introduction">You won’t be disturbed by sounds and vibrations, except from alarms, reminders, events, and callers you specify.</string>
<!-- Zen mode: Priority only customization button label -->
<string name="zen_priority_customize_button">Customize</string>
- <!-- Zen mode: No interruptions. [CHAR LIMIT=40] -->
- <string name="zen_no_interruptions">No interruptions</string>
-
- <!-- Zen mode: Only important interruptions. [CHAR LIMIT=40] -->
- <string name="zen_important_interruptions">Priority interruptions only</string>
-
- <!-- Zen mode: Only alarms. [CHAR LIMIT=40] -->
- <string name="zen_alarms">Alarms only</string>
-
- <!-- Zen mode: Next alarm information - just a time. [CHAR LIMIT=40] -->
- <string name="zen_alarm_information_time">Your next alarm is at <xliff:g id="alarm_time" example="5:00 PM">%s</xliff:g></string>
-
- <!-- Zen mode: Next alarm information - day and time. [CHAR LIMIT=40] -->
- <string name="zen_alarm_information_day_time">Your next alarm is <xliff:g id="alarm_day_and_time" example="Fri 5:00 PM">%s</xliff:g></string>
-
- <!-- Zen mode: Next alarm warning. [CHAR LIMIT=40] -->
- <string name="zen_alarm_warning">You won\'t hear your alarm at <xliff:g id="alarm_time" example="5:00 PM">%s</xliff:g></string>
+ <!-- Zen mode: Total silence introduction message on first use -->
+ <string name="zen_silence_introduction">This blocks ALL sounds and vibrations, including from alarms, music, videos, and games. You’ll still be able to make phone calls.</string>
<!-- Text for overflow card on Keyguard when there is not enough space for all notifications on Keyguard. [CHAR LIMIT=1] -->
<string name="keyguard_more_overflow_text">+<xliff:g id="number_of_notifications" example="5">%d</xliff:g></string>
@@ -771,7 +753,7 @@
<string name="camera_hint">Swipe left for camera</string>
<!-- Interruption level: None. [CHAR LIMIT=20] -->
- <string name="interruption_level_none">No interruptions</string>
+ <string name="interruption_level_none">Total silence</string>
<!-- Interruption level: Priority. [CHAR LIMIT=20] -->
<string name="interruption_level_priority">Priority only</string>
@@ -779,11 +761,8 @@
<!-- Interruption level: Alarms only. [CHAR LIMIT=20] -->
<string name="interruption_level_alarms">Alarms only</string>
- <!-- Interruption level: All. [CHAR LIMIT=20] -->
- <string name="interruption_level_all">All</string>
-
<!-- Interruption level: None. Optimized for narrow two-line display. [CHAR LIMIT=20] -->
- <string name="interruption_level_none_twoline">No\ninterruptions</string>
+ <string name="interruption_level_none_twoline">Total\nsilence</string>
<!-- Interruption level: Priority. Optimized for narrow two-line display. [CHAR LIMIT=20] -->
<string name="interruption_level_priority_twoline">Priority\nonly</string>
@@ -953,6 +932,9 @@
<!-- Accessibility string for current zen mode and selected exit condition. A template that simply concatenates existing mode string and the current condition description. [CHAR LIMIT=20] -->
<string name="zen_mode_and_condition"><xliff:g id="zen_mode" example="Priority interruptions only">%1$s</xliff:g>. <xliff:g id="exit_condition" example="For one hour">%2$s</xliff:g></string>
+ <!-- Button label for ending zen mode in the volume dialog -->
+ <string name="volume_zen_end_now">End now</string>
+
<!-- Screen pinning dialog title. -->
<string name="screen_pinning_title">Screen is pinned</string>
<!-- Screen pinning dialog description. -->
@@ -988,9 +970,26 @@
<!-- VolumeUI restoration notification: text -->
<string name="volumeui_notification_text">Touch to restore the original.</string>
- <!-- Volume dialog zen toggle switch title -->
- <string name="volume_zen_switch_text" translatable="false">@*android:string/zen_mode_feature_name</string>
-
<!-- Toast shown when user unlocks screen and managed profile activity is in the foreground -->
<string name="managed_profile_foreground_toast">You are in the Work profile</string>
+
+ <string-array name="volume_stream_titles" translatable="false">
+ <item>Voice calls</item> <!-- STREAM_VOICE_CALL -->
+ <item>System</item> <!-- STREAM_SYSTEM -->
+ <item>Notifications</item> <!-- STREAM_RING -->
+ <item>Media</item> <!-- STREAM_MUSIC -->
+ <item>Alarms</item> <!-- STREAM_ALARM -->
+ <item></item> <!-- STREAM_NOTIFICATION -->
+ <item>Bluetooth calls</item> <!-- STREAM_BLUETOOTH_SCO -->
+ <item></item> <!-- STREAM_SYSTEM_ENFORCED -->
+ <item></item> <!-- STREAM_DTMF -->
+ <item></item> <!-- STREAM_TTS -->
+ </string-array>
+
+ <string name="volume_stream_muted" translatable="false">%s silent</string>
+ <string name="volume_stream_vibrate" translatable="false">%s vibrate</string>
+ <string name="volume_stream_suppressed" translatable="false">%1$s silent — %2$s</string>
+ <string name="volume_stream_muted_dnd" translatable="false">%s silent — Total silence</string>
+ <string name="volume_stream_limited_dnd" translatable="false">%s — Priority only</string>
+ <string name="volume_stream_vibrate_dnd" translatable="false">%s vibrate — Priority only</string>
</resources>
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
index ef2e6f3..c058d44 100644
--- a/packages/SystemUI/res/values/styles.xml
+++ b/packages/SystemUI/res/values/styles.xml
@@ -165,7 +165,7 @@
</style>
<style name="TextAppearance.QS.SegmentedButton">
- <item name="android:textSize">14sp</item>
+ <item name="android:textSize">16sp</item>
</style>
<style name="TextAppearance.QS.DataUsage">
@@ -262,4 +262,31 @@
<item name="fillColor">@color/dark_mode_icon_color_dual_tone_fill</item>
<item name="singleToneColor">@color/dark_mode_icon_color_single_tone</item>
</style>
+
+ <style name="TextAppearance.Volume">
+ <item name="android:textStyle">normal</item>
+ <item name="android:textColor">#ffffffff</item>
+ <item name="android:fontFamily">sans-serif</item>
+ </style>
+
+ <style name="TextAppearance.Volume.ZenSummary">
+ <item name="android:textSize">14sp</item>
+ <item name="android:fontFamily">sans-serif-medium</item>
+ </style>
+
+ <style name="TextAppearance.Volume.ZenDetail">
+ <item name="android:textSize">14sp</item>
+ <item name="android:fontFamily">sans-serif</item>
+ <item name="android:textColor">#ffb0b3c5</item>
+ </style>
+
+ <style name="VolumeDialogAnimations">
+ <item name="android:windowEnterAnimation">@android:anim/fade_in</item>
+ <item name="android:windowExitAnimation">@android:anim/fade_out</item>
+ </style>
+
+ <style name="VolumeButtons" parent="@android:style/Widget.Material.Button.Borderless">
+ <item name="android:background">@drawable/btn_borderless_rect</item>
+ </style>
+
</resources>
diff --git a/packages/SystemUI/res/values/volume.xml b/packages/SystemUI/res/values/volume.xml
deleted file mode 100644
index f516104..0000000
--- a/packages/SystemUI/res/values/volume.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<!--
- 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.
--->
-<resources xmlns:android="http://schemas.android.com/apk/res/android">
-
- <item name="volume_expand_animation_duration" type="integer">300</item>
-
- <color name="volume_icon_color">#ffffffff</color>
- <color name="volume_settings_icon_color">#7fffffff</color>
-
- <dimen name="volume_slider_interspacing">2dp</dimen>
- <dimen name="volume_offset_top">0dp</dimen>
- <dimen name="volume_button_size">48dp</dimen>
-
- <item name="volume_secondary_alpha" format="float" type="dimen">0.3</item>
-
- <style name="VolumeDialogAnimations">
- <item name="android:windowEnterAnimation">@android:anim/fade_in</item>
- <item name="android:windowExitAnimation">@android:anim/fade_out</item>
- </style>
-
- <style name="VolumeButtons" parent="@android:style/Widget.Material.Button.Borderless">
- <item name="android:background">@drawable/btn_borderless_rect</item>
- </style>
-
- <style name="TextAppearance" />
-
- <style name="TextAppearance.Volume">
- <item name="android:textStyle">normal</item>
- <item name="android:textColor">#ffffffff</item>
- <item name="android:fontFamily">sans-serif</item>
- </style>
-
- <style name="TextAppearance.Volume.ZenSwitch">
- <item name="android:textSize">16sp</item>
- <item name="android:fontFamily">sans-serif-medium</item>
- </style>
-
- <style name="TextAppearance.Volume.ZenSwitchSummary">
- <item name="android:textSize">14sp</item>
- <item name="android:fontFamily">sans-serif-medium</item>
- </style>
-
- <style name="TextAppearance.Volume.ZenSwitchDetail">
- <item name="android:textSize">14sp</item>
- <item name="android:fontFamily">sans-serif</item>
- <item name="android:textColor">#ffb0b3c5</item>
- </style>
-
- <string-array name="volume_stream_titles" translatable="false">
- <item>Voice calls</item> <!-- STREAM_VOICE_CALL -->
- <item>System</item> <!-- STREAM_SYSTEM -->
- <item>Notifications</item> <!-- STREAM_RING -->
- <item>Media</item> <!-- STREAM_MUSIC -->
- <item>Alarms</item> <!-- STREAM_ALARM -->
- <item></item> <!-- STREAM_NOTIFICATION -->
- <item>Bluetooth calls</item> <!-- STREAM_BLUETOOTH_SCO -->
- <item></item> <!-- STREAM_SYSTEM_ENFORCED -->
- <item></item> <!-- STREAM_DTMF -->
- <item></item> <!-- STREAM_TTS -->
- </string-array>
-
- <string name="volume_dnd_is_on" translatable="false">Do not disturb is on</string>
- <string name="volume_turn_off" translatable="false">Turn off</string>
- <string name="volume_stream_muted" translatable="false">%s silent</string>
- <string name="volume_stream_vibrate" translatable="false">%s vibrate</string>
- <string name="volume_stream_suppressed" translatable="false">%1$s silent — %2$s</string>
- <string name="volume_stream_muted_dnd" translatable="false">%s silent — No interruptions</string>
- <string name="volume_stream_limited_dnd" translatable="false">%s — Priority only</string>
- <string name="volume_stream_vibrate_dnd" translatable="false">%s vibrate — Priority only</string>
- <string name="volume_dnd_ends_in" translatable="false">Do not disturb ends in %s</string>
- <string name="volume_dnd_ends_at" translatable="false">Do not disturb ends at %s</string>
- <string name="volume_end_now" translatable="false">End now</string>
-
-</resources> \ No newline at end of file