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,-5200</point>
56        <point>13,-5000</point>
57        <point>28,-4400</point>
58        <point>56,-3380</point>
59        <point>71,-3120</point>
60        <point>85,-2750</point>
61        <point>100,-2150</point>
62    </volume>
63    <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
64                                         ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
65    <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
66                                         ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
67    <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
68                                         ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
69    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET"
70                                       ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
71    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER">
72        <point>1,-4935</point>
73        <point>14,-3320</point>
74        <point>28,-2960</point>
75        <point>71,-1400</point>
76        <point>100,0</point>
77    </volume>
78    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
79                                       ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
80    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
81                                       ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
82    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
83                                       ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
84    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET"
85                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
86    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
87        <point>1,-6100</point>
88        <point>4,-5910</point>
89        <point>8,-5634</point>
90        <point>12,-5300</point>
91        <point>16,-4995</point>
92        <point>20,-4670</point>
93        <point>24,-4300</point>
94        <point>28,-3944</point>
95        <point>32,-3705</point>
96        <point>36,-3472</point>
97        <point>40,-3200</point>
98        <point>44,-3020</point>
99        <point>48,-2800</point>
100        <point>52,-2575</point>
101        <point>56,-2300</point>
102        <point>60,-2130</point>
103        <point>64,-1925</point>
104        <point>68,-1710</point>
105        <point>72,-1600</point>
106        <point>76,-1500</point>
107        <point>80,-1375</point>
108        <point>84,-1277</point>
109        <point>88,-991</point>
110        <point>92,-741</point>
111        <point>96,-475</point>
112        <point>100,0</point>
113    </volume>
114    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
115                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
116    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
117                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
118    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
119                                        ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
120    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
121                                        ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/>
122    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
123        <point>0,-5600</point>
124        <point>14,-4670</point>
125        <point>28,-3060</point>
126        <point>71,-1050</point>
127        <point>100,-100</point>
128    </volume>
129    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
130                                        ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/>
131    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
132                                        ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/>
133    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
134                                        ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
135    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET"
136                                               ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
137    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
138        <point>1,-6350</point>
139        <point>14,-4300</point>
140        <point>28,-3710</point>
141        <point>66,-2100</point>
142        <point>85,-1550</point>
143        <point>100,-780</point>
144    </volume>
145    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
146                                               ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
147    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
148                                               ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
149    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
150                                               ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
151    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET">
152        <point>0,-4200</point>
153        <point>33,-2800</point>
154        <point>66,-1400</point>
155        <point>100,0</point>
156    </volume>
157    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER">
158        <point>0,-2400</point>
159        <point>33,-1600</point>
160        <point>66,-800</point>
161        <point>100,0</point>
162    </volume>
163    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE">
164        <point>0,-4200</point>
165        <point>33,-2800</point>
166        <point>66,-1400</point>
167        <point>100,0</point>
168    </volume>
169    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
170                                                ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
171    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
172                                                ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
173    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET">
174        <point>1,-3000</point>
175        <point>33,-2600</point>
176        <point>66,-2200</point>
177        <point>100,-1800</point>
178    </volume>
179    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER">
180        <point>1,-5200</point>
181        <point>13,-5000</point>
182        <point>28,-4400</point>
183        <point>56,-3380</point>
184        <point>71,-3120</point>
185        <point>85,-2750</point>
186        <point>100,-2150</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,-6600</point>
202        <point>13,-6220</point>
203        <point>28,-5500</point>
204        <point>42,-4600</point>
205        <point>57,-4250</point>
206        <point>100,-2780</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