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 17<PreferenceScreen 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:title="@string/sound_settings" 21 android:key="sound_settings" 22 settings:keywords="@string/keywords_sounds"> 23 24 <!-- Remote volume group --> 25 <PreferenceCategory 26 android:key="remote_media_group" 27 android:title="" 28 android:order="-185" 29 settings:allowDividerBelow="true" 30 settings:controller="com.android.settings.notification.RemoteVolumeGroupController"> 31 </PreferenceCategory> 32 33 <!-- Media volume --> 34 <com.android.settings.notification.VolumeSeekBarPreference 35 android:key="media_volume" 36 android:icon="@drawable/ic_media_stream" 37 android:title="@string/media_volume_option_title" 38 android:order="-180" 39 settings:userRestriction="no_adjust_volume" 40 settings:controller="com.android.settings.notification.MediaVolumePreferenceController"/> 41 42 <!-- Media output switcher --> 43 <Preference 44 android:key="media_output" 45 android:title="@string/media_output_title" 46 android:dialogTitle="@string/media_output_title" 47 android:order="-175" 48 settings:searchable="false" 49 settings:controller="com.android.settings.sound.MediaOutputPreferenceController"/> 50 51 <!-- Call volume --> 52 <com.android.settings.notification.VolumeSeekBarPreference 53 android:key="call_volume" 54 android:icon="@drawable/ic_local_phone_24_lib" 55 android:title="@string/call_volume_option_title" 56 android:order="-170" 57 settings:userRestriction="no_adjust_volume" 58 settings:controller="com.android.settings.notification.CallVolumePreferenceController"/> 59 60 <!-- Hands free profile output switcher --> 61 <ListPreference 62 android:key="take_call_on_output" 63 android:title="@string/take_call_on_title" 64 android:dialogTitle="@string/take_call_on_title" 65 android:order="-165" 66 settings:searchable="false" 67 settings:controller="com.android.settings.sound.HandsFreeProfileOutputPreferenceController"/> 68 69 <!-- Separate Ring volume --> 70 <com.android.settings.notification.VolumeSeekBarPreference 71 android:key="separate_ring_volume" 72 android:icon="@drawable/ic_ring_volume" 73 android:title="@string/separate_ring_volume_option_title" 74 android:order="-155" 75 settings:userRestriction="no_adjust_volume" 76 settings:controller="com.android.settings.notification.SeparateRingVolumePreferenceController"/> 77 78 <!-- Notification volume --> 79 <com.android.settings.notification.VolumeSeekBarPreference 80 android:key="notification_volume" 81 android:icon="@drawable/ic_notifications" 82 android:title="@string/notification_volume_option_title" 83 android:order="-150" 84 settings:userRestriction="no_adjust_volume" 85 settings:controller="com.android.settings.notification.NotificationVolumePreferenceController" 86 settings:unavailableSliceSubtitle="@string/notification_volume_disabled_summary"/> 87 88 <!-- Alarm volume --> 89 <com.android.settings.notification.VolumeSeekBarPreference 90 android:key="alarm_volume" 91 android:icon="@*android:drawable/ic_audio_alarm" 92 android:title="@string/alarm_volume_option_title" 93 android:order="-140" 94 settings:userRestriction="no_adjust_volume" 95 settings:controller="com.android.settings.notification.AlarmVolumePreferenceController"/> 96 97 <!-- TODO(b/174964721): make this a PrimarySwitchPreference --> 98 <!-- Interruptions --> 99 <com.android.settingslib.RestrictedPreference 100 android:key="zen_mode" 101 android:title="@string/zen_mode_settings_title" 102 android:fragment="com.android.settings.notification.zen.ZenModeSettings" 103 android:order="-130" 104 settings:useAdminDisabledSummary="true" 105 settings:keywords="@string/keywords_sounds_and_notifications_interruptions" 106 settings:controller="com.android.settings.notification.zen.ZenModePreferenceController"/> 107 108 <!-- Phone ringtone --> 109 <com.android.settings.DefaultRingtonePreference 110 android:key="phone_ringtone" 111 android:title="@string/ringtone_title" 112 android:dialogTitle="@string/ringtone_title" 113 android:summary="@string/summary_placeholder" 114 android:ringtoneType="ringtone" 115 android:order="-120" 116 settings:keywords="@string/sound_settings"/> 117 118 <!-- Live Caption -110 and Now Playing -105--> 119 120 <!-- Spatial audio --> 121 <Preference 122 android:key="spatial_audio_summary" 123 android:title="@string/spatial_audio_title" 124 android:fragment="com.android.settings.notification.SpatialAudioSettings" 125 android:order="-107" 126 settings:controller="com.android.settings.notification.SpatialAudioParentPreferenceController"/> 127 128 <Preference 129 android:key="media_controls_summary" 130 android:title="@string/media_controls_title" 131 android:fragment="com.android.settings.sound.MediaControlsSettings" 132 android:order="-100" 133 settings:controller="com.android.settings.sound.MediaControlsParentPreferenceController" 134 settings:keywords="@string/keywords_media_controls"/> 135 136 <!-- Also vibration --> 137 <Preference 138 android:fragment="com.android.settings.accessibility.VibrationSettings" 139 android:key="vibration_and_haptics" 140 android:title="@string/accessibility_vibration_settings_title" 141 android:order="-90" 142 settings:controller="com.android.settings.accessibility.VibrationPreferenceController" 143 settings:keywords="@string/keywords_vibration"/> 144 145 <com.android.settingslib.PrimarySwitchPreference 146 android:key="gesture_prevent_ringing_sound" 147 android:title="@string/gesture_prevent_ringing_sound_title" 148 android:order="-80" 149 android:fragment="com.android.settings.gestures.PreventRingingGestureSettings" 150 settings:controller="com.android.settings.gestures.PreventRingingParentPreferenceController"/> 151 152 <!-- Default notification ringtone --> 153 <com.android.settings.DefaultRingtonePreference 154 android:key="notification_ringtone" 155 android:title="@string/notification_ringtone_title" 156 android:dialogTitle="@string/notification_ringtone_title" 157 android:summary="@string/summary_placeholder" 158 android:ringtoneType="notification" 159 android:order="-70"/> 160 161 <!-- Default alarm ringtone --> 162 <com.android.settings.DefaultRingtonePreference 163 android:key="alarm_ringtone" 164 android:title="@string/alarm_ringtone_title" 165 android:dialogTitle="@string/alarm_ringtone_title" 166 android:summary="@string/summary_placeholder" 167 android:persistent="false" 168 android:ringtoneType="alarm" 169 android:order="-60"/> 170 171 <!-- Dial pad tones --> 172 <SwitchPreferenceCompat 173 android:key="dial_pad_tones" 174 android:title="@string/dial_pad_tones_title" 175 android:order="-50"/> 176 177 <!-- Screen locking sounds --> 178 <SwitchPreferenceCompat 179 android:key="screen_locking_sounds" 180 android:title="@string/screen_locking_sounds_title" 181 android:order="-45"/> 182 183 <!-- Charging sounds --> 184 <SwitchPreferenceCompat 185 android:key="charging_sounds" 186 android:title="@string/charging_sounds_title" 187 android:order="-40"/> 188 189 <!-- Docking sounds --> 190 <SwitchPreferenceCompat 191 android:key="docking_sounds" 192 android:title="@string/docking_sounds_title" 193 android:order="-35"/> 194 195 <!-- Touch sounds --> 196 <SwitchPreferenceCompat 197 android:key="touch_sounds" 198 android:title="@string/touch_sounds_title" 199 android:order="-30"/> 200 201 <!-- Show vibrate icon in status bar --> 202 <SwitchPreferenceCompat 203 android:key="vibrate_icon" 204 android:title="@string/vibrate_icon_title" 205 android:order="-27"/> 206 207 <!-- Dock speaker plays --> 208 <DropDownPreference 209 android:key="dock_audio_media" 210 android:title="@string/dock_audio_media_title" 211 android:summary="%s" 212 android:order="-20"/> 213 214 <!-- Boot sounds --> 215 <SwitchPreferenceCompat 216 android:key="boot_sounds" 217 android:title="@string/boot_sounds_title" 218 android:order="-15"/> 219 220 <!-- Emergency tone --> 221 <DropDownPreference 222 android:key="emergency_tone" 223 android:title="@string/emergency_tone_title" 224 android:summary="%s" 225 android:order="-10"/> 226 227 <Preference 228 android:key="sound_work_settings" 229 android:title="@string/sound_work_settings" 230 android:fragment="com.android.settings.notification.SoundWorkSettings" 231 android:order="100" 232 settings:controller="com.android.settings.notification.WorkSoundsPreferenceController"/> 233</PreferenceScreen> 234