List of usage examples for android.os Parcel writeParcelable
public final void writeParcelable(Parcelable p, int parcelableFlags)
From source file:com.frodo.github.bean.dto.response.Repo.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeByte(fork ? (byte) 1 : (byte) 0); dest.writeByte(isPrivate ? (byte) 1 : (byte) 0); dest.writeLong(created_at != null ? created_at.getTime() : -1); dest.writeLong(pushed_at != null ? pushed_at.getTime() : -1); dest.writeLong(updated_at != null ? updated_at.getTime() : -1); dest.writeInt(this.forks_count); dest.writeLong(this.id); dest.writeParcelable(this.parent, 0); dest.writeParcelable(this.source, 0); dest.writeString(this.clone_url); dest.writeString(this.forks_url); dest.writeString(this.description); dest.writeString(this.homepage); dest.writeString(this.git_url); dest.writeString(this.contents_url); dest.writeString(this.language); dest.writeString(this.default_branch); dest.writeString(this.mirror_url); dest.writeString(this.name); dest.writeString(this.full_name); dest.writeString(this.ssh_url); dest.writeString(this.svn_url); dest.writeParcelable(this.owner, 0); dest.writeInt(this.stargazers_count); dest.writeInt(this.subscribers_count); dest.writeInt(this.network_count); dest.writeInt(this.watchers_count); dest.writeInt(this.size); dest.writeInt(this.open_issues_count); dest.writeByte(has_issues ? (byte) 1 : (byte) 0); dest.writeByte(has_downloads ? (byte) 1 : (byte) 0); dest.writeByte(has_wiki ? (byte) 1 : (byte) 0); dest.writeParcelable(this.permissions, 0); dest.writeParcelable(this.license, 0); dest.writeTypedList(branches);//from w w w .j av a 2 s. c o m dest.writeString(archive_url); }
From source file:com.richtodd.android.quiltdesign.block.Quilt.java
@Override public void writeToParcel(Parcel out, int flags) { out.writeInt(m_new ? -1 : 0); out.writeInt(m_rowCount);/*from w w w. ja va 2 s . c om*/ out.writeInt(m_columnCount); out.writeFloat(m_width); out.writeFloat(m_height); for (int row = 0; row < m_rowCount; ++row) { for (int column = 0; column < m_columnCount; ++column) { QuiltBlock quiltBlock = getQuiltBlock(row, column); out.writeParcelable(quiltBlock, 0); } } }
From source file:org.mozilla.mozstumbler.service.datahandling.StumblerBundle.java
@Override public void writeToParcel(Parcel out, int flags) { Bundle wifiBundle = new Bundle(ScanResult.class.getClassLoader()); Collection<String> scans = mWifiData.keySet(); for (String s : scans) { wifiBundle.putParcelable(s, mWifiData.get(s)); }//from w ww .j a v a 2s .c o m Bundle cellBundle = new Bundle(CellInfo.class.getClassLoader()); Collection<String> cells = mCellData.keySet(); for (String c : cells) { cellBundle.putParcelable(c, mCellData.get(c)); } out.writeBundle(wifiBundle); out.writeBundle(cellBundle); out.writeParcelable(mGpsPosition, 0); out.writeInt(mPhoneType); }
From source file:com.wootric.androidsdk.objects.Settings.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeValue(this.firstSurvey); dest.writeValue(this.userID); dest.writeValue(this.accountID); dest.writeInt(this.adminPanelTimeDelay); dest.writeParcelable(this.localizedTexts, 0); dest.writeParcelable(this.adminPanelCustomMessage, 0); dest.writeParcelable(this.localCustomMessage, 0); dest.writeInt(this.timeDelay); dest.writeByte(surveyImmediately ? (byte) 1 : (byte) 0); dest.writeValue(this.dailyResponseCap); dest.writeValue(this.registeredPercent); dest.writeValue(this.visitorPercent); dest.writeValue(this.resurveyThrottle); dest.writeValue(this.declineResurveyThrottle); dest.writeString(this.languageCode); dest.writeString(this.productName); dest.writeString(this.recommendTarget); dest.writeString(this.facebookPageId); dest.writeString(this.twitterPage); dest.writeParcelable(this.customThankYou, 0); }
From source file:com.jefftharris.passwdsafe.file.PasswdFileUri.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(itsUri, flags); dest.writeString(itsType.name());//from w w w. j a va2 s . c o m dest.writeString((itsFile != null) ? itsFile.getAbsolutePath() : null); dest.writeString(itsTitle); dest.writeString((itsSyncType != null) ? itsSyncType.name() : null); }
From source file:com.nextgis.maplib.datasource.ngw.Connection.java
@Override public void writeToParcel(Parcel parcel, int i) { parcel.writeString(mName);//from www .j av a 2 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); }
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:at.diamonddogs.data.adapter.parcelable.ParcelableAdapterWebRequest.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(dataObject.getProcessorId()); dest.writeSerializable(dataObject.getRequestType()); dest.writeSerializable(dataObject.getUrl()); dest.writeInt(dataObject.getReadTimeout()); dest.writeInt(dataObject.getConnectionTimeout()); // Parcel.writeBoolean is missing m( // workaround: http://code.google.com/p/android/issues/detail?id=5973 dest.writeInt(dataObject.isFollowRedirects() ? 1 : 0); dest.writeInt(dataObject.getTmpFile().first ? 1 : 0); if (dataObject.getTmpFile().first) { dest.writeParcelable(new ParcelableAdapterTempFile(dataObject.getTmpFile().second), 0); }/* w w w. j av a 2 s . co m*/ writeStringMap(dest, dataObject.getHeader()); dest.writeLong(dataObject.getCacheTime()); dest.writeInt(dataObject.getNumberOfRetries()); dest.writeInt(dataObject.getRetryInterval()); dest.writeInt(dataObject.isCancelled() ? 1 : 0); dest.writeInt(dataObject.isCheckConnectivity() ? 1 : 0); dest.writeInt(dataObject.isCheckConnectivityPing() ? 1 : 0); dest.writeInt(dataObject.isUseOfflineCache() ? 1 : 0); }
From source file:com.facebook.login.LoginClient.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelableArray(handlersToTry, flags); dest.writeInt(currentHandler);//from w w w .j a v a 2 s .c om dest.writeParcelable(pendingRequest, flags); Utility.writeStringMapToParcel(dest, loggingExtras); }
From source file:com.android.mail.providers.Attachment.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(name);//from w w w . jav a 2 s.c om dest.writeInt(size); dest.writeParcelable(uri, flags); dest.writeString(contentType); dest.writeInt(state); dest.writeInt(destination); dest.writeInt(downloadedSize); dest.writeParcelable(contentUri, flags); dest.writeParcelable(thumbnailUri, flags); dest.writeParcelable(previewIntentUri, flags); dest.writeString(providerData); dest.writeInt(supportsDownloadAgain ? 1 : 0); dest.writeInt(type); dest.writeInt(flags); }