android.media
Class ToneGenerator

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

public class ToneGenerator
extends Object


Field Summary
static int MAX_VOLUME
           
static int MIN_VOLUME
           
static int TONE_CDMA_ABBR_ALERT
           
static int TONE_CDMA_ABBR_INTERCEPT
           
static int TONE_CDMA_ABBR_REORDER
           
static int TONE_CDMA_ALERT_AUTOREDIAL_LITE
           
static int TONE_CDMA_ALERT_CALL_GUARD
           
static int TONE_CDMA_ALERT_INCALL_LITE
           
static int TONE_CDMA_ALERT_NETWORK_LITE
           
static int TONE_CDMA_ANSWER
           
static int TONE_CDMA_CALL_SIGNAL_ISDN_INTERGROUP
           
static int TONE_CDMA_CALL_SIGNAL_ISDN_NORMAL
           
static int TONE_CDMA_CALL_SIGNAL_ISDN_PAT3
           
static int TONE_CDMA_CALL_SIGNAL_ISDN_PAT5
           
static int TONE_CDMA_CALL_SIGNAL_ISDN_PAT6
           
static int TONE_CDMA_CALL_SIGNAL_ISDN_PAT7
           
static int TONE_CDMA_CALL_SIGNAL_ISDN_PING_RING
           
static int TONE_CDMA_CALL_SIGNAL_ISDN_SP_PRI
           
static int TONE_CDMA_CALLDROP_LITE
           
static int TONE_CDMA_CONFIRM
           
static int TONE_CDMA_DIAL_TONE_LITE
           
static int TONE_CDMA_EMERGENCY_RINGBACK
           
static int TONE_CDMA_HIGH_L
           
static int TONE_CDMA_HIGH_PBX_L
           
static int TONE_CDMA_HIGH_PBX_S_X4
           
static int TONE_CDMA_HIGH_PBX_SLS
           
static int TONE_CDMA_HIGH_PBX_SS
           
static int TONE_CDMA_HIGH_PBX_SSL
           
static int TONE_CDMA_HIGH_S_X4
           
static int TONE_CDMA_HIGH_SLS
           
static int TONE_CDMA_HIGH_SS
           
static int TONE_CDMA_HIGH_SS_2
           
static int TONE_CDMA_HIGH_SSL
           
static int TONE_CDMA_INTERCEPT
           
static int TONE_CDMA_KEYPAD_VOLUME_KEY_LITE
           
static int TONE_CDMA_LOW_L
           
static int TONE_CDMA_LOW_PBX_L
           
static int TONE_CDMA_LOW_PBX_S_X4
           
static int TONE_CDMA_LOW_PBX_SLS
           
static int TONE_CDMA_LOW_PBX_SS
           
static int TONE_CDMA_LOW_PBX_SSL
           
static int TONE_CDMA_LOW_S_X4
           
static int TONE_CDMA_LOW_SLS
           
static int TONE_CDMA_LOW_SS
           
static int TONE_CDMA_LOW_SS_2
           
static int TONE_CDMA_LOW_SSL
           
static int TONE_CDMA_MED_L
           
static int TONE_CDMA_MED_PBX_L
           
static int TONE_CDMA_MED_PBX_S_X4
           
static int TONE_CDMA_MED_PBX_SLS
           
static int TONE_CDMA_MED_PBX_SS
           
static int TONE_CDMA_MED_PBX_SSL
           
static int TONE_CDMA_MED_S_X4
           
static int TONE_CDMA_MED_SLS
           
static int TONE_CDMA_MED_SS
           
static int TONE_CDMA_MED_SS_2
           
static int TONE_CDMA_MED_SSL
           
static int TONE_CDMA_NETWORK_BUSY
           
static int TONE_CDMA_NETWORK_BUSY_ONE_SHOT
           
static int TONE_CDMA_NETWORK_CALLWAITING
           
static int TONE_CDMA_NETWORK_USA_RINGBACK
           
static int TONE_CDMA_ONE_MIN_BEEP
           
