Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2017 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
Fan Zhang | 2e72dda | 2017-06-28 18:14:18 -0700 | [diff] [blame] | 17 | <PreferenceScreen |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Fan Zhang | 74c61d1 | 2017-11-17 16:49:54 -0800 | [diff] [blame] | 19 | xmlns:settings="http://schemas.android.com/apk/res-auto" |
Fan Zhang | 2e72dda | 2017-06-28 18:14:18 -0700 | [diff] [blame] | 20 | android:title="@string/sound_settings" |
Edgar Wang | 77de405 | 2020-02-14 17:58:38 +0800 | [diff] [blame] | 21 | android:key="sound_settings" |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 22 | settings:keywords="@string/keywords_sounds"> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 23 | |
timhypeng | 716777d | 2020-02-07 09:01:10 +0800 | [diff] [blame] | 24 | <!-- Remote volume group --> |
| 25 | <PreferenceCategory |
| 26 | android:key="remote_media_group" |
| 27 | android:title="" |
jackqdyulei | f25c9b0 | 2019-02-27 10:05:56 -0800 | [diff] [blame] | 28 | android:order="-185" |
timhypeng | 716777d | 2020-02-07 09:01:10 +0800 | [diff] [blame] | 29 | settings:allowDividerBelow="true" |
| 30 | settings:controller="com.android.settings.notification.RemoteVolumeGroupController"> |
| 31 | </PreferenceCategory> |
jackqdyulei | f25c9b0 | 2019-02-27 10:05:56 -0800 | [diff] [blame] | 32 | |
Doris Ling | 8b14a1a | 2017-08-17 14:45:12 -0700 | [diff] [blame] | 33 | <!-- Media volume --> |
| 34 | <com.android.settings.notification.VolumeSeekBarPreference |
| 35 | android:key="media_volume" |
Antony Sargent | 75ae43b | 2018-05-23 15:34:01 -0700 | [diff] [blame] | 36 | android:icon="@drawable/ic_media_stream" |
Doris Ling | 8b14a1a | 2017-08-17 14:45:12 -0700 | [diff] [blame] | 37 | android:title="@string/media_volume_option_title" |
ryanywlin | 751a395 | 2018-04-13 05:51:46 +0800 | [diff] [blame] | 38 | android:order="-180" |
| 39 | settings:controller="com.android.settings.notification.MediaVolumePreferenceController"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 40 | |
ryanywlin | 63bdfa8 | 2018-03-23 16:57:51 +0800 | [diff] [blame] | 41 | <!-- Media output switcher --> |
timhypeng | abdf739 | 2019-03-04 16:32:47 +0800 | [diff] [blame] | 42 | <Preference |
ryanywlin | 63bdfa8 | 2018-03-23 16:57:51 +0800 | [diff] [blame] | 43 | android:key="media_output" |
| 44 | android:title="@string/media_output_title" |
| 45 | android:dialogTitle="@string/media_output_title" |
| 46 | android:order="-175" |
Tim Peng | f392eae | 2020-05-06 13:52:24 +0800 | [diff] [blame] | 47 | settings:searchable="false" |
ryanywlin | 63bdfa8 | 2018-03-23 16:57:51 +0800 | [diff] [blame] | 48 | settings:controller="com.android.settings.sound.MediaOutputPreferenceController"/> |
| 49 | |
ryanywlin | 156fd91 | 2018-04-25 10:56:36 +0800 | [diff] [blame] | 50 | <!-- Call volume --> |
| 51 | <com.android.settings.notification.VolumeSeekBarPreference |
| 52 | android:key="call_volume" |
| 53 | android:icon="@drawable/ic_local_phone_24_lib" |
| 54 | android:title="@string/call_volume_option_title" |
| 55 | android:order="-170" |
ryanywlin | 156fd91 | 2018-04-25 10:56:36 +0800 | [diff] [blame] | 56 | settings:controller="com.android.settings.notification.CallVolumePreferenceController"/> |
| 57 | |
| 58 | <!-- Hands free profile output switcher --> |
| 59 | <ListPreference |
| 60 | android:key="take_call_on_output" |
| 61 | android:title="@string/take_call_on_title" |
| 62 | android:dialogTitle="@string/take_call_on_title" |
| 63 | android:order="-165" |
Yanting Yang | df5aaec | 2020-04-29 17:14:35 +0800 | [diff] [blame] | 64 | settings:searchable="false" |
ryanywlin | 156fd91 | 2018-04-25 10:56:36 +0800 | [diff] [blame] | 65 | settings:controller="com.android.settings.sound.HandsFreeProfileOutputPreferenceController"/> |
| 66 | |
Doris Ling | 8b14a1a | 2017-08-17 14:45:12 -0700 | [diff] [blame] | 67 | <!-- Ring volume --> |
| 68 | <com.android.settings.notification.VolumeSeekBarPreference |
| 69 | android:key="ring_volume" |
Michael Bestas | 396c09e | 2023-03-14 05:20:09 +0200 | [diff] [blame] | 70 | android:icon="@drawable/ic_notifications" |
Doris Ling | 8b14a1a | 2017-08-17 14:45:12 -0700 | [diff] [blame] | 71 | android:title="@string/ring_volume_option_title" |
ryanywlin | 156fd91 | 2018-04-25 10:56:36 +0800 | [diff] [blame] | 72 | android:order="-160" |
Beverly | 07724bd | 2018-05-14 17:13:43 -0400 | [diff] [blame] | 73 | settings:controller="com.android.settings.notification.RingVolumePreferenceController"/> |
ryanywlin | 751a395 | 2018-04-13 05:51:46 +0800 | [diff] [blame] | 74 | |
Behnam Heydarshahi | 4f87dd4 | 2022-12-15 21:51:13 +0000 | [diff] [blame] | 75 | <!-- Separate Ring volume --> |
| 76 | <com.android.settings.notification.VolumeSeekBarPreference |
| 77 | android:key="separate_ring_volume" |
| 78 | android:icon="@drawable/ic_ring_volume" |
| 79 | android:title="@string/separate_ring_volume_option_title" |
| 80 | android:order="-155" |
| 81 | settings:controller="com.android.settings.notification.SeparateRingVolumePreferenceController"/> |
| 82 | |
Behnam Heydarshahi | 3ac6aaf | 2022-09-06 22:12:37 +0000 | [diff] [blame] | 83 | <!-- Notification volume --> |
| 84 | <com.android.settings.notification.VolumeSeekBarPreference |
| 85 | android:key="notification_volume" |
| 86 | android:icon="@drawable/ic_notifications" |
| 87 | android:title="@string/notification_volume_option_title" |
| 88 | android:order="-150" |
Behnam Heydarshahi | d9c3cf8 | 2023-01-31 21:04:32 +0000 | [diff] [blame] | 89 | settings:controller="com.android.settings.notification.NotificationVolumePreferenceController" |
| 90 | settings:unavailableSliceSubtitle="@string/notification_volume_disabled_summary"/> |
ryanywlin | 63bdfa8 | 2018-03-23 16:57:51 +0800 | [diff] [blame] | 91 | |
ryanywlin | 751a395 | 2018-04-13 05:51:46 +0800 | [diff] [blame] | 92 | <!-- Alarm volume --> |
| 93 | <com.android.settings.notification.VolumeSeekBarPreference |
| 94 | android:key="alarm_volume" |
| 95 | android:icon="@*android:drawable/ic_audio_alarm" |
| 96 | android:title="@string/alarm_volume_option_title" |
ryanywlin | 751a395 | 2018-04-13 05:51:46 +0800 | [diff] [blame] | 97 | android:order="-140" |
Behnam Heydarshahi | 3ac6aaf | 2022-09-06 22:12:37 +0000 | [diff] [blame] | 98 | settings:controller="com.android.settings.notification.AlarmVolumePreferenceController"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 99 | |
Danny Baumann | 33c2632 | 2017-10-11 14:57:05 +0200 | [diff] [blame] | 100 | <!-- Increasing ring --> |
| 101 | <lineageos.preference.LineageSystemSettingSwitchPreference |
| 102 | android:key="increasing_ring" |
| 103 | android:title="@string/increasing_ring_volume_option_title" |
| 104 | android:order="-136" |
| 105 | settings:controller="com.android.settings.notification.IncreasingRingPreferenceController" /> |
| 106 | |
| 107 | <!-- Increasing ring volume --> |
| 108 | <com.android.settings.notification.IncreasingRingVolumePreference |
| 109 | android:key="increasing_ring_volume" |
| 110 | android:icon="@drawable/ring_notif_increasing" |
| 111 | android:dependency="increasing_ring" |
| 112 | android:order="-135" |
| 113 | settings:controller="com.android.settings.notification.IncreasingRingVolumePreferenceController" /> |
| 114 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 115 | <!-- TODO(b/174964721): make this a PrimarySwitchPreference --> |
Doris Ling | 8b14a1a | 2017-08-17 14:45:12 -0700 | [diff] [blame] | 116 | <!-- Interruptions --> |
| 117 | <com.android.settingslib.RestrictedPreference |
| 118 | android:key="zen_mode" |
| 119 | android:title="@string/zen_mode_settings_title" |
Julia Reynolds | aceccce | 2019-11-26 16:14:03 -0500 | [diff] [blame] | 120 | android:fragment="com.android.settings.notification.zen.ZenModeSettings" |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 121 | android:order="-130" |
Doris Ling | 8b14a1a | 2017-08-17 14:45:12 -0700 | [diff] [blame] | 122 | settings:useAdminDisabledSummary="true" |
| 123 | settings:keywords="@string/keywords_sounds_and_notifications_interruptions" |
Julia Reynolds | aceccce | 2019-11-26 16:14:03 -0500 | [diff] [blame] | 124 | settings:controller="com.android.settings.notification.zen.ZenModePreferenceController"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 125 | |
Doris Ling | 8b14a1a | 2017-08-17 14:45:12 -0700 | [diff] [blame] | 126 | <!-- Phone ringtone --> |
| 127 | <com.android.settings.DefaultRingtonePreference |
Jason Chiu | 26343b8 | 2020-03-20 19:02:06 +0800 | [diff] [blame] | 128 | android:key="phone_ringtone" |
Doris Ling | 8b14a1a | 2017-08-17 14:45:12 -0700 | [diff] [blame] | 129 | android:title="@string/ringtone_title" |
| 130 | android:dialogTitle="@string/ringtone_title" |
| 131 | android:summary="@string/summary_placeholder" |
| 132 | android:ringtoneType="ringtone" |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 133 | android:order="-120" |
Fan Zhang | bb679d4 | 2019-03-25 15:12:12 -0700 | [diff] [blame] | 134 | settings:keywords="@string/sound_settings"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 135 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 136 | <!-- Live Caption -110 and Now Playing -105--> |
Alan Huang | 616b092 | 2022-02-22 08:44:47 +0000 | [diff] [blame] | 137 | |
| 138 | <!-- Spatial audio --> |
| 139 | <Preference |
| 140 | android:key="spatial_audio_summary" |
| 141 | android:title="@string/spatial_audio_title" |
| 142 | android:fragment="com.android.settings.notification.SpatialAudioSettings" |
| 143 | android:order="-107" |
| 144 | settings:controller="com.android.settings.notification.SpatialAudioParentPreferenceController"/> |
| 145 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 146 | <Preference |
| 147 | android:key="media_controls_summary" |
| 148 | android:title="@string/media_controls_title" |
| 149 | android:fragment="com.android.settings.sound.MediaControlsSettings" |
| 150 | android:order="-100" |
| 151 | settings:controller="com.android.settings.sound.MediaControlsParentPreferenceController" |
| 152 | settings:keywords="@string/keywords_media_controls"/> |
| 153 | |
Lais Andrade | fe2ed12 | 2021-12-02 17:35:46 +0000 | [diff] [blame] | 154 | <!-- Also vibration --> |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 155 | <Preference |
Lais Andrade | fe2ed12 | 2021-12-02 17:35:46 +0000 | [diff] [blame] | 156 | android:fragment="com.android.settings.accessibility.VibrationSettings" |
| 157 | android:key="vibration_and_haptics" |
| 158 | android:title="@string/accessibility_vibration_settings_title" |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 159 | android:order="-90" |
Lais Andrade | fe2ed12 | 2021-12-02 17:35:46 +0000 | [diff] [blame] | 160 | settings:controller="com.android.settings.accessibility.VibrationPreferenceController" |
| 161 | settings:keywords="@string/keywords_vibration"/> |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 162 | |
Wilson Wu | 9edf797 | 2021-08-27 10:19:56 +0800 | [diff] [blame] | 163 | <com.android.settingslib.PrimarySwitchPreference |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 164 | android:key="gesture_prevent_ringing_sound" |
| 165 | android:title="@string/gesture_prevent_ringing_sound_title" |
| 166 | android:order="-80" |
| 167 | android:fragment="com.android.settings.gestures.PreventRingingGestureSettings" |
| 168 | settings:controller="com.android.settings.gestures.PreventRingingParentPreferenceController"/> |
| 169 | |
Doris Ling | 893bdba | 2017-10-13 11:45:30 -0700 | [diff] [blame] | 170 | <!-- Default notification ringtone --> |
| 171 | <com.android.settings.DefaultRingtonePreference |
| 172 | android:key="notification_ringtone" |
| 173 | android:title="@string/notification_ringtone_title" |
| 174 | android:dialogTitle="@string/notification_ringtone_title" |
| 175 | android:summary="@string/summary_placeholder" |
| 176 | android:ringtoneType="notification" |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 177 | android:order="-70"/> |
Doris Ling | 893bdba | 2017-10-13 11:45:30 -0700 | [diff] [blame] | 178 | |
| 179 | <!-- Default alarm ringtone --> |
| 180 | <com.android.settings.DefaultRingtonePreference |
| 181 | android:key="alarm_ringtone" |
| 182 | android:title="@string/alarm_ringtone_title" |
| 183 | android:dialogTitle="@string/alarm_ringtone_title" |
| 184 | android:summary="@string/summary_placeholder" |
| 185 | android:persistent="false" |
| 186 | android:ringtoneType="alarm" |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 187 | android:order="-60"/> |
Doris Ling | 893bdba | 2017-10-13 11:45:30 -0700 | [diff] [blame] | 188 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 189 | <!-- Dial pad tones --> |
| 190 | <SwitchPreference |
| 191 | android:key="dial_pad_tones" |
| 192 | android:title="@string/dial_pad_tones_title" |
| 193 | android:order="-50"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 194 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 195 | <!-- Screen locking sounds --> |
| 196 | <SwitchPreference |
| 197 | android:key="screen_locking_sounds" |
| 198 | android:title="@string/screen_locking_sounds_title" |
| 199 | android:order="-45"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 200 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 201 | <!-- Charging sounds --> |
| 202 | <SwitchPreference |
| 203 | android:key="charging_sounds" |
| 204 | android:title="@string/charging_sounds_title" |
| 205 | android:order="-40"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 206 | |
Sam Mortimer | 6e309b7 | 2016-11-07 23:38:08 -0800 | [diff] [blame] | 207 | <!-- Custom charging sounds --> |
| 208 | <lineageos.preference.LineagePartsPreference |
| 209 | android:key="charging_sounds_settings" |
nift4 | 74c15e8 | 2023-10-30 12:11:42 +0100 | [diff] [blame^] | 210 | settings:requiresConfig="@bool/config_show_charging_sounds" |
Sam Mortimer | 6e309b7 | 2016-11-07 23:38:08 -0800 | [diff] [blame] | 211 | settings:replacesKey="charging_sounds" /> |
| 212 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 213 | <!-- Docking sounds --> |
| 214 | <SwitchPreference |
| 215 | android:key="docking_sounds" |
| 216 | android:title="@string/docking_sounds_title" |
| 217 | android:order="-35"/> |
Beverly Tai | 6761acd | 2018-04-30 20:01:40 +0000 | [diff] [blame] | 218 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 219 | <!-- Touch sounds --> |
| 220 | <SwitchPreference |
| 221 | android:key="touch_sounds" |
| 222 | android:title="@string/touch_sounds_title" |
| 223 | android:order="-30"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 224 | |
Evan Laird | 4871b2c | 2022-01-10 19:44:18 +0000 | [diff] [blame] | 225 | <!-- Show vibrate icon in status bar --> |
| 226 | <SwitchPreference |
| 227 | android:key="vibrate_icon" |
| 228 | android:title="@string/vibrate_icon_title" |
| 229 | android:order="-27"/> |
| 230 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 231 | <!-- Dock speaker plays --> |
| 232 | <DropDownPreference |
| 233 | android:key="dock_audio_media" |
| 234 | android:title="@string/dock_audio_media_title" |
| 235 | android:summary="%s" |
| 236 | android:order="-20"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 237 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 238 | <!-- Boot sounds --> |
| 239 | <SwitchPreference |
| 240 | android:key="boot_sounds" |
| 241 | android:title="@string/boot_sounds_title" |
| 242 | android:order="-15"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 243 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 244 | <!-- Emergency tone --> |
| 245 | <DropDownPreference |
| 246 | android:key="emergency_tone" |
| 247 | android:title="@string/emergency_tone_title" |
| 248 | android:summary="%s" |
| 249 | android:order="-10"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 250 | |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 251 | <Preference |
| 252 | android:key="sound_work_settings" |
Fan Zhang | 2e72dda | 2017-06-28 18:14:18 -0700 | [diff] [blame] | 253 | android:title="@string/sound_work_settings" |
Yanting Yang | beb14db | 2021-05-25 04:40:47 +0800 | [diff] [blame] | 254 | android:fragment="com.android.settings.notification.SoundWorkSettings" |
| 255 | android:order="100" |
| 256 | settings:controller="com.android.settings.notification.WorkSoundsPreferenceController"/> |
Doris Ling | 3ca3677 | 2017-01-11 15:57:02 -0800 | [diff] [blame] | 257 | </PreferenceScreen> |