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

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

Merge "Add getDevicesMatchingConnectionStates to local assistant profile" into main

parents 88da519f 8a1a925f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -381,6 +381,14 @@ public class LocalBluetoothLeBroadcastAssistant implements LocalBluetoothProfile
                });
    }

    /** Gets devices with matched connection states. */
    public List<BluetoothDevice> getDevicesMatchingConnectionStates(@NonNull int[] states) {
        if (mService == null) {
            return new ArrayList<BluetoothDevice>(0);
        }
        return mService.getDevicesMatchingConnectionStates(states);
    }

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