static int TONE_CDMA_PIP
           
static int TONE_CDMA_PRESSHOLDKEY_LITE
           
static int TONE_CDMA_REORDER
           
static int TONE_CDMA_SIGNAL_OFF
           
static int TONE_CDMA_SOFT_ERROR_LITE
           
static int TONE_DTMF_0
           
static int TONE_DTMF_1
           
static int TONE_DTMF_2
           
static int TONE_DTMF_3
           
static int TONE_DTMF_4
           
static int TONE_DTMF_5
           
static int TONE_DTMF_6
           
static int TONE_DTMF_7
           
static int TONE_DTMF_8
           
static int TONE_DTMF_9
           
static int TONE_DTMF_A
           
static int TONE_DTMF_B
           
static int TONE_DTMF_C
           
static int TONE_DTMF_D
           
static int TONE_DTMF_P
           
static int TONE_DTMF_S
           
static int TONE_PROP_ACK
           
static int TONE_PROP_BEEP
           
static int TONE_PROP_BEEP2
           
static int TONE_PROP_NACK
           
static int TONE_PROP_PROMPT
           
static int TONE_SUP_BUSY
           
static int TONE_SUP_CALL_WAITING
           
static int TONE_SUP_CONFIRM
           
static int TONE_SUP_CONGESTION
           
static int TONE_SUP_CONGESTION_ABBREV
           
static int TONE_SUP_DIAL
           
static int TONE_SUP_ERROR
           
static int TONE_SUP_INTERCEPT
           
static int TONE_SUP_INTERCEPT_ABBREV
           
static int TONE_SUP_PIP
           
static int TONE_SUP_RADIO_ACK
           
static int TONE_SUP_RADIO_NOTAVAIL
           
static int TONE_SUP_RINGTONE
           
 
Constructor Summary
ToneGenerator(int streamType, int volume)
           
 
Method Summary
protected  void finalize()
           
 void release()
           
 boolean startTone(int toneType)
           
 boolean startTone(int toneType, int durationMs)
           
 void stopTone()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TONE_DTMF_0

public static final int TONE_DTMF_0
See Also:
Constant Field Values

TONE_DTMF_1

public static final int TONE_DTMF_1
See Also:
Constant Field Values

TONE_DTMF_2

public static final int TONE_DTMF_2
See Also:
Constant Field Values

TONE_DTMF_3

public static final int TONE_DTMF_3
See Also:
Constant Field Values

TONE_DTMF_4

public static final int TONE_DTMF_4
See Also:
Constant Field Values

TONE_DTMF_5

public static final int TONE_DTMF_5
See Also:
Constant Field Values

TONE_DTMF_6

public static final int TONE_DTMF_6
See Also:
Constant Field Values

TONE_DTMF_7

public static final int TONE_DTMF_7
See Also:
Constant Field Values

TONE_DTMF_8

public static final int TONE_DTMF_8
See Also:
Constant Field Values

TONE_DTMF_9

public static final int TONE_DTMF_9
See Also:
Constant Field Values

TONE_DTMF_S

public static final int TONE_DTMF_S
See Also:
Constant Field Values

TONE_DTMF_P

public static final int TONE_DTMF_P
See Also:
Constant Field Values

TONE_DTMF_A

public static final int TONE_DTMF_A
See Also:
Constant Field Values

TONE_DTMF_B

public static final int TONE_DTMF_B
See Also:
Constant Field Values

TONE_DTMF_C

public static final int TONE_DTMF_C
See Also:
Constant Field Values

TONE_DTMF_D

public static final int TONE_DTMF_D
See Also:
Constant Field Values

TONE_SUP_DIAL

public static final int TONE_SUP_DIAL
See Also:
Constant Field Values

TONE_SUP_BUSY

public static final int TONE_SUP_BUSY
See Also:
Constant Field Values

TONE_SUP_CONGESTION

public static final int TONE_SUP_CONGESTION
See Also:
Constant Field Values

