Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment