public static class SystemSettings.Sound extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
AFFECTED_MODE_RINGER_STREAMS |
Specifies which audio streams are affected by changes on the ringing mode and Do Not Disturb (DND) mode.
|
static String |
AFFECTED_MUTE_STREAMS |
Specifies which audio streams are affected by the mute mode.
|
static String |
DEFAULT_ALARM_ALERT |
Indicates the storage area of the system default alarm.
|
static String |
DEFAULT_NOTIFICATION_SOUND |
Indicates the storage area of the system default notification tone.
|
static String |
DEFAULT_RINGTONE |
Indicates the storage area of the system default ringtone.
|
static String |
DTMF_TONE_TYPE_WHILE_DIALING |
Indicates the type of the dual-tone multifrequency (DTMF) tone played when dialing.
|
static String |
DTMF_TONE_WHILE_DIALING |
Specifies whether the DTMF tone is played when dialing.
|
static String |
HAPTIC_FEEDBACK_STATUS |
Indicates whether the device enables haptic feedback.
|
static String |
SOUND_EFFECTS_STATUS |
Specifies whether the sound effects are enabled.
|
static String |
VIBRATE_STATUS |
Specifies whether the device vibrates for an event.
|
static String |
VIBRATE_WHILE_RINGING |
Indicates whether the device vibrates when it is ringing for an incoming call.
|
public static final String AFFECTED_MODE_RINGER_STREAMS
If you want a specific audio stream to be affected by changes of the ringing mode and DDN mode, set the
corresponding bit to 1.
public static final String AFFECTED_MUTE_STREAMS
If you want a specific audio stream to remain muted in mute mode, set the corresponding bit to 1.
public static final String DEFAULT_ALARM_ALERT
You can obtain the URI of the system default alarm.
public static final String DEFAULT_NOTIFICATION_SOUND
You can obtain the URI of the system default notification tone.
public static final String DEFAULT_RINGTONE
You can obtain the URI of the system default ringtone.
public static final String DTMF_TONE_TYPE_WHILE_DIALING
The value 0 indicates the normal short sound effect, and 1 indicates the long sound
effect.
public static final String DTMF_TONE_WHILE_DIALING
If the value is 1, the DTMF tone is played. If the value is 0, the DTMF tone is not
played.
public static final String HAPTIC_FEEDBACK_STATUS
The value is of the boolean type.
public static final String SOUND_EFFECTS_STATUS
If the value is 0, the sound effects are disabled. If the value is 1, the sound effects
are enabled.
public static final String VIBRATE_STATUS
If the value is 1, the device vibrates for an event. If the value is 0, the device does
not vibrate for an event.
public static final String VIBRATE_WHILE_RINGING
This constant will be used by Phone and Settings applications. The value is of the boolean type. This constant affects only the scenario where the device rings for an incoming call. It does not affect any other application or scenario.