Example usage for android.os Parcel writeInt

List of usage examples for android.os Parcel writeInt

Introduction

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

Prototype

public final void writeInt(int val) 

Source Link

Document

Write an integer value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Usage

From source file:com.github.michalbednarski.intentslab.browser.ApplicationFetcher.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(appType);
    dest.writeString(requireMetaDataSubstring);
}

From source file:fr.cph.chicago.entity.BikeStation.java

@Override
public final void writeToParcel(final Parcel dest, final int flags) {
    dest.writeInt(id);
    dest.writeString(name);/* w ww.  j a  v  a 2 s.co  m*/
    dest.writeInt(availableDocks);
    dest.writeInt(totalDocks);
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
    dest.writeString(statusValue);
    dest.writeString(statusKey);
    dest.writeInt(availableBikes);
    dest.writeString(stAddress1);
    dest.writeString(stAddress2);
    dest.writeString(city);
    dest.writeString(postalCode);
    dest.writeString(location);
    dest.writeString(altitude);
    dest.writeString(String.valueOf(testStation));
    dest.writeString(lastCommunicationTime);
    dest.writeString(landMark);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.title);
    dest.writeInt(this.size);
    dest.writeInt(this.privacy);
    dest.writeString(this.description);
    dest.writeInt(this.owner_id);
    dest.writeByte(can_upload ? (byte) 1 : (byte) 0);
    dest.writeLong(this.updated);
    dest.writeLong(this.created);
    dest.writeInt(this.thumb_id);
    dest.writeString(this.thumb_src);
    dest.writeParcelable(this.photo, flags);
}

From source file:com.csipsimple.models.RemoteLibInfo.java

@Override
public void writeToParcel(Parcel arg0, int arg1) {
    arg0.writeInt(PrimaryKey);
    arg0.writeString(fileName);/*from  w ww.  j a  v a  2 s .  c  o  m*/
    arg0.writeString(filePath.getAbsolutePath());
    arg0.writeString(uri.toString());
    arg0.writeString(version);
    arg0.writeString(label);
    arg0.writeString(changelog);
    arg0.writeString(description);
    arg0.writeString(id);
}

From source file:com.auth0.android.lock.internal.configuration.Theme.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(headerTitle);
    dest.writeInt(headerLogo);//w w w  .  j  av a 2 s.  c  o  m
    dest.writeInt(headerColor);
    dest.writeInt(headerTitleColor);
    dest.writeInt(primaryColor);
    dest.writeInt(darkPrimaryColor);
}

From source file:com.jbirdvegas.mgerrit.objects.GooFileObject.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeInt(mId);
    parcel.writeString(mFileName);/*  w  w  w .  j  a v a  2s . c  om*/
    parcel.writeString(mPath);
    parcel.writeString(mFolder);
    parcel.writeString(mMd5);
    parcel.writeString(mType);
    parcel.writeString(mDescription);
    parcel.writeString(String.valueOf(mIsFlashable));
    parcel.writeLong(mModified);
    parcel.writeLong(mDownloads);
    parcel.writeInt(mStatus);
    parcel.writeString(mAdditionalInfo);
    parcel.writeString(mShortUrl);
    parcel.writeInt(mDeveloperId);
    parcel.writeString(mRO_DeveloperId);
    parcel.writeString(mRO_Board);
    parcel.writeString(mRO_Rom);
    parcel.writeInt(mRO_Version);
    parcel.writeLong(mGappsPackage);
    parcel.writeInt(mIncrementalFile);
    parcel.writeString(mGappsLink);
    parcel.writeString(mGappsMd5);
}

From source file:org.opendatakit.database.queries.BindArgs.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    if (bindArgs == null) {
        dest.writeInt(-1);
    } else {/*from  ww  w . j  a va  2 s .c o  m*/
        dest.writeInt(bindArgs.length);
        for (Object bindArg : bindArgs) {
            marshallObject(dest, bindArg);
        }
    }
}

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

/**
 * Write Team data to Parcelable. /*w w w. j a v a2s .c o m*/
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(getLeader());
    dest.writeList(getMembers());
    dest.writeInt(getId());
    dest.writeString(getName());
}

From source file:org.immopoly.android.model.Flat.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(uid);
    dest.writeString(name);//from ww w  .j ava2 s.  co m
    dest.writeString(description);
    dest.writeString(city);
    dest.writeString(titlePictureSmall);
    dest.writeString(priceValue);
    dest.writeString(currency);
    dest.writeString(priceIntervaleType);
    dest.writeDouble(lat);
    dest.writeDouble(lng);
    dest.writeLong(creationDate);
}

From source file:org.ale.scanner.zotero.data.BibItem.java

@Override
public void writeToParcel(Parcel p, int flags) {
    p.writeInt(mId);
    p.writeLong(mCreationDate);//from  w  w w. j  a v  a  2 s  .  c om
    p.writeInt(mType);
    p.writeString(mInfo.toString());
    p.writeInt(mAcctId);
    p.writeInt(mSelected); // must be last
}