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

Commit 986ef41d authored by Betty Chang's avatar Betty Chang Committed by Automerger Merge Worker
Browse files

Merge "[LE] Add api to check the media device is BT LE device" into tm-dev am:...

Merge "[LE] Add api to check the media device is BT LE device" into tm-dev am: 9e4a0c1a am: affcf8a7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17752390



Change-Id: Ida96cce4436523951cd1d7746a0348e7f2cd9d56
Ignore-AOSP-First: this is an automerge
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 88d29695 affcf8a7
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -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.
     *
     *