1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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 xmlns:android="http://schemas.android.com/apk/res/android"
18                  xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
19        android:title="@string/sound_settings"
20        android:key="sound_settings"
21        settings:keywords="@string/keywords_sounds">
22
23        <!-- Media volume -->
24        <com.android.settings.notification.VolumeSeekBarPreference
25                android:key="media_volume"
26                android:icon="@*android:drawable/ic_audio_media"
27                android:title="@string/media_volume_option_title" />
28
29        <!-- Alarm volume -->
30        <com.android.settings.notification.VolumeSeekBarPreference
31                android:key="alarm_volume"
32                android:icon="@*android:drawable/ic_audio_alarm"
33                android:title="@string/alarm_volume_option_title" />
34
35        <!-- Ring volume -->
36        <com.android.settings.notification.VolumeSeekBarPreference
37                android:key="ring_volume"
38                android:icon="@*android:drawable/ic_audio_ring_notif"
39                android:title="@string/ring_volume_option_title" />
40
41        <!-- Notification volume -->
42        <com.android.settings.notification.VolumeSeekBarPreference
43                android:key="notification_volume"
44                android:icon="@*android:drawable/ic_audio_ring_notif"
45                android:title="@string/notification_volume_option_title" />
46
47        <!-- Also vibrate for calls -->
48        <SwitchPreference
49                android:key="vibrate_when_ringing"
50                android:title="@string/vibrate_when_ringing_title" />
51
52
53        <!-- Interruptions -->
54        <com.android.settingslib.RestrictedPreference
55                android:key="zen_mode"
56                android:title="@string/zen_mode_settings_title"
57                settings:useAdminDisabledSummary="true"
58                settings:keywords="@string/keywords_sounds_and_notifications_interruptions"
59                android:fragment="com.android.settings.notification.ZenModeSettings" />
60
61        <!-- Phone ringtone -->
62        <com.android.settings.DefaultRingtonePreference
63                android:key="ringtone"
64                android:title="@string/ringtone_title"
65                android:dialogTitle="@string/ringtone_title"
66                android:ringtoneType="ringtone" />
67
68        <!-- Default notification ringtone -->
69        <com.android.settings.DefaultRingtonePreference
70                android:key="notification_ringtone"
71                android:title="@string/notification_ringtone_title"
72                android:dialogTitle="@string/notification_ringtone_title"
73                android:ringtoneType="notification" />
74
75        <!-- Default alarm ringtone -->
76        <com.android.settings.DefaultRingtonePreference
77                android:key="alarm_ringtone"
78                android:title="@string/alarm_ringtone_title"
79                android:dialogTitle="@string/alarm_ringtone_title"
80                android:persistent="false"
81                android:ringtoneType="alarm" />
82
83        <com.android.settingslib.RestrictedPreference
84                android:key="cell_broadcast_settings"
85                android:title="@string/cell_broadcast_settings"
86                settings:useAdminDisabledSummary="true">
87                <intent
88                        android:action="android.intent.action.MAIN"
89                        android:targetPackage="com.android.cellbroadcastreceiver"
90                        android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastSettings" />
91        </com.android.settingslib.RestrictedPreference>
92
93        <!-- Other sounds -->
94        <Preference
95                android:key="other_sounds"
96                android:title="@string/other_sound_settings"
97                android:persistent="false"
98                android:fragment="com.android.settings.notification.OtherSoundSettings" />
99
100        <!-- Cast -->
101        <PreferenceScreen
102                android:key="wifi_display"
103                android:title="@string/wifi_display_settings_title"
104                android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
105
106</PreferenceScreen>
107