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 <CheckBoxPreference android:defaultValue="true" 56 android:key="enable_alert_vibrate" 57 android:summary="@string/enable_alert_vibrate_summary" 58 android:title="@string/enable_alert_vibrate_title" /> 59 60 <CheckBoxPreference android:defaultValue="true" 61 android:key="enable_alert_speech" 62 android:summary="@string/enable_alert_speech_summary" 63 android:title="@string/enable_alert_speech_title" /> 64 65 </PreferenceCategory> 66 67 <!-- Emergency alert settings for ETWS. --> 68 <PreferenceCategory android:title="@string/category_etws_settings_title" 69 android:key="category_etws_settings"> 70 71 <CheckBoxPreference android:defaultValue="false" 72 android:key="enable_etws_test_alerts" 73 android:summary="@string/enable_etws_test_alerts_summary" 74 android:title="@string/enable_etws_test_alerts_title" /> 75 76 </PreferenceCategory> 77 78 <PreferenceCategory android:title="@string/category_brazil_settings_title" 79 android:key="category_brazil_settings"> 80 81 <!-- Default value is true for Brazil. This preference is ignored and hidden 82 unless the boolean "show_brazil_settings" is set to true in config.xml. --> 83 <CheckBoxPreference android:defaultValue="true" 84 android:key="enable_channel_50_alerts" 85 android:summary="@string/enable_channel_50_alerts_summary" 86 android:title="@string/enable_channel_50_alerts_title" /> 87 88 </PreferenceCategory> 89 90 <!-- Only visible when Developer options toggle is enabled in Settings. --> 91 <PreferenceCategory android:title="@string/category_dev_settings_title" 92 android:key="category_dev_settings"> 93 94 <CheckBoxPreference android:defaultValue="false" 95 android:key="enable_cmas_test_alerts" 96 android:summary="@string/enable_cmas_test_alerts_summary" 97 android:title="@string/enable_cmas_test_alerts_title" /> 98 99 <CheckBoxPreference android:defaultValue="true" 100 android:key="show_cmas_opt_out_dialog" 101 android:summary="@string/show_cmas_opt_out_summary" 102 android:title="@string/show_cmas_opt_out_title" /> 103 104 </PreferenceCategory> 105 106 </PreferenceScreen> 107