List of usage examples for android.os Parcel writeInt
public final void writeInt(int val)
From source file:ch.berta.fabio.popularmovies.presentation.viewmodels.MovieGridViewModelOnlImpl.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeTypedList(mMovies);/*from w w w . j a v a 2 s . c o m*/ dest.writeInt(mMoviePage); dest.writeByte(mRefreshing ? (byte) 1 : (byte) 0); dest.writeByte(mLoadingMore ? (byte) 1 : (byte) 0); dest.writeByte(mLoadingNewSort ? (byte) 1 : (byte) 0); dest.writeParcelable(mSortSelected, 0); dest.writeInt(mMovieDbIdSelected); }
From source file:net.issarlk.androbunny.inkbunny.File.java
public void writeToParcel(Parcel out, int flag) { out.writeInt(this.id); out.writeString(this.name); out.writeInt(this.thumbnails.length); for (int i = this.thumbnails.length - 1; i >= 0; i--) { if (this.thumbnails[i] != null) { out.writeInt(1);//from www . j av a 2 s .co m this.thumbnails[i].writeToParcel(out, 0); } else { out.writeInt(0); } } out.writeString(this.mimetype); out.writeInt(this.submission_id); out.writeInt(this.user_id); out.writeInt(this.submission_file_order); out.writeInt(this.dimensions.length); for (int i = this.dimensions.length - 1; i >= 0; i--) { if (this.dimensions[i] != null) { out.writeInt(1); this.dimensions[i].writeToParcel(out, 0); } else { out.writeInt(0); } } out.writeStringArray(this.md5s); out.writeString(this.file_urls[0].toString()); out.writeString(this.file_urls[1].toString()); out.writeString(this.file_urls[2].toString()); out.writeInt(this.deleted); out.writeString(this.create_datetime); out.writeString(this.create_datetime_usertime); }
From source file:moodle.android.moodle.model.Content.java
public void writeToParcel(Parcel dest, int flags) { dest.writeString(type);/*from w w w. j a v a 2s . co 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); }
From source file:com.vk.sdk.api.model.VKApiCommunity.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeString(this.name); dest.writeString(this.screen_name); dest.writeInt(this.is_closed); dest.writeByte(is_admin ? (byte) 1 : (byte) 0); dest.writeInt(this.admin_level); dest.writeByte(is_member ? (byte) 1 : (byte) 0); dest.writeInt(this.type); dest.writeString(this.photo_50); dest.writeString(this.photo_100); dest.writeString(this.photo_200); dest.writeParcelable(this.photo, flags); }
From source file:org.onepf.opfmaps.osmdroid.model.BitmapDescriptor.java
@Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeString(source.name());/* ww w. j a v a 2s . c o m*/ dest.writeParcelable(image, flags); dest.writeString(path); dest.writeFloat(hue); dest.writeInt(resourceId); }
From source file:app.com.example.android.sunshine.ItemChoiceManager.java
public void onSaveInstanceState(Bundle outState) { Parcel outParcel = Parcel.obtain(); outParcel.writeSparseBooleanArray(mCheckStates); final int numStates = mCheckedIdStates.size(); outParcel.writeInt(numStates); for (int i = 0; i < numStates; i++) { outParcel.writeLong(mCheckedIdStates.keyAt(i)); outParcel.writeInt(mCheckedIdStates.valueAt(i)); }/*from www . j ava2 s . co m*/ byte[] states = outParcel.marshall(); outState.putByteArray(SELECTED_ITEMS_KEY, states); outParcel.recycle(); }
From source file:com.achep.base.dashboard.DashboardCategory.java
/** * {@inheritDoc}/*from w w w . j a v a 2 s.c o m*/ */ @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(titleRes); TextUtils.writeToParcel(title, dest, flags); final int count = tiles.size(); dest.writeInt(count); for (int n = 0; n < count; n++) { DashboardTile tile = tiles.get(n); tile.writeToParcel(dest, flags); } }
From source file:com.yanzhenjie.album.api.widget.Widget.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(mUiStyle); dest.writeInt(mStatusBarColor);// www. jav a 2 s .c om dest.writeInt(mToolBarColor); dest.writeInt(mNavigationBarColor); dest.writeString(mTitle); dest.writeParcelable(mMediaItemCheckSelector, flags); dest.writeParcelable(mBucketItemCheckSelector, flags); dest.writeParcelable(mButtonStyle, flags); }
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); }
From source file:com.lugia.timetable.Event.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeLong(mId);//from w w w .j a v a2s . c om dest.writeString(mName); dest.writeString(mVenue); dest.writeString(mNote); dest.writeInt(mType); dest.writeInt(mDate); dest.writeInt(mTimeStart); dest.writeInt(mTimeEnd); }