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

Commit 32d8d4f4 authored by Yiyi Shen's avatar Yiyi Shen
Browse files

Add getAllConnectedDevices to assistant

Test: compile
Bug: 305620450
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: Ic7edcd7444a9899cfb063348ac4e32419eb83a35
parent c5002e47
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -389,6 +389,14 @@ public class LocalBluetoothLeBroadcastAssistant implements LocalBluetoothProfile
        return mService.getDevicesMatchingConnectionStates(states);
        return mService.getDevicesMatchingConnectionStates(states);
    }
    }


    /** Gets all connected devices on assistant profile. */
    public List<BluetoothDevice> getAllConnectedDevices() {
        if (mService == null) {
            return new ArrayList<BluetoothDevice>(0);
        }
        return mService.getConnectedDevices();
    }

    public boolean isEnabled(BluetoothDevice device) {
    public boolean isEnabled(BluetoothDevice device) {
        if (mService == null || device == null) {
        if (mService == null || device == null) {
            return false;
            return false;