danger.audio
Class Meta

java.lang.Object
  |
  +--danger.audio.Meta
All Implemented Interfaces:
danger.audio.MetaList

public class Meta
extends java.lang.Object
implements danger.audio.MetaList

The Meta class contains the ID's and methods for public access to various sounds and sequences for the Danger system. This file contains a list of all available audio events for the system. These ID's are frozen.


Field Summary
static int ATTEMPT_CALL
           
static int BATTERY_FAILURE_IMMINENT
           
static int BEEP_ACTION_FAIL
           
static int BEEP_ACTION_SUCCESS
           
static int BEEP_COMMAND_ACCECPTED
           
static int BEEP_COMMAND_REJECTED
           
static int BEEP_STARTUP_SOUND
           
static int CALL_BUSY
           
static int CALL_DROPPED
           
static int CALL_ENDED
           
static int CALL_WAITING
           
static int CHARGER_CONNECTED
          device connections
static int CHARGER_DISCONNECTED
           
static int DEFAULT_BACKGROUND
           
static int DEFAULT_FOREGROUND
          defaults for foreground/background, system and apps
static int DEFAULT_SMS_RING
           
static int DELETE_ITEM
           
static int DELETE_TRASH
           
static int DIALOG_OPEN
           
static int FEEDBACK_AUTO_CAP
           
static int FEEDBACK_AUTO_REPLACE
           
static int FEEDBACK_BACK_BUTTON
           
static int FEEDBACK_DELETE_KEY_ONCE
          delete key
static int FEEDBACK_DELETE_KEY_REPEAT
           
static int FEEDBACK_JUMP_BUTTON
           
static int FEEDBACK_KEY_ONCE
          all keys
static int FEEDBACK_KEY_REPEAT
           
static int FEEDBACK_MENU_BUTTON
           
static int FEEDBACK_PAGE_DOWN
           
static int FEEDBACK_PAGE_UP
           
static int FEEDBACK_PROFILE_VOL
           
static int FEEDBACK_RETURN_KEY_ONCE
          return key
static int FEEDBACK_RETURN_KEY_REPEAT
           
static int FEEDBACK_SPACE_KEY_ONCE
          space key
static int FEEDBACK_SPACE_KEY_REPEAT
           
static int FEEDBACK_WHEEL_BUTTON
           
static int INVALID
          public meta ID's.
static int JUMP_SHORTCUT
          jump shortcut to active new app
static int JUMP_TO_CHOOSER
           
static int LID_CLOSE
           
static int LID_OPEN
           
static int LOW_BATTERY
          in 10 seconds, Dave, I will have no power.
static int MENU_ACTIVATION
           
static int MENU_DISMISS
           
static int MENU_SHORTCUT
          keyboard menu shortcut
static danger.audio.MetaTone[] mMetaNoise
           
static int SCROLL_LIMIT
           
static int SCROLL_WHEEL_DOWN
           
static int SCROLL_WHEEL_UP
           
static int SYSTEM_BACKGROUND
           
static int SYSTEM_FOREGROUND
           
static int USB_CONNECTED
           
static int USB_DISCONNECTED
           
static int ZOOM_IN
           
static int ZOOM_OUT
           
static int ZOOM_OUT_FURTHER
           
 
Constructor Summary
Meta()
           
 
Method Summary
static void displayState()
           
static int GetIDFromResourceID(int metaID)
          Given a meta ID, return the associated ToneGalleryList resource ID.
static Tone getToneFromID(int metaID)
          Given an meta ID, return the tone associated with it
static void initialize()
           
static boolean isDone(int id)
           
static boolean isIDMuted(int metaID)
          Return true or false if a particular metaID is already muted
static boolean isMetaID(int metaID)
          Given a potential meta ID, return true/false if it actaully is or not
static void muteID(int metaID)
          Mute a particular Meta ID.
static void play(int id)
          loads a default meta sequence or sound and plays
static void play(int id, int volume)
          loads a default meta sequence or sound and plays
static void play(int id, int volume, int filters)
          loads a default meta sequence or sound and plays.
static void setLoop(int id, boolean on)
           
static boolean setToneToID(Tone tone, int metaID)
          Given a Tone and a meta ID, change the default to use this new passed in Tone.
static void stop(int id)
          stop a meta sequence, or sound from id
static void stopAll()
          shutdown all meta playback objects
static void unmuteID(int metaID)
          Unmute a particular Meta ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID

public static final int INVALID
public meta ID's. Default UI meta sounds or meta sequences. Use these with Meta.play()

BEEP_COMMAND_ACCECPTED

public static final int BEEP_COMMAND_ACCECPTED

BEEP_COMMAND_REJECTED

public static final int BEEP_COMMAND_REJECTED

BEEP_ACTION_SUCCESS

public static final int BEEP_ACTION_SUCCESS

BEEP_ACTION_FAIL

public static final int BEEP_ACTION_FAIL

BEEP_STARTUP_SOUND

public static final int BEEP_STARTUP_SOUND

SCROLL_LIMIT

public static final int SCROLL_LIMIT

SCROLL_WHEEL_UP

public static final int SCROLL_WHEEL_UP

SCROLL_WHEEL_DOWN

public static final int SCROLL_WHEEL_DOWN

FEEDBACK_WHEEL_BUTTON

public static final int FEEDBACK_WHEEL_BUTTON

FEEDBACK_MENU_BUTTON

public static final int FEEDBACK_MENU_BUTTON

FEEDBACK_JUMP_BUTTON

public static final int FEEDBACK_JUMP_BUTTON

FEEDBACK_BACK_BUTTON

