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