FileDocCategorySizeDatePackage
Duration.javaAPI DocAndroid 5.1 API2095Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.cat

Duration

public class Duration extends Object implements android.os.Parcelable
Class for representing "Duration" object for CAT. {@hide}

Fields Summary
public int
timeInterval
public TimeUnit
timeUnit
public static final Parcelable.Creator
CREATOR
Constructors Summary
public Duration(int timeInterval, TimeUnit timeUnit)

param
timeInterval Between 1 and 255 inclusive.

        this.timeInterval = timeInterval;
        this.timeUnit = timeUnit;
    
private Duration(android.os.Parcel in)

        timeInterval = in.readInt();
        timeUnit = TimeUnit.values()[in.readInt()];
    
Methods Summary
public intdescribeContents()

        return 0;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(timeInterval);
        dest.writeInt(timeUnit.ordinal());