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