Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 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         android:title="@string/sound_settings"
     19         android:key="sound_settings"
     20         xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
     21 
     22     <com.android.settings.RingerVolumePreference
     23             android:key="ring_volume"
     24             android:title="@string/all_volume_title"
     25             android:dialogTitle="@string/all_volume_title"
     26             android:persistent="false"
     27             android:streamType="ring" />
     28 
     29     <ListPreference
     30             android:key="vibrate"
     31             android:title="@string/vibrate_title"
     32             android:entries="@array/vibrate_entries"
     33             android:entryValues="@array/vibrate_values" />
     34 
     35     <CheckBoxPreference
     36             android:key="silent"
     37             android:title="@string/silent_mode_title"
     38             android:persistent="false"
     39             />
     40 
     41     <Preference
     42             android:key="musicfx"
     43             android:title="@string/musicfx_title">
     44         <intent android:targetPackage="com.android.musicfx"
     45                 android:targetClass="com.android.musicfx.ControlPanelPicker" />
     46     </Preference>
     47 
     48     <PreferenceCategory
     49             android:key="category_calls_and_notification"
     50             android:title="@string/sound_category_calls_and_notification_title"/>
     51 
     52     <!-- Do not nest these, or removals in code will break -->
     53     <com.android.settings.DefaultRingtonePreference
     54             android:key="ringtone"
     55             android:title="@string/ringtone_title"
     56             android:dialogTitle="@string/ringtone_title"
     57             android:persistent="false"
     58             android:ringtoneType="ringtone" />
     59 
     60     <com.android.settings.DefaultRingtonePreference
     61             android:key="notification_sound"
     62             android:title="@string/notification_sound_title"
     63             android:dialogTitle="@string/notification_sound_dialog_title"
     64             android:persistent="false"
     65             android:ringtoneType="notification" />
     66 
     67     <PreferenceCategory
     68             android:title="@string/sound_category_feedback_title"/>
     69 
     70     <!-- Do not nest these, or removals in code will break -->
     71 
     72     <CheckBoxPreference
     73             android:key="dtmf_tone"
     74             android:title="@string/dtmf_tone_enable_title"
     75             android:defaultValue="true" />
     76 
     77     <CheckBoxPreference
     78             android:key="sound_effects"
     79             android:title="@string/sound_effects_enable_title"
     80             android:defaultValue="true" />
     81 
     82     <CheckBoxPreference
     83             android:key="lock_sounds"
     84             android:title="@string/lock_sounds_enable_title"
     85             android:defaultValue="true" />
     86 
     87     <CheckBoxPreference
     88             android:key="haptic_feedback"
     89             android:title="@string/haptic_feedback_enable_title"
     90             android:defaultValue="true" />
     91 
     92     <ListPreference
     93             android:key="emergency_tone"
     94             android:title="@string/emergency_tone_title"
     95             android:entries="@array/emergency_tone_entries"
     96             android:entryValues="@array/emergency_tone_values" />
     97 
     98 </PreferenceScreen>
     99