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

Commit 4b439aac 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: 4ac81664

parents 80328ea1 4ac81664
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()));