• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: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:searchable="false"
48        settings:controller="com.android.settings.sound.MediaOutputPreferenceController"/>
49
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"
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"
64        settings:searchable="false"
65        settings:controller="com.android.settings.sound.HandsFreeProfileOutputPreferenceController"/>
66
67    <!-- Ring volume -->
68    <com.android.settings.notification.VolumeSeekBarPreference
69        android:key="ring_volume"
70        android:icon="@drawable/ic_notifications"
71        android:title="@string/ring_volume_option_title"
72        android:order="-160"
73        settings:controller="com.android.settings.notification.RingVolumePreferenceController"/>
74
75
76    <!-- Alarm volume -->
77    <com.android.settings.notification.VolumeSeekBarPreference
78        android:key="alarm_volume"
79        android:icon="@*android:drawable/ic_audio_alarm"
80        android:title="@string/alarm_volume_option_title"
81        android:order="-150"
82        settings:controller="com.android.settings.notification.AlarmVolumePreferenceController"/>
83
84    <!-- Notification volume -->
85    <com.android.settings.notification.VolumeSeekBarPreference
86        android:key="notification_volume"
87        android:icon="@drawable/ic_notifications"
88        android:title="@string/notification_volume_option_title"
89        android:order="-140"
90        settings:controller="com.android.settings.notification.NotificationVolumePreferenceController"/>
91
92    <!-- TODO(b/174964721): make this a PrimarySwitchPreference -->
93    <!-- Interruptions -->
94    <com.android.settingslib.RestrictedPreference
95        android:key="zen_mode"
96        android:title="@string/zen_mode_settings_title"
97        android:fragment="com.android.settings.notification.zen.ZenModeSettings"
98        android:order="-130"
99        settings:useAdminDisabledSummary="true"
100        settings:keywords="@string/keywords_sounds_and_notifications_interruptions"
101        settings:controller="com.android.settings.notification.zen.ZenModePreferenceController"/>
102
103    <!-- Phone ringtone -->
104    <com.android.settings.DefaultRingtonePreference
105        android:key="phone_ringtone"
106        android:title="@string/ringtone_title"
107        android:dialogTitle="@string/ringtone_title"
108        android:summary="@string/summary_placeholder"
109        android:ringtoneType="ringtone"
110        android:order="-120"
111        settings:keywords="@string/sound_settings"/>
112
113    <!-- Live Caption -110 and Now Playing -105-->
114    <Preference
115        android:key="media_controls_summary"
116        android:title="@string/media_controls_title"
117        android:fragment="com.android.settings.sound.MediaControlsSettings"
118        android:order="-100"
119        settings:controller="com.android.settings.sound.MediaControlsParentPreferenceController"
120        settings:keywords="@string/keywords_media_controls"/>
121
122    <!-- Also vibrate for calls -->
123    <Preference
124        android:fragment="com.android.settings.sound.VibrateForCallsPreferenceFragment"
125        android:key="vibrate_for_calls"
126        android:title="@string/vibrate_when_ringing_title"
127        android:order="-90"
128        settings:controller="com.android.settings.sound.VibrateForCallsPreferenceController"
129        settings:keywords="@string/keywords_vibrate_for_calls"/>
130
131    <com.android.settings.widget.PrimarySwitchPreference
132        android:key="gesture_prevent_ringing_sound"
133        android:title="@string/gesture_prevent_ringing_sound_title"
134        android:order="-80"
135        android:fragment="com.android.settings.gestures.PreventRingingGestureSettings"
136        settings:controller="com.android.settings.gestures.PreventRingingParentPreferenceController"/>
137
138    <!-- Default notification ringtone -->
139    <com.android.settings.DefaultRingtonePreference
140        android:key="notification_ringtone"
141        android:title="@string/notification_ringtone_title"
142        android:dialogTitle="@string/notification_ringtone_title"
143        android:summary="@string/summary_placeholder"
144        android:ringtoneType="notification"
145        android:order="-70"/>
146
147    <!-- Default alarm ringtone -->
148    <com.android.settings.DefaultRingtonePreference
149        android:key="alarm_ringtone"
150        android:title="@string/alarm_ringtone_title"
151        android:dialogTitle="@string/alarm_ringtone_title"
152        android:summary="@string/summary_placeholder"
153        android:persistent="false"
154        android:ringtoneType="alarm"
155        android:order="-60"/>
156
157    <!-- Dial pad tones -->
158    <SwitchPreference
159        android:key="dial_pad_tones"
160        android:title="@string/dial_pad_tones_title"
161        android:order="-50"/>
162
163    <!-- Screen locking sounds -->
164    <SwitchPreference
165        android:key="screen_locking_sounds"
166        android:title="@string/screen_locking_sounds_title"
167        android:order="-45"/>
168
169    <!-- Charging sounds -->
170    <SwitchPreference
171        android:key="charging_sounds"
172        android:title="@string/charging_sounds_title"
173        android:order="-40"/>
174
175    <!-- Docking sounds -->
176    <SwitchPreference
177        android:key="docking_sounds"
178        android:title="@string/docking_sounds_title"
179        android:order="-35"/>
180
181    <!-- Touch sounds -->
182    <SwitchPreference
183        android:key="touch_sounds"
184        android:title="@string/touch_sounds_title"
185        android:order="-30"/>
186
187    <!-- Vibrate on touch -->
188    <SwitchPreference
189        android:key="vibrate_on_touch"
190        android:title="@string/vibrate_on_touch_title"
191        android:summary="@string/vibrate_on_touch_summary"
192        settings:keywords="@string/keywords_vibrate_on_touch"
193        android:order="-25"/>
194
195    <!-- Dock speaker plays -->
196    <DropDownPreference
197        android:key="dock_audio_media"
198        android:title="@string/dock_audio_media_title"
199        android:summary="%s"
200        android:order="-20"/>
201
202    <!-- Boot sounds -->
203    <SwitchPreference
204        android:key="boot_sounds"
205        android:title="@string/boot_sounds_title"
206        android:order="-15"/>
207
208    <!-- Emergency tone -->
209    <DropDownPreference
210        android:key="emergency_tone"
211        android:title="@string/emergency_tone_title"
212        android:summary="%s"
213        android:order="-10"/>
214
215    <Preference
216        android:key="sound_work_settings"
217        android:title="@string/sound_work_settings"
218        android:fragment="com.android.settings.notification.SoundWorkSettings"
219        android:order="100"
220        settings:controller="com.android.settings.notification.WorkSoundsPreferenceController"/>
221</PreferenceScreen>
222