blob: 9493bba40efbee182d74f831643b005c5ff370f7 [file] [log] [blame]
Doris Ling3ca36772017-01-11 15:57:02 -08001<?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 Zhang2e72dda2017-06-28 18:14:18 -070017<PreferenceScreen
18 xmlns:android="http://schemas.android.com/apk/res/android"
Fan Zhang74c61d12017-11-17 16:49:54 -080019 xmlns:settings="http://schemas.android.com/apk/res-auto"
Fan Zhang2e72dda2017-06-28 18:14:18 -070020 android:title="@string/sound_settings"
Edgar Wang77de4052020-02-14 17:58:38 +080021 android:key="sound_settings"
Yanting Yangbeb14db2021-05-25 04:40:47 +080022 settings:keywords="@string/keywords_sounds">
Doris Ling3ca36772017-01-11 15:57:02 -080023
timhypeng716777d2020-02-07 09:01:10 +080024 <!-- Remote volume group -->
25 <PreferenceCategory
26 android:key="remote_media_group"
27 android:title=""
jackqdyuleif25c9b02019-02-27 10:05:56 -080028 android:order="-185"
timhypeng716777d2020-02-07 09:01:10 +080029 settings:allowDividerBelow="true"
30 settings:controller="com.android.settings.notification.RemoteVolumeGroupController">
31 </PreferenceCategory>
jackqdyuleif25c9b02019-02-27 10:05:56 -080032
Doris Ling8b14a1a2017-08-17 14:45:12 -070033 <!-- Media volume -->
34 <com.android.settings.notification.VolumeSeekBarPreference
35 android:key="media_volume"
Antony Sargent75ae43b2018-05-23 15:34:01 -070036 android:icon="@drawable/ic_media_stream"
Doris Ling8b14a1a2017-08-17 14:45:12 -070037 android:title="@string/media_volume_option_title"
ryanywlin751a3952018-04-13 05:51:46 +080038 android:order="-180"
39 settings:controller="com.android.settings.notification.MediaVolumePreferenceController"/>
Doris Ling3ca36772017-01-11 15:57:02 -080040
ryanywlin63bdfa82018-03-23 16:57:51 +080041 <!-- Media output switcher -->
timhypengabdf7392019-03-04 16:32:47 +080042 <Preference
ryanywlin63bdfa82018-03-23 16:57:51 +080043 android:key="media_output"
44 android:title="@string/media_output_title"
45 android:dialogTitle="@string/media_output_title"
46 android:order="-175"
Tim Pengf392eae2020-05-06 13:52:24 +080047 settings:searchable="false"
ryanywlin63bdfa82018-03-23 16:57:51 +080048 settings:controller="com.android.settings.sound.MediaOutputPreferenceController"/>
49
ryanywlin156fd912018-04-25 10:56:36 +080050 <!-- 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"
ryanywlin156fd912018-04-25 10:56:36 +080056 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 Yangdf5aaec2020-04-29 17:14:35 +080064 settings:searchable="false"
ryanywlin156fd912018-04-25 10:56:36 +080065 settings:controller="com.android.settings.sound.HandsFreeProfileOutputPreferenceController"/>
66
Doris Ling8b14a1a2017-08-17 14:45:12 -070067 <!-- Ring volume -->
68 <com.android.settings.notification.VolumeSeekBarPreference
69 android:key="ring_volume"
Michael Bestas396c09e2023-03-14 05:20:09 +020070 android:icon="@drawable/ic_notifications"
Doris Ling8b14a1a2017-08-17 14:45:12 -070071 android:title="@string/ring_volume_option_title"
ryanywlin156fd912018-04-25 10:56:36 +080072 android:order="-160"
Beverly07724bd2018-05-14 17:13:43 -040073 settings:controller="com.android.settings.notification.RingVolumePreferenceController"/>
ryanywlin751a3952018-04-13 05:51:46 +080074
Behnam Heydarshahi4f87dd42022-12-15 21:51:13 +000075 <!-- 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 Heydarshahi3ac6aaf2022-09-06 22:12:37 +000083 <!-- 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 Heydarshahid9c3cf82023-01-31 21:04:32 +000089 settings:controller="com.android.settings.notification.NotificationVolumePreferenceController"
90 settings:unavailableSliceSubtitle="@string/notification_volume_disabled_summary"/>
ryanywlin63bdfa82018-03-23 16:57:51 +080091
ryanywlin751a3952018-04-13 05:51:46 +080092 <!-- 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"
ryanywlin751a3952018-04-13 05:51:46 +080097 android:order="-140"
Behnam Heydarshahi3ac6aaf2022-09-06 22:12:37 +000098 settings:controller="com.android.settings.notification.AlarmVolumePreferenceController"/>
Doris Ling3ca36772017-01-11 15:57:02 -080099
Danny Baumann33c26322017-10-11 14:57:05 +0200100 <!-- 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 Yangbeb14db2021-05-25 04:40:47 +0800115 <!-- TODO(b/174964721): make this a PrimarySwitchPreference -->
Doris Ling8b14a1a2017-08-17 14:45:12 -0700116 <!-- Interruptions -->
117 <com.android.settingslib.RestrictedPreference
118 android:key="zen_mode"
119 android:title="@string/zen_mode_settings_title"
Julia Reynoldsaceccce2019-11-26 16:14:03 -0500120 android:fragment="com.android.settings.notification.zen.ZenModeSettings"
Yanting Yangbeb14db2021-05-25 04:40:47 +0800121 android:order="-130"
Doris Ling8b14a1a2017-08-17 14:45:12 -0700122 settings:useAdminDisabledSummary="true"
123 settings:keywords="@string/keywords_sounds_and_notifications_interruptions"
Julia Reynoldsaceccce2019-11-26 16:14:03 -0500124 settings:controller="com.android.settings.notification.zen.ZenModePreferenceController"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800125
Doris Ling8b14a1a2017-08-17 14:45:12 -0700126 <!-- Phone ringtone -->
127 <com.android.settings.DefaultRingtonePreference
Jason Chiu26343b82020-03-20 19:02:06 +0800128 android:key="phone_ringtone"
Doris Ling8b14a1a2017-08-17 14:45:12 -0700129 android:title="@string/ringtone_title"
130 android:dialogTitle="@string/ringtone_title"
131 android:summary="@string/summary_placeholder"
132 android:ringtoneType="ringtone"
Yanting Yangbeb14db2021-05-25 04:40:47 +0800133 android:order="-120"
Fan Zhangbb679d42019-03-25 15:12:12 -0700134 settings:keywords="@string/sound_settings"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800135
Yanting Yangbeb14db2021-05-25 04:40:47 +0800136 <!-- Live Caption -110 and Now Playing -105-->
Alan Huang616b0922022-02-22 08:44:47 +0000137
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 Yangbeb14db2021-05-25 04:40:47 +0800146 <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 Andradefe2ed122021-12-02 17:35:46 +0000154 <!-- Also vibration -->
Yanting Yangbeb14db2021-05-25 04:40:47 +0800155 <Preference
Lais Andradefe2ed122021-12-02 17:35:46 +0000156 android:fragment="com.android.settings.accessibility.VibrationSettings"
157 android:key="vibration_and_haptics"
158 android:title="@string/accessibility_vibration_settings_title"
Yanting Yangbeb14db2021-05-25 04:40:47 +0800159 android:order="-90"
Lais Andradefe2ed122021-12-02 17:35:46 +0000160 settings:controller="com.android.settings.accessibility.VibrationPreferenceController"
161 settings:keywords="@string/keywords_vibration"/>
Yanting Yangbeb14db2021-05-25 04:40:47 +0800162
Wilson Wu9edf7972021-08-27 10:19:56 +0800163 <com.android.settingslib.PrimarySwitchPreference
Yanting Yangbeb14db2021-05-25 04:40:47 +0800164 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 Ling893bdba2017-10-13 11:45:30 -0700170 <!-- 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 Yangbeb14db2021-05-25 04:40:47 +0800177 android:order="-70"/>
Doris Ling893bdba2017-10-13 11:45:30 -0700178
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 Yangbeb14db2021-05-25 04:40:47 +0800187 android:order="-60"/>
Doris Ling893bdba2017-10-13 11:45:30 -0700188
Yanting Yangbeb14db2021-05-25 04:40:47 +0800189 <!-- Dial pad tones -->
190 <SwitchPreference
191 android:key="dial_pad_tones"
192 android:title="@string/dial_pad_tones_title"
193 android:order="-50"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800194
Yanting Yangbeb14db2021-05-25 04:40:47 +0800195 <!-- Screen locking sounds -->
196 <SwitchPreference
197 android:key="screen_locking_sounds"
198 android:title="@string/screen_locking_sounds_title"
199 android:order="-45"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800200
Yanting Yangbeb14db2021-05-25 04:40:47 +0800201 <!-- Charging sounds -->
202 <SwitchPreference
203 android:key="charging_sounds"
204 android:title="@string/charging_sounds_title"
205 android:order="-40"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800206
Sam Mortimer6e309b72016-11-07 23:38:08 -0800207 <!-- Custom charging sounds -->
208 <lineageos.preference.LineagePartsPreference
209 android:key="charging_sounds_settings"
210 settings:replacesKey="charging_sounds" />
211
Yanting Yangbeb14db2021-05-25 04:40:47 +0800212 <!-- Docking sounds -->
213 <SwitchPreference
214 android:key="docking_sounds"
215 android:title="@string/docking_sounds_title"
216 android:order="-35"/>
Beverly Tai6761acd2018-04-30 20:01:40 +0000217
Yanting Yangbeb14db2021-05-25 04:40:47 +0800218 <!-- Touch sounds -->
219 <SwitchPreference
220 android:key="touch_sounds"
221 android:title="@string/touch_sounds_title"
222 android:order="-30"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800223
Evan Laird4871b2c2022-01-10 19:44:18 +0000224 <!-- Show vibrate icon in status bar -->
225 <SwitchPreference
226 android:key="vibrate_icon"
227 android:title="@string/vibrate_icon_title"
228 android:order="-27"/>
229
Yanting Yangbeb14db2021-05-25 04:40:47 +0800230 <!-- Dock speaker plays -->
231 <DropDownPreference
232 android:key="dock_audio_media"
233 android:title="@string/dock_audio_media_title"
234 android:summary="%s"
235 android:order="-20"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800236
Yanting Yangbeb14db2021-05-25 04:40:47 +0800237 <!-- Boot sounds -->
238 <SwitchPreference
239 android:key="boot_sounds"
240 android:title="@string/boot_sounds_title"
241 android:order="-15"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800242
Yanting Yangbeb14db2021-05-25 04:40:47 +0800243 <!-- Emergency tone -->
244 <DropDownPreference
245 android:key="emergency_tone"
246 android:title="@string/emergency_tone_title"
247 android:summary="%s"
248 android:order="-10"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800249
Yanting Yangbeb14db2021-05-25 04:40:47 +0800250 <Preference
251 android:key="sound_work_settings"
Fan Zhang2e72dda2017-06-28 18:14:18 -0700252 android:title="@string/sound_work_settings"
Yanting Yangbeb14db2021-05-25 04:40:47 +0800253 android:fragment="com.android.settings.notification.SoundWorkSettings"
254 android:order="100"
255 settings:controller="com.android.settings.notification.WorkSoundsPreferenceController"/>
Doris Ling3ca36772017-01-11 15:57:02 -0800256</PreferenceScreen>