1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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
17<!--
18  This configuration is replaced by car_audio_configuration.xml
19
20  Notes on backward compatibility:
21  If audioUseDynamicRouting is true and no car_audio_configuration.xml file
22  is found in either /vendor/etc or /system/etc, then car_volume_groups.xml will
23  be used and IAudioControl.getBusForContext will be queried
24
25  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26
27  Defines all of the available volume groups for volume control in a car.
28  One can overlay this configuration to customize the groups.
29
30  This configuration will be populated by CarAudioService and
31  surfaced to Car Settings App and/or other volume control interfaces.
32
33  Certain constraints applied to this configuration
34    - One context should not appear in two groups
35    - All contexts are assigned
36    - One bus should not appear in two groups
37    - All gain controllers (set on each bus) in one group have same step value
38
39  It is fine that there are buses that do not appear in any group, those buses
40  may be reserved for other purposes.
41
42  Important note: when overlaying this configuration,
43  make sure the resources are in the same package as CarAudioService.
44-->
45<volumeGroups xmlns:car="http://schemas.android.com/apk/res-auto"
46        car:isDeprecated="true">
47    <group>
48        <context car:context="music"/>
49        <context car:context="call_ring"/>
50        <context car:context="notification"/>
51        <context car:context="system_sound"/>
52    </group>
53    <group>
54        <context car:context="navigation"/>
55        <context car:context="voice_command"/>
56    </group>
57    <group>
58        <context car:context="call"/>
59    </group>
60    <group>
61        <context car:context="alarm"/>
62    </group>
63</volumeGroups>
64