public enum Tone extends Enum<Tone> implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Enum Constant and Description |
---|
BUSY
Called subscriber busy.
|
CALL_WAITING
Call waiting tone.
|
CONGESTION
Congestion.
|
CRITICAL_ALERT
Critical alert.
|
DIAL
Dial tone.
|
ERROR_SPECIAL_INFO
Error/Special information.
|
GENERAL_BEEP
General beep.
|
HAPPY
Happy tone.
|
INCOMING_SMS
Alert tone as selected by the user for incoming SMS.
|
INCOMING_SPEECH_CALL
Ringing tone as selected by the user for incoming speech call.
|
MELODY_1 |
MELODY_2 |
MELODY_3 |
MELODY_4 |
MELODY_5 |
MELODY_6 |
MELODY_7 |
MELODY_8 |
MESSAGE_RECEIVED
Message received tone.
|
NEGATIVE_ACK
Negative acknowledgement tone.
|
POSITIVE_ACK
Positive acknowledgement tone.
|
QUESTION
Question tone.
|
RADIO_PATH_ACK
Radio path acknowledge.
|
RADIO_PATH_NOT_AVAILABLE
Radio path not available / Call dropped.
|
RINGING
Ringing tone.
|
SAD
Sad tone.
|
URGENT
Urgent action tone.
|
VIBRATE_ONLY
Vibrate only, if available.
|
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Tone> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
static Tone |
fromInt(int value)
Create a Tone object.
|
static Tone |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Tone[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public static final Tone DIAL
public static final Tone BUSY
public static final Tone CONGESTION
public static final Tone RADIO_PATH_ACK
public static final Tone RADIO_PATH_NOT_AVAILABLE
public static final Tone ERROR_SPECIAL_INFO
public static final Tone CALL_WAITING
public static final Tone RINGING
public static final Tone GENERAL_BEEP
public static final Tone POSITIVE_ACK
public static final Tone NEGATIVE_ACK
public static final Tone INCOMING_SPEECH_CALL
public static final Tone INCOMING_SMS
public static final Tone CRITICAL_ALERT
public static final Tone VIBRATE_ONLY
public static final Tone HAPPY
public static final Tone SAD
public static final Tone URGENT
public static final Tone QUESTION
public static final Tone MESSAGE_RECEIVED
public static final Tone MELODY_1
public static final Tone MELODY_2
public static final Tone MELODY_3
public static final Tone MELODY_4
public static final Tone MELODY_5
public static final Tone MELODY_6
public static final Tone MELODY_7
public static final Tone MELODY_8
public static final Parcelable.Creator<Tone> CREATOR
public static Tone[] values()
for (Tone c : Tone.values()) System.out.println(c);
public static Tone valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Tone fromInt(int value)
value
- Integer value to be converted to a Tone object.value
. If no Tone object has
that value, null is returned.public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR