Merge "[HA Input] Add UI to support hearing device microphone change ability in device details page" into main

This commit is contained in:
Jason Hsu
2024-12-23 19:50:24 -08:00
committed by Android (Google) Code Review
10 changed files with 687 additions and 5 deletions

View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="?android:attr/dialogPreferredPadding"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textDirection="locale"
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
android:text="@string/bluetooth_hearing_device_input_routing_dialog_summary" />
<RadioGroup
android:id="@+id/input_routing_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:checkedButton="@id/input_from_hearing_device">
<RadioButton
android:id="@+id/input_from_hearing_device"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:text="@string/bluetooth_hearing_device_input_routing_hearing_device_option"/>
<RadioButton
android:id="@+id/input_from_builtin_mic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:text="@string/bluetooth_hearing_device_input_routing_builtin_option"/>
</RadioGroup>
</LinearLayout>

View File

@@ -180,6 +180,16 @@
<string name="bluetooth_ambient_volume_unmute">Unmute surroundings</string>
<!-- Message when changing ambient state failed. [CHAR LIMIT=NONE] -->
<string name="bluetooth_ambient_volume_error">Couldn\u2019t update surroundings</string>
<!-- Connected devices settings. Title for hearing device input routing control preference. -->
<string name="bluetooth_hearing_device_input_routing_title">Default microphone for calls</string>
<!-- Connected devices settings. Title for hearing device input routing control dialog. -->
<string name="bluetooth_hearing_device_input_routing_dialog_title">Default microphone</string>
<!-- Connected devices settings. Summary for hearing device input routing control dialog. -->
<string name="bluetooth_hearing_device_input_routing_dialog_summary">Choose a microphone for calls.</string>
<!-- Connected devices settings. One of the input routing option. It will change input routing to hearing aid microphone. -->
<string name="bluetooth_hearing_device_input_routing_hearing_device_option">Hearing aid microphone</string>
<!-- Connected devices settings. One of the input routing option. It will change input routing to this phone's builtin microphone -->
<string name="bluetooth_hearing_device_input_routing_builtin_option">This phone\'s microphone</string>
<!-- Connected devices settings. Title of the preference to show the entrance of the audio output page. It can change different types of audio are played on phone or other bluetooth devices. [CHAR LIMIT=35] -->
<string name="bluetooth_audio_routing_title">Audio output</string>
<!-- Title for bluetooth audio routing page footer. [CHAR LIMIT=30] -->