List of usage examples for android.os Parcel writeInt
public final void writeInt(int val)
From source file:com.notalenthack.blaster.Command.java
@Override public void writeToParcel(Parcel parcel, int flags) { parcel.writeString(mName);/*from w w w . j a va 2 s. co m*/ parcel.writeString(mCommandStart); parcel.writeString(mCommandStop); parcel.writeString(mCommandStat); parcel.writeInt(mCommandResId); parcel.writeInt(mStatus.ordinal()); parcel.writeInt(mKillMethod.ordinal()); parcel.writeInt(mCpuUsage); parcel.writeByte((byte) (mDisplayOutput ? 1 : 0)); parcel.writeByte((byte) (mDisplayStatus ? 1 : 0)); parcel.writeByte((byte) (mSystemCmd ? 1 : 0)); }
From source file:com.marianhello.cordova.bgloc.Config.java
public void writeToParcel(Parcel out, int flags) { out.writeFloat(getStationaryRadius()); out.writeInt(getDistanceFilter()); out.writeInt(getDesiredAccuracy());// www .j a v a2 s .c o m out.writeValue(isDebugging()); out.writeString(getNotificationTitle()); out.writeString(getNotificationText()); out.writeString(getLargeNotificationIcon()); out.writeString(getSmallNotificationIcon()); out.writeString(getNotificationIconColor()); out.writeValue(getStopOnTerminate()); out.writeValue(getStartOnBoot()); out.writeValue(getStartForeground()); out.writeInt(getServiceProvider().asInt()); out.writeInt(getInterval()); out.writeInt(getFastestInterval()); out.writeInt(getActivitiesInterval()); out.writeString(getUrl()); out.writeString(getMethod()); out.writeSerializable(getHeaders()); out.writeSerializable(getParams()); }
From source file:android.net.ProxyInfo.java
/** * Implement the Parcelable interface./* w w w. ja va 2 s .co m*/ * @hide */ public void writeToParcel(Parcel dest, int flags) { if (!Uri.EMPTY.equals(mPacFileUrl)) { dest.writeByte((byte) 1); mPacFileUrl.writeToParcel(dest, 0); dest.writeInt(mPort); return; } else { dest.writeByte((byte) 0); } if (mHost != null) { dest.writeByte((byte) 1); dest.writeString(mHost); dest.writeInt(mPort); } else { dest.writeByte((byte) 0); } dest.writeString(mExclusionList); dest.writeStringArray(mParsedExclusionList); }
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 w w . jav a 2s .co 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.fanfou.app.opensource.api.bean.DirectMessage.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.senderId); dest.writeString(this.recipientId); dest.writeString(this.text); dest.writeString(this.senderScreenName); dest.writeString(this.recipientScreenName); dest.writeString(this.senderProfileImageUrl); dest.writeString(this.recipientProfileImageUrl); dest.writeString(this.threadUserId); dest.writeString(this.threadUserName); dest.writeInt(this.isRead ? 1 : 0); }
From source file:com.codebutler.farebot.transit.OrcaTransitData.java
public void writeToParcel(Parcel parcel, int flags) { parcel.writeInt(mSerialNumber); parcel.writeDouble(mBalance);//from w ww. j av a 2 s.c o m if (mTrips != null) { parcel.writeInt(mTrips.length); parcel.writeParcelableArray(mTrips, flags); } else { parcel.writeInt(0); } }
From source file:com.danlvse.weebo.model.User.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.id); dest.writeString(this.idstr); dest.writeString(this.screen_name); dest.writeString(this.name); dest.writeInt(this.province); dest.writeInt(this.city); dest.writeString(this.location); dest.writeString(this.description); dest.writeString(this.url); dest.writeString(this.profile_image_url); dest.writeString(this.profile_url); dest.writeString(this.cover_image_phone); dest.writeString(this.cover_image); dest.writeString(this.domain); dest.writeString(this.weihao); dest.writeString(this.gender); dest.writeInt(this.followers_count); dest.writeInt(this.friends_count); dest.writeInt(this.statuses_count); dest.writeInt(this.favourites_count); dest.writeString(this.created_at); dest.writeByte(following ? (byte) 1 : (byte) 0); dest.writeByte(allow_all_act_msg ? (byte) 1 : (byte) 0); dest.writeByte(geo_enabled ? (byte) 1 : (byte) 0); dest.writeByte(verified ? (byte) 1 : (byte) 0); dest.writeInt(this.verified_type); dest.writeString(this.remark); dest.writeParcelable(this.status, flags); dest.writeByte(allow_all_comment ? (byte) 1 : (byte) 0); dest.writeString(this.avatar_large); dest.writeString(this.avatar_hd); dest.writeString(this.verified_reason); dest.writeByte(follow_me ? (byte) 1 : (byte) 0); dest.writeInt(this.online_status); dest.writeInt(this.bi_followers_count); dest.writeString(this.lang); dest.writeString(this.star); dest.writeString(this.mbtype); dest.writeString(this.mbrank); dest.writeString(this.block_word); }
From source file:id.satusatudua.sigap.data.model.ImportantContact.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(contactId);/* www . j a v a 2 s.c o m*/ dest.writeString(name); dest.writeString(phoneNumber); dest.writeString(userId); dest.writeString(address); dest.writeLong(createdAt.getTime()); dest.writeDouble(avgRate); dest.writeDouble(totalRate); dest.writeLong(totalUserRate); dest.writeInt(myRate); dest.writeByte((byte) (bookmarked ? 1 : 0)); dest.writeParcelable(user, flags); }
From source file:com.dwg.weibo.entity.Status.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.created_at); dest.writeString(this.id); dest.writeString(this.mid); dest.writeString(this.idstr); dest.writeInt(this.textLength); dest.writeString(this.text); dest.writeByte(this.isLongText ? (byte) 1 : (byte) 0); dest.writeInt(this.source_type); dest.writeString(this.source); dest.writeByte(this.favorited ? (byte) 1 : (byte) 0); dest.writeByte(this.truncated ? (byte) 1 : (byte) 0); dest.writeString(this.in_reply_to_status_id); dest.writeString(this.in_reply_to_user_id); dest.writeString(this.in_reply_to_screen_name); dest.writeString(this.thumbnail_pic); dest.writeString(this.bmiddle_pic); dest.writeString(this.original_pic); dest.writeParcelable(this.geo, flags); dest.writeParcelable(this.user, flags); dest.writeParcelable(this.retweeted_status, flags); dest.writeInt(this.reposts_count); dest.writeInt(this.comments_count); dest.writeInt(this.attitudes_count); dest.writeInt(this.mlevel); dest.writeParcelable(this.visible, flags); dest.writeInt(this.source_allowclick); dest.writeList(this.pic_urls); dest.writeStringList(this.thumbnail_pic_urls); dest.writeStringList(this.bmiddle_pic_urls); dest.writeStringList(this.origin_pic_urls); dest.writeString(this.singleImgSizeType); }
From source file:com.nextgis.maplib.datasource.ngw.Connection.java
@Override public void writeToParcel(Parcel parcel, int i) { parcel.writeString(mName);/*from w ww . j a v a2 s .co m*/ parcel.writeString(mLogin); parcel.writeString(mPassword); parcel.writeString(mURL); parcel.writeByte(mIsConnected ? (byte) 1 : (byte) 0); parcel.writeString(mCookie); parcel.writeInt(mId); parcel.writeInt(mSupportedTypes.size()); for (Integer type : mSupportedTypes) parcel.writeInt(type); parcel.writeParcelable(mRootResource, i); }