Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc40ab9e authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge "Add LE_AUDIO_BROADCAST_ASSISTANT support in BluetoothAdapter" am:...

Merge "Add LE_AUDIO_BROADCAST_ASSISTANT support in BluetoothAdapter" am: c8c9eb5b am: d0a491ce am: a4581140

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2049903



Change-Id: Ia9ed3fda9fc3484b344e738b7a1468db68c4fa0c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ead8f223 a4581140
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3640,6 +3640,10 @@ public final class BluetoothAdapter {
        } else if (profile == BluetoothProfile.LE_CALL_CONTROL) {
            BluetoothLeCallControl tbs = new BluetoothLeCallControl(context, listener);
            return true;
        } else if (profile == BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT) {
            BluetoothLeBroadcastAssistant leAudioBroadcastAssistant =
                    new BluetoothLeBroadcastAssistant(context, listener);
            return true;
        } else {
            return false;
        }
@@ -3754,6 +3758,11 @@ public final class BluetoothAdapter {
                BluetoothLeCallControl tbs = (BluetoothLeCallControl) proxy;
                tbs.close();
                break;
            case BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT:
                BluetoothLeBroadcastAssistant leAudioBroadcastAssistant =
                        (BluetoothLeBroadcastAssistant) proxy;
                leAudioBroadcastAssistant.close();
                break;
        }
    }