am b8a7dd63: Merge "Add handshake broadcast support" into klp-modular-dev

* commit 'b8a7dd639eb680e7bcd410f7d3bd16c7ba6872ad':
  Add handshake broadcast support
This commit is contained in:
Mike J. Chen
2014-03-07 18:44:22 +00:00
committed by Android Git Automerger

View File

@ -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);