Hongwei Wang | ad26e61 | 2018-02-20 14:19:30 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 2 | <!-- |
| 3 | Copyright 2018 The Android Open Source Project |
Heemin Seog | 3cfbbc8 | 2018-10-24 12:10:04 -0700 | [diff] [blame] | 4 | |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 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 |
Heemin Seog | 3cfbbc8 | 2018-10-24 12:10:04 -0700 | [diff] [blame] | 8 | |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
Heemin Seog | 3cfbbc8 | 2018-10-24 12:10:04 -0700 | [diff] [blame] | 10 | |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 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. |
Hongwei Wang | ad26e61 | 2018-02-20 14:19:30 -0800 | [diff] [blame] | 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"> |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 33 | <item |
| 34 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 35 | car:titleText="@*android:string/volume_call" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 36 | car:usage="voice_communication"/> |
| 37 | <item |
| 38 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 39 | car:titleText="@*android:string/volume_call" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 40 | car:usage="voice_communication_signalling"/> |
| 41 | <item |
| 42 | car:icon="@*android:drawable/ic_audio_media" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 43 | car:titleText="@*android:string/volume_music" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 44 | car:usage="media"/> |
| 45 | <item |
| 46 | car:icon="@*android:drawable/ic_audio_media" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 47 | car:titleText="@*android:string/volume_music" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 48 | car:usage="game"/> |
| 49 | <item |
| 50 | car:icon="@*android:drawable/ic_audio_alarm" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 51 | car:titleText="@*android:string/volume_alarm" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 52 | car:usage="alarm"/> |
| 53 | <item |
| 54 | car:icon="@drawable/ic_audio_navi" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 55 | car:titleText="@string/navi_volume_title" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 56 | car:usage="assistance_navigation_guidance"/> |
| 57 | <item |
| 58 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 59 | car:titleText="@*android:string/volume_ringtone" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 60 | car:usage="notification_ringtone"/> |
| 61 | <item |
| 62 | car:icon="@*android:drawable/ic_audio_vol" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 63 | car:titleText="@*android:string/volume_unknown" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 64 | car:usage="assistant"/> |
| 65 | <item |
| 66 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 67 | car:titleText="@*android:string/volume_notification" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 68 | car:usage="notification"/> |
| 69 | <item |
| 70 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 71 | car:titleText="@*android:string/volume_notification" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 72 | car:usage="notification_communication_request"/> |
| 73 | <item |
| 74 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 75 | car:titleText="@*android:string/volume_notification" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 76 | car:usage="notification_communication_instant"/> |
| 77 | <item |
| 78 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 79 | car:titleText="@*android:string/volume_notification" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 80 | car:usage="notification_communication_delayed"/> |
| 81 | <item |
| 82 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 83 | car:titleText="@*android:string/volume_notification" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 84 | car:usage="notification_event"/> |
| 85 | <item |
| 86 | car:icon="@*android:drawable/ic_audio_ring_notif" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 87 | car:titleText="@*android:string/volume_notification" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 88 | car:usage="assistance_accessibility"/> |
| 89 | <item |
| 90 | car:icon="@*android:drawable/ic_audio_vol" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 91 | car:titleText="@*android:string/volume_unknown" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 92 | car:usage="assistance_sonification"/> |
| 93 | <item |
| 94 | car:icon="@*android:drawable/ic_audio_vol" |
Ryan Mitchell | 011c25c | 2019-03-29 09:19:21 -0700 | [diff] [blame] | 95 | car:titleText="@*android:string/volume_unknown" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 96 | car:usage="unknown"/> |
Hongwei Wang | ad26e61 | 2018-02-20 14:19:30 -0800 | [diff] [blame] | 97 | </carVolumeItems> |