Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01ee1b24 authored by Rongxuan Liu's avatar Rongxuan Liu Committed by Automerger Merge Worker
Browse files

Merge "Update setDeviceVolume API to use isGroupOperation" into main am:...

Merge "Update setDeviceVolume API to use isGroupOperation" into main am: 4ac81664 am: b0258de5 am: 84020c4a

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2818771



Change-Id: I66c7edbc5d21027f4db8ce3b53e6e6aec686f07b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 19e0f331 84020c4a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -609,7 +609,7 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose
     *
     * @param device {@link BluetoothDevice} representing the remote device
     * @param volume level to set
     * @param isGroupOp {@code true} if Application wants to perform this operation for all
     * @param isGroupOperation {@code true} if Application wants to perform this operation for all
     *     coordinated set members throughout this session. Otherwise, caller would have to control
     *     individual device volume.
     * @hide
@@ -626,7 +626,7 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose
    public void setDeviceVolume(
            @NonNull BluetoothDevice device,
            @IntRange(from = -255, to = 255) int volume,
            boolean isGroupOp) {
            boolean isGroupOperation) {
        final IBluetoothVolumeControl service = getService();
        if (service == null) {
            Log.w(TAG, "Proxy not attached to service");
@@ -634,7 +634,7 @@ public final class BluetoothVolumeControl implements BluetoothProfile, AutoClose
        } else if (isEnabled()) {
            try {
                final SynchronousResultReceiver recv = SynchronousResultReceiver.get();
                service.setDeviceVolume(device, volume, isGroupOp, mAttributionSource, recv);
                service.setDeviceVolume(device, volume, isGroupOperation, mAttributionSource, recv);
                recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(null);
            } catch (RemoteException | TimeoutException e) {
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));