public static final int FEEDBACK_BACK_BUTTON

FEEDBACK_KEY_ONCE

public static final int FEEDBACK_KEY_ONCE
all keys

FEEDBACK_KEY_REPEAT

public static final int FEEDBACK_KEY_REPEAT

FEEDBACK_DELETE_KEY_ONCE

public static final int FEEDBACK_DELETE_KEY_ONCE
delete key

FEEDBACK_DELETE_KEY_REPEAT

public static final int FEEDBACK_DELETE_KEY_REPEAT

FEEDBACK_RETURN_KEY_ONCE

public static final int FEEDBACK_RETURN_KEY_ONCE
return key

FEEDBACK_RETURN_KEY_REPEAT

public static final int FEEDBACK_RETURN_KEY_REPEAT

FEEDBACK_SPACE_KEY_ONCE

public static final int FEEDBACK_SPACE_KEY_ONCE
space key

FEEDBACK_SPACE_KEY_REPEAT

public static final int FEEDBACK_SPACE_KEY_REPEAT

FEEDBACK_PAGE_UP

public static final int FEEDBACK_PAGE_UP

FEEDBACK_PAGE_DOWN

public static final int FEEDBACK_PAGE_DOWN

FEEDBACK_AUTO_REPLACE

public static final int FEEDBACK_AUTO_REPLACE

FEEDBACK_AUTO_CAP

public static final int FEEDBACK_AUTO_CAP

FEEDBACK_PROFILE_VOL

public static final int FEEDBACK_PROFILE_VOL

ZOOM_IN

public static final int ZOOM_IN

ZOOM_OUT

public static final int ZOOM_OUT

ZOOM_OUT_FURTHER

public static final int ZOOM_OUT_FURTHER

JUMP_TO_CHOOSER

public static final int JUMP_TO_CHOOSER

JUMP_SHORTCUT

public static final int JUMP_SHORTCUT
jump shortcut to active new app

CHARGER_CONNECTED

public static final int CHARGER_CONNECTED
device connections

CHARGER_DISCONNECTED

public static final int CHARGER_DISCONNECTED

USB_CONNECTED

public static final int USB_CONNECTED

USB_DISCONNECTED

public static final int USB_DISCONNECTED

LOW_BATTERY

public static final int LOW_BATTERY
in 10 seconds, Dave, I will have no power.

BATTERY_FAILURE_IMMINENT

public static final int BATTERY_FAILURE_IMMINENT

LID_OPEN

public static final int LID_OPEN

LID_CLOSE

public static final int LID_CLOSE

CALL_BUSY

public static final int CALL_BUSY

CALL_WAITING

public static final int CALL_WAITING

CALL_ENDED

public static final int CALL_ENDED

ATTEMPT_CALL

public static final int ATTEMPT_CALL

CALL_DROPPED

public static final int CALL_DROPPED

MENU_ACTIVATION

public static final int MENU_ACTIVATION

MENU_DISMISS

public static final int MENU_DISMISS

MENU_SHORTCUT

public static final int MENU_SHORTCUT
keyboard menu shortcut

DIALOG_OPEN

public static final int DIALOG_OPEN

DELETE_ITEM

public static final int DELETE_ITEM

DELETE_TRASH

public static final int DELETE_TRASH

DEFAULT_FOREGROUND

public static final int DEFAULT_FOREGROUND
defaults for foreground/background, system and apps

DEFAULT_BACKGROUND

public static final int DEFAULT_BACKGROUND

SYSTEM_FOREGROUND

public static final int SYSTEM_FOREGROUND

SYSTEM_BACKGROUND

public static final int SYSTEM_BACKGROUND

DEFAULT_SMS_RING

public static final int DEFAULT_SMS_RING

mMetaNoise

public static final danger.audio.MetaTone[] mMetaNoise
Constructor Detail

Meta

public Meta()
Method Detail

initialize

public static void initialize()

displayState

public static void displayState()

play

public static void play(int id,
                        int volume,
                        int filters)
loads a default meta sequence or sound and plays. id can be a Meta ID, or a ToneGallery ID. If id is a Meta ID, then the assoicated sound/sequence will be loaded and played. If id is not a Meta, then a search of the ToneGallery will be loaded and played. If id is not in the Meta tone list then nothing will happen. If id is not in the ToneGallery, then a default sound will be played.

play

public static void play(int id)
loads a default meta sequence or sound and plays

play

public static void play(int id,
                        int volume)
loads a default meta sequence or sound and plays

isMetaID

public static boolean isMetaID(int metaID)
Given a potential meta ID, return true/false if it actaully is or not

setLoop

public static void setLoop(int id,
                           boolean on)

stop

public static void stop(int id)
stop a meta sequence, or sound from id

isDone

public static boolean isDone(int id)

setToneToID

public static boolean setToneToID(Tone tone,
                                  int metaID)
Given a Tone and a meta ID, change the default to use this new passed in Tone. Returns false if failure, otherwise true.

muteID

public static void muteID(int metaID)
Mute a particular Meta ID. System wide.

unmuteID

public static void unmuteID(int metaID)
Unmute a particular Meta ID. System wide.

isIDMuted

public static boolean isIDMuted(int metaID)
Return true or false if a particular metaID is already muted

GetIDFromResourceID

public static int GetIDFromResourceID(int metaID)
Given a meta ID, return the associated ToneGalleryList resource ID.

getToneFromID

public static Tone getToneFromID(int metaID)
Given an meta ID, return the tone associated with it

stopAll

public static void stopAll()
shutdown all meta playback objects


Danger Confidential. Copyright © 2000-2003, Danger Inc.