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