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

Commit 31b10119 authored by Yan Han's avatar Yan Han
Browse files

Make RETURN_DEVICE_VOLUME_BEHAVIOR_ABSOLUTE_ADJUST_ONLY overridable

CTS tests are failing on release builds because they cannot set this
flag.

Bug: 269129208
Test: atest AudioVolumeBehaviorCompatHostTest

Change-Id: I9e65590c5e40fddfa0e9e2597e15ea009b3fca0e
parent a3886099
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ import android.bluetooth.BluetoothLeAudioCodecConfig;
import android.companion.virtual.VirtualDeviceManager;
import android.compat.annotation.ChangeId;
import android.compat.annotation.EnabledSince;
import android.compat.annotation.Overridable;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.ComponentName;
import android.content.Context;
@@ -6334,6 +6335,7 @@ public class AudioManager {
     */
    @ChangeId
    @EnabledSince(targetSdkVersion = android.os.Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
    @Overridable
    public static final long RETURN_DEVICE_VOLUME_BEHAVIOR_ABSOLUTE_ADJUST_ONLY = 240663182L;

    /**