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

Commit 3598e3b0 authored by Yiyi Shen's avatar Yiyi Shen Committed by Android (Google) Code Review
Browse files

Merge "Add getAllConnectedDevices to assistant" into main

parents 06350626 32d8d4f4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -389,6 +389,14 @@ public class LocalBluetoothLeBroadcastAssistant implements LocalBluetoothProfile
        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) {
        if (mService == null || device == null) {
            return false;