diff options
| author | Mike J. Chen <mjchen@google.com> | 2014-03-04 17:27:16 -0800 |
|---|---|---|
| committer | Mike J. Chen <mjchen@google.com> | 2014-03-04 17:27:16 -0800 |
| commit | 8faffa400b6dea9134f9d419196bf18994f3363d (patch) | |
| tree | cf86872c0391ddd30372e60c3405ef2e8a464c45 /core/java/android | |
| parent | 1dd01130cd0a3a43fac14da3a998ae0ac282cf80 (diff) | |
| download | frameworks_base-8faffa400b6dea9134f9d419196bf18994f3363d.zip frameworks_base-8faffa400b6dea9134f9d419196bf18994f3363d.tar.gz frameworks_base-8faffa400b6dea9134f9d419196bf18994f3363d.tar.bz2 | |
Add handshake broadcast support
Also make a log message verbose only.
Change-Id: I805ca376c0c0c37ec67897e5473a78fc943fdc63
Signed-off-by: Mike J. Chen <mjchen@google.com>
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothInputDevice.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothInputDevice.java b/core/java/android/bluetooth/BluetoothInputDevice.java index 33232ed..c48b15d 100644 --- a/core/java/android/bluetooth/BluetoothInputDevice.java +++ b/core/java/android/bluetooth/BluetoothInputDevice.java @@ -80,6 +80,13 @@ public final class BluetoothInputDevice implements BluetoothProfile { * @hide */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_HANDSHAKE = + "android.bluetooth.input.profile.action.HANDSHAKE"; + + /** + * @hide + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_REPORT = "android.bluetooth.input.profile.action.REPORT"; @@ -186,6 +193,11 @@ public final class BluetoothInputDevice implements BluetoothProfile { /** * @hide */ + public static final String EXTRA_STATUS = "android.bluetooth.BluetoothInputDevice.extra.STATUS"; + + /** + * @hide + */ public static final String EXTRA_VIRTUAL_UNPLUG_STATUS = "android.bluetooth.BluetoothInputDevice.extra.VIRTUAL_UNPLUG_STATUS"; private Context mContext; @@ -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); |
