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

Commit a5cfe59a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Adds API AudioManager#setLeAudioSuspended" am: a05aa128

parents 3e5397d9 a05aa128
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ package android.media {
    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpEnabled(boolean);
    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpSamplingRate(int);
    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setHfpVolume(int);
    method @RequiresPermission("android.permission.BLUETOOTH_STACK") public void setLeAudioSuspended(boolean);
    method public void setStreamVolumeForUid(int, int, int, @NonNull String, int, int, int);
    field public static final int FLAG_FROM_KEY = 4096; // 0x1000
  }
+13 −0
Original line number Diff line number Diff line
@@ -3393,6 +3393,19 @@ public class AudioManager {
        AudioSystem.setParameters("A2dpSuspended=" + enable);
    }

    /**
     * Suspends the use of LE Audio.
     *
     * @param enable {@code true} to suspend le audio, {@code false} to unsuspend
     *
     * @hide
     */
    @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
    @RequiresPermission(android.Manifest.permission.BLUETOOTH_STACK)
    public void setLeAudioSuspended(boolean enable) {
        AudioSystem.setParameters("LeAudioSuspended=" + enable);
    }

    /**
     * Gets a variable number of parameter values from audio hardware.
     *