TONE_SUP_RADIO_ACK

public static final int TONE_SUP_RADIO_ACK
See Also:
Constant Field Values

TONE_SUP_RADIO_NOTAVAIL

public static final int TONE_SUP_RADIO_NOTAVAIL
See Also:
Constant Field Values

TONE_SUP_ERROR

public static final int TONE_SUP_ERROR
See Also:
Constant Field Values

TONE_SUP_CALL_WAITING

public static final int TONE_SUP_CALL_WAITING
See Also:
Constant Field Values

TONE_SUP_RINGTONE

public static final int TONE_SUP_RINGTONE
See Also:
Constant Field Values

TONE_PROP_BEEP

public static final int TONE_PROP_BEEP
See Also:
Constant Field Values

TONE_PROP_ACK

public static final int TONE_PROP_ACK
See Also:
Constant Field Values

TONE_PROP_NACK

public static final int TONE_PROP_NACK
See Also:
Constant Field Values

TONE_PROP_PROMPT

public static final int TONE_PROP_PROMPT
See Also:
Constant Field Values

TONE_PROP_BEEP2

public static final int TONE_PROP_BEEP2
See Also:
Constant Field Values

TONE_SUP_INTERCEPT

public static final int TONE_SUP_INTERCEPT
See Also:
Constant Field Values

TONE_SUP_INTERCEPT_ABBREV

public static final int TONE_SUP_INTERCEPT_ABBREV
See Also:
Constant Field Values

TONE_SUP_CONGESTION_ABBREV

public static final int TONE_SUP_CONGESTION_ABBREV
See Also:
Constant Field Values

TONE_SUP_CONFIRM

public static final int TONE_SUP_CONFIRM
See Also:
Constant Field Values

TONE_SUP_PIP

public static final int TONE_SUP_PIP
See Also:
Constant Field Values

TONE_CDMA_DIAL_TONE_LITE

public static final int TONE_CDMA_DIAL_TONE_LITE
See Also:
Constant Field Values

TONE_CDMA_NETWORK_USA_RINGBACK

public static final int TONE_CDMA_NETWORK_USA_RINGBACK
See Also:
Constant Field Values

TONE_CDMA_INTERCEPT

public static final int TONE_CDMA_INTERCEPT
See Also:
Constant Field Values

TONE_CDMA_ABBR_INTERCEPT

public static final int TONE_CDMA_ABBR_INTERCEPT
See Also:
Constant Field Values

TONE_CDMA_REORDER

public static final int TONE_CDMA_REORDER
See Also:
Constant Field Values

TONE_CDMA_ABBR_REORDER

public static final int TONE_CDMA_ABBR_REORDER
See Also:
Constant Field Values

TONE_CDMA_NETWORK_BUSY

public static final int TONE_CDMA_NETWORK_BUSY
See Also:
Constant Field Values

TONE_CDMA_CONFIRM

public static final int TONE_CDMA_CONFIRM
See Also:
Constant Field Values

TONE_CDMA_ANSWER

public static final int TONE_CDMA_ANSWER
See Also:
Constant Field Values

TONE_CDMA_NETWORK_CALLWAITING

public static final int TONE_CDMA_NETWORK_CALLWAITING
See Also:
Constant Field Values

TONE_CDMA_PIP

public static final int TONE_CDMA_PIP
See Also:
Constant Field Values

TONE_CDMA_CALL_SIGNAL_ISDN_NORMAL

public static final int TONE_CDMA_CALL_SIGNAL_ISDN_NORMAL
See Also:
Constant Field Values

TONE_CDMA_CALL_SIGNAL_ISDN_INTERGROUP

public static final int TONE_CDMA_CALL_SIGNAL_ISDN_INTERGROUP
See Also:
Constant Field Values

TONE_CDMA_CALL_SIGNAL_ISDN_SP_PRI

public static final int TONE_CDMA_CALL_SIGNAL_ISDN_SP_PRI
See Also:
Constant Field Values

