List of usage examples for android.os Parcel readParcelable
@SuppressWarnings("unchecked") public final <T extends Parcelable> T readParcelable(ClassLoader loader)
From source file:com.paranoid.gerrit.objects.JSONCommit.java
public JSONCommit(Parcel parcel) { mKind = parcel.readString();// w w w .j a v a 2s . c om mId = parcel.readString(); mProject = parcel.readString(); mBranch = parcel.readString(); mChangeId = parcel.readString(); mSubject = parcel.readString(); mStatus = Status.valueOf(parcel.readString()); mCreatedDate = parcel.readString(); mLastUpdatedDate = parcel.readString(); mIsMergeable = parcel.readByte() == 1; mSortKey = parcel.readString(); mCommitNumber = parcel.readInt(); mCurrentRevision = parcel.readString(); mOwnerObject = parcel.readParcelable(CommitterObject.class.getClassLoader()); mPatchSet = parcel.readParcelable(CommitInfo.class.getClassLoader()); mFileInfos = parcel.readParcelable(FileInfoList.class.getClassLoader()); mWebAddress = parcel.readString(); mReviewers = parcel.readParcelable(ReviewerList.class.getClassLoader()); mPatchSetNumber = parcel.readInt(); mMessagesList = parcel.readArrayList(CommitComment.class.getClassLoader()); }
From source file:com.tct.mail.providers.Attachment.java
public Attachment(Parcel in) { name = in.readString();/*from www.j a v a2s . c o m*/ size = in.readInt(); uri = in.readParcelable(null); contentType = in.readString(); state = in.readInt(); destination = in.readInt(); downloadedSize = in.readInt(); contentUri = in.readParcelable(null); thumbnailUri = in.readParcelable(null); previewIntentUri = in.readParcelable(null); providerData = in.readString(); supportsDownloadAgain = in.readInt() == 1; type = in.readInt(); flags = in.readInt(); //TS: wenggangjin 2014-12-10 EMAIL BUGFIX_852100 MOD_S contentId = in.readString(); //TS: wenggangjin 2014-12-10 EMAIL BUGFIX_852100 MOD_E //TS: zhonghua.tuo 2015-3-3 EMAIL BUGFIX_936728 ADD_S realUri = in.readParcelable(null); //TS: zhonghua.tuo 2015-3-3 EMAIL BUGFIX_936728 ADD_E // TS: Gantao 2015-09-19 EMAIL BUGFIX_570084 ADD_S isInline = in.readInt(); // TS: Gantao 2015-09-19 EMAIL BUGFIX_570084 ADD_E }
From source file:com.nestlabs.sdk.Structure.java
public Structure(Parcel in) { mStructureId = in.readString();/*from w w w . ja v a2s. c o m*/ mThermostats = in.createStringArrayList(); mSmokeCoAlarms = in.createStringArrayList(); mCameras = in.createStringArrayList(); mDevices = new LinkedHashMap<>(); in.readMap(mDevices, LinkedHashMap.class.getClassLoader()); mAway = in.readString(); mName = in.readString(); mCountryCode = in.readString(); mPostalCode = in.readString(); mPeakPeriodStartTime = in.readString(); mPeakPeriodEndTime = in.readString(); mTimeZone = in.readString(); mEta = in.readParcelable(ETA.class.getClassLoader()); mRhrEnrollment = Utils.readBoolean(in); mWheres = new LinkedHashMap<>(); in.readMap(mWheres, LinkedHashMap.class.getClassLoader()); }
From source file:com.eTilbudsavis.etasdk.model.ShoppinglistItem.java
private ShoppinglistItem(Parcel in) { this.mId = in.readString(); this.mErn = in.readString(); this.mTick = in.readByte() != 0; this.mOfferId = in.readString(); this.mCount = in.readInt(); this.mDescription = in.readString(); this.mCreator = in.readString(); long tmpMModified = in.readLong(); this.mModified = tmpMModified == -1 ? null : new Date(tmpMModified); this.mOffer = in.readParcelable(Offer.class.getClassLoader()); this.mShoppinglistId = in.readString(); this.mPrevId = in.readString(); this.mMeta = in.readString(); this.mUserId = in.readInt(); this.mSyncState = in.readInt(); }
From source file:com.dwg.weibo.entity.Status.java
protected Status(Parcel in) { this.created_at = in.readString(); this.id = in.readString(); this.mid = in.readString(); this.idstr = in.readString(); this.textLength = in.readInt(); this.text = in.readString(); this.isLongText = in.readByte() != 0; this.source_type = in.readInt(); this.source = in.readString(); this.favorited = in.readByte() != 0; this.truncated = in.readByte() != 0; this.in_reply_to_status_id = in.readString(); this.in_reply_to_user_id = in.readString(); this.in_reply_to_screen_name = in.readString(); this.thumbnail_pic = in.readString(); this.bmiddle_pic = in.readString(); this.original_pic = in.readString(); this.geo = in.readParcelable(Geo.class.getClassLoader()); this.user = in.readParcelable(User.class.getClassLoader()); this.retweeted_status = in.readParcelable(Status.class.getClassLoader()); this.reposts_count = in.readInt(); this.comments_count = in.readInt(); this.attitudes_count = in.readInt(); this.mlevel = in.readInt(); this.visible = in.readParcelable(Visible.class.getClassLoader()); this.source_allowclick = in.readInt(); this.pic_urls = new ArrayList<PicUrlsBean>(); in.readList(this.pic_urls, PicUrlsBean.class.getClassLoader()); this.thumbnail_pic_urls = in.createStringArrayList(); this.bmiddle_pic_urls = in.createStringArrayList(); this.origin_pic_urls = in.createStringArrayList(); this.singleImgSizeType = in.readString(); }
From source file:com.codebutler.farebot.transit.suica.SuicaTrip.java
private SuicaTrip(Parcel parcel) { mBalance = parcel.readLong();// w w w . j av a2 s . c o m mConsoleType = parcel.readInt(); mProcessType = parcel.readInt(); mIsProductSale = (parcel.readInt() == 1); mIsBus = (parcel.readInt() == 1); mIsCharge = (parcel.readInt() == 1); mFare = parcel.readLong(); mTimestamp = new Date(parcel.readLong()); mRegionCode = parcel.readInt(); mRailEntranceLineCode = parcel.readInt(); mRailEntranceStationCode = parcel.readInt(); mRailExitLineCode = parcel.readInt(); mRailExitStationCode = parcel.readInt(); mBusLineCode = parcel.readInt(); mBusStopCode = parcel.readInt(); if (parcel.readInt() == 1) { mStartStation = parcel.readParcelable(Station.class.getClassLoader()); } if (parcel.readInt() == 1) { mEndStation = parcel.readParcelable(Station.class.getClassLoader()); } }
From source file:com.rubengees.introduction.entity.Slide.java
protected Slide(Parcel in) { this.position = in.readInt(); this.title = in.readString(); this.titleResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.titleSize = (Float) in.readValue(Float.class.getClassLoader()); this.description = in.readString(); this.descriptionResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.descriptionSize = (Float) in.readValue(Float.class.getClassLoader()); this.imageResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.color = (Integer) in.readValue(Integer.class.getClassLoader()); this.colorResource = (Integer) in.readValue(Integer.class.getClassLoader()); this.option = in.readParcelable(Option.class.getClassLoader()); this.customViewBuilder = (CustomViewBuilder) in.readSerializable(); }
From source file:com.baasbox.android.BaasFile.java
private BaasFile(Parcel source) { name = Util.readOptString(source); id = Util.readOptString(source); creationDate = Util.readOptString(source); author = Util.readOptString(source); mimeType = Util.readOptString(source); attachedData = source.readParcelable(BaasFile.class.getClassLoader()); metaData = source.readParcelable(BaasFile.class.getClassLoader()); contentLength = source.readLong();/*w ww. ja va 2 s . c om*/ version = source.readLong(); isBound.set(Util.readBoolean(source)); data.set(Util.readOptBytes(source)); }
From source file:com.mindmeapp.extensions.ExtensionData.java
private ExtensionData(Parcel in) { int parcelableVersion = in.readInt(); this.mVisible = (in.readInt() != 0); this.mIcon = in.readInt(); String iconUriString = in.readString(); this.mIconUri = TextUtils.isEmpty(iconUriString) ? null : Uri.parse(iconUriString); this.mStatusToDisplay = in.readString(); if (TextUtils.isEmpty(this.mStatusToDisplay)) { this.mStatusToDisplay = null; }/*w w w .j a v a 2 s . co m*/ this.mStatusToSpeak = in.readString(); if (TextUtils.isEmpty(this.mStatusToSpeak)) { this.mStatusToSpeak = null; } this.mLanguageToSpeak = (Locale) in.readSerializable(); this.mViewsToDisplay = in.readParcelable(RemoteViews.class.getClassLoader()); this.mContentDescription = in.readString(); if (TextUtils.isEmpty(this.mContentDescription)) { this.mContentDescription = null; } this.mBackground = in.readInt(); String backgroundUriString = in.readString(); this.mBackgroundUri = TextUtils.isEmpty(backgroundUriString) ? null : Uri.parse(backgroundUriString); }
From source file:com.google.android.apps.common.testing.accessibility.framework.uielement.ViewHierarchyElement.java
ViewHierarchyElement(int id, @Nullable ViewHierarchyElement parent, Parcel in) { // Bookkeeping this.id = id; this.parentId = (parent != null) ? parent.getId() : null; packageName = ParcelUtils.readNullableString(in); className = ParcelUtils.readNullableString(in); resourceName = ParcelUtils.readNullableString(in); contentDescription = (in.readInt() == 1) ? in.readParcelable(getClass().getClassLoader()) : null; text = (in.readInt() == 1) ? in.readParcelable(getClass().getClassLoader()) : null; importantForAccessibility = in.readInt() != 0; visibleToUser = ParcelUtils.readNullableBoolean(in); clickable = in.readInt() != 0;// w w w. j a va 2 s . c o m longClickable = in.readInt() != 0; focusable = in.readInt() != 0; editable = ParcelUtils.readNullableBoolean(in); scrollable = ParcelUtils.readNullableBoolean(in); canScrollForward = ParcelUtils.readNullableBoolean(in); canScrollBackward = ParcelUtils.readNullableBoolean(in); checkable = ParcelUtils.readNullableBoolean(in); checked = ParcelUtils.readNullableBoolean(in); hasTouchDelegate = ParcelUtils.readNullableBoolean(in); enabled = in.readInt() != 0; boundsInScreen = (in.readInt() == 1) ? Rect.CREATOR.createFromParcel(in) : null; nonclippedHeight = ParcelUtils.readNullableInteger(in); nonclippedWidth = ParcelUtils.readNullableInteger(in); textSize = ParcelUtils.readNullableFloat(in); textColor = ParcelUtils.readNullableInteger(in); backgroundDrawableColor = ParcelUtils.readNullableInteger(in); typefaceStyle = ParcelUtils.readNullableInteger(in); labeledById = ParcelUtils.readNullableLong(in); accessibilityClassName = ParcelUtils.readNullableString(in); accessibilityTraversalBeforeId = ParcelUtils.readNullableLong(in); accessibilityTraversalAfterId = ParcelUtils.readNullableLong(in); }