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 <point>1,-4500</point> 56 <point>29,-3400</point> 57 <point>57,-2250</point> 58 <point>71,-1900</point> 59 <point>86,-1530</point> 60 <point>100,-1100</point> 61 </volume> 62 <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE" 63 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 64 <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 65 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 66 <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 67 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 68 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET" 69 ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> 70 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 71 <point>1,-4000</point> 72 <point>29,-2950</point> 73 <point>43,-2350</point> 74 <point>57,-1850</point> 75 <point>71,-1400</point> 76 <point>86,-700</point> 77 <point>100,0</point> 78 </volume> 79 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE" 80 ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/> 81 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 82 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 83 <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 84 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 85 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET" 86 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 87 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 88 <point>1,-9000</point> 89 <point>4,-6370</point> 90 <point>8,-6105</point> 91 <point>12,-5810</point> 92 <point>16,-5520</point> 93 <point>20,-5220</point> 94 <point>24,-4870</point> 95 <point>28,-4490</point> 96 <point>32,-4278</point> 97 <point>36,-4027</point> 98 <point>40,-3770</point> 99 <point>44,-3560</point> 100 <point>48,-3300</point> 101 <point>52,-3080</point> 102 <point>56,-2800</point> 103 <point>60,-2620</point> 104 <point>64,-2350</point> 105 <point>68,-2200</point> 106 <point>72,-2100</point> 107 <point>76,-1930</point> 108 <point>80,-1700</point> 109 <point>84,-1460</point> 110 <point>88,-1190</point> 111 <point>92,-850</point> 112 <point>96,-510</point> 113 <point>100,0</point> 114 </volume> 115 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE" 116 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 117 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 118 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 119 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 120 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 121 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET" 122 ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/> 123 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 124 <point>0,-5600</point> 125 <point>29,-3520</point> 126 <point>57,-1500</point> 127 <point>71,-1150</point> 128 <point>86,-500</point> 129 <point>100,0</point> 130 </volume> 131 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE" 132 ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/> 133 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 134 ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/> 135 <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 136 ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/> 137 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET" 138 ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> 139 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 140 <point>1,-4500</point> 141 <point>29,-3800</point> 142 <point>71,-1850</point> 143 <point>86,-1000</point> 144 <point>100,-500</point> 145 </volume> 146 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE" 147 ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/> 148 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 149 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 150 <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 151 ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/> 152 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET"> 153 <point>0,-4200</point> 154 <point>33,-2800</point> 155 <point>66,-1400</point> 156 <point>100,0</point> 157 </volume> 158 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 159 <point>0,-2400</point> 160 <point>33,-1600</point> 161 <point>66,-800</point> 162 <point>100,0</point> 163 </volume> 164 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE"> 165 <point>0,-4200</point> 166 <point>33,-2800</point> 167 <point>66,-1400</point> 168 <point>100,0</point> 169 </volume> 170 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 171 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 172 <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 173 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 174 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET"> 175 <point>1,-3000</point> 176 <point>33,-2600</point> 177 <point>66,-2200</point> 178 <point>100,-1800</point> 179 </volume> 180 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 181 <point>1,-4500</point> 182 <point>29,-3400</point> 183 <point>57,-2250</point> 184 <point>71,-1900</point> 185 <point>86,-1530</point> 186 <point>100,-1100</point> 187 </volume> 188 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE" 189 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 190 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 191 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 192 <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 193 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 194 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET"> 195 <point>1,-3000</point> 196 <point>33,-2600</point> 197 <point>66,-2200</point> 198 <point>100,-1800</point> 199 </volume> 200 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER"> 201 <point>1,-5700</point> 202 <point>29,-4230</point> 203 <point>43,-3300</point> 204 <point>57,-3100</point> 205 <point>71,-2500</point> 206 <point>100,-1400</point> 207 </volume> 208 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE" 209 ref="DEFAULT_SYSTEM_VOLUME_CURVE"/> 210 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 211 ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/> 212 <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 213 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 214 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET" 215 ref="SILENT_VOLUME_CURVE"/> 216 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER" 217 ref="FULL_SCALE_VOLUME_CURVE"/> 218 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE" 219 ref="SILENT_VOLUME_CURVE"/> 220 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 221 ref="SILENT_VOLUME_CURVE"/> 222 <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 223 ref="SILENT_VOLUME_CURVE"/> 224 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET" 225 ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/> 226 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER" 227 ref="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE"/> 228 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE" 229 ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/> 230 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 231 ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/> 232 <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 233 ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/> 234 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_HEADSET" 235 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 236 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_SPEAKER" 237 ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/> 238 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_EARPIECE" 239 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 240 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 241 ref="DEFAULT_MEDIA_VOLUME_CURVE"/> 242 <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 243 ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/> 244 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET" 245 ref="FULL_SCALE_VOLUME_CURVE"/> 246 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER" 247 ref="FULL_SCALE_VOLUME_CURVE"/> 248 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE" 249 ref="FULL_SCALE_VOLUME_CURVE"/> 250 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 251 ref="FULL_SCALE_VOLUME_CURVE"/> 252 <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 253 ref="FULL_SCALE_VOLUME_CURVE"/> 254 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET" 255 ref="FULL_SCALE_VOLUME_CURVE"/> 256 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER" 257 ref="FULL_SCALE_VOLUME_CURVE"/> 258 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE" 259 ref="FULL_SCALE_VOLUME_CURVE"/> 260 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA" 261 ref="FULL_SCALE_VOLUME_CURVE"/> 262 <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID" 263 ref="FULL_SCALE_VOLUME_CURVE"/> 264</volumes> 265 266