FileDocCategorySizeDatePackage
TvInputHardwareInfo.javaAPI DocAndroid 5.1 API5997Thu Mar 12 22:22:30 GMT 2015android.media.tv

TvInputHardwareInfo

public final class TvInputHardwareInfo extends Object implements android.os.Parcelable
Simple container for information about TV input hardware. Not for third-party developers.
hide

Fields Summary
static final String
TAG
public static final int
TV_INPUT_TYPE_OTHER_HARDWARE
public static final int
TV_INPUT_TYPE_TUNER
public static final int
TV_INPUT_TYPE_COMPOSITE
public static final int
TV_INPUT_TYPE_SVIDEO
public static final int
TV_INPUT_TYPE_SCART
public static final int
TV_INPUT_TYPE_COMPONENT
public static final int
TV_INPUT_TYPE_VGA
public static final int
TV_INPUT_TYPE_DVI
public static final int
TV_INPUT_TYPE_HDMI
public static final int
TV_INPUT_TYPE_DISPLAY_PORT
public static final Parcelable.Creator
CREATOR
private int
mDeviceId
private int
mType
private int
mAudioType
private String
mAudioAddress
private int
mHdmiPortId
Constructors Summary
private TvInputHardwareInfo()


      
    
Methods Summary
public intdescribeContents()

        return 0;
    
public java.lang.StringgetAudioAddress()

        return mAudioAddress;
    
public intgetAudioType()

        return mAudioType;
    
public intgetDeviceId()

        return mDeviceId;
    
public intgetHdmiPortId()

        if (mType != TV_INPUT_TYPE_HDMI) {
            throw new IllegalStateException();
        }
        return mHdmiPortId;
    
public intgetType()

        return mType;
    
public voidreadFromParcel(android.os.Parcel source)

        mDeviceId = source.readInt();
        mType = source.readInt();
        mAudioType = source.readInt();
        mAudioAddress = source.readString();
        if (mType == TV_INPUT_TYPE_HDMI) {
            mHdmiPortId = source.readInt();
        }
    
public java.lang.StringtoString()

        StringBuilder b = new StringBuilder(128);
        b.append("TvInputHardwareInfo {id=").append(mDeviceId);
        b.append(", type=").append(mType);
        b.append(", audio_type=").append(mAudioType);
        b.append(", audio_addr=").append(mAudioAddress);
        if (mType == TV_INPUT_TYPE_HDMI) {
            b.append(", hdmi_port=").append(mHdmiPortId);
        }
        b.append("}");
        return b.toString();
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(mDeviceId);
        dest.writeInt(mType);
        dest.writeInt(mAudioType);
        dest.writeString(mAudioAddress);
        if (mType == TV_INPUT_TYPE_HDMI) {
            dest.writeInt(mHdmiPortId);
        }