TONE_CDMA_CALL_SIGNAL_ISDN_PAT3

public static final int TONE_CDMA_CALL_SIGNAL_ISDN_PAT3
See Also:
Constant Field Values

TONE_CDMA_CALL_SIGNAL_ISDN_PING_RING

public static final int TONE_CDMA_CALL_SIGNAL_ISDN_PING_RING
See Also:
Constant Field Values

TONE_CDMA_CALL_SIGNAL_ISDN_PAT5

public static final int TONE_CDMA_CALL_SIGNAL_ISDN_PAT5
See Also:
Constant Field Values

TONE_CDMA_CALL_SIGNAL_ISDN_PAT6

public static final int TONE_CDMA_CALL_SIGNAL_ISDN_PAT6
See Also:
Constant Field Values

TONE_CDMA_CALL_SIGNAL_ISDN_PAT7

public static final int TONE_CDMA_CALL_SIGNAL_ISDN_PAT7
See Also:
Constant Field Values

TONE_CDMA_HIGH_L

public static final int TONE_CDMA_HIGH_L
See Also:
Constant Field Values

TONE_CDMA_MED_L

public static final int TONE_CDMA_MED_L
See Also:
Constant Field Values

TONE_CDMA_LOW_L

public static final int TONE_CDMA_LOW_L
See Also:
Constant Field Values

TONE_CDMA_HIGH_SS

public static final int TONE_CDMA_HIGH_SS
See Also:
Constant Field Values

TONE_CDMA_MED_SS

public static final int TONE_CDMA_MED_SS
See Also:
Constant Field Values

TONE_CDMA_LOW_SS

public static final int TONE_CDMA_LOW_SS
See Also:
Constant Field Values

TONE_CDMA_HIGH_SSL

public static final int TONE_CDMA_HIGH_SSL
See Also:
Constant Field Values

TONE_CDMA_MED_SSL

public static final int TONE_CDMA_MED_SSL
See Also:
Constant Field Values

TONE_CDMA_LOW_SSL

public static final int TONE_CDMA_LOW_SSL
See Also:
Constant Field Values

TONE_CDMA_HIGH_SS_2

public static final int TONE_CDMA_HIGH_SS_2
See Also:
Constant Field Values

TONE_CDMA_MED_SS_2

public static final int TONE_CDMA_MED_SS_2
See Also:
Constant Field Values

TONE_CDMA_LOW_SS_2

public static final int TONE_CDMA_LOW_SS_2
See Also:
Constant Field Values

TONE_CDMA_HIGH_SLS

public static final int TONE_CDMA_HIGH_SLS
See Also:
Constant Field Values

TONE_CDMA_MED_SLS

public static final int TONE_CDMA_MED_SLS
See Also:
Constant Field Values

TONE_CDMA_LOW_SLS

public static final int TONE_CDMA_LOW_SLS
See Also:
Constant Field Values

TONE_CDMA_HIGH_S_X4

public static final int TONE_CDMA_HIGH_S_X4
See Also:
Constant Field Values

TONE_CDMA_MED_S_X4

public static final int TONE_CDMA_MED_S_X4
See Also:
Constant Field Values

TONE_CDMA_LOW_S_X4

public static final int TONE_CDMA_LOW_S_X4
See Also:
Constant Field Values

TONE_CDMA_HIGH_PBX_L

public static final int TONE_CDMA_HIGH_PBX_L
See Also:
Constant Field Values

TONE_CDMA_MED_PBX_L

public static final int TONE_CDMA_MED_PBX_L
See Also:
Constant Field Values

TONE_CDMA_LOW_PBX_L

public static final int TONE_CDMA_LOW_PBX_L
See Also:
Constant Field Values

TONE_CDMA_HIGH_PBX_SS

public static final int TONE_CDMA_HIGH_PBX_SS
See Also:
Constant Field Values

TONE_CDMA_MED_PBX_SS

public static final int TONE_CDMA_MED_PBX_SS
See Also:
Constant Field Values

