Merge "Adds API AudioManager#setLeAudioSuspended"
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -3387,6 +3387,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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user