AudioManager

Page 1 2 3

public String getProperty(String key) source

The host mixes at 48 kHz, in buffers of 256 frames.

public int generateAudioSessionId() source
public boolean isMicrophoneMute() source
public void setMicrophoneMute(boolean on) source
public boolean isSpeakerphoneOn() source
public void setSpeakerphoneOn(boolean on) source
public boolean isWiredHeadsetOn() deprecated source
public void setWiredHeadsetOn(boolean on) empty body deprecated source
public boolean isBluetoothA2dpOn() source
public boolean isBluetoothScoOn() source
public boolean isBluetoothScoAvailableOffCall() source
public void setBluetoothScoOn(boolean on) empty body source
public void startBluetoothSco() empty body source
public void stopBluetoothSco() empty body source
public void playSoundEffect(int effectType) empty body source
public void playSoundEffect(int effectType, float volume) empty body source
public void loadSoundEffects() empty body source
public void unloadSoundEffects() empty body source
public int requestAudioFocus(OnAudioFocusChangeListener l, int streamType, int durationHint) deprecated source
public int abandonAudioFocus(OnAudioFocusChangeListener l) source
public int requestAudioFocus(AudioFocusRequest focusRequest) source

No other app plays here: focus is always granted, and never lost

public int abandonAudioFocusRequest(AudioFocusRequest focusRequest) source
public boolean setCommunicationDevice(AudioDeviceInfo device) source

The speaker is no communication device: a call's route stays where it is

public AudioDeviceInfo getCommunicationDevice() source
public void clearCommunicationDevice() empty body source
public void registerMediaButtonEventReceiver(ComponentName eventReceiver) empty body deprecated source
public void registerMediaButtonEventReceiver(PendingIntent eventReceiver) empty body deprecated source
public void unregisterMediaButtonEventReceiver(ComponentName eventReceiver) empty body deprecated source
public void unregisterMediaButtonEventReceiver(PendingIntent eventReceiver) empty body deprecated source
public void registerRemoteControlClient(RemoteControlClient rcClient) empty body deprecated source
public void unregisterRemoteControlClient(RemoteControlClient rcClient) empty body deprecated source

Page 1 2 3


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.