FileDocCategorySizeDatePackage
TvStreamConfig.javaAPI DocAndroid 5.1 API5246Thu Mar 12 22:22:30 GMT 2015android.media.tv

TvStreamConfig

public class TvStreamConfig extends Object implements android.os.Parcelable
hide

Fields Summary
static final String
TAG
public static final int
STREAM_TYPE_INDEPENDENT_VIDEO_SOURCE
public static final int
STREAM_TYPE_BUFFER_PRODUCER
private int
mStreamId
private int
mType
private int
mMaxWidth
private int
mMaxHeight
private int
mGeneration
Generations are incremented once framework receives STREAM_CONFIGURATION_CHANGED event from HAL module. Framework should throw away outdated configurations and get new configurations via tv_input_device::get_stream_configurations().
public static final Parcelable.Creator
CREATOR
Constructors Summary
private TvStreamConfig()


      
Methods Summary
public intdescribeContents()

        return 0;
    
public booleanequals(java.lang.Object obj)

        if (obj == null) return false;
        if (!(obj instanceof TvStreamConfig)) return false;

        TvStreamConfig config = (TvStreamConfig) obj;
        return config.mGeneration == mGeneration
            && config.mStreamId == mStreamId
            && config.mType == mType
            && config.mMaxWidth == mMaxWidth
            && config.mMaxHeight == mMaxHeight;
    
public intgetGeneration()

        return mGeneration;
    
public intgetMaxHeight()

        return mMaxHeight;
    
public intgetMaxWidth()

        return mMaxWidth;
    
public intgetStreamId()

        return mStreamId;
    
public intgetType()

        return mType;
    
public java.lang.StringtoString()

        StringBuilder b = new StringBuilder(128);
        b.append("TvStreamConfig {");
        b.append("mStreamId=").append(mStreamId).append(";");
        b.append("mType=").append(mType).append(";");
        b.append("mGeneration=").append(mGeneration).append("}");
        return b.toString();
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(mStreamId);
        dest.writeInt(mType);
        dest.writeInt(mMaxWidth);
        dest.writeInt(mMaxHeight);
        dest.writeInt(mGeneration);