Merge "Merge "[LE] Add api to check the media device is BT LE device" into tm-dev am: 9e4a0c1ac3 am: affcf8a71a am: 986ef41d49" into tm-qpr-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
6d5d2b2371
@@ -249,6 +249,15 @@ public abstract class MediaDevice implements Comparable<MediaDevice> {
|
||||
return mRouteInfo.getClientPackageName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the device is Bluetooth LE Audio device.
|
||||
*
|
||||
* @return true if the RouteInfo equals TYPE_BLE_HEADSET.
|
||||
*/
|
||||
public boolean isBLEDevice() {
|
||||
return mRouteInfo.getType() == TYPE_BLE_HEADSET;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get application label from MediaDevice.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user