List of usage examples for android.os Parcel writeInt
public final void writeInt(int val)
From source file:com.cas.model.SiteInfo.java
public void writeToParcel(Parcel dest, int flags) { dest.writeString(sitename);//from w w w . j a va2s . c om dest.writeString(username); dest.writeString(firstname); dest.writeString(lastname); dest.writeString(fullname); dest.writeInt(userid); dest.writeString(siteurl); dest.writeString(userpictureurl); dest.writeByte((byte) (downloadfiles ? 1 : 0)); dest.writeInt(functions.size()); for (String s : functions.keySet()) { dest.writeString(s); dest.writeString(functions.get(s)); } }
From source file:com.rubengees.introduction.entity.Slide.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.position); dest.writeString(this.title); dest.writeValue(this.titleResource); dest.writeValue(this.titleSize); dest.writeString(this.description); dest.writeValue(this.descriptionResource); dest.writeValue(this.descriptionSize); dest.writeValue(this.imageResource); dest.writeValue(this.color); dest.writeValue(this.colorResource); dest.writeParcelable(this.option, flags); dest.writeSerializable(this.customViewBuilder); }
From source file:com.vk.sdk.api.model.VKList.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(items.size()); for (T item : this) { dest.writeParcelable(item, flags); }/*from w w w. ja v a 2s. c om*/ dest.writeInt(this.count); }
From source file:com.codebutler.farebot.transit.suica.SuicaTrip.java
@Override public void writeToParcel(Parcel parcel, int flags) { parcel.writeLong(mBalance);/*from w ww. j a va2 s.c o m*/ parcel.writeInt(mConsoleType); parcel.writeInt(mProcessType); parcel.writeInt(mIsProductSale ? 1 : 0); parcel.writeInt(mIsBus ? 1 : 0); parcel.writeInt(mIsCharge ? 1 : 0); parcel.writeLong(mFare); parcel.writeLong(mTimestamp.getTime()); parcel.writeInt(mRegionCode); parcel.writeInt(mRailEntranceLineCode); parcel.writeInt(mRailEntranceStationCode); parcel.writeInt(mRailExitLineCode); parcel.writeInt(mRailExitStationCode); parcel.writeInt(mBusLineCode); parcel.writeInt(mBusStopCode); if (mStartStation != null) { parcel.writeInt(1); parcel.writeParcelable(mStartStation, flags); } else { parcel.writeInt(0); } if (mEndStation != null) { parcel.writeInt(1); parcel.writeParcelable(mEndStation, flags); } else { parcel.writeInt(0); } }
From source file:cl.smartcities.isci.transportinspector.backend.Bus.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(valid); dest.writeString(service);/*w ww .j av a2 s. co m*/ dest.writeString(licensePlate); dest.writeString(time); dest.writeString(distance); dest.writeDouble(latitude); dest.writeDouble(longitude); dest.writeInt(passengerNumber); dest.writeInt(busIcon); dest.writeInt(defaultMapBusIcon); dest.writeInt(activeMapBusIcon); dest.writeString(direction); dest.writeString(descriptionError); dest.writeString(destination); dest.writeString(origin); dest.writeInt(color); dest.writeInt(realDistance); }
From source file:com.lugia.timetable.Subject.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(mSubjectCode);/* ww w .j a v a 2 s . c om*/ dest.writeString(mSubjectDescription); dest.writeString(mLectureSection); dest.writeString(mTutorialSection); dest.writeInt(mCreditHours); dest.writeInt(mColor); dest.writeTypedList(mSchedule); dest.writeTypedList(mEvent); }
From source file:it.scoppelletti.mobilepower.types.SimpleDate.java
public void writeToParcel(Parcel out, int flags) { out.writeInt(myYear); out.writeInt(myMonth); out.writeInt(myDay); }
From source file:com.marianhello.bgloc.Config.java
public void writeToParcel(Parcel out, int flags) { out.writeFloat(getStationaryRadius()); out.writeInt(getDistanceFilter()); out.writeInt(getDesiredAccuracy());//from w w w . ja v a 2s . co 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(getLocationProvider()); out.writeInt(getInterval()); out.writeInt(getFastestInterval()); out.writeInt(getActivitiesInterval()); out.writeValue(getStopOnStillActivity()); out.writeString(getUrl()); out.writeString(getSyncUrl()); out.writeInt(getSyncThreshold()); out.writeInt(getMaxLocations()); Bundle bundle = new Bundle(); bundle.putSerializable("httpHeaders", getHttpHeaders()); out.writeBundle(bundle); }
From source file:com.markupartist.sthlmtraveling.provider.planner.JourneyQuery.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(origin, 0);//from w w w.j a v a 2s. c om dest.writeParcelable(destination, 0); dest.writeParcelable(via, 0); dest.writeString(time.format2445()); dest.writeInt(isTimeDeparture ? 1 : 0); dest.writeInt(alternativeStops ? 1 : 0); dest.writeStringList(transportModes); dest.writeString(ident); dest.writeString(seqnr); }
From source file:com.fanfou.app.opensource.api.bean.User.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.screenName); dest.writeString(this.location); dest.writeString(this.gender); dest.writeString(this.birthday); dest.writeString(this.description); dest.writeString(this.profileImageUrl); dest.writeString(this.url); dest.writeInt(this.protect ? 1 : 0); dest.writeInt(this.followersCount); dest.writeInt(this.friendsCount); dest.writeInt(this.favouritesCount); dest.writeInt(this.statusesCount); dest.writeInt(this.following ? 1 : 0); }