|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mot.iden.device.AudioManager
This class acts as a factory for getting controls for Line1/Line2/Data/.... It also has methods general to audio control for the radio.
A list of strings to be used for getControl
and the interfaces
the object returned implements.
"Line1", "Line2", "Message", "Reminder", and "CallAlert" | VolumeControl, NotificationTypeControl, RingerControl |
"Data" | VolumeControl, NotificationTypeControl |
"KeyPad", "VoiceEarpiece", "VoiceSpeaker", "JavaEarpiece", and "JavaSpeaker" | VolumeControl |
"AudioRouting" | OutboundRouteControl |
Field Summary | |
static int |
EARPIECE
This is a return value used in getAudioAccessoryType. |
static int |
HEADSET_AND_SPEAKER
This is a return value used in getHeadset and a parameter for setHeadset. |
static int |
HEADSET_ONLY
This is a return value used in getHeadset and a parameter for setHeadset. |
static int |
JAVA
This is a value used for setRoute and getRoute. |
static int |
MAX_RINGERS
This number represents the maximum number of ringers available in the phone. |
static int |
NONE
This is a return value used in getAudioAccessoryType. |
static int |
PHONE_CALL
This is a value used for setRoute and getRoute. |
static int |
RING
This is a return value used in getType and a parameter for setType. |
static int |
RING_VIBE
This is a return value used in getType and a parameter for setType. |
static int |
SILENT
This is a return value used in getType and a parameter for setType. |
static int |
SPEAKER
This is a value used for setRoute and getRoute, and also a return value used in getAudioAccessoryType. |
static int |
TWO_WAY_RADIO
This is a value used for setRoute and getRoute. |
static int |
VIBRATE
This is a return value used in getType and a parameter for setType. |
Method Summary | |
static int |
getAudioAccessoryType()
This function was stubbed out on Gemini. |
static Control |
getControl(java.lang.String s)
This method returns an object for a particular notification, such as Line1, Line2, or CallAlert. |
static int |
getHeadset()
|
static java.lang.String[] |
getRingerList()
|
static boolean |
getVibeAll()
|
static void |
setHeadset(int head)
|
static void |
setVibeAll(boolean vibe)
|
static void |
suppressErgo(boolean suppress)
This function was stubbed out on Gemini. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int JAVA
public static final int TWO_WAY_RADIO
public static final int PHONE_CALL
public static final int SPEAKER
public static final int EARPIECE
public static final int NONE
public static final int RING
public static final int VIBRATE
public static final int RING_VIBE
public static final int SILENT
public static final int HEADSET_ONLY
public static final int HEADSET_AND_SPEAKER
public static final int MAX_RINGERS
Method Detail |
public static Control getControl(java.lang.String s)
s
- See above table for list of allowed strings.
java.lang.SecurityException
- If user does not have permission to use this API.public static java.lang.String[] getRingerList()
java.lang.SecurityException
- If user does not have permission to use this API.public static int getHeadset()
java.lang.SecurityException
- If user does not have permission to use this API.public static void setHeadset(int head) throws java.lang.IllegalArgumentException
head
- Either HEADSET_ONLY or HEADSET_AND_SPEAKER.
java.lang.IllegalArgumentException
- if head is not either of the two accepted values.
java.lang.SecurityException
- If user does not have permission to use this API.public static boolean getVibeAll()
java.lang.SecurityException
- If user does not have permission to use this API.public static void setVibeAll(boolean vibe)
vibe
- Use true to turn on the vibe-all setting, false to turn off.
java.lang.SecurityException
- If user does not have permission to use this API.public static void suppressErgo(boolean suppress)
suppress
- True to suppress ergo, false to not suppress.
java.lang.SecurityException
- If user does not have permission to use this API.public static int getAudioAccessoryType()
java.lang.SecurityException
- If user does not have permission to use this API.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |