From 8faffa400b6dea9134f9d419196bf18994f3363d Mon Sep 17 00:00:00 2001 From: "Mike J. Chen" Date: Tue, 4 Mar 2014 17:27:16 -0800 Subject: [PATCH] Add handshake broadcast support Also make a log message verbose only. Change-Id: I805ca376c0c0c37ec67897e5473a78fc943fdc63 Signed-off-by: Mike J. Chen --- .../android/bluetooth/BluetoothInputDevice.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/core/java/android/bluetooth/BluetoothInputDevice.java b/core/java/android/bluetooth/BluetoothInputDevice.java index 33232edf58cc8..c48b15d102461 100644 --- a/core/java/android/bluetooth/BluetoothInputDevice.java +++ b/core/java/android/bluetooth/BluetoothInputDevice.java @@ -76,6 +76,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 */ @@ -183,6 +190,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 */ @@ -609,7 +621,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);