List of usage examples for android.os Parcel writeLong
public final void writeLong(long val)
From source file:com.nextgis.firereporter.ScanexNotificationItem.java
public void writeToParcel(Parcel out, int flags) { out.writeSerializable(dt); // private Date dt; out.writeDouble(X);// w ww. j a v a 2s. c o m out.writeDouble(Y); // private double X,Y; out.writeInt(nIconId); // private nIconId; out.writeLong(nID); // private long nFid; out.writeInt(nConfidence); // private int nConfidence; out.writeInt(nPower); // private int nPower; out.writeString(sURL1); // private String sURL1 out.writeString(sURL2); // private String sURL2 out.writeString(sType); // private String sType out.writeString(sPlace); // private String sPlace out.writeString(sMap); // private String sMap out.writeInt(mbWatched == true ? 1 : 0); // private boolean mbWatched // out.writeInt(nFormat); out.writeString(sCoordLat); out.writeString(sCoordLon); out.writeString(sN); out.writeString(sS); out.writeString(sW); out.writeString(sE); }
From source file:com.kevinquan.android.location.SimpleRecordedLocation.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeDouble(mLatitude);/*from ww w. j a v a2 s .c o m*/ dest.writeDouble(mLongitude); dest.writeFloat(mAccuracy); dest.writeDouble(mAltitude); dest.writeFloat(mBearing); dest.writeFloat(mSpeed); dest.writeLong(mRecordedAt); dest.writeString(mProvider.toString()); }
From source file:com.fanfou.app.opensource.api.bean.Status.java
@Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeString(this.id); dest.writeString(this.ownerId); dest.writeLong(this.createdAt.getTime()); dest.writeInt(this.type); dest.writeString(this.text); dest.writeString(this.simpleText); dest.writeString(this.source); dest.writeString(this.inReplyToStatusId); dest.writeString(this.inReplyToUserId); dest.writeString(this.inReplyToScreenName); dest.writeString(this.photoImageUrl); dest.writeString(this.photoLargeUrl); dest.writeString(this.photoThumbUrl); dest.writeString(this.userId); dest.writeString(this.userScreenName); dest.writeString(this.userProfileImageUrl); dest.writeInt(this.truncated ? 1 : 0); dest.writeInt(this.favorited ? 1 : 0); dest.writeInt(this.self ? 1 : 0); dest.writeInt(this.isRead ? 1 : 0); dest.writeInt(this.isThread ? 1 : 0); dest.writeInt(this.hasPhoto ? 1 : 0); dest.writeInt(this.special ? 1 : 0); }
From source file:com.baasbox.android.BaasLink.java
@Override public void writeToParcel(Parcel dest, int flags) { Util.writeOptString(dest, id); Util.writeOptString(dest, label); Util.writeOptString(dest, author); Util.writeOptString(dest, creationDate); dest.writeLong(version); writeObject(dest, source);//from ww w . ja va 2s. c o m writeObject(dest, destination); }
From source file:org.immopoly.android.model.Flat.java
public void writeToParcel(Parcel dest, int flags) { dest.writeInt(uid);//from w ww.j a v a 2s . co m dest.writeString(name); 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:io.github.hidroh.materialistic.data.HackerNewsItem.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeLong(id); dest.writeString(title);/* ww w.j a v a 2 s. c o m*/ dest.writeLong(time); dest.writeString(by); dest.writeLongArray(kids); dest.writeString(url); dest.writeString(text); dest.writeString(type); dest.writeInt(favorite ? 1 : 0); dest.writeInt(descendants); dest.writeInt(score); dest.writeInt(favorite ? 1 : 0); dest.writeInt(viewed ? 1 : 0); dest.writeInt(localRevision); dest.writeInt(level); dest.writeInt(dead ? 1 : 0); dest.writeInt(deleted ? 1 : 0); dest.writeInt(collapsed ? 1 : 0); dest.writeInt(contentExpanded ? 1 : 0); dest.writeInt(rank); dest.writeInt(lastKidCount); dest.writeInt(hasNewDescendants ? 1 : 0); dest.writeLong(parent); dest.writeInt(voted ? 1 : 0); dest.writeInt(pendingVoted ? 1 : 0); dest.writeLong(next); dest.writeLong(previous); }
From source file:com.ksk.droidbatterybooster.provider.TimeSchedule.java
@Override public void writeToParcel(Parcel p, int flags) { p.writeLong(id); p.writeInt(enabled ? 1 : 0);/*from w w w. j a v a2 s .c om*/ p.writeInt(hour); p.writeInt(minutes); p.writeInt(daysOfWeek.getCoded()); p.writeLong(time); p.writeLong(modeId); }
From source file:com.android.emailcommon.provider.HostAuth.java
/** * Supports Parcelable/*from w ww . ja v a2s .co m*/ */ @Override public void writeToParcel(Parcel dest, int flags) { // mBaseUri is not parceled dest.writeLong(mId); dest.writeString(mProtocol); dest.writeString(mAddress); dest.writeInt(mPort); dest.writeInt(mFlags); dest.writeString(mLogin); dest.writeString(mPassword); dest.writeString(mDomain); dest.writeString(mClientCertAlias); if ((mFlags & FLAG_OAUTH) != 0) { // TODO: This is nasty, but to be compatible with backward Exchange, we can't make any // change to the parcelable format. But we need Credential objects to be here. // So... only parcel or unparcel Credentials if the OAUTH flag is set. This will never // be set on HostAuth going to or coming from Exchange. dest.writeLong(mCredentialKey); if (mCredential == null) { Credential.EMPTY.writeToParcel(dest, flags); } else { mCredential.writeToParcel(dest, flags); } } }
From source file:com.amossys.hooker.common.InterceptEvent.java
/** * Write to the parcel to build the class. *//*ww w . j a v a 2 s .c o m*/ @Override public void writeToParcel(Parcel out, int flags) { out.writeString(idEvent.toString()); out.writeString(IDXP); out.writeLong(timestamp); out.writeLong(relativeTimestamp); out.writeString(hookerName); out.writeInt(intrusiveLevel); out.writeInt(instanceID); out.writeString(packageName); out.writeString(className); out.writeString(methodName); writeParametersList(out); writeReturnsEntry(out); writeDataMap(out); }
From source file:com.vk.sdk.api.model.VKApiVideo.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.id); dest.writeInt(this.owner_id); dest.writeInt(this.album_id); dest.writeString(this.title); dest.writeString(this.description); dest.writeInt(this.duration); dest.writeString(this.link); dest.writeLong(this.date); dest.writeInt(this.views); dest.writeString(this.player); dest.writeString(this.photo_130); dest.writeString(this.photo_320); dest.writeString(this.photo_640); dest.writeParcelable(this.photo, flags); dest.writeString(this.access_key); dest.writeInt(this.comments); dest.writeByte(can_comment ? (byte) 1 : (byte) 0); dest.writeByte(can_repost ? (byte) 1 : (byte) 0); dest.writeByte(user_likes ? (byte) 1 : (byte) 0); dest.writeByte(repeat ? (byte) 1 : (byte) 0); dest.writeInt(this.likes); dest.writeInt(this.privacy_view); dest.writeInt(this.privacy_comment); dest.writeString(this.mp4_240); dest.writeString(this.mp4_360); dest.writeString(this.mp4_480); dest.writeString(this.mp4_720); dest.writeString(this.external); }