AudioManager

Page 1 2 3

public static final int FX_FOCUS_NAVIGATION_RIGHT = 4 source
public static final int FX_KEYPRESS_STANDARD = 5 source
public static final int FX_KEYPRESS_SPACEBAR = 6 source
public static final int FX_KEYPRESS_DELETE = 7 source
public static final int FX_KEYPRESS_RETURN = 8 source
public static final int FX_KEYPRESS_INVALID = 9 source
public static final int ERROR = -1 source
public static final int ERROR_DEAD_OBJECT = -6 source
public static final int AUDIO_SESSION_ID_GENERATE = 0 source
public static final String ACTION_AUDIO_BECOMING_NOISY = "android.media.AUDIO_BECOMING_NOISY" source
public static final String ACTION_HEADSET_PLUG = "android.intent.action.HEADSET_PLUG" source
public static final String ACTION_SCO_AUDIO_STATE_UPDATED = "android.media.ACTION_SCO_AUDIO_STATE_UPDATED" source
public static final String RINGER_MODE_CHANGED_ACTION = "android.media.RINGER_MODE_CHANGED" source
public static final String EXTRA_SCO_AUDIO_STATE = "android.media.extra.SCO_AUDIO_STATE" source
public static final String PROPERTY_OUTPUT_SAMPLE_RATE = "android.media.property.OUTPUT_SAMPLE_RATE" source
public static final String PROPERTY_OUTPUT_FRAMES_PER_BUFFER = "android.media.property.OUTPUT_FRAMES_PER_BUFFER" source
public static final String PROPERTY_SUPPORT_MIC_NEAR_ULTRASOUND = "android.media.property.SUPPORT_MIC_NEAR_ULTRASOUND" source
public static final String PROPERTY_SUPPORT_SPEAKER_NEAR_ULTRASOUND = "android.media.property.SUPPORT_SPEAKER_NEAR_ULTRASOUND" source

Constructors

public AudioManager() empty body source

Methods

public int getStreamMaxVolume(int streamType) source
public int getStreamMinVolume(int streamType) source
public int getStreamVolume(int streamType) source
public boolean isStreamMute(int streamType) source
public void setStreamVolume(int streamType, int index, int flags) source
public void adjustStreamVolume(int streamType, int direction, int flags) source
public void adjustVolume(int direction, int flags) source
public void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags) source
public int getRingerMode() source
public void setRingerMode(int ringerMode) empty body source
public int getMode() source
public void setMode(int mode) source
public boolean isMusicActive() source
public boolean isVolumeFixed() source
public AudioDeviceInfo[] getDevices(int flags) source
public void registerAudioDeviceCallback(AudioDeviceCallback callback, android.os.Handler handler) source

The devices never change here: a callback is told the ones there are once, as Android tells a new one, on the handler's looper (the main one without a handler).

public void unregisterAudioDeviceCallback(AudioDeviceCallback callback) empty body source
public String getParameters(String keys) source
public void setParameters(String keyValuePairs) empty body 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.