Build m5-rc15

android.media
Class AudioSystem

java.lang.Object
  extended by android.media.AudioSystem

public class AudioSystem
extends Object


Field Summary
static int MAX_VOLUME
           
static int MIN_VOLUME
           
static int ROUTE_BT_HEADSET
           
static int ROUTE_BT_HEADSET_MIC
           
static int ROUTE_DMA
           
static int ROUTE_DOWNLINK_VOICE
           
static int ROUTE_HEADSET
           
static int ROUTE_HEADSET_MIC
           
static int ROUTE_INT_MIC
           
static int ROUTE_RECEIVER
           
static int ROUTE_SPEAKER
           
static int ROUTE_UPLINK_VOICE
           
static int SRC_VOICE_CALL
           
static int STREAM_DEFAULT
           
static int STREAM_MUSIC
           
static int STREAM_RING
           
static int STREAM_SYSTEM
           
static int STREAM_VOICE_CALL
           
 
Constructor Summary
AudioSystem()
           
 
Method Summary
static void bluetoothSco(boolean flag)
           
static int getVolume(int i)
           
static boolean isBluetoothScoOn()
           
static boolean isMicrophoneMuted()
           
static boolean isSpeakerphoneOn()
           
static void muteMicrophone(boolean flag)
           
static void setVolume(int i, int j)
           
static void speakerphone(boolean flag)
           
static void stayAwake(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STREAM_VOICE_CALL

public static final int STREAM_VOICE_CALL
See Also:
Constant Field Values

STREAM_SYSTEM

public static final int STREAM_SYSTEM
See Also:
Constant Field Values

STREAM_RING

public static final int STREAM_RING
See Also:
Constant Field Values

STREAM_MUSIC

public static final int STREAM_MUSIC
See Also:
Constant Field Values

STREAM_DEFAULT

public static final int STREAM_DEFAULT
See Also:
Constant Field Values

MAX_VOLUME

public static final int MAX_VOLUME
See Also:
Constant Field Values

MIN_VOLUME

public static final int MIN_VOLUME
See Also:
Constant Field Values

ROUTE_INT_MIC

public static final int ROUTE_INT_MIC
See Also:
Constant Field Values

ROUTE_HEADSET_MIC

public static final int ROUTE_HEADSET_MIC
See Also:
Constant Field Values

ROUTE_BT_HEADSET_MIC

public static final int ROUTE_BT_HEADSET_MIC
See Also:
Constant Field Values

ROUTE_DOWNLINK_VOICE

public static final int ROUTE_DOWNLINK_VOICE
See Also:
Constant Field Values

ROUTE_DMA

public static final int ROUTE_DMA
See Also:
Constant Field Values

ROUTE_RECEIVER

public static final int ROUTE_RECEIVER
See Also:
Constant Field Values

ROUTE_SPEAKER

public static final int ROUTE_SPEAKER
See Also:
Constant Field Values

ROUTE_HEADSET

public static final int ROUTE_HEADSET
See Also:
Constant Field Values

ROUTE_BT_HEADSET

public static final int ROUTE_BT_HEADSET
See Also:
Constant Field Values

ROUTE_UPLINK_VOICE

public static final int ROUTE_UPLINK_VOICE
See Also:
Constant Field Values

SRC_VOICE_CALL

public static final int SRC_VOICE_CALL
See Also:
Constant Field Values
Constructor Detail

AudioSystem

public AudioSystem()
Method Detail

setVolume

public static void setVolume(int i,
                             int j)

getVolume

public static int getVolume(int i)

speakerphone

public static void speakerphone(boolean flag)

isSpeakerphoneOn

public static boolean isSpeakerphoneOn()

bluetoothSco

public static void bluetoothSco(boolean flag)

isBluetoothScoOn

public static boolean isBluetoothScoOn()

muteMicrophone

public static void muteMicrophone(boolean flag)

isMicrophoneMuted

public static boolean isMicrophoneMuted()

stayAwake

public static void stayAwake(boolean flag)

Build m5-rc15

Please submit a feedback, bug or feature