Loading AndroidManifest.xml +32 −0 Original line number Diff line number Diff line Loading @@ -3958,6 +3958,38 @@ android:value="true" /> </activity> <activity android:name="Settings$BluetoothBroadcastActivity" android:exported="true" android:theme="@style/Theme.AlertDialog.SimConfirmDialog" android:permission="android.permission.BLUETOOTH_CONNECT" android:configChanges="orientation|keyboardHidden|screenSize"> <intent-filter android:priority="1"> <action android:name="android.settings.MEDIA_BROADCAST_DIALOG" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="com.android.settings.FRAGMENT_CLASS" android:value="com.android.settings.bluetooth.BluetoothBroadcastsDialog" /> <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED" android:value="true" /> </activity> <activity android:name="Settings$BluetoothFindBroadcastsActivity" android:label="@string/bluetooth_find_broadcast_title" android:exported="true" android:permission="android.permission.BLUETOOTH_CONNECT" android:configChanges="orientation|keyboardHidden|screenSize"> <intent-filter android:priority="1"> <action android:name="android.settings.BLUTOOTH_FIND_BROADCASTS_ACTIVITY" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="com.android.settings.FRAGMENT_CLASS" android:value="com.android.settings.bluetooth.BluetoothFindBroadcastsFragment" /> <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED" android:value="true" /> </activity> <activity android:name=".panel.SettingsPanelActivity" android:label="@string/settings_panel_title" android:theme="@style/Theme.Panel" Loading res/drawable/broadcast_button_outline.xml 0 → 100644 +42 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2022 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. --> <inset xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:insetTop="6dp" android:insetBottom="6dp"> <ripple android:color="?android:attr/colorControlHighlight"> <item android:id="@android:id/mask"> <shape android:shape="rectangle"> <solid android:color="@android:color/white"/> <corners android:radius="24dp"/> </shape> </item> <item> <shape android:shape="rectangle"> <corners android:radius="24dp"/> <solid android:color="@android:color/transparent"/> <stroke android:color="?androidprv:attr/colorAccentPrimaryVariant" android:width="1dp" /> <padding android:left="16dp" android:top="8dp" android:right="16dp" android:bottom="8dp"/> </shape> </item> </ripple> </inset> res/layout/bluetooth_broadcast_entity_header.xml 0 → 100644 +99 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2022 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:id="@+id/entity_header" style="@style/EntityHeader" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" android:orientation="vertical"> <TextView android:id="@+id/entity_header_title" style="@style/TextAppearance.EntityHeaderTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="false" android:ellipsize="marquee" android:textDirection="locale"/> <TextView android:id="@+id/entity_header_summary" style="@style/TextAppearance.EntityHeaderSummary" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/bluetooth_find_broadcast_header_top_margin" android:singleLine="false" android:ellipsize="marquee" android:textDirection="locale"/> <Button android:id="@+id/button_find_broadcast" android:layout_width="@dimen/bluetooth_find_broadcast_button_one_size" android:layout_height="wrap_content" android:text="@string/bluetooth_find_broadcast" android:clickable="true" style="@style/BroadcastActionButton" /> <LinearLayout android:id="@+id/button_broadcast_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <Button android:id="@+id/button_leave_broadcast" android:layout_width="@dimen/bluetooth_find_broadcast_button_two_size" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/bluetooth_find_broadcast_button_leave" android:clickable="true" style="@style/BroadcastActionButton" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/bluetooth_find_broadcast_button_start_margin"> <Button android:id="@+id/button_scan_qr_code" android:layout_width="@dimen/bluetooth_find_broadcast_button_two_size" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/bluetooth_find_broadcast_button_scan" android:clickable="true" style="@style/BroadcastActionButton" /> </LinearLayout> </LinearLayout> <android.widget.ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="@dimen/bluetooth_find_broadcast_progress_width" android:layout_height="@dimen/bluetooth_find_broadcast_progress_height" android:layout_marginTop="@dimen/bluetooth_find_broadcast_progress_margin_top" android:progressDrawable="@drawable/color_bar_progress"/> </LinearLayout> res/values/dimens.xml +9 −0 Original line number Diff line number Diff line Loading @@ -399,6 +399,15 @@ <dimen name="le_bluetooth_summary_start_margin">20dp</dimen> <dimen name="le_bluetooth_summary_padding">1.5dp</dimen> <!-- Header layout of bluetooth find broadcast page --> <dimen name="bluetooth_find_broadcast_button_one_size">220dp</dimen> <dimen name="bluetooth_find_broadcast_button_two_size">150dp</dimen> <dimen name="bluetooth_find_broadcast_button_start_margin">16dp</dimen> <dimen name="bluetooth_find_broadcast_header_top_margin">4dp</dimen> <dimen name="bluetooth_find_broadcast_progress_width">155dp</dimen> <dimen name="bluetooth_find_broadcast_progress_height">4dp</dimen> <dimen name="bluetooth_find_broadcast_progress_margin_top">8dp</dimen> <!-- Developer option bluetooth settings dialog --> <dimen name="developer_option_dialog_margin_start">8dp</dimen> <dimen name="developer_option_dialog_margin_top">8dp</dimen> Loading res/values/strings.xml +18 −0 Original line number Diff line number Diff line Loading @@ -13496,4 +13496,22 @@ <string name="bluetooth_connect_access_dialog_negative">Don\u2019t connect</string> <!-- Strings for Dialog connect button --> <string name="bluetooth_connect_access_dialog_positive">Connect</string> <!-- BT LE Audio Device: Media Broadcast --> <!-- The title of the Media Broadcast Dialog [CHAR LIMIT=none] --> <string name="bluetooth_broadcast_dialog_title">Broadcast</string> <!-- The message of the Media Broadcast Dialog for finding broadcast [CHAR LIMIT=none] --> <string name="bluetooth_broadcast_dialog_find_message">Listen to broadcasts that are playing near you</string> <!-- The message of the Media Broadcast Dialog for broadcast [CHAR LIMIT=none] --> <string name="bluetooth_broadcast_dialog_broadcast_message">Broadcast media to devices near you, or listen to someone else’s broadcast</string> <!-- The title of the Media Find Broadcast activity [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast_title">Broadcasts</string> <!-- The summary of the Media Find Broadcast activity [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast_summary">Listening to</string> <!-- The Button of the action to find broadcasts [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast">Find broadcasts</string> <!-- The Button of the action to leave the broadcast [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast_button_leave">Leave broadcast</string> <!-- The Button of the action to scan QR code [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast_button_scan">Scan QR code</string> </resources> Loading
AndroidManifest.xml +32 −0 Original line number Diff line number Diff line Loading @@ -3958,6 +3958,38 @@ android:value="true" /> </activity> <activity android:name="Settings$BluetoothBroadcastActivity" android:exported="true" android:theme="@style/Theme.AlertDialog.SimConfirmDialog" android:permission="android.permission.BLUETOOTH_CONNECT" android:configChanges="orientation|keyboardHidden|screenSize"> <intent-filter android:priority="1"> <action android:name="android.settings.MEDIA_BROADCAST_DIALOG" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="com.android.settings.FRAGMENT_CLASS" android:value="com.android.settings.bluetooth.BluetoothBroadcastsDialog" /> <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED" android:value="true" /> </activity> <activity android:name="Settings$BluetoothFindBroadcastsActivity" android:label="@string/bluetooth_find_broadcast_title" android:exported="true" android:permission="android.permission.BLUETOOTH_CONNECT" android:configChanges="orientation|keyboardHidden|screenSize"> <intent-filter android:priority="1"> <action android:name="android.settings.BLUTOOTH_FIND_BROADCASTS_ACTIVITY" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="com.android.settings.FRAGMENT_CLASS" android:value="com.android.settings.bluetooth.BluetoothFindBroadcastsFragment" /> <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED" android:value="true" /> </activity> <activity android:name=".panel.SettingsPanelActivity" android:label="@string/settings_panel_title" android:theme="@style/Theme.Panel" Loading
res/drawable/broadcast_button_outline.xml 0 → 100644 +42 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2022 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. --> <inset xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:insetTop="6dp" android:insetBottom="6dp"> <ripple android:color="?android:attr/colorControlHighlight"> <item android:id="@android:id/mask"> <shape android:shape="rectangle"> <solid android:color="@android:color/white"/> <corners android:radius="24dp"/> </shape> </item> <item> <shape android:shape="rectangle"> <corners android:radius="24dp"/> <solid android:color="@android:color/transparent"/> <stroke android:color="?androidprv:attr/colorAccentPrimaryVariant" android:width="1dp" /> <padding android:left="16dp" android:top="8dp" android:right="16dp" android:bottom="8dp"/> </shape> </item> </ripple> </inset>
res/layout/bluetooth_broadcast_entity_header.xml 0 → 100644 +99 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2022 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:id="@+id/entity_header" style="@style/EntityHeader" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" android:orientation="vertical"> <TextView android:id="@+id/entity_header_title" style="@style/TextAppearance.EntityHeaderTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="false" android:ellipsize="marquee" android:textDirection="locale"/> <TextView android:id="@+id/entity_header_summary" style="@style/TextAppearance.EntityHeaderSummary" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/bluetooth_find_broadcast_header_top_margin" android:singleLine="false" android:ellipsize="marquee" android:textDirection="locale"/> <Button android:id="@+id/button_find_broadcast" android:layout_width="@dimen/bluetooth_find_broadcast_button_one_size" android:layout_height="wrap_content" android:text="@string/bluetooth_find_broadcast" android:clickable="true" style="@style/BroadcastActionButton" /> <LinearLayout android:id="@+id/button_broadcast_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <Button android:id="@+id/button_leave_broadcast" android:layout_width="@dimen/bluetooth_find_broadcast_button_two_size" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/bluetooth_find_broadcast_button_leave" android:clickable="true" style="@style/BroadcastActionButton" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/bluetooth_find_broadcast_button_start_margin"> <Button android:id="@+id/button_scan_qr_code" android:layout_width="@dimen/bluetooth_find_broadcast_button_two_size" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/bluetooth_find_broadcast_button_scan" android:clickable="true" style="@style/BroadcastActionButton" /> </LinearLayout> </LinearLayout> <android.widget.ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="@dimen/bluetooth_find_broadcast_progress_width" android:layout_height="@dimen/bluetooth_find_broadcast_progress_height" android:layout_marginTop="@dimen/bluetooth_find_broadcast_progress_margin_top" android:progressDrawable="@drawable/color_bar_progress"/> </LinearLayout>
res/values/dimens.xml +9 −0 Original line number Diff line number Diff line Loading @@ -399,6 +399,15 @@ <dimen name="le_bluetooth_summary_start_margin">20dp</dimen> <dimen name="le_bluetooth_summary_padding">1.5dp</dimen> <!-- Header layout of bluetooth find broadcast page --> <dimen name="bluetooth_find_broadcast_button_one_size">220dp</dimen> <dimen name="bluetooth_find_broadcast_button_two_size">150dp</dimen> <dimen name="bluetooth_find_broadcast_button_start_margin">16dp</dimen> <dimen name="bluetooth_find_broadcast_header_top_margin">4dp</dimen> <dimen name="bluetooth_find_broadcast_progress_width">155dp</dimen> <dimen name="bluetooth_find_broadcast_progress_height">4dp</dimen> <dimen name="bluetooth_find_broadcast_progress_margin_top">8dp</dimen> <!-- Developer option bluetooth settings dialog --> <dimen name="developer_option_dialog_margin_start">8dp</dimen> <dimen name="developer_option_dialog_margin_top">8dp</dimen> Loading
res/values/strings.xml +18 −0 Original line number Diff line number Diff line Loading @@ -13496,4 +13496,22 @@ <string name="bluetooth_connect_access_dialog_negative">Don\u2019t connect</string> <!-- Strings for Dialog connect button --> <string name="bluetooth_connect_access_dialog_positive">Connect</string> <!-- BT LE Audio Device: Media Broadcast --> <!-- The title of the Media Broadcast Dialog [CHAR LIMIT=none] --> <string name="bluetooth_broadcast_dialog_title">Broadcast</string> <!-- The message of the Media Broadcast Dialog for finding broadcast [CHAR LIMIT=none] --> <string name="bluetooth_broadcast_dialog_find_message">Listen to broadcasts that are playing near you</string> <!-- The message of the Media Broadcast Dialog for broadcast [CHAR LIMIT=none] --> <string name="bluetooth_broadcast_dialog_broadcast_message">Broadcast media to devices near you, or listen to someone else’s broadcast</string> <!-- The title of the Media Find Broadcast activity [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast_title">Broadcasts</string> <!-- The summary of the Media Find Broadcast activity [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast_summary">Listening to</string> <!-- The Button of the action to find broadcasts [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast">Find broadcasts</string> <!-- The Button of the action to leave the broadcast [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast_button_leave">Leave broadcast</string> <!-- The Button of the action to scan QR code [CHAR LIMIT=none] --> <string name="bluetooth_find_broadcast_button_scan">Scan QR code</string> </resources>