1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 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
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:key="connected_devices_screen"
21    android:title="@string/connected_devices_dashboard_title">
22
23    <com.android.settings.slices.SlicePreference
24        android:key="bt_nearby_slice"
25        android:title="@string/summary_placeholder"
26        settings:allowDividerBelow="true"
27        settings:controller="com.android.settings.slices.SlicePreferenceController" />
28
29    <PreferenceCategory
30        android:key="audio_sharing_device_list"
31        android:title="@string/audio_sharing_device_group_title"
32        settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingDevicePreferenceController">
33        <Preference
34            android:fragment="com.android.settings.connecteddevice.audiosharing.AudioSharingDashboardFragment"
35            android:icon="@drawable/ic_bt_le_audio_sharing"
36            android:key="connected_device_audio_sharing_settings"
37            android:order="100"
38            android:title="@string/audio_sharing_title"
39            settings:searchable="false" />
40    </PreferenceCategory>
41
42    <PreferenceCategory
43        android:key="available_device_list"
44        android:title="@string/connected_device_media_device_title"
45        settings:controller="com.android.settings.connecteddevice.AvailableMediaDeviceGroupController" />
46
47    <PreferenceCategory
48        android:key="connected_device_list"
49        android:title="@string/connected_device_other_device_title"
50        settings:controller="com.android.settings.connecteddevice.ConnectedDeviceGroupController" />
51
52    <com.android.settingslib.RestrictedPreference
53        android:fragment="com.android.settings.bluetooth.BluetoothPairingDetail"
54        android:icon="@drawable/ic_add_24dp"
55        android:key="add_bt_devices"
56        android:summary="@string/connected_device_add_device_summary"
57        android:title="@string/bluetooth_pairing_pref_title"
58        settings:controller="com.android.settings.connecteddevice.AddDevicePreferenceController"
59        settings:keywords="@string/keywords_add_bt_device"
60        settings:useAdminDisabledSummary="true"
61        settings:userRestriction="no_config_bluetooth" />
62
63    <PreferenceCategory
64        android:key="previously_connected_devices"
65        android:title="@string/connected_device_saved_title"
66        settings:controller="com.android.settings.connecteddevice.PreviouslyConnectedDevicePreferenceController">
67
68        <Preference
69            android:fragment="com.android.settings.connecteddevice.PreviouslyConnectedDeviceDashboardFragment"
70            android:icon="@drawable/ic_chevron_right_24dp"
71            android:key="previously_connected_devices_see_all"
72            android:order="10"
73            android:title="@string/previous_connected_see_all"
74            settings:searchable="false" />
75    </PreferenceCategory>
76
77    <PreferenceCategory
78        android:key="fast_pair_devices"
79        android:title="@string/connected_device_previously_associated_fast_pair_device_title"
80        settings:controller=
81            "com.android.settings.connecteddevice.fastpair.FastPairDevicePreferenceController">
82
83        <Preference
84            android:fragment=
85                "com.android.settings.connecteddevice.fastpair.FastPairDeviceDashboardFragment"
86            android:icon="@drawable/ic_chevron_right_24dp"
87            android:key="fast_pair_devices_see_all"
88            android:order="10"
89            android:title="@string/connected_device_fast_pair_device_see_all"
90            settings:searchable="false" />
91    </PreferenceCategory>
92
93    <Preference
94        android:fragment="com.android.settings.connecteddevice.AdvancedConnectedDeviceDashboardFragment"
95        android:key="connection_preferences"
96        android:summary="@string/summary_placeholder"
97        android:title="@string/connected_device_connections_title"
98        settings:allowDividerAbove="true"
99        settings:controller="com.android.settings.connecteddevice.AdvancedConnectedDeviceController" />
100
101    <com.android.settingslib.widget.FooterPreference
102        android:key="discoverable_footer"
103        android:selectable="false"
104        android:title="@string/bluetooth_off_footer"
105        settings:controller="com.android.settings.connecteddevice.DiscoverableFooterPreferenceController">
106    </com.android.settingslib.widget.FooterPreference>
107
108</PreferenceScreen>
109