Serializable, Comparable<AudioStreamInfo.AudioStreamFlag>public static enum AudioStreamInfo.AudioStreamFlag extends Enum<AudioStreamInfo.AudioStreamFlag>
SystemCapability.Multimedia#AUDIO| 枚举常量 | 说明 |
|---|---|
AUDIO_STREAM_FLAG_AUDIBILITY_ENFORCED |
Indicates that the audibility of the stream will be ensured by the system.
|
AUDIO_STREAM_FLAG_BEACON |
Indicates that the stream will be compatible with its use as a broadcast.
|
AUDIO_STREAM_FLAG_BYPASS_INTERRUPTION_POLICY |
Indicates audible playback even under limited interruptions.
|
AUDIO_STREAM_FLAG_BYPASS_MUTE |
Indicates audible playback even when the underlying stream is muted.
|
AUDIO_STREAM_FLAG_DEEP_BUFFER |
Indicates a request for a deep buffer path when creating a render.
|
AUDIO_STREAM_FLAG_DIRECT_OUTPUT |
Indicates a request for a direct path when creating a render.
|
AUDIO_STREAM_FLAG_HW_AV_SYNC |
Indicates that the use of streams supports hardware A/V synchronization.
|
AUDIO_STREAM_FLAG_HW_HOTWORD |
Indicates the capture from the source used for hardware hotword detection.
|
AUDIO_STREAM_FLAG_LOW_LATENCY |
Indicates a request for a low latency path when creating a render.
|
AUDIO_STREAM_FLAG_MAY_DUCK |
Indicates that background audio can be played with reduced volume.
|
AUDIO_STREAM_FLAG_MAY_RESUME |
Indicates that the background music continues being played after the
interruption ends.
|
AUDIO_STREAM_FLAG_MAY_WAITING_INTERRUPT |
Indicates that the background audio focus changes.
|
AUDIO_STREAM_FLAG_MUTE_HAPTIC |
Indicates force muting haptic channels.
|
AUDIO_STREAM_FLAG_NO_MEDIA_PROJECTION |
Indicates that the stream cannot be captured by third-party applications.
|
AUDIO_STREAM_FLAG_NO_SYSTEM_CAPTURE |
Indicates that the audio cannot be captured by any applications.
|
AUDIO_STREAM_FLAG_NONE |
Indicates that there is no specified flag.
|
AUDIO_STREAM_FLAG_SCO |
Indicates that the stream is associated with the Synchronous Connection Oriented (SCO) link.
|
AUDIO_STREAM_FLAG_SECURE |
Indicates that the stream will not lose signal quality only when it is received in a secure sink.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getValue() |
Obtains an enum value.
|
static AudioStreamInfo.AudioStreamFlag |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static AudioStreamInfo.AudioStreamFlag[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (AudioStreamInfo.AudioStreamFlag c : AudioStreamInfo.AudioStreamFlag.values()) System.out.println(c); |
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_NONE
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_AUDIBILITY_ENFORCED
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_SECURE
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_SCO
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_BEACON
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_HW_AV_SYNC
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_HW_HOTWORD
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_BYPASS_INTERRUPTION_POLICY
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_BYPASS_MUTE
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_LOW_LATENCY
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_DEEP_BUFFER
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_NO_MEDIA_PROJECTION
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_MUTE_HAPTIC
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_NO_SYSTEM_CAPTURE
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_DIRECT_OUTPUT
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_MAY_DUCK
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_MAY_RESUME
public static final AudioStreamInfo.AudioStreamFlag AUDIO_STREAM_FLAG_MAY_WAITING_INTERRUPT
public static AudioStreamInfo.AudioStreamFlag[] values()
for (AudioStreamInfo.AudioStreamFlag c : AudioStreamInfo.AudioStreamFlag.values()) System.out.println(c);
public static AudioStreamInfo.AudioStreamFlag valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()