1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2022 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:settings="http://schemas.android.com/apk/res-auto"
19    android:key="accessibility_hearing_devices_screen"
20    android:title="@string/accessibility_hearingaid_title">
21
22    <com.android.settingslib.widget.TopIntroPreference
23        android:title="@string/accessibility_hearingaid_intro" />
24
25    <PreferenceCategory
26        android:key="available_hearing_devices"
27        android:title="@string/accessibility_hearing_device_connected_title"
28        settings:controller="com.android.settings.accessibility.AvailableHearingDevicePreferenceController"/>
29
30    <com.android.settingslib.RestrictedPreference
31        android:key="hearing_device_add_bt_devices"
32        android:title="@string/bluetooth_pairing_pref_title"
33        android:icon="@drawable/ic_add_24dp"
34        android:summary="@string/connected_device_add_device_summary"
35        android:fragment="com.android.settings.accessibility.HearingDevicePairingFragment"
36        settings:userRestriction="no_config_bluetooth"
37        settings:useAdminDisabledSummary="true"
38        settings:controller="com.android.settings.connecteddevice.AddDevicePreferenceController"/>
39
40    <PreferenceCategory
41        android:key="previously_connected_hearing_devices"
42        android:title="@string/accessibility_hearing_device_saved_title"
43        settings:controller="com.android.settings.accessibility.SavedHearingDevicePreferenceController"/>
44
45    <PreferenceCategory
46        android:key="hearing_options_category"
47        android:title="@string/accessibility_screen_option">
48
49        <Preference
50            android:key="audio_routing"
51            android:title="@string/bluetooth_audio_routing_title"
52            android:summary="@string/bluetooth_audio_routing_summary"
53            android:fragment="com.android.settings.accessibility.AccessibilityAudioRoutingFragment"
54            settings:controller="com.android.settings.accessibility.HearingAidAudioRoutingPreferenceController"/>
55
56        <SwitchPreferenceCompat
57            android:key="hearing_aid_compatibility"
58            android:order="30"
59            android:title="@string/accessibility_hac_mode_title"
60            android:summary="@string/accessibility_hac_mode_summary"
61            settings:searchable="true"
62            settings:controller="com.android.settings.accessibility.HearingAidCompatibilityPreferenceController"/>
63    </PreferenceCategory>
64
65    <com.android.settings.accessibility.AccessibilityFooterPreference
66        android:key="hearing_device_footer"
67        android:title="@string/accessibility_hearing_device_footer_summary"
68        android:selectable="false"
69        settings:searchable="false"
70        settings:controller="com.android.settings.accessibility.HearingDeviceFooterPreferenceController"/>
71</PreferenceScreen>