Publish Bluetooth HID Device Profile Service API

Enable the BluetoothHidDevice API in framework.

Bug: 63384609
Test: SL4A HID test; test with apps using BluetoothHidDevice
Change-Id: I52ca4674f11179f865bdff22e0289dfe893c40f5
This commit is contained in:
Hansong Zhang
2017-12-06 16:20:22 -08:00
parent 62c1fb0f49
commit 7bb587d72b
6 changed files with 91 additions and 14 deletions

View File

@@ -35,8 +35,6 @@ import java.util.List;
*
* <p>BluetoothHidDevice is a proxy object for controlling the Bluetooth HID Device Service via IPC.
* Use {@link BluetoothAdapter#getProfileProxy} to get the BluetoothHidDevice proxy object.
*
* <p>{@hide}
*/
public final class BluetoothHidDevice implements BluetoothProfile {

View File

@@ -26,8 +26,6 @@ import android.os.Parcelable;
* registration.
*
* <p>{@see BluetoothHidDevice}
*
* <p>{@hide}
*/
public final class BluetoothHidDeviceAppQosSettings implements Parcelable {
@@ -46,10 +44,8 @@ public final class BluetoothHidDeviceAppQosSettings implements Parcelable {
/**
* Create a BluetoothHidDeviceAppQosSettings object for the Bluetooth L2CAP channel. The QoS
* Settings is optional. Recommended to use BluetoothHidDeviceAppQosSettings.Builder. {@see <a
* href="https://www.bluetooth.com/specifications/profiles-overview">
* https://www.bluetooth.com/specifications/profiles-overview </a> Bluetooth HID Specfication
* v1.1.1 Section 5.2 and Appendix D }
* Settings is optional. Recommended to use BluetoothHidDeviceAppQosSettings.Builder.
* Please refer to Bluetooth HID Specfication v1.1.1 Section 5.2 and Appendix D for parameters.
*
* @param serviceType L2CAP service type
* @param tokenRate L2CAP token rate

View File

@@ -28,8 +28,6 @@ import java.util.Arrays;
* Android device can be discovered as a Bluetooth HID Device.
*
* <p>{@see BluetoothHidDevice}
*
* <p>{@hide}
*/
public final class BluetoothHidDeviceAppSdpSettings implements Parcelable {

View File

@@ -24,8 +24,6 @@ import android.util.Log;
* registration.
*
* <p>{@see BluetoothHidDevice}
*
* <p>{@hide}
*/
public abstract class BluetoothHidDeviceCallback {

View File

@@ -153,8 +153,6 @@ public interface BluetoothProfile {
/**
* HID Device
*
* @hide
*/
public static final int HID_DEVICE = 19;