blob: ba3c083f21a92e9a717e87bc0fb91897415dc953 [file] [log] [blame]
Yiyi Shen4410df72023-10-24 16:09:49 +08001<?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
Yiyi Shen5e872042024-01-29 15:26:40 +080022 <com.android.settingslib.widget.TopIntroPreference
23 android:key="audio_sharing_top_intro"
24 android:title="Let others listen to your media along with you using their own compatible headphones"
25 settings:searchable="false" />
26
Yiyi Shen4b2c4402023-11-22 18:27:06 +080027 <PreferenceCategory
28 android:key="audio_sharing_device_volume_group"
29 android:title="Devices listening"
30 settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingDeviceVolumeGroupController" />
31
Yiyi Shen60c33f52023-10-30 13:23:35 +080032 <Preference
Yiyi Shen60c33f52023-10-30 13:23:35 +080033 android:icon="@drawable/ic_audio_calls_and_alarms"
Yiyi Shen4b2c4402023-11-22 18:27:06 +080034 android:key="calls_and_alarms"
35 android:summary=""
36 android:title="@string/calls_and_alarms_device_title"
37 settings:controller="com.android.settings.connecteddevice.audiosharing.CallsAndAlarmsPreferenceController" />
chelseahao9dd627e2023-10-31 15:59:46 +080038
Yiyi Shen4af51782024-01-12 16:51:25 +080039 <Preference
40 android:icon="@drawable/ic_audio_play_sample"
41 android:key="audio_sharing_play_sound"
42 android:summary="Everyone listening should hear it"
43 android:title="Play a test sound"
44 settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingPlaySoundPreferenceController" />
45
Yiyi Shen16253332024-01-15 17:58:55 +080046 <PreferenceCategory
47 android:key="audio_sharing_stream_settings_category"
48 android:title="Stream settings"
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:summary="********"
54 android:title="Stream name"
55 settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingNamePreferenceController" />
Yiyi Shen3cdd1112024-01-16 15:52:09 +080056 <SwitchPreferenceCompat
57 android:key="audio_sharing_stream_compatibility"
58 android:title="Improve compatibility"
59 settings:controller="com.android.settings.connecteddevice.audiosharing.AudioSharingCompatibilityPreferenceController" />
Yiyi Shen16253332024-01-15 17:58:55 +080060 </PreferenceCategory>
Yiyi Shen1af86c32023-11-01 15:57:15 +080061
chelseahao9dd627e2023-10-31 15:59:46 +080062 <PreferenceCategory
63 android:key="audio_streams_settings_category"
chelseahaoaf0d38f2023-11-14 17:18:02 +080064 android:title="@string/audio_streams_category_title"
65 settings:controller="com.android.settings.connecteddevice.audiosharing.audiostreams.AudioStreamsCategoryController">
chelseahao9dd627e2023-10-31 15:59:46 +080066
67 <Preference
chelseahaoaf0d38f2023-11-14 17:18:02 +080068 android:fragment="com.android.settings.connecteddevice.audiosharing.audiostreams.AudioStreamsDashboardFragment"
Yiyi Shen4b2c4402023-11-22 18:27:06 +080069 android:icon="@drawable/ic_chevron_right_24dp"
70 android:key="audio_streams_settings"
71 android:title="@string/audio_streams_pref_title" />
chelseahao9dd627e2023-10-31 15:59:46 +080072
73 </PreferenceCategory>
Yiyi Shen4410df72023-10-24 16:09:49 +080074</PreferenceScreen>