TONE_CDMA_LOW_PBX_SS

public static final int TONE_CDMA_LOW_PBX_SS
See Also:
Constant Field Values

TONE_CDMA_HIGH_PBX_SSL

public static final int TONE_CDMA_HIGH_PBX_SSL
See Also:
Constant Field Values

TONE_CDMA_MED_PBX_SSL

public static final int TONE_CDMA_MED_PBX_SSL
See Also:
Constant Field Values

TONE_CDMA_LOW_PBX_SSL

public static final int TONE_CDMA_LOW_PBX_SSL
See Also:
Constant Field Values

TONE_CDMA_HIGH_PBX_SLS

public static final int TONE_CDMA_HIGH_PBX_SLS
See Also:
Constant Field Values

TONE_CDMA_MED_PBX_SLS

public static final int TONE_CDMA_MED_PBX_SLS
See Also:
Constant Field Values

TONE_CDMA_LOW_PBX_SLS

public static final int TONE_CDMA_LOW_PBX_SLS
See Also:
Constant Field Values

TONE_CDMA_HIGH_PBX_S_X4

public static final int TONE_CDMA_HIGH_PBX_S_X4
See Also:
Constant Field Values

TONE_CDMA_MED_PBX_S_X4

public static final int TONE_CDMA_MED_PBX_S_X4
See Also:
Constant Field Values

TONE_CDMA_LOW_PBX_S_X4

public static final int TONE_CDMA_LOW_PBX_S_X4
See Also:
Constant Field Values

TONE_CDMA_ALERT_NETWORK_LITE

public static final int TONE_CDMA_ALERT_NETWORK_LITE
See Also:
Constant Field Values

TONE_CDMA_ALERT_AUTOREDIAL_LITE

public static final int TONE_CDMA_ALERT_AUTOREDIAL_LITE
See Also:
Constant Field Values

TONE_CDMA_ONE_MIN_BEEP

public static final int TONE_CDMA_ONE_MIN_BEEP
See Also:
Constant Field Values

TONE_CDMA_KEYPAD_VOLUME_KEY_LITE

public static final int TONE_CDMA_KEYPAD_VOLUME_KEY_LITE
See Also:
Constant Field Values

TONE_CDMA_PRESSHOLDKEY_LITE

public static final int TONE_CDMA_PRESSHOLDKEY_LITE
See Also:
Constant Field Values

TONE_CDMA_ALERT_INCALL_LITE

public static final int TONE_CDMA_ALERT_INCALL_LITE
See Also:
Constant Field Values

TONE_CDMA_EMERGENCY_RINGBACK

public static final int TONE_CDMA_EMERGENCY_RINGBACK
See Also:
Constant Field Values

TONE_CDMA_ALERT_CALL_GUARD

public static final int TONE_CDMA_ALERT_CALL_GUARD
See Also:
Constant Field Values

TONE_CDMA_SOFT_ERROR_LITE

public static final int TONE_CDMA_SOFT_ERROR_LITE
See Also:
Constant Field Values

TONE_CDMA_CALLDROP_LITE

public static final int TONE_CDMA_CALLDROP_LITE
See Also:
Constant Field Values

TONE_CDMA_NETWORK_BUSY_ONE_SHOT

public static final int TONE_CDMA_NETWORK_BUSY_ONE_SHOT
See Also:
Constant Field Values

TONE_CDMA_ABBR_ALERT

public static final int TONE_CDMA_ABBR_ALERT
See Also:
Constant Field Values

TONE_CDMA_SIGNAL_OFF

public static final int TONE_CDMA_SIGNAL_OFF
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
Constructor Detail

ToneGenerator

public ToneGenerator(int streamType,
                     int volume)
Method Detail

startTone

public boolean startTone(int toneType)

startTone

public boolean startTone(int toneType,
                         int durationMs)

stopTone

public void stopTone()

release

public void release()

finalize

protected void finalize()
Overrides:
finalize in class Object


Copyright © 2008-2012. All Rights Reserved.