List of usage examples for android.os Parcel writeInt
public final void writeInt(int val)
From source file:net.henriquerocha.android.codebits.api.Talk.java
public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.id); dest.writeString(this.title); dest.writeString(this.author); dest.writeString(this.description); dest.writeString(this.proposed); dest.writeInt(this.upVotes); dest.writeInt(this.downVotes); dest.writeString(this.rate); }
From source file:edu.umich.flowfence.common.TaintSet.java
@Override public void writeToParcel(Parcel dest, int flags) { int numTaints = taints.size(); dest.writeInt(numTaints); for (Map.Entry<ComponentName, Float> entry : taints.entrySet()) { entry.getKey().writeToParcel(dest, flags); dest.writeFloat(entry.getValue()); }/*from ww w . ja v a 2 s . c o m*/ }
From source file:com.google.sample.beaconservice.Beacon.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(type);//www . j a va2s . c o m dest.writeByteArray(id); dest.writeString(status); if (placeId != null) { dest.writeInt(1); dest.writeString(placeId); } else { dest.writeInt(0); } if (latitude != null) { dest.writeInt(1); dest.writeDouble(latitude); } else { dest.writeInt(0); } if (longitude != null) { dest.writeInt(1); dest.writeDouble(longitude); } else { dest.writeInt(0); } if (expectedStability != null) { dest.writeInt(1); dest.writeString(expectedStability); } else { dest.writeInt(0); } if (description != null) { dest.writeInt(1); dest.writeString(description); } else { dest.writeInt(0); } }
From source file:com.cas.model.Content.java
public void writeToParcel(Parcel dest, int flags) { dest.writeString(type);/*from w w w. j a va2 s .c o m*/ dest.writeString(filename); dest.writeString(filepath); dest.writeInt(filesize); dest.writeString(fileurl); dest.writeString(content); dest.writeLong(timecreated); dest.writeLong(timemodified); dest.writeInt(sortorder); dest.writeInt(userid); dest.writeString(author); dest.writeString(license); dest.writeString(transition); dest.writeString(mode); }
From source file:com.sayar.requests.Response.java
public void writeToParcel(final Parcel dest, final int flags) { dest.writeString(this.parsedAs); dest.writeString(this.raw); dest.writeString(this.statusMessage); dest.writeInt(this.code); // TODO://w w w .j ava 2 s . c o m // dest.writeString(responseVersion.getProtocol()); }
From source file:com.llc.bumpr.sdk.models.Driver.java
@Override public void writeToParcel(Parcel dest, int flags) { // TODO Auto-generated method stub dest.writeInt(id); dest.writeDouble(fee);/*from w w w.j a v a 2s . c o m*/ dest.writeString(licenseId); dest.writeString(insuranceId); dest.writeDouble(balance); dest.writeByte((byte) (active ? 1 : 0)); dest.writeList(requests); }
From source file:com.vk.sdk.api.model.VKApiPhotoSize.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.src); dest.writeInt(this.width); dest.writeInt(this.height); dest.writeInt((int) this.type); }
From source file:vandy.mooc.model.provider.Video.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeLong(id);//from w w w .j av a2 s . c o m dest.writeString(title); dest.writeLong(duration); dest.writeString(location); dest.writeString(subject); dest.writeString(contentType); dest.writeDouble(rating); dest.writeInt(count); }
From source file:fr.free.nrw.commons.contributions.Contribution.java
@Override public void writeToParcel(Parcel parcel, int flags) { super.writeToParcel(parcel, flags); parcel.writeParcelable(contentUri, flags); parcel.writeString(source);// w w w .ja va 2 s .c o m parcel.writeInt(state); parcel.writeLong(transferred); parcel.writeInt(isMultiple ? 1 : 0); }
From source file:io.openkit.OKAchievement.java
@Override public void writeToParcel(Parcel out, int flags) { //private String name; out.writeString(name);// w ww . j ava 2 s . co m //private int OKAPP_id; out.writeInt(OKAPP_id); //private int achievementId; out.writeInt(achievementId); //private boolean inDevelopment; out.writeInt(boolToInt(inDevelopment)); //private String unlockedIconUrl; out.writeString(unlockedIconUrl); //private String lockedIconUrl; out.writeString(lockedIconUrl); //private int points; out.writeInt(points); //private int goal; out.writeInt(goal); //private int progress; out.writeInt(progress); //private String description out.writeString(description); }