diff options
| author | Hemant Gupta <hemantg@codeaurora.org> | 2013-08-16 14:57:55 +0530 |
|---|---|---|
| committer | Mike Lockwood <lockwood@google.com> | 2014-07-01 18:01:27 +0000 |
| commit | 64ec47dc431569c9f0854f76b3b652462d508176 (patch) | |
| tree | 469e7271d2058eea12331685452ec8dc9fe22d72 /framework/java/android/bluetooth/BluetoothDevice.java | |
| parent | 25eb545b4c89baee20525f2fb4dc7737eae8a73b (diff) | |
Bluetooth: Support MAP Client role on Bluedroid.
Implementation changes to support MAP client and PBAP client
role on Bluedroid stack.
Change-Id: I1733a67bf5256bd7b181bd5e68e40b476994ebfd
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevice.java')
| -rw-r--r-- | framework/java/android/bluetooth/BluetoothDevice.java | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/framework/java/android/bluetooth/BluetoothDevice.java b/framework/java/android/bluetooth/BluetoothDevice.java index 64d80a066c..a94bc413df 100644 --- a/framework/java/android/bluetooth/BluetoothDevice.java +++ b/framework/java/android/bluetooth/BluetoothDevice.java @@ -306,6 +306,11 @@ public final class BluetoothDevice implements Parcelable { public static final String ACTION_UUID = "android.bluetooth.device.action.UUID"; + /** @hide */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_MAS_INSTANCE = + "android.bluetooth.device.action.MAS_INSTANCE"; + /** * Broadcast Action: Indicates a failure to retrieve the name of a remote * device. @@ -522,14 +527,17 @@ public final class BluetoothDevice implements Parcelable { * Prefer BR/EDR transport for GATT connections to remote dual-mode devices * @hide */ - public static final int TRANSPORT_BREDR = 1; + public static final int TRANSPORT_BREDR = 1; /** * Prefer LE transport for GATT connections to remote dual-mode devices * @hide */ - public static final int TRANSPORT_LE = 2; + public static final int TRANSPORT_LE = 2; + /** @hide */ + public static final String EXTRA_MAS_INSTANCE = + "android.bluetooth.device.extra.MAS_INSTANCE"; /** * Lazy initialization. Guaranteed final after first object constructed, or @@ -995,6 +1003,18 @@ public final class BluetoothDevice implements Parcelable { return false; } + /** @hide */ + public boolean fetchMasInstances() { + if (sService == null) { + Log.e(TAG, "BT not enabled. Cannot query remote device for MAS instances"); + return false; + } + try { + return sService.fetchRemoteMasInstances(this); + } catch (RemoteException e) {Log.e(TAG, "", e);} + return false; + } + /** @hide */ public int getServiceChannel(ParcelUuid uuid) { //TODO(BT) |
