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

Commit 12e7a292 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Add LE_AUDIO_BROADCAST_ASSISTANT support in BluetoothAdapter

Test: atest BluetoothInstrumentationTests
Change-Id: I95400a2512f348c5df56fc8d5c21afd1e9bcc159
parent aa1c35ae
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -3556,6 +3556,10 @@ public final class BluetoothAdapter {
        } else if (profile == BluetoothProfile.LE_CALL_CONTROL) {
        } else if (profile == BluetoothProfile.LE_CALL_CONTROL) {
            BluetoothLeCallControl tbs = new BluetoothLeCallControl(context, listener);
            BluetoothLeCallControl tbs = new BluetoothLeCallControl(context, listener);
            return true;
            return true;
        } else if (profile == BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT) {
            BluetoothLeBroadcastAssistant leAudioBroadcastAssistant =
                    new BluetoothLeBroadcastAssistant(context, listener);
            return true;
        } else {
        } else {
            return false;
            return false;
        }
        }
@@ -3670,6 +3674,11 @@ public final class BluetoothAdapter {
                BluetoothLeCallControl tbs = (BluetoothLeCallControl) proxy;
                BluetoothLeCallControl tbs = (BluetoothLeCallControl) proxy;
                tbs.close();
                tbs.close();
                break;
                break;
            case BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT:
                BluetoothLeBroadcastAssistant leAudioBroadcastAssistant =
                        (BluetoothLeBroadcastAssistant) proxy;
                leAudioBroadcastAssistant.close();
                break;
        }
        }
    }
    }