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 - A new audioUseUnifiedConfiguration flag is added, and the default value 22 is false 23 - If OEM does not explicitly set audioUseUnifiedConfiguration to be true, 24 car_volume_groups.xml will be used, CarAudioService also queries 25 IAudioControl HAL (getBusForContext) 26 - Otherwise, CarAudioService loads the new car_audio_configuration.xml 27 28 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 29 30 Defines the all available volume groups for volume control in a car. 31 One can overlay this configuration to customize the groups. 32 33 This configuration will be populated by CarAudioService and 34 surfaced to Car Settings App and/or other volume control interfaces. 35 36 Certain constraints applied to this configuration 37 - One context should not appear in two groups 38 - All contexts are assigned 39 - One bus should not appear in two groups 40 - All gain controllers (set on each bus) in one group have same step value 41 42 It is fine that there are buses that do not appear in any group, those buses 43 may be reserved for other usages. 44 45 Important note: when overlaying this configuration, 46 make sure the resources are in the same package as CarAudioService. 47--> 48<volumeGroups xmlns:car="http://schemas.android.com/apk/res-auto" 49 car:isDeprecated="true"> 50 <group> 51 <context car:context="music"/> 52 <context car:context="call_ring"/> 53 <context car:context="notification"/> 54 <context car:context="system_sound"/> 55 </group> 56 <group> 57 <context car:context="navigation"/> 58 <context car:context="voice_command"/> 59 </group> 60 <group> 61 <context car:context="call"/> 62 </group> 63 <group> 64 <context car:context="alarm"/> 65 </group> 66</volumeGroups> 67