1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
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:title="@string/audio_sharing_title">
21
22    <com.android.settingslib.widget.TopIntroPreference
23        android:key="audio_sharing_top_intro"
24        android:title="@string/audio_sharing_description"
25        settings:searchable="false" />
26
27    <PreferenceCategory
28        android:key="audio_sharing_device_volume_group"
29        android:title="@string/audio_sharing_device_group_title"
30        settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingDeviceVolumeGroupController" />
31
32    <Preference
33        android:icon="@drawable/ic_audio_calls_and_alarms"
34        android:key="calls_and_alarms"
35        android:summary=""
36        android:title="@string/audio_sharing_call_audio_title"
37        settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingCallAudioPreferenceController" />
38
39    <Preference
40        android:icon="@drawable/ic_audio_play_sample"
41        android:key="audio_sharing_play_sound"
42        android:summary="@string/audio_sharing_test_sound_description"
43        android:title="@string/audio_sharing_test_sound_title"
44        settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingPlaySoundPreferenceController" />
45
46    <PreferenceCategory
47        android:key="audio_sharing_stream_settings_category"
48        android:title="@string/audio_sharing_stream_settings_title"
49        settings:controller="com.android.settings.connecteddevice.audiosharing.StreamSettingsCategoryController">
50
51        <com.android.settings.connecteddevice.audiosharing.AudioSharingNamePreference
52            android:key="audio_sharing_stream_name"
53            android:title="@string/audio_sharing_stream_name_title"
54            settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingNamePreferenceController" />
55
56        <com.android.settings.connecteddevice.audiosharing.AudioSharingPasswordPreference
57            android:dialogLayout="@layout/audio_sharing_password_dialog"
58            android:key="audio_sharing_stream_password"
59            android:summary="********"
60            android:title="@string/audio_sharing_stream_password_title"
61            settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingPasswordPreferenceController" />
62
63        <SwitchPreferenceCompat
64            android:key="audio_sharing_stream_compatibility"
65            android:title="@string/audio_sharing_stream_compatibility_title"
66            settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingCompatibilityPreferenceController" />
67    </PreferenceCategory>
68
69    <PreferenceCategory
70        android:key="audio_streams_settings_category"
71        android:title="@string/audio_sharing_nearby_audio_title"
72        settings:controller="com.android.settings.connecteddevice.audiosharing.audiostreams.AudioStreamsCategoryController">
73
74        <Preference
75            android:fragment="com.android.settings.connecteddevice.audiosharing.audiostreams.AudioStreamsDashboardFragment"
76            android:icon="@drawable/ic_chevron_right_24dp"
77            android:key="audio_streams_settings"
78            android:title="@string/audio_streams_main_page_title" />
79
80    </PreferenceCategory>
81</PreferenceScreen>