Skip to content

Commit 9d6a516

Browse files
author
Ed Heyl
committed
Fix build break; Revert "Make public APIs of ACTION_UUID, getUuids, and fetchUuidsWithSdp"
This reverts commit ae5839d.
1 parent 98f5500 commit 9d6a516

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

api/current.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4474,12 +4474,10 @@ package android.bluetooth {
44744474
method public android.bluetooth.BluetoothSocket createInsecureRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException;
44754475
method public android.bluetooth.BluetoothSocket createRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException;
44764476
method public int describeContents();
4477-
method public boolean fetchUuidsWithSdp();
44784477
method public java.lang.String getAddress();
44794478
method public android.bluetooth.BluetoothClass getBluetoothClass();
44804479
method public int getBondState();
44814480
method public java.lang.String getName();
4482-
method public android.os.ParcelUuid[] getUuids();
44834481
method public void writeToParcel(android.os.Parcel, int);
44844482
field public static final java.lang.String ACTION_ACL_CONNECTED = "android.bluetooth.device.action.ACL_CONNECTED";
44854483
field public static final java.lang.String ACTION_ACL_DISCONNECTED = "android.bluetooth.device.action.ACL_DISCONNECTED";
@@ -4488,7 +4486,6 @@ package android.bluetooth {
44884486
field public static final java.lang.String ACTION_CLASS_CHANGED = "android.bluetooth.device.action.CLASS_CHANGED";
44894487
field public static final java.lang.String ACTION_FOUND = "android.bluetooth.device.action.FOUND";
44904488
field public static final java.lang.String ACTION_NAME_CHANGED = "android.bluetooth.device.action.NAME_CHANGED";
4491-
field public static final java.lang.String ACTION_UUID = "android.bleutooth.device.action.UUID";
44924489
field public static final int BOND_BONDED = 12; // 0xc
44934490
field public static final int BOND_BONDING = 11; // 0xb
44944491
field public static final int BOND_NONE = 10; // 0xa

core/java/android/bluetooth/BluetoothDevice.java

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,11 @@ public final class BluetoothDevice implements Parcelable {
249249
* <p> Always contains the extra field {@link #EXTRA_DEVICE}
250250
* <p> Always contains the extra filed {@link #EXTRA_UUID}
251251
* <p>Requires {@link android.Manifest.permission#BLUETOOTH} to receive.
252+
* @hide
252253
*/
253254
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
254255
public static final String ACTION_UUID =
255-
"android.bluetooth.device.action.UUID";
256+
"android.bleutooth.device.action.UUID";
256257

257258
/**
258259
* Broadcast Action: Indicates a failure to retrieve the name of a remote
@@ -769,18 +770,7 @@ public boolean setTrust(boolean value) {
769770
return false;
770771
}
771772

772-
/**
773-
* Returns the supported features (UUIDs) of the remote device.
774-
*
775-
* <p>This method does not start a service discovery procedure to retrieve the UUIDs
776-
* from the remote device. Instead, the local cached copy of the service
777-
* UUIDs are returned.
778-
* <p>Use {@link #fetchUuidsWithSdp} if fresh UUIDs are desired.
779-
* <p>Requires {@link android.Manifest.permission#BLUETOOTH}.
780-
*
781-
* @return the supported features (UUIDs) of the remote device,
782-
* or null on error
783-
*/
773+
/** @hide */
784774
public ParcelUuid[] getUuids() {
785775
try {
786776
return sService.getRemoteUuids(mAddress);
@@ -789,19 +779,18 @@ public ParcelUuid[] getUuids() {
789779
}
790780

791781
/**
792-
* Perform a service discovery on the remote device to get the UUIDs supported.
793-
*
794-
* <p>This API is asynchronous and {@link #ACTION_UUID} intent is sent,
795-
* with the UUIDs supported by the remote end. If there is an error
796-
* in getting the SDP records or if the process takes a long time,
797-
* {@link #ACTION_UUID} intent is sent with the UUIDs that is currently
798-
* present in the cache. Clients should use the {@link #getUuids} to get UUIDs
799-
* if service discovery is not to be performed.
800-
* <p>Requires {@link android.Manifest.permission#BLUETOOTH}.
782+
* Perform a SDP query on the remote device to get the UUIDs
783+
* supported. This API is asynchronous and an Intent is sent,
784+
* with the UUIDs supported by the remote end. If there is an error
785+
* in getting the SDP records or if the process takes a long time,
786+
* an Intent is sent with the UUIDs that is currently present in the
787+
* cache. Clients should use the {@link #getUuids} to get UUIDs
788+
* is SDP is not to be performed.
801789
*
802-
* @return False if the sanity check fails, True if the process
790+
* @return False if the sanity check fails, True if the process
803791
* of initiating an ACL connection to the remote device
804792
* was started.
793+
* @hide
805794
*/
806795
public boolean fetchUuidsWithSdp() {
807796
try {

0 commit comments

Comments
 (0)