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.codebutler.farebot.card.desfire.DesfireFile.java

public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeInt(mId);
    if (this instanceof InvalidDesfireFile) {
        parcel.writeInt(1);//from  w  w  w  .  ja  v a  2  s .  c om
        parcel.writeString(((InvalidDesfireFile) this).getErrorMessage());
    } else {
        parcel.writeInt(0);
        parcel.writeParcelable(mSettings, 0);
        parcel.writeInt(mData.length);
        parcel.writeByteArray(mData);
    }
}

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

@Override
public final void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(mDelegate, flags);
    dest.writeInt(mEnter);
    dest.writeInt(mExit);//from ww w.  j a  v a2s  .  c om
    dest.writeInt(mPopEnter);
    dest.writeInt(mPopExit);
}

From source file:com.github.capone.protocol.entities.Service.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(name);//from ww w .j  a  va 2  s .  c om
    dest.writeString(category);
    dest.writeInt(port);
}

From source file:org.dmfs.android.microfragments.demo.microfragments.IntermediateLoaderMicroFragment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mArgument.data());
    dest.writeParcelable(mArgument.nextStep().boxed(), flags);
}

From source file:at.diamonddogs.data.adapter.parcelable.ParcelableAdapterWebRequest.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(dataObject.getProcessorId());
    dest.writeSerializable(dataObject.getRequestType());
    dest.writeSerializable(dataObject.getUrl());
    dest.writeInt(dataObject.getReadTimeout());
    dest.writeInt(dataObject.getConnectionTimeout());

    // Parcel.writeBoolean is missing m(
    // workaround: http://code.google.com/p/android/issues/detail?id=5973
    dest.writeInt(dataObject.isFollowRedirects() ? 1 : 0);
    dest.writeInt(dataObject.getTmpFile().first ? 1 : 0);
    if (dataObject.getTmpFile().first) {
        dest.writeParcelable(new ParcelableAdapterTempFile(dataObject.getTmpFile().second), 0);
    }/*from www . ja v  a  2  s  .c o m*/

    writeStringMap(dest, dataObject.getHeader());
    dest.writeLong(dataObject.getCacheTime());
    dest.writeInt(dataObject.getNumberOfRetries());
    dest.writeInt(dataObject.getRetryInterval());

    dest.writeInt(dataObject.isCancelled() ? 1 : 0);
    dest.writeInt(dataObject.isCheckConnectivity() ? 1 : 0);
    dest.writeInt(dataObject.isCheckConnectivityPing() ? 1 : 0);
    dest.writeInt(dataObject.isUseOfflineCache() ? 1 : 0);
}

From source file:com.example.android.directboot.alarms.Alarm.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeInt(id);
    parcel.writeInt(month);// w ww  .  j a  v  a2s.  c  om
    parcel.writeInt(date);
    parcel.writeInt(hour);
    parcel.writeInt(minute);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.user_id);
    dest.writeString(this.title);
    dest.writeString(this.text);
    dest.writeLong(this.date);
    dest.writeInt(this.comments);
    dest.writeInt(this.read_comments);
}

From source file:com.markupartist.sthlmtraveling.data.models.Route.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(duration);
    dest.writeTypedList(legs);//from  w  ww.jav a  2s . c om
    dest.writeString(mode);
    dest.writeParcelable(fare, flags);
}

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

public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(searchBy);
    dest.writeString(state);/*from  ww w  .  j a  va  2  s . co m*/
    dest.writeString(category);
    dest.writeString(businessType);
    dest.writeInt(businessTypeSubfilter);
    dest.writeString(businessTypeSubfilterLocality);
}

From source file:com.codebutler.farebot.card.Card.java

public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeInt(mTagId.length);
    parcel.writeByteArray(mTagId);/*from  ww  w.  j  av  a2s .c  o  m*/
    parcel.writeLong(mScannedAt.getTime());
}