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="silent_mode"
     31             android:title="@string/silent_mode_title"
     32             android:entries="@array/silent_mode_entries"
     33             android:entryValues="@array/silent_mode_values" />
     34 
     35     <Preference
     36             android:key="musicfx"
     37             android:title="@string/musicfx_title">
     38         <intent android:targetPackage="com.android.musicfx"
     39                 android:targetClass="com.android.musicfx.ControlPanelPicker" />
     40     </Preference>
     41 
     42     <PreferenceCategory
     43             android:key="category_calls_and_notification"
     44             android:title="@string/sound_category_calls_and_notification_title"/>
     45 
     46     <!-- Do not nest these, or removals in code will break -->
     47     <com.android.settings.DefaultRingtonePreference
     48             android:key="ringtone"
     49             android:title="@string/ringtone_title"
     50             android:dialogTitle="@string/ringtone_title"
     51             android:persistent="false"
     52             android:ringtoneType="ringtone" />
     53 
     54     <com.android.settings.DefaultRingtonePreference
     55             android:key="notification_sound"
     56             android:title="@string/notification_sound_title"
     57             android:dialogTitle="@string/notification_sound_dialog_title"
     58             android:persistent="false"
     59             android:ringtoneType="notification" />
     60 
     61     <CheckBoxPreference
     62             android:key="vibrate_on_ring"
     63             android:title="@string/vibrate_on_ring_title"
     64             android:defaultValue="false" />
     65 
     66     <PreferenceCategory
     67             android:title="@string/sound_category_feedback_title"/>
     68 
     69     <!-- Do not nest these, or removals in code will break -->
     70 
     71     <CheckBoxPreference
     72             android:key="dtmf_tone"
     73             android:title="@string/dtmf_tone_enable_title"
     74             android:defaultValue="true" />
     75 
     76     <CheckBoxPreference
     77             android:key="sound_effects"
     78             android:title="@string/sound_effects_enable_title"
     79             android:defaultValue="true" />
     80 
     81     <CheckBoxPreference
     82             android:key="lock_sounds"
     83             android:title="@string/lock_sounds_enable_title"
     84             android:defaultValue="true" />
     85 
     86     <CheckBoxPreference
     87             android:key="haptic_feedback"
     88             android:title="@string/haptic_feedback_enable_title"
     89             android:defaultValue="true" />
     90 
     91     <ListPreference
     92             android:key="emergency_tone"
     93             android:title="@string/emergency_tone_title"
     94             android:entries="@array/emergency_tone_entries"
     95             android:entryValues="@array/emergency_tone_values" />
     96 
     97 </PreferenceScreen>
     98