Merge "Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the device is bonding, we either broadcast cached UUIDs or wait for SDP to be performed after the device is bonded."

This commit is contained in:
Rahul Sabnis
2021-05-10 17:41:36 +00:00
committed by Gerrit Code Review

View File

@@ -1605,13 +1605,13 @@ public final class BluetoothDevice implements Parcelable {
* *
* <p>This API is asynchronous and {@link #ACTION_UUID} intent is sent, * <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 * 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, * in getting the SDP records or if the process takes a long time, or the device is bonding and
* {@link #ACTION_UUID} intent is sent with the UUIDs that is currently * we have its UUIDs cached, {@link #ACTION_UUID} intent is sent with the UUIDs that is
* present in the cache. Clients should use the {@link #getUuids} to get UUIDs * currently present in the cache. Clients should use the {@link #getUuids} to get UUIDs
* if service discovery is not to be performed. * if service discovery is not to be performed.
* *
* @return False if the check fails, True if the process of initiating an ACL connection * @return False if the check fails, True if the process of initiating an ACL connection
* to the remote device was started. * to the remote device was started or cached UUIDs will be broadcast.
*/ */
@RequiresPermission(Manifest.permission.BLUETOOTH) @RequiresPermission(Manifest.permission.BLUETOOTH)
public boolean fetchUuidsWithSdp() { public boolean fetchUuidsWithSdp() {