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,-4700</point>
56        <point>33,-3800</point>
57        <point>66,-2800</point>
58        <point>100,-1800</point>
59    </volume>
60    <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
61                                         ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
62    <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
63                                         ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
64    <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
65                                         ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
66    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET"
67                                       ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
68    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER">
69        <point>1,-3600</point>
70        <point>33,-2400</point>
71        <point>66,-1200</point>
72        <point>100,0</point>
73    </volume>
74    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
75                                       ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
76    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
77                                       ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
78    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
79                                       ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
80    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET"
81                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
82    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
83        <point>1,-6000</point>
84        <point>20,-4790</point>
85        <point>60,-2140</point>
86        <point>100,0</point>
87    </volume>
88    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
89                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
90    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
91                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
92    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
93                                        ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
94    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
95                                        ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/>
96    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
97        <point>0,-5200</point>
98        <point>33,-2400</point>
99        <point>66,-1200</point>
100        <point>100,0</point>
101    </volume>
102    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
103                                        ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/>
104    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
105                                        ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/>
106    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
107                                        ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
108    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET"
109                                               ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
110    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
111        <point>1,-3600</point>
112        <point>33,-2400</point>
113        <point>66,-1200</point>
114        <point>100,0</point>
115    </volume>
116    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
117                                               ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
118    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
119                                               ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
120    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
121                                               ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
122    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET">
123        <point>0,-4200</point>
124        <point>33,-2800</point>
125        <point>66,-1400</point>
126        <point>100,0</point>
127    </volume>
128    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER">
129        <point>0,-2400</point>
130        <point>33,-1600</point>
131        <point>66,-800</point>
132        <point>100,0</point>
133    </volume>
134    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE">
135        <point>0,-4200</point>
136        <point>33,-2800</point>
137        <point>66,-1400</point>
138        <point>100,0</point>
139    </volume>
140    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
141                                                ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
142    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
143                                                ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
144    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET">
145        <point>1,-3000</point>
146        <point>33,-2600</point>
147        <point>66,-2200</point>
148        <point>100,-1800</point>
149    </volume>
150    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER">
151        <point>1,-4700</point>
152        <point>33,-3800</point>
153        <point>66,-2800</point>
154        <point>100,-1800</point>
155    </volume>
156    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"
157                                                   ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
158    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
159                                                   ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
160    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
161                                                   ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
162    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET">
163        <point>1,-3000</point>
164        <point>33,-2600</point>
165        <point>66,-2200</point>
166        <point>100,-1800</point>
167    </volume>
168    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER">
169        <point>1,-5700</point>
170        <point>33,-4000</point>
171        <point>66,-3000</point>
172        <point>100,-1900</point>
173    </volume>
174    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
175                                       ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
176    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
177                                       ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
178    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
179                                       ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
180    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET"
181                                      ref="SILENT_VOLUME_CURVE"/>
182    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER"
183                                      ref="FULL_SCALE_VOLUME_CURVE"/>
184    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE"
185                                      ref="SILENT_VOLUME_CURVE"/>
186    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
187                                      ref="SILENT_VOLUME_CURVE"/>
188    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
189                                      ref="SILENT_VOLUME_CURVE"/>
190    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"
191                                                ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
192    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"
193                                                ref="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE"/>
194    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE"
195                                                ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
196    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
197                                                ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
198    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
199                                                ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
200    <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_HEADSET"
201                                                ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
202    <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_SPEAKER"
203                                                ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
204    <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_EARPIECE"
205                                                ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
206    <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
207                                                ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
208    <volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
209                                                ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
210    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET"
211                                            ref="FULL_SCALE_VOLUME_CURVE"/>
212    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
213                                            ref="FULL_SCALE_VOLUME_CURVE"/>
214    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
215                                            ref="FULL_SCALE_VOLUME_CURVE"/>
216    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
217                                            ref="FULL_SCALE_VOLUME_CURVE"/>
218    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
219                                            ref="FULL_SCALE_VOLUME_CURVE"/>
220    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET"
221                                        ref="FULL_SCALE_VOLUME_CURVE"/>
222    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER"
223                                        ref="FULL_SCALE_VOLUME_CURVE"/>
224    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE"
225                                        ref="FULL_SCALE_VOLUME_CURVE"/>
226    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
227                                        ref="FULL_SCALE_VOLUME_CURVE"/>
228    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
229                                        ref="FULL_SCALE_VOLUME_CURVE"/>
230</volumes>
231
232