diff options
author | Jack He <siyuanh@google.com> | 2022-03-11 01:42:06 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-03-11 01:42:06 +0000 |
commit | c9e3ca8e6618a2eb01d9d53ca7087281b89abf1c (patch) | |
tree | 9a6cc9150064d0bdaaabd06ed5ae3499c48b95d4 /framework/java/android/bluetooth/BluetoothLeBroadcast.java | |
parent | 800a0fc49a3947cc4c58ea96b4e0f3b0c48a58af (diff) | |
parent | 0c6507d57d6141e35a7e4236e266b2dfdde0224c (diff) |
Merge changes from topic "ble-broadcast-api-feedback"
* changes:
Broadcast API adjustment
CSIP: Use verb first grammar for lock and unlock group API
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothLeBroadcast.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothLeBroadcast.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/java/android/bluetooth/BluetoothLeBroadcast.java b/framework/java/android/bluetooth/BluetoothLeBroadcast.java index 5bf6e00fea..fa7f96737d 100644 --- a/framework/java/android/bluetooth/BluetoothLeBroadcast.java +++ b/framework/java/android/bluetooth/BluetoothLeBroadcast.java @@ -708,7 +708,7 @@ public final class BluetoothLeBroadcast implements AutoCloseable, BluetoothProfi */ @SystemApi @RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED) - public int getMaximumNumberOfBroadcast() { + public int getMaximumNumberOfBroadcasts() { final IBluetoothLeAudio service = getService(); final int defaultValue = 1; if (service == null) { @@ -717,7 +717,7 @@ public final class BluetoothLeBroadcast implements AutoCloseable, BluetoothProfi } else if (isEnabled()) { try { final SynchronousResultReceiver<Integer> recv = new SynchronousResultReceiver(); - service.getMaximumNumberOfBroadcast(mAttributionSource, recv); + service.getMaximumNumberOfBroadcasts(mAttributionSource, recv); return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); } catch (TimeoutException e) { Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable())); |