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.artemchep.horario.database.models.Subject.java

public Subject(Parcel source) {
    key = source.readString();//from   w w  w  .  j a  v  a  2s  . c o m
    data = source.readString();
    group = source.readString();
    name = source.readString();
    abbreviation = source.readString();
    color = source.readInt();
}

From source file:com.artemchep.horario.database.models.SubjectTask.java

public SubjectTask(Parcel source) {
    key = source.readString();/*from   w  ww. j a  v a  2  s  .com*/
    title = source.readString();
    description = source.readString();
    descriptionHtml = source.readString();
    type = source.readInt();
    due = source.readInt();

    if (source.readInt() == 1) {
        more = new SubjectTaskService(source);
    }
}

From source file:org.opendatakit.common.android.data.RawRow.java

public RawRow(RawUserTable userTable, Parcel in) {
    this.mUserTable = userTable;
    this.mRowId = in.readString();
    int count;/*from   ww w .ja  va 2  s  .c om*/
    count = in.readInt();
    this.mRowData = new String[count];
    in.readStringArray(mRowData);
}

From source file:com.tigerpenguin.places.model.Review.java

@SuppressWarnings("unchecked")
public Review(Parcel in) {
    aspectRatings = in.readArrayList(AspectRating.class.getClassLoader());
    authorName = in.readString();//from w ww.  jav  a  2 s. com
    authorUrl = in.readString();
    language = (Language) in.readSerializable();
    rating = in.readInt();
    text = in.readString();
    submitTime = in.readLong();
}

From source file:com.richtodd.android.quiltdesign.block.Quilt.java

public Quilt(Parcel in) {
    m_new = in.readInt() == 0 ? false : true;
    m_rowCount = in.readInt();/*ww  w  .jav a 2 s .  co m*/
    m_columnCount = in.readInt();
    m_width = in.readFloat();
    m_height = in.readFloat();
    m_rows = new ArrayList<ArrayList<QuiltBlock>>();

    for (int row = 0; row < m_rowCount; ++row) {
        for (int column = 0; column < m_columnCount; ++column) {
            QuiltBlock quiltBlock = (QuiltBlock) in.readParcelable(QuiltBlock.class.getClassLoader());
            setQuiltBlock(row, column, quiltBlock);
        }
    }
}

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

/**
 * Creates a Photo instance from Parcel.
 *//*w  ww.j  av  a  2 s  . c o  m*/
public VKApiPhoto(Parcel in) {
    this.id = in.readInt();
    this.album_id = in.readInt();
    this.owner_id = in.readInt();
    this.width = in.readInt();
    this.height = in.readInt();
    this.text = in.readString();
    this.date = in.readLong();
    this.src = in.readParcelable(VKPhotoSizes.class.getClassLoader());
    this.photo_75 = in.readString();
    this.photo_130 = in.readString();
    this.photo_604 = in.readString();
    this.photo_807 = in.readString();
    this.photo_1280 = in.readString();
    this.photo_2560 = in.readString();
    this.user_likes = in.readByte() != 0;
    this.can_comment = in.readByte() != 0;
    this.likes = in.readInt();
    this.comments = in.readInt();
    this.tags = in.readInt();
    this.access_key = in.readString();
}

From source file:com.richtodd.android.quiltdesign.block.PaperPiecedBlock.java

private PaperPiecedBlock(Parcel in) {
    m_dirty = in.readInt() == 0 ? false : true;
    m_width = in.readFloat();//  w  ww .  j  a  va2  s  . c o  m
    m_height = in.readFloat();
    m_backgroundColor = in.readInt();
    m_pieces = new ArrayList<PaperPiecedBlockPiece>();

    in.readTypedList(m_pieces, PaperPiecedBlockPiece.CREATOR);

    m_backgroundPaint = new Paint();
    m_backgroundPaint.setStyle(Style.FILL);
    m_backgroundPaint.setColor(m_backgroundColor);

    m_backgroundPaintWhite = new Paint();
    m_backgroundPaintWhite.setStyle(Style.FILL);
    m_backgroundPaintWhite.setColor(Color.WHITE);
}

From source file:com.paranoid.gerrit.objects.CommitterObject.java

public CommitterObject(Parcel parcel) {
    mName = parcel.readString();/*from w w w. j a  v  a2 s  . c om*/
    mEmail = parcel.readString();
    mDate = parcel.readString();
    mTimezone = parcel.readString();
    mAccountId = parcel.readInt();
    mState = parcel.readString();
}

From source file:com.artemchep.horario.models.Lesson.java

public Lesson(Parcel source) {
    key = source.readString();//w w w.j a  v  a2s .c  om
    subject = source.readString();
    teacher = source.readString();
    place = source.readString();
    info = source.readString();
    timeStart = source.readInt();
    timeEnd = source.readInt();
    day = source.readInt();
    week = source.readInt();
    type = source.readInt();
}

From source file:com.artemchep.horario.database.models.SubjectGroupLesson.java

public SubjectGroupLesson(Parcel source) {
    key = source.readString();//from   w  ww.  j ava2  s . co m
    subject = source.readString();
    teacher = source.readString();
    place = source.readString();
    info = source.readString();
    timeStart = source.readInt();
    timeEnd = source.readInt();
    day = source.readInt();
    week = source.readInt();
    type = source.readInt();
}