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