• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2018 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17
18<!--
19  Defines all possible items on car volume settings UI, keyed by usage.
20
21  This enables the CarSettings UI to associate VolumeGroups surfaced by
22  CarAudioManager.getVolumeGroupCount with renderable assets (ie: title, icon)
23  for presentation.
24
25  Order matters in this configuration. If one volume group contains multiple
26  audio usages, the first one appears in this file would be picked to be
27  presented on UI.
28
29  When overriding this configuration, please consult also the
30  car_volume_groups.xml, which is read by car audio service.
31-->
32<carVolumeItems xmlns:car="http://schemas.android.com/apk/res-auto">
33    <item
34        car:icon="@*android:drawable/ic_audio_ring_notif"
35        car:titleText="@*android:string/volume_call"
36        car:usage="voice_communication"/>
37    <item
38        car:icon="@*android:drawable/ic_audio_ring_notif"
39        car:titleText="@*android:string/volume_call"
40        car:usage="voice_communication_signalling"/>
41    <item
42        car:icon="@*android:drawable/ic_audio_media"
43        car:titleText="@*android:string/volume_music"
44        car:usage="media"/>
45    <item
46        car:icon="@*android:drawable/ic_audio_media"
47        car:titleText="@*android:string/volume_music"
48        car:usage="game"/>
49    <item
50        car:icon="@*android:drawable/ic_audio_alarm"
51        car:titleText="@*android:string/volume_alarm"
52        car:usage="alarm"/>
53    <item
54        car:icon="@drawable/car_ic_navigation"
55        car:titleText="@string/navi_volume_title"
56        car:usage="assistance_navigation_guidance"/>
57    <item
58        car:icon="@*android:drawable/ic_audio_ring_notif"
59        car:titleText="@*android:string/volume_ringtone"
60        car:usage="notification_ringtone"/>
61    <item
62        car:icon="@*android:drawable/ic_audio_vol"
63        car:titleText="@*android:string/volume_unknown"
64        car:usage="assistant"/>
65    <item
66        car:icon="@*android:drawable/ic_audio_ring_notif"
67        car:titleText="@*android:string/volume_notification"
68        car:usage="notification"/>
69    <item
70        car:icon="@*android:drawable/ic_audio_ring_notif"
71        car:titleText="@*android:string/volume_notification"
72        car:usage="notification_communication_request"/>
73    <item
74        car:icon="@*android:drawable/ic_audio_ring_notif"
75        car:titleText="@*android:string/volume_notification"
76        car:usage="notification_communication_instant"/>
77    <item
78        car:icon="@*android:drawable/ic_audio_ring_notif"
79        car:titleText="@*android:string/volume_notification"
80        car:usage="notification_communication_delayed"/>
81    <item
82        car:icon="@*android:drawable/ic_audio_ring_notif"
83        car:titleText="@*android:string/volume_notification"
84        car:usage="notification_event"/>
85    <item
86        car:icon="@*android:drawable/ic_audio_ring_notif"
87        car:titleText="@*android:string/volume_notification"
88        car:usage="assistance_accessibility"/>
89    <item
90        car:icon="@*android:drawable/ic_audio_vol"
91        car:titleText="@*android:string/volume_unknown"
92        car:usage="assistance_sonification"/>
93    <item
94        car:icon="@*android:drawable/ic_audio_vol"
95        car:titleText="@*android:string/volume_unknown"
96        car:usage="unknown"/>
97    <item
98        car:icon="@*android:drawable/ic_audio_vol"
99        car:titleText="@*android:string/volume_unknown"
100        car:usage="call_assistant"/>
101    <item
102        car:icon="@*android:drawable/ic_audio_vol"
103        car:titleText="@*android:string/volume_unknown"
104        car:usage="emergency"/>
105    <item
106        car:icon="@*android:drawable/ic_audio_vol"
107        car:titleText="@*android:string/volume_unknown"
108        car:usage="safety"/>
109    <item
110        car:icon="@*android:drawable/ic_audio_vol"
111        car:titleText="@*android:string/volume_unknown"
112        car:usage="vehicle_status"/>
113    <item
114        car:icon="@*android:drawable/ic_audio_vol"
115        car:titleText="@*android:string/volume_unknown"
116        car:usage="announcement"/>
117</carVolumeItems>
118