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

Commit 55e0d499 authored by Mike J. Chen's avatar Mike J. Chen Committed by Android Git Automerger
Browse files

am 8169bc78: am 5adbea2e: am 784224d2: am b8a7dd63: Merge "Add handshake...

am 8169bc78: am 5adbea2e: am 784224d2: am b8a7dd63: Merge "Add handshake broadcast support" into klp-modular-dev

* commit '8169bc78':
  Add handshake broadcast support
parents 9169a9ee 8169bc78
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -75,6 +75,13 @@ public final class BluetoothInputDevice implements BluetoothProfile {
    public static final String ACTION_PROTOCOL_MODE_CHANGED =
        "android.bluetooth.input.profile.action.PROTOCOL_MODE_CHANGED";

    /**
     * @hide
     */
    @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    public static final String ACTION_HANDSHAKE =
        "android.bluetooth.input.profile.action.HANDSHAKE";

    /**
     * @hide
     */
@@ -182,6 +189,11 @@ public final class BluetoothInputDevice implements BluetoothProfile {
     */
    public static final String EXTRA_REPORT = "android.bluetooth.BluetoothInputDevice.extra.REPORT";

    /**
     * @hide
     */
    public static final String EXTRA_STATUS = "android.bluetooth.BluetoothInputDevice.extra.STATUS";

    /**
     * @hide
     */
@@ -608,7 +620,7 @@ public final class BluetoothInputDevice implements BluetoothProfile {
     * @hide
     */
    public boolean setReport(BluetoothDevice device, byte reportType, String report) {
        if (DBG) log("setReport(" + device + "), reportType=" + reportType + " report=" + report);
        if (VDBG) log("setReport(" + device + "), reportType=" + reportType + " report=" + report);
        if (mService != null && isEnabled() && isValidDevice(device)) {
            try {
                return mService.setReport(device, reportType, report);