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 settings:initialExpandedChildrenCount="9"> 24 25 <!-- Remote volume --> 26 <com.android.settings.notification.RemoteVolumeSeekBarPreference 27 android:key="remote_volume" 28 android:icon="@drawable/ic_volume_remote" 29 android:title="@string/remote_media_volume_option_title" 30 android:order="-185" 31 settings:controller="com.android.settings.notification.RemoteVolumePreferenceController"/> 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:controller="com.android.settings.notification.MediaVolumePreferenceController"/> 40 41 <!-- Media output switcher --> 42 <Preference 43 android:key="media_output" 44 android:title="@string/media_output_title" 45 android:dialogTitle="@string/media_output_title" 46 android:order="-175" 47 settings:controller="com.android.settings.sound.MediaOutputPreferenceController"/> 48 49 <!-- Call volume --> 50 <com.android.settings.notification.VolumeSeekBarPreference 51 android:key="call_volume" 52 android:icon="@drawable/ic_local_phone_24_lib" 53 android:title="@string/call_volume_option_title" 54 android:order="-170" 55 settings:controller="com.android.settings.notification.CallVolumePreferenceController"/> 56 57 <!-- Hands free profile output switcher --> 58 <ListPreference 59 android:key="take_call_on_output" 60 android:title="@string/take_call_on_title" 61 android:dialogTitle="@string/take_call_on_title" 62 android:order="-165" 63 settings:controller="com.android.settings.sound.HandsFreeProfileOutputPreferenceController"/> 64 65 <!-- Ring volume --> 66 <com.android.settings.notification.VolumeSeekBarPreference 67 android:key="ring_volume" 68 android:icon="@drawable/ic_notifications" 69 android:title="@string/ring_volume_option_title" 70 android:order="-160" 71 settings:controller="com.android.settings.notification.RingVolumePreferenceController"/> 72 73 74 <!-- Alarm volume --> 75 <com.android.settings.notification.VolumeSeekBarPreference 76 android:key="alarm_volume" 77 android:icon="@*android:drawable/ic_audio_alarm" 78 android:title="@string/alarm_volume_option_title" 79 android:order="-150" 80 settings:controller="com.android.settings.notification.AlarmVolumePreferenceController"/> 81 82 <!-- Notification volume --> 83 <com.android.settings.notification.VolumeSeekBarPreference 84 android:key="notification_volume" 85 android:icon="@drawable/ic_notifications" 86 android:title="@string/notification_volume_option_title" 87 android:order="-140" 88 settings:controller="com.android.settings.notification.NotificationVolumePreferenceController"/> 89 90 <!-- Also vibrate for calls --> 91 <SwitchPreference 92 android:key="vibrate_when_ringing" 93 android:title="@string/vibrate_when_ringing_title" 94 settings:controller="com.android.settings.notification.VibrateWhenRingPreferenceController" 95 android:order="-130"/> 96 97 <!-- Interruptions --> 98 <com.android.settingslib.RestrictedPreference 99 android:key="zen_mode" 100 android:title="@string/zen_mode_settings_title" 101 android:fragment="com.android.settings.notification.ZenModeSettings" 102 android:order="-120" 103 settings:useAdminDisabledSummary="true" 104 settings:keywords="@string/keywords_sounds_and_notifications_interruptions" 105 settings:allowDividerAbove="true" 106 settings:controller="com.android.settings.notification.ZenModePreferenceController"/> 107 108 <Preference 109 android:key="gesture_prevent_ringing_sound" 110 android:title="@string/gesture_prevent_ringing_sound_title" 111 android:order="-110" 112 android:fragment="com.android.settings.gestures.PreventRingingGestureSettings" 113 settings:controller="com.android.settings.gestures.PreventRingingParentPreferenceController"/> 114 115 <!-- Phone ringtone --> 116 <com.android.settings.DefaultRingtonePreference 117 android:key="ringtone" 118 android:title="@string/ringtone_title" 119 android:dialogTitle="@string/ringtone_title" 120 android:summary="@string/summary_placeholder" 121 android:ringtoneType="ringtone" 122 android:order="-100" 123 settings:keywords="@string/sound_settings"/> 124 125 <!-- Default notification ringtone --> 126 <com.android.settings.DefaultRingtonePreference 127 android:key="notification_ringtone" 128 android:title="@string/notification_ringtone_title" 129 android:dialogTitle="@string/notification_ringtone_title" 130 android:summary="@string/summary_placeholder" 131 android:ringtoneType="notification" 132 android:order="-90"/> 133 134 <!-- Default alarm ringtone --> 135 <com.android.settings.DefaultRingtonePreference 136 android:key="alarm_ringtone" 137 android:title="@string/alarm_ringtone_title" 138 android:dialogTitle="@string/alarm_ringtone_title" 139 android:summary="@string/summary_placeholder" 140 android:persistent="false" 141 android:ringtoneType="alarm" 142 android:order="-80"/> 143 144 <!-- Other sounds --> 145 <PreferenceCategory 146 android:key="other_sounds_and_vibrations_category" 147 android:title="@string/other_sound_category_preference_title" 148 android:order="-50"> 149 150 <!-- Dial pad tones --> 151 <SwitchPreference 152 android:key="dial_pad_tones" 153 android:title="@string/dial_pad_tones_title"/> 154 155 <!-- Screen locking sounds --> 156 <SwitchPreference 157 android:key="screen_locking_sounds" 158 android:title="@string/screen_locking_sounds_title"/> 159 160 <!-- Charging sounds --> 161 <SwitchPreference 162 android:key="charging_sounds" 163 android:title="@string/charging_sounds_title"/> 164 165 <!-- Docking sounds --> 166 <SwitchPreference 167 android:key="docking_sounds" 168 android:title="@string/docking_sounds_title"/> 169 170 <!-- Touch sounds --> 171 <SwitchPreference 172 android:key="touch_sounds" 173 android:title="@string/touch_sounds_title"/> 174 175 <!-- Vibrate on touch --> 176 <SwitchPreference 177 android:key="vibrate_on_touch" 178 android:title="@string/vibrate_on_touch_title" 179 android:summary="@string/vibrate_on_touch_summary" 180 settings:keywords="@string/keywords_vibrate_on_touch"/> 181 182 <!-- Dock speaker plays --> 183 <DropDownPreference 184 android:key="dock_audio_media" 185 android:title="@string/dock_audio_media_title" 186 android:summary="%s"/> 187 188 <!-- Boot sounds --> 189 <SwitchPreference 190 android:key="boot_sounds" 191 android:title="@string/boot_sounds_title"/> 192 193 <!-- Emergency tone --> 194 <DropDownPreference 195 android:key="emergency_tone" 196 android:title="@string/emergency_tone_title" 197 android:summary="%s"/> 198 </PreferenceCategory> 199 200 <com.android.settings.widget.WorkOnlyCategory 201 android:key="sound_work_settings_section" 202 android:title="@string/sound_work_settings" 203 android:order="100"> 204 205 <!-- Use the same sounds of the work profile --> 206 <SwitchPreference 207 android:key="work_use_personal_sounds" 208 android:title="@string/work_use_personal_sounds_title" 209 android:summary="@string/work_use_personal_sounds_summary" 210 android:disableDependentsState="true"/> 211 212 <!-- Work phone ringtone --> 213 <com.android.settings.DefaultRingtonePreference 214 android:key="work_ringtone" 215 android:title="@string/work_ringtone_title" 216 android:dialogTitle="@string/work_alarm_ringtone_title" 217 android:ringtoneType="ringtone" 218 android:dependency="work_use_personal_sounds"/> 219 220 <!-- Default work notification ringtone --> 221 <com.android.settings.DefaultRingtonePreference 222 android:key="work_notification_ringtone" 223 android:title="@string/work_notification_ringtone_title" 224 android:dialogTitle="@string/work_alarm_ringtone_title" 225 android:ringtoneType="notification" 226 android:dependency="work_use_personal_sounds"/> 227 228 <!-- Default work alarm ringtone --> 229 <com.android.settings.DefaultRingtonePreference 230 android:key="work_alarm_ringtone" 231 android:title="@string/work_alarm_ringtone_title" 232 android:dialogTitle="@string/work_alarm_ringtone_title" 233 android:persistent="false" 234 android:ringtoneType="alarm" 235 android:dependency="work_use_personal_sounds"/> 236 237 </com.android.settings.widget.WorkOnlyCategory> 238</PreferenceScreen> 239