Merge "[LE] Add api to check the media device is BT LE device" into tm-dev am: 9e4a0c1ac3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17752390 Change-Id: I313e201891eccf6a99612cd2fa71214e30a2b6e6 Ignore-AOSP-First: this is an automerge Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -249,6 +249,15 @@ public abstract class MediaDevice implements Comparable<MediaDevice> {
|
|||||||
return mRouteInfo.getClientPackageName();
|
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.
|
* Get application label from MediaDevice.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user