danger.audio
Class ToneClass

java.lang.Object
  extended by danger.audio.ToneClass


public class ToneClass
extends Object

bits for Tone


Field Summary
static int ALL
          all bits on
static int APPS
          bits open for application use: 1<<16 1<<31
static int BACKGROUND
          email, looping is off
static int BACKGROUND_DEFAULT
          Default background configuration
static int BACKGROUND_SYSTEM
          foreground/background but doesn't show up in pickers
static int CUSTOM
          imported, looping available
static int FOREGROUND
          rings and reminders, looping is enabled
static int FOREGROUND_DEFAULT
          Default foreground configuration
static int FOREGROUND_SYSTEM
          by default
static int HIDDEN
           
static int KEY
          key presses
static int MEDIAPLAYER_FORCE_FOLLOW
          foreground and background
static int MOOD
          built in mood ringtones "mood-tones :)".
static int NONE
           
static int ON_PHONE
          plays when on phone
static int ON_PHONE_ONLY
          on phone only
static int SYSTEM
          system UI, looping is off
static int UNMUTABLE
          plays even when system mute is in effect
 
Constructor Summary
ToneClass()
           
 
Method Summary
static int toVolumeClass(int klass)
          convert a ToneClass to a VolumeSelector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

FOREGROUND

public static final int FOREGROUND
rings and reminders, looping is enabled

See Also:
Constant Field Values

BACKGROUND

public static final int BACKGROUND
email, looping is off

See Also:
Constant Field Values

SYSTEM

public static final int SYSTEM
system UI, looping is off

See Also:
Constant Field Values

CUSTOM

public static final int CUSTOM
imported, looping available

See Also:
Constant Field Values

KEY

public static final int KEY
key presses

See Also:
Constant Field Values

UNMUTABLE

public static final int UNMUTABLE
plays even when system mute is in effect

See Also:
Constant Field Values

ON_PHONE

public static final int ON_PHONE
plays when on phone

See Also:
Constant Field Values

BACKGROUND_SYSTEM

public static final int BACKGROUND_SYSTEM
foreground/background but doesn't show up in pickers

See Also:
Constant Field Values

FOREGROUND_SYSTEM

public static final int FOREGROUND_SYSTEM
by default

See Also:
Constant Field Values

FOREGROUND_DEFAULT

public static final int FOREGROUND_DEFAULT
Default foreground configuration

See Also:
Constant Field Values

BACKGROUND_DEFAULT

public static final int BACKGROUND_DEFAULT
Default background configuration

See Also:
Constant Field Values

MEDIAPLAYER_FORCE_FOLLOW

public static final int MEDIAPLAYER_FORCE_FOLLOW
foreground and background

See Also:
Constant Field Values

ON_PHONE_ONLY

public static final int ON_PHONE_ONLY
on phone only

See Also:
Constant Field Values

MOOD

public static final int MOOD
built in mood ringtones "mood-tones :)". Public domain tones usable by anyone for anything. OS 2.3

See Also:
Constant Field Values

HIDDEN

public static final int HIDDEN
See Also:
Constant Field Values

APPS

public static final int APPS
bits open for application use: 1<<16 1<<31

See Also:
Constant Field Values

ALL

public static final int ALL
all bits on

See Also:
Constant Field Values
Constructor Detail

ToneClass

public ToneClass()
Method Detail

toVolumeClass

public static int toVolumeClass(int klass)
convert a ToneClass to a VolumeSelector