Java Code Examples for android.os.Parcel#writeParcelable()
The following examples show how to use
android.os.Parcel#writeParcelable() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: iBeebo File: AnimationRect.java License: GNU General Public License v3.0 | 6 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(scaledBitmapRect, flags); dest.writeParcelable(imageViewEntireRect, flags); dest.writeParcelable(imageViewVisibleRect, flags); dest.writeInt(type); dest.writeBooleanArray(new boolean[]{ isTotalVisible }); dest.writeBooleanArray(new boolean[]{ isTotalInvisible }); dest.writeBooleanArray(new boolean[]{ isScreenPortrait }); dest.writeFloat(thumbnailWidthHeightRatio); dest.writeInt(thumbnailWidth); dest.writeInt(thumbnailHeight); dest.writeInt(widgetWidth); dest.writeInt(widgetHeight); dest.writeFloat(clipByParentRectTop); dest.writeFloat(clipByParentRectBottom); dest.writeFloat(clipByParentRectLeft); dest.writeFloat(clipByParentRectRight); }
Example 2
Source Project: mvvm-template File: Comment.java License: GNU General Public License v3.0 | 6 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeLong(this.id); dest.writeParcelable(this.user, flags); dest.writeString(this.url); dest.writeString(this.body); dest.writeString(this.bodyHtml); dest.writeString(this.htmlUrl); dest.writeLong(this.createdAt != null ? this.createdAt.getTime() : -1); dest.writeLong(this.updatedAt != null ? this.updatedAt.getTime() : -1); dest.writeInt(this.position); dest.writeInt(this.line); dest.writeString(this.path); dest.writeString(this.commitId); dest.writeString(this.repoId); dest.writeString(this.login); dest.writeString(this.gistId); dest.writeString(this.issueId); dest.writeString(this.pullRequestId); dest.writeParcelable(this.reactions, flags); dest.writeString(this.authorAssociation); }
Example 3
Source Project: mcumgr-android File: DiscoveredBluetoothDevice.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(final Parcel parcel, final int flags) { parcel.writeParcelable(device, flags); parcel.writeParcelable(lastScanResult, flags); parcel.writeString(name); parcel.writeInt(rssi); parcel.writeInt(previousRssi); parcel.writeInt(highestRssi); }
Example 4
Source Project: YImagePicker File: CropConfigParcelable.java License: Apache License 2.0 | 5 votes |
/** * Flatten this object in to a Parcel. * * @param dest The Parcel in which the object should be written. * @param flags Additional flags about how the object should be written. * May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}. */ @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(cropRatioX); dest.writeInt(cropRatioY); dest.writeByte((byte) (isCircle ? 1 : 0)); dest.writeInt(cropRectMargin); dest.writeInt(cropStyle); dest.writeInt(cropGapBackgroundColor); dest.writeByte((byte) (saveInDCIM ? 1 : 0)); dest.writeLong(maxOutPutByte); dest.writeByte((byte) (isLessOriginalByte ? 1 : 0)); dest.writeParcelable(cropRestoreInfo, flags); dest.writeByte((byte) (isSingleCropCutNeedTop ? 1 : 0)); }
Example 5
Source Project: NClientV2 File: Comment.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(id); dest.writeParcelable(poster, flags); dest.writeString(body); dest.writeLong(postDate.getTime()); }
Example 6
Source Project: K-Sonic File: Metadata.java License: MIT License | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(entries.length); for (Entry entry : entries) { dest.writeParcelable(entry, 0); } }
Example 7
Source Project: GoogleDirectionLibrary File: Route.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel parcel, int i) { parcel.writeParcelable(bound, i); parcel.writeString(copyrights); parcel.writeParcelable(overviewPolyline, i); parcel.writeString(summary); parcel.writeParcelable(fare, i); parcel.writeStringList(warningList); }
Example 8
Source Project: spotify-web-api-android File: Album.java License: MIT License | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeTypedList(artists); dest.writeTypedList(copyrights); dest.writeMap(this.external_ids); dest.writeStringList(this.genres); dest.writeValue(this.popularity); dest.writeString(this.release_date); dest.writeString(this.release_date_precision); dest.writeParcelable(this.tracks, flags); }
Example 9
Source Project: iBeebo File: StatusDraftBean.java License: GNU General Public License v3.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(content); dest.writeString(pic); dest.writeParcelable(gps, flags); dest.writeString(accountId); dest.writeString(id); }
Example 10
Source Project: SoloPi File: OperationStep.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(operationNode, flags); dest.writeParcelable(operationMethod, flags); dest.writeInt(operationIndex); dest.writeString(operationId); dest.writeString(stepId); }
Example 11
Source Project: bitmask_android File: TrafficHistory.java License: GNU General Public License v3.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeList(trafficHistorySeconds); dest.writeList(trafficHistoryMinutes); dest.writeList(trafficHistoryHours); dest.writeParcelable(lastSecondUsedForMinute, 0); dest.writeParcelable(lastMinuteUsedForHours, 0); }
Example 12
Source Project: OTTLivePlayer_vlc File: MediaWrapper.java License: MIT License | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeParcelable(mUri, flags); dest.writeLong(getTime()); dest.writeLong(getLength()); dest.writeInt(getType()); dest.writeParcelable(getPicture(), flags); dest.writeString(getTitle()); dest.writeString(getArtist()); dest.writeString(getGenre()); dest.writeString(getAlbum()); dest.writeString(getAlbumArtist()); dest.writeInt(getWidth()); dest.writeInt(getHeight()); dest.writeString(getArtworkURL()); dest.writeInt(getAudioTrack()); dest.writeInt(getSpuTrack()); dest.writeInt(getTrackNumber()); dest.writeInt(getDiscNumber()); dest.writeLong(getLastModified()); dest.writeLong(getSeen()); if (mSlaves != null) { PSlave pslaves[] = new PSlave[mSlaves.length]; for (int i = 0; i < mSlaves.length; ++i) { pslaves[i] = new PSlave(mSlaves[i]); } dest.writeTypedArray(pslaves, flags); } else dest.writeTypedArray(null, flags); }
Example 13
Source Project: EhViewer File: LargePreviewSet.java License: Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(this.mPositionList, flags); dest.writeStringList(this.mImageUrlList); dest.writeStringList(this.mPageUrlList); }
Example 14
Source Project: squidb File: AndroidViewModel.java License: Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable((ContentValuesStorage) setValues, 0); dest.writeParcelable((ContentValuesStorage) values, 0); }
Example 15
Source Project: monolog-android File: AuthResponseBean.java License: MIT License | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.token); dest.writeParcelable(this.user, 0); }
Example 16
Source Project: AndroidBase File: LazyViewPager.java License: Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeInt(position); out.writeParcelable(adapterState, flags); }
Example 17
Source Project: youqu_master File: CustomViewPager.java License: Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeInt(position); out.writeParcelable(adapterState, flags); }
Example 18
Source Project: DoubleViewPager File: VerticalViewPager.java License: Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeInt(position); out.writeParcelable(adapterState, flags); }
Example 19
Source Project: Android-BLE-Library File: PhyResult.java License: BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeParcelable(device, flags); dest.writeInt(txPhy); dest.writeInt(rxPhy); }
Example 20
Source Project: PullToRefreshLibrary File: ClassLoaderSavedState.java License: Apache License 2.0 | 4 votes |
public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(mSuperState, flags); }