1<?xml version="1.0" encoding="UTF-8"?> 2<!-- Copyright (C) 2015 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<!-- Volume section defines a volume curve for a given use case and device category. 17It contains a list of points of this curve expressing the attenuation in Millibels for a given 18volume index from 0 to 100. 19<volume stream=”AUDIO_STREAM_MUSIC” deviceCategory=””> 20<point>0,-9600</point> 21<point>100,0</point> 22</volume> 23--> 24 25<volumes> 26 <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET"> 27 <point>0,-4200</point> 28 <point>33,-2800</point> 29 <point>66,-1400</point> 30 <point>100,0</point> 31 </volume> 32 <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 33 <point>0,-2400</point> 34 <point>33,-1600</point> 35 <point>66,-800</point> 36 <point>100,0</point> 37 </volume> 38 <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE"> 39 <point>0,-2400</point> 40 <point>33,-1600</point> 41 <point>66,-800</point> 42 <point>100,0</point> 43 </volume> 44 <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 45 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 46 <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 47 ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/> 48 <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET"> 49 <point>1,-3000</point> 50 <point>33,-2600</point> 51 <point>66,-2200</point> 52 <point>100,-1800</point> 53 </volume> 54 <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER" 55 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 56 <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE" 57 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 58 <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 59 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 60 <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 61 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 62 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET" 63 ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> 64 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 65 <point>1,-2970</point> 66 <point>33,-2010</point> 67 <point>66,-1020</point> 68 <point>100,0</point> 69 </volume> 70 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE" 71 ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/> 72 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 73 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 74 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 75 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 76 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET" 77 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 78 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER" 79 ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/> 80 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE" 81 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 82 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 83 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 84 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 85 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 86 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET" 87 ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/> 88 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 89 <point>0,-2970</point> 90 <point>33,-2010</point> 91 <point>66,-1020</point> 92 <point>100,0</point> 93 </volume> 94 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE" 95 ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/> 96 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 97 ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/> 98 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 99 ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/> 100 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET" 101 ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> 102 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 103 <point>1,-2970</point> 104 <point>33,-2010</point> 105 <point>66,-1020</point> 106 <point>100,0</point> 107 </volume> 108 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE" 109 ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/> 110 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 111 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 112 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 113 ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> 114 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET"> 115 <point>0,-4200</point> 116 <point>33,-2800</point> 117 <point>66,-1400</point> 118 <point>100,0</point> 119 </volume> 120 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 121 <point>0,-2400</point> 122 <point>33,-1600</point> 123 <point>66,-800</point> 124 <point>100,0</point> 125 </volume> 126 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE"> 127 <point>0,-4200</point> 128 <point>33,-2800</point> 129 <point>66,-1400</point> 130 <point>100,0</point> 131 </volume> 132 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 133 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 134 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 135 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 136 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET"> 137 <point>1,-3000</point> 138 <point>33,-2600</point> 139 <point>66,-2200</point> 140 <point>100,-1800</point> 141 </volume> 142 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER" 143 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 144 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE" 145 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 146 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 147 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 148 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 149 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 150 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET"> 151 <point>1,-3000</point> 152 <point>33,-2600</point> 153 <point>66,-2200</point> 154 <point>100,-1800</point> 155 </volume> 156 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER" 157 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 158 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE" 159 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 160 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 161 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 162 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 163 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 164 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET" 165 ref="SILENT_VOLUME_CURVE"/> 166 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER" 167 ref="FULL_SCALE_VOLUME_CURVE"/> 168 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE" 169 ref="SILENT_VOLUME_CURVE"/> 170 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 171 ref="SILENT_VOLUME_CURVE"/> 172 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 173 ref="SILENT_VOLUME_CURVE"/> 174 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET" 175 ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/> 176 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER" 177 ref="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE"/> 178 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE" 179 ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/> 180 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 181 ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/> 182 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 183 ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/> 184 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_HEADSET" 185 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 186 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_SPEAKER" 187 ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/> 188 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_EARPIECE" 189 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 190 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 191 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 192 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 193 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 194 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET" 195 ref="FULL_SCALE_VOLUME_CURVE"/> 196 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER" 197 ref="FULL_SCALE_VOLUME_CURVE"/> 198 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE" 199 ref="FULL_SCALE_VOLUME_CURVE"/> 200 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 201 ref="FULL_SCALE_VOLUME_CURVE"/> 202 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 203 ref="FULL_SCALE_VOLUME_CURVE"/> 204 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET" 205 ref="FULL_SCALE_VOLUME_CURVE"/> 206 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER" 207 ref="FULL_SCALE_VOLUME_CURVE"/> 208 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE" 209 ref="FULL_SCALE_VOLUME_CURVE"/> 210 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 211 ref="FULL_SCALE_VOLUME_CURVE"/> 212 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 213 ref="FULL_SCALE_VOLUME_CURVE"/> 214</volumes> 215 216