Skip to content
Snippets Groups Projects
Commit 845d3abc authored by Yiyi Shen's avatar Yiyi Shen Committed by Android (Google) Code Review
Browse files

Merge "Add util method to check for active lea device." into main

parents 7846451e f63d7368
No related branches found
No related tags found
No related merge requests found
......@@ -594,6 +594,16 @@ public class BluetoothUtils {
|| cachedDevice.isActiveDevice(BluetoothProfile.LE_AUDIO);
}
/**
* Check if the Bluetooth device is an active LE Audio device
*
* @param cachedDevice the CachedBluetoothDevice
* @return if the Bluetooth device is an active LE Audio device
*/
public static boolean isActiveLeAudioDevice(CachedBluetoothDevice cachedDevice) {
return cachedDevice.isActiveDevice(BluetoothProfile.LE_AUDIO);
}
private static boolean isDeviceConnected(CachedBluetoothDevice cachedDevice) {
if (cachedDevice == 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