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

Commit 8a1a925f authored by Yiyi Shen's avatar Yiyi Shen
Browse files

Add getDevicesMatchingConnectionStates to local assistant profile

Test: atest
Bug: 305620450
Change-Id: I78c8e795becbd93eed43afee835dde5dc7d90bde
parent 5492bfb1
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;