Using CarAudioManager to get volume change callback and set volume change. BUG: 78766946 Test: manual Change-Id: I0563938ca20ad83b4b0de0b7cfe780bb6a97b0fd
69 lines
2.7 KiB
XML
69 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
*
|
|
* Copyright 2018, The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
-->
|
|
|
|
<!--
|
|
Defines all possible items on car volume settings UI, keyed by usage.
|
|
|
|
This enables the CarSettings UI to associate VolumeGroups surfaced by
|
|
CarAudioManager.getVolumeGroupCount with renderable assets (ie: title, icon)
|
|
for presentation.
|
|
|
|
Order matters in this configuration. If one volume group contains multiple
|
|
audio usages, the first one appears in this file would be picked to be
|
|
presented on UI.
|
|
|
|
When overriding this configuration, please consult also the
|
|
car_volume_groups.xml, which is read by car audio service.
|
|
-->
|
|
<carVolumeItems xmlns:car="http://schemas.android.com/apk/res-auto">
|
|
<item car:usage="unknown"
|
|
car:icon="@drawable/car_ic_music"/>
|
|
<item car:usage="media"
|
|
car:icon="@drawable/car_ic_music"/>
|
|
<item car:usage="voice_communication"
|
|
car:icon="@*android:drawable/ic_audio_ring_notif"/>
|
|
<item car:usage="voice_communication_signalling"
|
|
car:icon="@*android:drawable/ic_audio_ring_notif"/>
|
|
<item car:usage="alarm"
|
|
car:icon="@*android:drawable/ic_audio_alarm"/>
|
|
<item car:usage="notification"
|
|
car:icon="@drawable/car_ic_notification"/>
|
|
<item car:usage="notification_ringtone"
|
|
car:icon="@*android:drawable/ic_audio_ring_notif"/>
|
|
<item car:usage="notification_communication_request"
|
|
car:icon="@drawable/car_ic_notification"/>
|
|
<item car:usage="notification_communication_instant"
|
|
car:icon="@drawable/car_ic_notification"/>
|
|
<item car:usage="notification_communication_delayed"
|
|
car:icon="@drawable/car_ic_notification"/>
|
|
<item car:usage="notification_event"
|
|
car:icon="@drawable/car_ic_notification"/>
|
|
<item car:usage="assistance_accessibility"
|
|
car:icon="@drawable/car_ic_notification"/>
|
|
<item car:usage="assistance_navigation_guidance"
|
|
car:icon="@drawable/car_ic_navigation"/>
|
|
<item car:usage="assistance_sonification"
|
|
car:icon="@drawable/car_ic_notification"/>
|
|
<item car:usage="game"
|
|
car:icon="@drawable/car_ic_music"/>
|
|
<item car:usage="assistant"
|
|
car:icon="@drawable/car_ic_music"/>
|
|
</carVolumeItems>
|
|
|