Fields Summary |
---|
public static final int | TYPE_UNKNOWNA device type associated with an unknown or uninitialized device. |
public static final int | TYPE_BUILTIN_EARPIECEA device type describing the attached earphone speaker. |
public static final int | TYPE_BUILTIN_SPEAKERA device type describing the speaker system (i.e. a mono speaker or stereo speakers) built
in a device. |
public static final int | TYPE_WIRED_HEADSETA device type describing a headset, which is the combination of a headphones and microphone. |
public static final int | TYPE_WIRED_HEADPHONESA device type describing a pair of wired headphones . |
public static final int | TYPE_LINE_ANALOGA device type describing an analog line-level connection. |
public static final int | TYPE_LINE_DIGITALA device type describing a digital line connection (e.g. SPDIF). |
public static final int | TYPE_BLUETOOTH_SCOA device type describing a Bluetooth device typically used for telephony . |
public static final int | TYPE_BLUETOOTH_A2DPA device type describing a Bluetooth device supporting the A2DP profile. |
public static final int | TYPE_HDMIA device type describing an HDMI connection . |
public static final int | TYPE_HDMI_ARCA device type describing the Audio Return Channel of an HDMI connection. |
public static final int | TYPE_USB_DEVICEA device type describing a USB audio device. |
public static final int | TYPE_USB_ACCESSORYA device type describing a USB audio device in accessory mode. |
public static final int | TYPE_DOCKA device type describing the audio device associated with a dock. |
public static final int | TYPE_FMA device type associated with the transmission of audio signals over FM. |
public static final int | TYPE_BUILTIN_MICA device type describing the microphone(s) built in a device. |
public static final int | TYPE_FM_TUNERA device type for accessing the audio content transmitted over FM. |
public static final int | TYPE_TV_TUNERA device type for accessing the audio content transmitted over the TV tuner system. |
public static final int | TYPE_TELEPHONYA device type describing the transmission of audio signals over the telephony network. |
public static final int | TYPE_AUX_LINEA device type describing the auxiliary line-level connectors. |
AudioDevicePortConfig | mConfig |
private static final android.util.SparseIntArray | INT_TO_EXT_DEVICE_MAPPING |
private static final android.util.SparseIntArray | EXT_TO_INT_DEVICE_MAPPING |
Methods Summary |
---|
public static int | convertDeviceTypeToInternalDevice(int deviceType)
return EXT_TO_INT_DEVICE_MAPPING.get(deviceType, AudioSystem.DEVICE_NONE);
|
public static int | convertInternalDeviceToDeviceType(int intDevice)
return INT_TO_EXT_DEVICE_MAPPING.get(intDevice, TYPE_UNKNOWN);
|
public java.lang.String | getAddress()
return mConfig.port().address();
|
public int | getDeviceType()
return INT_TO_EXT_DEVICE_MAPPING.get(mConfig.port().type(), TYPE_UNKNOWN);
|
public boolean | isInputDevice()
return (mConfig.port().role() == AudioPort.ROLE_SOURCE);
|
public boolean | isOutputDevice()
return (mConfig.port().role() == AudioPort.ROLE_SINK);
|