Serializable, Comparable<AudioDeviceDescriptor.DeviceType>public static enum AudioDeviceDescriptor.DeviceType extends Enum<AudioDeviceDescriptor.DeviceType>
SystemCapability.Multimedia#AUDIO| 枚举常量 | 说明 |
|---|---|
ANALOG |
Indicates a device using an analog connection.
|
AUXILIARY |
Indicates an auxiliary connector.
|
BLUETOOTH_A2DP |
Indicates a Bluetooth device supporting the Advanced Audio Distribution Profile (A2DP).
|
BLUETOOTH_SCO |
Indicates a Bluetooth device used for telephony.
|
BUS |
Indicates a communication device with an external audio system.
|
DIGITAL |
Indicates a device using a digital connection.
|
DOCK |
Indicates a dock-associated device.
|
EARPIECE |
Indicates a pair of earphone built in a device.
|
FM |
Indicates a device transmitting audio signals using frequency modulation (FM).
|
FM_TUNER |
Indicates a device transmitting audio content using FM.
|
HDMI |
Indicates a device using a high-definition multimedia interface (HDMI) connection.
|
HDMI_ARC |
Indicates a device using the audio return channel (ARC) of an HDMI connection.
|
HEARING_AID |
Indicates a hearing aid.
|
INVALID |
Indicates an invalid device type.
|
IP |
Indicates a device connected over an IP network.
|
MIC |
Indicates a microphone built in a device.
|
SPEAKER |
Indicates a speaker built in a device.
|
TELEPHONY |
Indicates a device transmitting audio signals over the telephony network.
|
TV_TUNER |
Indicates a device transmitting audio content over the TV tuner system.
|
USB_ACCESSORY |
Indicates a USB device in accessory mode.
|
USB_DEVICE |
Indicates a USB device.
|
USB_HEADSET |
Indicates a USB audio headset.
|
WIRED_HEADPHONES |
Indicates a pair of wired earphones.
|
WIRED_HEADSET |
Indicates a headset, which is the combination of a pair of headphones and a microphone.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getValue() |
Obtains an enum value.
|
static AudioDeviceDescriptor.DeviceType |
valueOf(int value) |
Obtains a
DeviceType enum based on a specified device type number. |
static AudioDeviceDescriptor.DeviceType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static AudioDeviceDescriptor.DeviceType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (AudioDeviceDescriptor.DeviceType c : AudioDeviceDescriptor.DeviceType.values()) System.out.println(c); |
public static final AudioDeviceDescriptor.DeviceType INVALID
public static final AudioDeviceDescriptor.DeviceType EARPIECE
public static final AudioDeviceDescriptor.DeviceType SPEAKER
public static final AudioDeviceDescriptor.DeviceType WIRED_HEADSET
public static final AudioDeviceDescriptor.DeviceType WIRED_HEADPHONES
public static final AudioDeviceDescriptor.DeviceType ANALOG
public static final AudioDeviceDescriptor.DeviceType DIGITAL
public static final AudioDeviceDescriptor.DeviceType BLUETOOTH_SCO
public static final AudioDeviceDescriptor.DeviceType BLUETOOTH_A2DP
public static final AudioDeviceDescriptor.DeviceType HDMI
public static final AudioDeviceDescriptor.DeviceType HDMI_ARC
public static final AudioDeviceDescriptor.DeviceType USB_DEVICE
public static final AudioDeviceDescriptor.DeviceType USB_ACCESSORY
public static final AudioDeviceDescriptor.DeviceType DOCK
public static final AudioDeviceDescriptor.DeviceType FM
public static final AudioDeviceDescriptor.DeviceType MIC
public static final AudioDeviceDescriptor.DeviceType FM_TUNER
public static final AudioDeviceDescriptor.DeviceType TV_TUNER
public static final AudioDeviceDescriptor.DeviceType TELEPHONY
public static final AudioDeviceDescriptor.DeviceType AUXILIARY
public static final AudioDeviceDescriptor.DeviceType IP
public static final AudioDeviceDescriptor.DeviceType BUS
public static final AudioDeviceDescriptor.DeviceType USB_HEADSET
public static final AudioDeviceDescriptor.DeviceType HEARING_AID
public static AudioDeviceDescriptor.DeviceType[] values()
for (AudioDeviceDescriptor.DeviceType c : AudioDeviceDescriptor.DeviceType.values()) System.out.println(c);
public static AudioDeviceDescriptor.DeviceType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static AudioDeviceDescriptor.DeviceType valueOf(int value)
DeviceType enum based on a specified device type number.value - Indicates the type number of the DeviceType enum.DeviceType enum if the role number is valid; returns INVALID otherwise.public int getValue()