Example usage for android.os Parcel readInt

List of usage examples for android.os Parcel readInt

Introduction

In this page you can find the example usage for android.os Parcel readInt.

Prototype

public final int readInt() 

Source Link

Document

Read an integer value from the parcel at the current dataPosition().

Usage

From source file:com.josephblough.sbt.criteria.LicensesAndPermitsSearchCriteria.java

private LicensesAndPermitsSearchCriteria(Parcel in) {
    searchBy = in.readInt();
    state = in.readString();//from   www . j a v  a2 s  .  com
    category = in.readString();
    businessType = in.readString();
    businessTypeSubfilter = in.readInt();
    businessTypeSubfilterLocality = in.readString();
}

From source file:com.cas.model.CourseContent.java

private CourseContent(Parcel in) {
    this.id = in.readInt();
    this.name = in.readString();
    this.visible = in.readInt();
    this.summary = in.readString();
    in.readTypedList(this.modules, Module.CREATOR);
}

From source file:br.ufrj.ppgi.jemf.mobile.bean.Equipment.java

/**
 * Equipment Parcelable Constructor.//from  w w w .  j  a v a 2 s .  com
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Equipment(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setStatusString(in.readString());
    setDescription(in.readString());
}

From source file:com.schedjoules.eventdiscovery.framework.utils.anims.AbstractAnimated.java

protected AbstractAnimated(Parcel in) {
    this((FragmentTransition) in.readParcelable(AbstractAnimated.class.getClassLoader()), in.readInt(),
            in.readInt(), in.readInt(), in.readInt());
}

From source file:com.facebook.notifications.internal.asset.ParcelableAssetHandler.java

@SuppressWarnings("unchecked")
public ParcelableAssetHandler(Parcel source) {
    boolean isParcelable = source.readInt() != 0;

    if (isParcelable) {
        handler = source.readParcelable(getClass().getClassLoader());
        exception = null;/*from   ww  w  .j  av  a2 s  .  co m*/
    } else {
        AssetManager.AssetHandler handler = null;
        InvalidParcelException exception = null;

        try {
            Class assetHandlerClass = (Class) Class.forName(source.readString(), true,
                    getClass().getClassLoader());
            handler = (AssetManager.AssetHandler) assetHandlerClass.newInstance();
        } catch (Exception ex) {
            exception = new InvalidParcelException(ex);
        }

        this.handler = handler;
        this.exception = exception;
    }
}

From source file:com.vk.sdk.api.model.VKApiPlace.java

/**
 * Creates a Place instance from Parcel.
 *//*w w  w  .ja v a 2s  . c o m*/
public VKApiPlace(Parcel in) {
    this.id = in.readInt();
    this.title = in.readString();
    this.latitude = in.readDouble();
    this.longitude = in.readDouble();
    this.created = in.readLong();
    this.checkins = in.readInt();
    this.updated = in.readLong();
    this.country_id = in.readInt();
    this.city_id = in.readInt();
    this.address = in.readString();
}

From source file:com.vk.sdk.api.model.VKApiComment.java

/**
 * Creates a Comment instance from Parcel.
 *//*from w w  w  .ja  va  2  s .c om*/
public VKApiComment(Parcel in) {
    this.id = in.readInt();
    this.from_id = in.readInt();
    this.date = in.readLong();
    this.text = in.readString();
    this.reply_to_user = in.readInt();
    this.reply_to_comment = in.readInt();
    this.likes = in.readInt();
    this.user_likes = in.readByte() != 0;
    this.can_like = in.readByte() != 0;
    this.attachments = in.readParcelable(VKAttachments.class.getClassLoader());
}

From source file:android.database.DatabaseUtils.java

public static void readExceptionWithFileNotFoundExceptionFromParcel(Parcel reply) throws FileNotFoundException {
    int code = reply.readInt();
    if (code == 0)
        return;//w  w w .  j av  a 2s. co  m
    String msg = reply.readString();
    if (code == 1) {
        throw new FileNotFoundException(msg);
    } else {
        DatabaseUtils.readExceptionFromParcel(reply, msg, code);
    }
}

From source file:com.vk.sdk.api.model.VKApiMessage.java

/**
 * Creates a Message instance from Parcel.
 *//*from  w  w  w.  j  a v a 2s . c om*/
public VKApiMessage(Parcel in) {
    this.id = in.readInt();
    this.user_id = in.readInt();
    this.date = in.readLong();
    this.read_state = in.readByte() != 0;
    this.out = in.readByte() != 0;
    this.title = in.readString();
    this.body = in.readString();
    this.attachments = in.readParcelable(VKAttachments.class.getClassLoader());
    this.fwd_messages = in.readParcelable(VKList.class.getClassLoader());
    this.emoji = in.readByte() != 0;
    this.deleted = in.readByte() != 0;
}

From source file:com.gmail.taneza.ronald.carbs.common.FoodItem.java

private FoodItem(Parcel parcel) {
    mTableName = parcel.readString();
    mId = parcel.readInt();
    mQuantity = parcel.readInt();
    mTimeAddedMsec = parcel.readLong();
}