• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  Defines the all available volume groups for volume control in a car.
19  One can overlay this configuration to customize the groups.
20
21  This configuration will be populated by CarAudioService and
22  surfaced to Car Settings App and/or other volume control interfaces.
23
24  Certain constraints applied to this configuration
25    - One context should not appear in two groups
26    - All contexts are assigned
27    - One bus should not appear in two groups
28    - All gain controllers (set on each bus) in one group have same step value
29
30  It is fine that there are buses that do not appear in any group, those buses
31  may be reserved for other usages.
32
33  Important note: when overlaying this configuration,
34  make sure the resources are in the same package as CarAudioService.
35-->
36<volumeGroups xmlns:car="http://schemas.android.com/apk/res-auto">
37    <group>
38        <context car:context="music"/>
39        <context car:context="call_ring"/>
40        <context car:context="notification"/>
41        <context car:context="system_sound"/>
42    </group>
43    <group>
44        <context car:context="navigation"/>
45        <context car:context="voice_command"/>
46    </group>
47    <group>
48        <context car:context="call"/>
49    </group>
50    <group>
51        <context car:context="alarm"/>
52    </group>
53</volumeGroups>
54