diff options
| author | 2011-11-08 14:04:18 +0000 | |
|---|---|---|
| committer | 2011-11-08 14:04:18 +0000 | |
| commit | ba1f05d4a816dd60a6be2a09858d8c9ecf3d552d (patch) | |
| tree | 2a03bef2ad18773ee3eb6a0f4d956f5be1bb8a7d | |
| parent | f537b25a98449e6541987152874a2b552e7aa104 (diff) | |
| parent | 9d6a51623fdabbe993d7b8848794607394ef7cc2 (diff) | |
am 9d6a5162: Fix build break; Revert "Make public APIs of ACTION_UUID, getUuids, and fetchUuidsWithSdp"
* commit '9d6a51623fdabbe993d7b8848794607394ef7cc2':
Fix build break; Revert "Make public APIs of ACTION_UUID, getUuids, and fetchUuidsWithSdp"
| -rw-r--r-- | api/current.txt | 3 | ||||
| -rw-r--r-- | core/java/android/bluetooth/BluetoothDevice.java | 35 |
2 files changed, 12 insertions, 26 deletions
diff --git a/api/current.txt b/api/current.txt index ea668ea5951d..a787470b2b93 100644 --- a/api/current.txt +++ b/api/current.txt @@ -4474,12 +4474,10 @@ package android.bluetooth { method public android.bluetooth.BluetoothSocket createInsecureRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException; method public android.bluetooth.BluetoothSocket createRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException; method public int describeContents(); - method public boolean fetchUuidsWithSdp(); method public java.lang.String getAddress(); method public android.bluetooth.BluetoothClass getBluetoothClass(); method public int getBondState(); method public java.lang.String getName(); - method public android.os.ParcelUuid[] getUuids(); method public void writeToParcel(android.os.Parcel, int); field public static final java.lang.String ACTION_ACL_CONNECTED = "android.bluetooth.device.action.ACL_CONNECTED"; field public static final java.lang.String ACTION_ACL_DISCONNECTED = "android.bluetooth.device.action.ACL_DISCONNECTED"; @@ -4488,7 +4486,6 @@ package android.bluetooth { field public static final java.lang.String ACTION_CLASS_CHANGED = "android.bluetooth.device.action.CLASS_CHANGED"; field public static final java.lang.String ACTION_FOUND = "android.bluetooth.device.action.FOUND"; field public static final java.lang.String ACTION_NAME_CHANGED = "android.bluetooth.device.action.NAME_CHANGED"; - field public static final java.lang.String ACTION_UUID = "android.bleutooth.device.action.UUID"; field public static final int BOND_BONDED = 12; // 0xc field public static final int BOND_BONDING = 11; // 0xb field public static final int BOND_NONE = 10; // 0xa diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index e8c368c142ef..4cb822047918 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -249,10 +249,11 @@ public final class BluetoothDevice implements Parcelable { * <p> Always contains the extra field {@link #EXTRA_DEVICE} * <p> Always contains the extra filed {@link #EXTRA_UUID} * <p>Requires {@link android.Manifest.permission#BLUETOOTH} to receive. + * @hide */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_UUID = - "android.bluetooth.device.action.UUID"; + "android.bleutooth.device.action.UUID"; /** * Broadcast Action: Indicates a failure to retrieve the name of a remote @@ -769,18 +770,7 @@ public final class BluetoothDevice implements Parcelable { return false; } - /** - * Returns the supported features (UUIDs) of the remote device. - * - * <p>This method does not start a service discovery procedure to retrieve the UUIDs - * from the remote device. Instead, the local cached copy of the service - * UUIDs are returned. - * <p>Use {@link #fetchUuidsWithSdp} if fresh UUIDs are desired. - * <p>Requires {@link android.Manifest.permission#BLUETOOTH}. - * - * @return the supported features (UUIDs) of the remote device, - * or null on error - */ + /** @hide */ public ParcelUuid[] getUuids() { try { return sService.getRemoteUuids(mAddress); @@ -789,19 +779,18 @@ public final class BluetoothDevice implements Parcelable { } /** - * Perform a service discovery on the remote device to get the UUIDs supported. - * - * <p>This API is asynchronous and {@link #ACTION_UUID} intent is sent, - * with the UUIDs supported by the remote end. If there is an error - * in getting the SDP records or if the process takes a long time, - * {@link #ACTION_UUID} intent is sent with the UUIDs that is currently - * present in the cache. Clients should use the {@link #getUuids} to get UUIDs - * if service discovery is not to be performed. - * <p>Requires {@link android.Manifest.permission#BLUETOOTH}. + * Perform a SDP query on the remote device to get the UUIDs + * supported. This API is asynchronous and an Intent is sent, + * with the UUIDs supported by the remote end. If there is an error + * in getting the SDP records or if the process takes a long time, + * an Intent is sent with the UUIDs that is currently present in the + * cache. Clients should use the {@link #getUuids} to get UUIDs + * is SDP is not to be performed. * - * @return False if the sanity check fails, True if the process + * @return False if the sanity check fails, True if the process * of initiating an ACL connection to the remote device * was started. + * @hide */ public boolean fetchUuidsWithSdp() { try { |