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 <Preference 30 android:key="musicfx" 31 android:title="@string/musicfx_title"> 32 <intent android:targetPackage="com.android.musicfx" 33 android:targetClass="com.android.musicfx.ControlPanelPicker" /> 34 </Preference> 35 36 <PreferenceCategory 37 android:key="category_calls_and_notification" 38 android:title="@string/sound_category_call_ringtone_vibrate_title"/> 39 40 <!-- Do not nest these, or removals in code will break --> 41 <com.android.settings.DefaultRingtonePreference 42 android:key="ringtone" 43 android:title="@string/ringtone_title" 44 android:dialogTitle="@string/ringtone_title" 45 android:persistent="false" 46 android:ringtoneType="ringtone" /> 47 48 <CheckBoxPreference 49 android:key="vibrate_when_ringing" 50 android:title="@string/vibrate_when_ringing_title" 51 android:persistent="false" /> 52 53 <PreferenceCategory 54 android:title="@string/sound_category_system_title"/> 55 56 <!-- Do not nest these, or removals in code will break --> 57 58 <com.android.settings.DefaultRingtonePreference 59 android:key="notification_sound" 60 android:title="@string/notification_sound_title" 61 android:dialogTitle="@string/notification_sound_dialog_title" 62 android:persistent="false" 63 android:ringtoneType="notification" /> 64 65 <CheckBoxPreference 66 android:key="dtmf_tone" 67 android:title="@string/dtmf_tone_enable_title" 68 android:defaultValue="true" /> 69 70 <CheckBoxPreference 71 android:key="sound_effects" 72 android:title="@string/sound_effects_enable_title" 73 android:defaultValue="true" /> 74 75 <CheckBoxPreference 76 android:key="lock_sounds" 77 android:title="@string/lock_sounds_enable_title" 78 android:defaultValue="true" /> 79 80 <CheckBoxPreference 81 android:key="haptic_feedback" 82 android:title="@string/haptic_feedback_enable_title" 83 android:defaultValue="true" /> 84 85 <ListPreference 86 android:key="emergency_tone" 87 android:title="@string/emergency_tone_title" 88 android:entries="@array/emergency_tone_entries" 89 android:entryValues="@array/emergency_tone_values" /> 90 91 <!-- Dock --> 92 <PreferenceCategory 93 android:key="dock_category" 94 android:title="@string/dock_settings"/> 95 96 <!-- Do not nest these, or removals in code will break --> 97 <PreferenceScreen 98 android:key="dock_audio" 99 android:title="@string/dock_audio_settings_title"> 100 <CheckBoxPreference 101 android:title="@string/bluetooth_dock_settings_a2dp" 102 android:key="dock_audio_media_enabled" 103 android:enabled="true" 104 /> 105 </PreferenceScreen> 106 107 <CheckBoxPreference 108 android:key="dock_sounds" 109 android:title="@string/dock_sounds_enable_title" 110 android:defaultValue="false" /> 111 112 </PreferenceScreen> 113