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.cuddlesoft.norilib.SearchResult.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(images);//  www  .  ja v  a2  s.  c  om
    dest.writeInt(offset);
    dest.writeTypedArray(query, 0);
    dest.writeByte((byte) (hasNextPage ? 0x01 : 0x00));
}

From source file:com.ksk.droidbatterybooster.provider.PowerSchedule.java

@Override
public void writeToParcel(Parcel p, int flags) {
    p.writeLong(id);//from w  w w  .  j  a v  a  2s  . c o m
    p.writeInt(enabled ? 1 : 0);
    p.writeInt(level);
    p.writeLong(modeId);
}

From source file:ca.frozen.rpicameraviewer.classes.Source.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(conTypeToInt(connectionType));
    dest.writeString(address);/* ww  w  .  j  av  a2s  . c  o m*/
    dest.writeInt(port);
    dest.writeInt(width);
    dest.writeInt(height);
    dest.writeInt(fps);
    dest.writeInt(bps);
}

From source file:edu.umich.flowfence.common.QMDescriptor.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(kind);
    definingClass.writeToParcel(dest, flags);
    dest.writeString(methodName);// w w w  . j  ava  2 s  .c o m
    dest.writeStringList(paramTypes);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(key);//from   w w w.j  a  v  a 2 s .  co m
    dest.writeString(name);
    dest.writeString(abbreviation);
    dest.writeString(info);
    dest.writeInt(color);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(key);/*from w w w.j  a v a2 s .c om*/
    dest.writeString(name);
    dest.writeString(info);
    dest.writeString(abbreviation);
    dest.writeInt(color);
}

From source file:com.schedjoules.eventdiscovery.framework.microfragments.eventdetails.ShowEventMicroFragment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(mEvent instanceof Parcelable ? (Parcelable) mEvent : new ParcelableEvent(mEvent),
            flags);//from ww w  .j  av a 2  s. c  o m
    dest.writeInt(mActionLinks.size());
    for (Link link : mActionLinks) {
        dest.writeParcelable(link instanceof Parcelable ? (Parcelable) link : new ParcelableLink(link), flags);
    }
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(key);/*from   w  w  w  .ja va 2s. c  om*/
    dest.writeString(name);
    dest.writeString(privateKey);
    dest.writeString(publicAddress);
    dest.writeInt(isCopy ? 1 : 0);
}

From source file:com.irateam.vkplayer.models.Audio.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);
    dest.writeInt(ownerId);//  w  w  w  .  j av a2s . c om
    dest.writeString(artist);
    dest.writeString(title);
    dest.writeInt(duration);
    dest.writeString(url);
    dest.writeInt(lyricsId);
    dest.writeInt(albumId);
    dest.writeInt(genre);
    dest.writeString(accessKey);
    dest.writeString(getCachePath());
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(key);//from  ww  w .  j a v a 2  s . com
    dest.writeString(title);
    dest.writeString(summary);
    dest.writeString(author);
    dest.writeInt(priority);
    dest.writeLong(timestamp);
}