List of usage examples for android.os Parcel readParcelable
@SuppressWarnings("unchecked") public final <T extends Parcelable> T readParcelable(ClassLoader loader)
From source file:com.vk.sdk.api.model.VKApiPhoto.java
/** * Creates a Photo instance from Parcel. *//* w ww. j a v a 2s .c o m*/ public VKApiPhoto(Parcel in) { this.id = in.readInt(); this.album_id = in.readInt(); this.owner_id = in.readInt(); this.width = in.readInt(); this.height = in.readInt(); this.text = in.readString(); this.date = in.readLong(); this.src = in.readParcelable(VKPhotoSizes.class.getClassLoader()); this.photo_75 = in.readString(); this.photo_130 = in.readString(); this.photo_604 = in.readString(); this.photo_807 = in.readString(); this.photo_1280 = in.readString(); this.photo_2560 = in.readString(); this.user_likes = in.readByte() != 0; this.can_comment = in.readByte() != 0; this.likes = in.readInt(); this.comments = in.readInt(); this.tags = in.readInt(); this.access_key = in.readString(); }
From source file:org.alfresco.mobile.android.api.services.impl.publicapi.PublicAPISiteServiceImpl.java
public PublicAPISiteServiceImpl(Parcel o) { super((AlfrescoSession) o.readParcelable(RepositorySessionImpl.class.getClassLoader())); }
From source file:io.nuclei.cyto.share.PackageTargetManager.java
protected PackageTargetManager(Parcel in) { mFacebookId = in.readString();/* w w w . java 2 s.c om*/ mText = in.readString(); mUrl = in.readString(); mEmail = in.readString(); mSubject = in.readString(); mFile = (File) in.readSerializable(); mUri = in.readParcelable(getClass().getClassLoader()); }
From source file:com.eTilbudsavis.etasdk.model.Branding.java
private Branding(Parcel in) { this.mName = in.readString(); this.mUrlName = in.readString(); this.mWebsite = in.readString(); this.mLogo = in.readString(); this.mLogoBackground = (Integer) in.readValue(Integer.class.getClassLoader()); this.mColor = (Integer) in.readValue(Integer.class.getClassLoader()); this.mPageflip = in.readParcelable(Pageflip.class.getClassLoader()); }
From source file:com.yanzhenjie.album.api.widget.Widget.java
protected Widget(Parcel in) { mUiStyle = in.readInt();// w ww . j av a 2s. c om mStatusBarColor = in.readInt(); mToolBarColor = in.readInt(); mNavigationBarColor = in.readInt(); mTitle = in.readString(); mMediaItemCheckSelector = in.readParcelable(ColorStateList.class.getClassLoader()); mBucketItemCheckSelector = in.readParcelable(ColorStateList.class.getClassLoader()); mButtonStyle = in.readParcelable(ButtonStyle.class.getClassLoader()); }
From source file:pl.poznan.put.cs.ify.api.params.YParam.java
/** * Creates YParam from parcel./*from w w w. j a v a 2 s.c o m*/ */ public YParam(Parcel in) { int type = in.readInt(); mType = YParamType.getByOrdinal(type); switch (mType) { case Boolean: mValue = in.readByte() != 0; break; case Integer: mValue = in.readInt(); break; case String: mValue = in.readString(); break; case Position: mValue = in.readParcelable(YPosition.class.getClassLoader()); break; case Group: mValue = in.readString(); break; default: mValue = in.readString(); } }
From source file:com.eTilbudsavis.etasdk.model.User.java
private User(Parcel in) { this.mErn = in.readString(); this.mGender = in.readString(); this.mBirthYear = in.readInt(); this.mName = in.readString(); this.mEmail = in.readString(); this.mPermissions = in.readParcelable(Permission.class.getClassLoader()); }
From source file:com.eTilbudsavis.etasdk.model.Dealer.java
private Dealer(Parcel in) { this.mErn = in.readString(); this.mName = in.readString(); this.mUrlName = in.readString(); this.mWebsite = in.readString(); this.mLogo = in.readString(); this.mColor = (Integer) in.readValue(Integer.class.getClassLoader()); this.mPageflip = in.readParcelable(Pageflip.class.getClassLoader()); }
From source file:org.thoughtcrime.securesms.ShareActivity.java
private void handleResolvedMedia(Intent intent, boolean animate) { long threadId = intent.getLongExtra(EXTRA_THREAD_ID, -1); int distributionType = intent.getIntExtra(EXTRA_DISTRIBUTION_TYPE, -1); Address address = null;/* www. j a v a 2s. c o m*/ if (intent.hasExtra(EXTRA_ADDRESS_MARSHALLED)) { Parcel parcel = Parcel.obtain(); byte[] marshalled = intent.getByteArrayExtra(EXTRA_ADDRESS_MARSHALLED); parcel.unmarshall(marshalled, 0, marshalled.length); parcel.setDataPosition(0); address = parcel.readParcelable(getClassLoader()); parcel.recycle(); } boolean hasResolvedDestination = threadId != -1 && address != null && distributionType != -1; if (!hasResolvedDestination && animate) { ViewUtil.fadeIn(contactsFragment.getView(), 300); ViewUtil.fadeOut(progressWheel, 300); } else if (!hasResolvedDestination) { contactsFragment.getView().setVisibility(View.VISIBLE); progressWheel.setVisibility(View.GONE); } else { createConversation(threadId, address, distributionType); } }
From source file:com.richtodd.android.quiltdesign.block.PaperPiecedBlockPiece.java
private PaperPiecedBlockPiece(Parcel in) { m_id = (UUID) in.readSerializable(); m_from = in.readParcelable(PointF.class.getClassLoader()); m_to = in.readParcelable(PointF.class.getClassLoader()); m_color = in.readInt();//from w w w . jav a 2 s . c o m m_cachedPoints = null; m_cachedPath = null; m_cachedDrawable = null; m_cachedBlackWhiteDrawable = null; m_cachedShadowPaint = null; }