[Audio Routing] Add audio routing functionality for hearing device

* 'Ringtone', 'Call', 'Media', 'System sounds' routing capability for hearing device

Bug: 269122580
Test: make RunSettingsRoboTests ROBOTEST_FILTER=HearingDeviceAudioRoutingBasePreferenceControllerTest
Change-Id: Id43b2323740bfa40c36f74dec644c00695f414c3
This commit is contained in:
jasonwshsu
2023-01-07 15:57:46 +08:00
parent 34b7835a50
commit 31ff5d92d1
8 changed files with 666 additions and 5 deletions

View File

@@ -30,7 +30,8 @@
android:summary="%s"
android:key="audio_routing_ringtone"
android:persistent="false"
android:title="@string/bluetooth_ringtone_title" />
android:title="@string/bluetooth_ringtone_title"
settings:controller="com.android.settings.bluetooth.HearingDeviceRingtoneRoutingPreferenceController" />
<ListPreference
android:entries="@array/bluetooth_audio_routing_titles"
@@ -38,7 +39,8 @@
android:summary="%s"
android:key="audio_routing_call"
android:persistent="false"
android:title="@string/bluetooth_call_title" />
android:title="@string/bluetooth_call_title"
settings:controller="com.android.settings.bluetooth.HearingDeviceCallRoutingPreferenceController" />
<ListPreference
android:entries="@array/bluetooth_audio_routing_titles"
@@ -46,7 +48,8 @@
android:summary="%s"
android:key="audio_routing_media"
android:persistent="false"
android:title="@string/bluetooth_media_title" />
android:title="@string/bluetooth_media_title"
settings:controller="com.android.settings.bluetooth.HearingDeviceMediaRoutingPreferenceController" />
<ListPreference
android:entries="@array/bluetooth_audio_routing_titles"
@@ -54,6 +57,7 @@
android:summary="%s"
android:key="audio_routing_system_sounds"
android:persistent="false"
android:title="@string/bluetooth_system_sounds_title" />
android:title="@string/bluetooth_system_sounds_title"
settings:controller="com.android.settings.bluetooth.HearingDeviceSystemSoundsRoutingPreferenceController" />
</PreferenceScreen>