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 <!-- General and CMAS emergency alert settings. --> 22 <PreferenceCategory android:title="@string/emergency_alert_settings_title" 23 android:key="category_alert_settings"> 24 25 <!-- Enable CMAS Extreme Threat alerts --> 26 <CheckBoxPreference android:defaultValue="true" 27 android:key="enable_cmas_extreme_threat_alerts" 28 android:summary="@string/enable_cmas_extreme_threat_alerts_summary" 29 android:title="@string/enable_cmas_extreme_threat_alerts_title" /> 30 31 <!-- Enable CMAS Severe Threat alerts --> 32 <CheckBoxPreference android:defaultValue="true" 33 android:key="enable_cmas_severe_threat_alerts" 34 android:summary="@string/enable_cmas_severe_threat_alerts_summary" 35 android:title="@string/enable_cmas_severe_threat_alerts_title" /> 36 37 <!-- Enable CMAS AMBER alerts --> 38 <CheckBoxPreference android:defaultValue="true" 39 android:key="enable_cmas_amber_alerts" 40 android:summary="@string/enable_cmas_amber_alerts_summary" 41 android:title="@string/enable_cmas_amber_alerts_title" /> 42 43 <CheckBoxPreference android:defaultValue="true" 44 android:key="enable_emergency_alerts" 45 android:summary="@string/enable_emergency_alerts_summary" 46 android:title="@string/enable_emergency_alerts_title" /> 47 48 <ListPreference android:key="alert_sound_duration" 49 android:title="@string/alert_sound_duration_title" 50 android:entries="@array/alert_sound_duration_entries" 51 android:entryValues="@array/alert_sound_duration_values" 52 android:defaultValue="4" 53 android:dialogTitle="@string/alert_sound_duration_title" /> 54 55 <ListPreference android:key="alert_reminder_interval" 56 android:title="@string/alert_reminder_interval_title" 57 android:entries="@array/alert_reminder_interval_entries" 58 android:entryValues="@array/alert_reminder_interval_values" 59 android:defaultValue="0" 60 android:dialogTitle="@string/alert_reminder_interval_title" /> 61 62 <CheckBoxPreference android:defaultValue="true" 63 android:key="enable_alert_vibrate" 64 android:summary="@string/enable_alert_vibrate_summary" 65 android:title="@string/enable_alert_vibrate_title" /> 66 67 <CheckBoxPreference android:defaultValue="true" 68 android:key="enable_alert_speech" 69 android:summary="@string/enable_alert_speech_summary" 70 android:title="@string/enable_alert_speech_title" /> 71 72 </PreferenceCategory> 73 74 <!-- Emergency alert settings for ETWS. --> 75 <PreferenceCategory android:title="@string/category_etws_settings_title" 76 android:key="category_etws_settings"> 77 78 <CheckBoxPreference android:defaultValue="false" 79 android:key="enable_etws_test_alerts" 80 android:summary="@string/enable_etws_test_alerts_summary" 81 android:title="@string/enable_etws_test_alerts_title" /> 82 83 </PreferenceCategory> 84 85 <PreferenceCategory android:title="@string/category_brazil_settings_title" 86 android:key="category_brazil_settings"> 87 88 <!-- Default value is true for Brazil. This preference is ignored and hidden 89 unless the boolean "show_brazil_settings" is set to true in config.xml. --> 90 <CheckBoxPreference android:defaultValue="true" 91 android:key="enable_channel_50_alerts" 92 android:summary="@string/enable_channel_50_alerts_summary" 93 android:title="@string/enable_channel_50_alerts_title" /> 94 95 </PreferenceCategory> 96 97 <!-- Only visible when Developer options toggle is enabled in Settings. --> 98 <PreferenceCategory android:title="@string/category_dev_settings_title" 99 android:key="category_dev_settings"> 100 101 <CheckBoxPreference android:defaultValue="false" 102 android:key="enable_cmas_test_alerts" 103 android:summary="@string/enable_cmas_test_alerts_summary" 104 android:title="@string/enable_cmas_test_alerts_title" /> 105 106 <CheckBoxPreference android:defaultValue="true" 107 android:key="show_cmas_opt_out_dialog" 108 android:summary="@string/show_cmas_opt_out_summary" 109 android:title="@string/show_cmas_opt_out_title" /> 110 111 </PreferenceCategory> 112 113 </PreferenceScreen> 114