Home | History | Annotate | Download | only in xml
      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 receive monthly test -->
     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         <!-- Default value is true for Brazil and India. This preference is ignored and hidden
     68         unless the boolean "config_showAreaUpdateInfoSettings" is set to true in the global resource. -->
     69         <SwitchPreference android:defaultValue="true"
     70                           android:key="enable_area_update_info_alerts"
     71                           android:summary="@string/enable_area_update_info_alerts_summary"
     72                           android:title="@string/enable_area_update_info_alerts_title" />
     73 
     74         <Preference android:key="emergency_alert_history"
     75                     android:title="@string/emergency_alert_history_title" />
     76 
     77     </PreferenceCategory>
     78 
     79 
     80     <!-- Settings of how alerts are shown to user. -->
     81     <PreferenceCategory android:title="@string/alert_preferences_title"
     82                         android:key="category_alert_preferences">
     83 
     84         <SwitchPreference android:defaultValue="true"
     85                           android:key="enable_alert_vibrate"
     86                           android:title="@string/enable_alert_vibrate_title" />
     87 
     88         <ListPreference android:key="alert_reminder_interval"
     89                         android:title="@string/alert_reminder_interval_title"
     90                         android:entries="@array/alert_reminder_interval_entries"
     91                         android:entryValues="@array/alert_reminder_interval_values"
     92                         android:defaultValue="@string/alert_reminder_interval_default_value"
     93                         android:dialogTitle="@string/alert_reminder_interval_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         <SwitchPreference android:defaultValue="true"
    102                             android:key="show_cmas_opt_out_dialog"
    103                             android:summary="@string/show_cmas_opt_out_summary"
    104                             android:title="@string/show_cmas_opt_out_title" />
    105 
    106         <SwitchPreference android:defaultValue="true"
    107                           android:key="enable_alert_speech"
    108                           android:summary="@string/enable_alert_speech_summary"
    109                           android:title="@string/enable_alert_speech_title" />
    110 
    111         <SwitchPreference android:defaultValue="@bool/use_full_volume"
    112                           android:key="use_full_volume"
    113                           android:summary="@string/use_full_volume_summary"
    114                           android:title="@string/use_full_volume_title" />
    115 
    116     </PreferenceCategory>
    117 
    118 </PreferenceScreen>
    119