• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2011 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *      http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
20
21    <SwitchPreference android:defaultValue="true"
22                      android:key="enable_alerts_master_toggle"
23                      android:summary="@string/enable_alerts_master_toggle_summary"
24                      android:title="@string/enable_alerts_master_toggle_title" />
25
26    <!-- Settings to enable / disable emergency alerts -->
27    <PreferenceCategory android:title="@string/emergency_alerts_title"
28                        android:key="category_emergency_alerts">
29
30        <!-- Enable emergency alerts -->
31        <SwitchPreference android:defaultValue="true"
32                          android:key="enable_emergency_alerts"
33                          android:summary="@string/enable_emergency_alerts_message_summary"
34                          android:title="@string/enable_emergency_alerts_message_title" />
35
36        <!-- Enable CMAS AMBER alerts -->
37        <SwitchPreference android:defaultValue="true"
38                          android:key="enable_cmas_amber_alerts"
39                          android:summary="@string/enable_cmas_amber_alerts_summary"
40                          android:title="@string/enable_cmas_amber_alerts_title" />
41
42
43        <!-- Enable CMAS Extreme Threat alerts -->
44        <SwitchPreference android:defaultValue="true"
45                            android:key="enable_cmas_extreme_threat_alerts"
46                            android:summary="@string/enable_cmas_extreme_threat_alerts_summary"
47                            android:title="@string/enable_cmas_extreme_threat_alerts_title" />
48
49        <!-- Enable CMAS Severe Threat alerts -->
50        <SwitchPreference android:defaultValue="true"
51                            android:key="enable_cmas_severe_threat_alerts"
52                            android:summary="@string/enable_cmas_severe_threat_alerts_summary"
53                            android:title="@string/enable_cmas_severe_threat_alerts_title" />
54
55        <!-- Enable public safety messages -->
56        <SwitchPreference android:defaultValue="true"
57                          android:key="enable_public_safety_messages"
58                          android:summary="@string/enable_public_safety_messages_summary"
59                          android:title="@string/enable_public_safety_messages_title" />
60
61        <!-- Enable required monthly test alerts -->
62        <SwitchPreference android:defaultValue="false"
63                          android:key="enable_test_alerts"
64                          android:summary="@string/enable_cmas_test_alerts_summary"
65                          android:title="@string/enable_cmas_test_alerts_title" />
66
67        <!-- Enable state/local test alerts -->
68        <SwitchPreference android:defaultValue="false"
69                          android:key="enable_state_local_test_alerts"
70                          android:summary="@string/enable_state_local_test_alerts_summary"
71                          android:title="@string/enable_state_local_test_alerts_title" />
72
73        <!-- Default value is true for Brazil and India. This preference is ignored and hidden
74        unless the boolean "config_showAreaUpdateInfoSettings" is set to true in the global resource. -->
75        <SwitchPreference android:defaultValue="true"
76                          android:key="enable_area_update_info_alerts"
77                          android:summary="@string/enable_area_update_info_alerts_summary"
78                          android:title="@string/enable_area_update_info_alerts_title" />
79
80        <Preference android:key="emergency_alert_history"
81                    android:title="@string/emergency_alert_history_title" />
82
83    </PreferenceCategory>
84
85
86    <!-- Settings of how alerts are shown to user. -->
87    <PreferenceCategory android:title="@string/alert_preferences_title"
88                        android:key="category_alert_preferences">
89
90        <SwitchPreference android:defaultValue="true"
91                          android:key="enable_alert_vibrate"
92                          android:title="@string/enable_alert_vibrate_title" />
93
94        <ListPreference android:key="alert_reminder_interval"
95                        android:title="@string/alert_reminder_interval_title"
96                        android:entries="@array/alert_reminder_interval_entries"
97                        android:entryValues="@array/alert_reminder_interval_values"
98                        android:defaultValue="@string/alert_reminder_interval_default_value"
99                        android:dialogTitle="@string/alert_reminder_interval_title" />
100
101    </PreferenceCategory>
102
103    <!-- Only visible when Developer options toggle is enabled in Settings. -->
104    <PreferenceCategory android:title="@string/category_dev_settings_title"
105                        android:key="category_dev_settings">
106
107        <SwitchPreference android:defaultValue="true"
108                            android:key="show_cmas_opt_out_dialog"
109                            android:summary="@string/show_cmas_opt_out_summary"
110                            android:title="@string/show_cmas_opt_out_title" />
111
112        <SwitchPreference android:defaultValue="true"
113                          android:key="enable_alert_speech"
114                          android:summary="@string/enable_alert_speech_summary"
115                          android:title="@string/enable_alert_speech_title" />
116
117        <SwitchPreference android:defaultValue="@bool/use_full_volume"
118                          android:key="use_full_volume"
119                          android:summary="@string/use_full_volume_summary"
120                          android:title="@string/use_full_volume_title" />
121
122    </PreferenceCategory>
123
124</PreferenceScreen>
125