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,-2900</point>
28        <point>57,-1450</point>
29        <point>71,-950</point>
30        <point>86,-550</point>
31        <point>100,0</point>
32    </volume>
33    <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER">
34        <point>0,-2200</point>
35        <point>14,-1900</point>
36        <point>71,-800</point>
37        <point>86,-550</point>
38        <point>100,0</point>
39    </volume>
40    <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE">
41        <point>0,-2500</point>
42        <point>71,-650</point>
43        <point>86,-300</point>
44        <point>100,0</point>
45    </volume>
46    <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA">
47        <point>0,-2900</point>
48        <point>57,-1400</point>
49        <point>71,-950</point>
50        <point>86,-550</point>
51        <point>100,0</point>
52    </volume>
53    <volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
54                                             ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
55    <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET">
56        <point>1,-3000</point>
57        <point>33,-2600</point>
58        <point>66,-2200</point>
59        <point>100,-1800</point>
60    </volume>
61    <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER"
62                                         ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
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,-4680</point>
73        <point>42,-2070</point>
74        <point>85,-540</point>
75        <point>100,0</point>
76    </volume>
77    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
78                                       ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
79    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
80                                       ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
81    <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
82                                       ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
83    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET"
84                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
85    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
86        <point>1,-4900</point>
87        <point>52,-2130</point>
88        <point>59,-1950</point>
89        <point>71,-1100</point>
90        <point>79,-870</point>
91        <point>84,-680</point>
92        <point>87,-450</point>
93        <point>91,-250</point>
94        <point>95,-100</point>
95        <point>100,0</point>
96    </volume>
97    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
98                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
99    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
100                                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
101    <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
102                                        ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
103    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
104                                        ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/>
105    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
106        <point>0,-4680</point>
107        <point>42,-2070</point>
108        <point>85,-540</point>
109        <point>100,0</point>
110    </volume>
111    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
112                                        ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/>
113    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
114                                        ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/>
115    <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
116                                        ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
117    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET"
118                                               ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
119    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
120        <point>1,-4680</point>
121        <point>42,-2070</point>
122        <point>85,-540</point>
123        <point>100,0</point>
124    </volume>
125    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
126                                               ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
127    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
128                                               ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
129    <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
130                                               ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
131    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET">
132        <point>0,-4200</point>
133        <point>33,-2800</point>
134        <point>66,-1400</point>
135        <point>100,0</point>
136    </volume>
137    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER">
138        <point>0,-2400</point>
139        <point>33,-1600</point>
140        <point>66,-800</point>
141        <point>100,0</point>
142    </volume>
143    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE">
144        <point>0,-4200</point>
145        <point>33,-2800</point>
146        <point>66,-1400</point>
147        <point>100,0</point>
148    </volume>
149    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
150                                                ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
151    <volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
152                                                ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
153    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET">
154        <point>1,-3000</point>
155        <point>33,-2600</point>
156        <point>66,-2200</point>
157        <point>100,-1800</point>
158    </volume>
159    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"
160                                                   ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
161    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"
162                                                   ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
163    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
164                                                   ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
165    <volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
166                                                   ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
167    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET">
168        <point>1,-3000</point>
169        <point>33,-2600</point>
170        <point>66,-2200</point>
171        <point>100,-1800</point>
172    </volume>
173    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER"
174                                       ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
175    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
176                                       ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
177    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
178                                       ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
179    <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
180                                       ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
181    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET"
182                                      ref="SILENT_VOLUME_CURVE"/>
183    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER"
184                                      ref="FULL_SCALE_VOLUME_CURVE"/>
185    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE"
186                                      ref="SILENT_VOLUME_CURVE"/>
187    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
188                                      ref="SILENT_VOLUME_CURVE"/>
189    <volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
190                                      ref="SILENT_VOLUME_CURVE"/>
191    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"
192                                                ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
193    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"
194                                                ref="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE"/>
195    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE"
196                                                ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
197    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
198                                                ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
199    <volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
200                                                ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
201    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET"
202                                            ref="FULL_SCALE_VOLUME_CURVE"/>
203    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
204                                            ref="FULL_SCALE_VOLUME_CURVE"/>
205    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
206                                            ref="FULL_SCALE_VOLUME_CURVE"/>
207    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
208                                            ref="FULL_SCALE_VOLUME_CURVE"/>
209    <volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
210                                            ref="FULL_SCALE_VOLUME_CURVE"/>
211    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET"
212                                        ref="FULL_SCALE_VOLUME_CURVE"/>
213    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER"
214                                        ref="FULL_SCALE_VOLUME_CURVE"/>
215    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE"
216                                        ref="FULL_SCALE_VOLUME_CURVE"/>
217    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
218                                        ref="FULL_SCALE_VOLUME_CURVE"/>
219    <volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
220                                        ref="FULL_SCALE_VOLUME_CURVE"/>
221</volumes>
222
223