Java Code Examples for android.os.Parcel#readSerializable()
The following examples show how to use
android.os.Parcel#readSerializable() .
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: oneHookLibraryAndroid File: SampleItem.java License: Apache License 2.0 | 5 votes |
protected SampleItem(Parcel in) { mName = in.readString(); mType = (SampleItemType) in.readSerializable(); if (in.readByte() == 0x01) { mSubItems = new ArrayList<>(); in.readList(mSubItems, SampleItem.class.getClassLoader()); } else { mSubItems = null; } }
Example 2
Source Project: fingen File: Transaction.java License: Apache License 2.0 | 5 votes |
protected Transaction(Parcel in) { super(in); this.headerPosition = in.readInt(); long tmpMDateTime = in.readLong(); this.mDateTime = tmpMDateTime == -1 ? null : new Date(tmpMDateTime); this.mAccountID = in.readLong(); this.mDestAccountID = in.readLong(); this.mPayeeID = in.readLong(); this.mCategoryID = in.readLong(); this.mAmount = (BigDecimal) in.readSerializable(); this.mFromAccountBalance = (BigDecimal) in.readSerializable(); this.mToAccountBalance = (BigDecimal) in.readSerializable(); this.mProjectID = in.readLong(); this.mSimpleDebtID = in.readLong(); this.mDepartmentID = in.readLong(); this.mLocationID = in.readLong(); this.mLat = in.readDouble(); this.mLon = in.readDouble(); this.mAccuracy = in.readInt(); this.mComment = in.readString(); this.mFile = in.readString(); this.mTransactionOpened = in.readByte() != 0; this.mExchangeRate = (BigDecimal) in.readSerializable(); this.mTransactionType = in.readInt(); this.mSelected = in.readByte() != 0; this.mAutoCreated = in.readByte() != 0; this.isExRateEvalDisabled = in.readByte() != 0; this.isDayFirst = in.readByte() != 0; this.isDayLast = in.readByte() != 0; this.mFN = in.readLong(); this.mFD = in.readLong(); this.mFP = in.readLong(); this.mProductEntries = in.createTypedArrayList(ProductEntry.CREATOR); }
Example 3
Source Project: rides-android-sdk File: RideParameters.java License: MIT License | 5 votes |
protected RideParameters(Parcel in) { isPickupMyLocation = in.readByte() != 0; productId = in.readString(); pickupLatitude = (Double) in.readSerializable(); pickupLongitude = (Double) in.readSerializable(); pickupNickname = in.readString(); pickupAddress = in.readString(); dropoffLatitude = (Double) in.readSerializable(); dropoffLongitude = (Double) in.readSerializable(); dropoffNickname = in.readString(); dropoffAddress = in.readString(); userAgent = in.readString(); }
Example 4
Source Project: DanDanPlayForAndroid File: TaskStateBean.java License: MIT License | 5 votes |
public TaskStateBean(Parcel source) { torrentHash = source.readString(); taskName = source.readString(); saveDirPath = source.readString(); stateCode = (TorrentStateCode) source.readSerializable(); progress = source.readInt(); receivedBytes = source.readLong(); totalBytes = source.readLong(); downloadSpeed = source.readLong(); taskBuildTime = source.readLong(); }
Example 5
Source Project: android_9.0.0_r45 File: Voice.java License: Apache License 2.0 | 5 votes |
private Voice(Parcel in) { this.mName = in.readString(); this.mLocale = (Locale)in.readSerializable(); this.mQuality = in.readInt(); this.mLatency = in.readInt(); this.mRequiresNetworkConnection = (in.readByte() == 1); this.mFeatures = new HashSet<String>(); Collections.addAll(this.mFeatures, in.readStringArray()); }
Example 6
Source Project: imsdk-android File: ImageFolder.java License: MIT License | 5 votes |
protected ImageFolder(Parcel in) { this.name = in.readString(); this.path = in.readString(); this.cover = (ImageItem) in.readSerializable(); this.images = new ArrayList<ImageItem>(); in.readList(this.images, ImageItem.class.getClassLoader()); }
Example 7
Source Project: CC File: RemoteParamUtil.java License: Apache License 2.0 | 5 votes |
BaseParam(Parcel in) { hashCode = in.readInt(); try { clazz = (Class<?>) in.readSerializable(); } catch(Exception e) { CCUtil.printStackTrace(e); } }
Example 8
Source Project: timecat File: Day.java License: Apache License 2.0 | 5 votes |
protected Day(Parcel in) { int tmpState = in.readInt(); this.state = tmpState == -1 ? null : State.values()[tmpState]; this.date = (CalendarDate) in.readSerializable(); this.posRow = in.readInt(); this.posCol = in.readInt(); }
Example 9
Source Project: vault File: Asset.java License: Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") Asset(Parcel in) { setRemoteId(in.readString()); setCreatedAt(in.readString()); if (in.readInt() != -1) { setUpdatedAt(in.readString()); } this.url = in.readString(); this.mimeType = in.readString(); if (in.readInt() == -1) { this.title = null; } else { this.title = in.readString(); } if (in.readInt() == -1) { this.description = null; } else { this.description = in.readString(); } if (in.readInt() == -1) { this.file = null; } else { this.file = (HashMap<String, Object>) in.readSerializable(); } }
Example 10
Source Project: arcusandroid File: TimeZoneModel.java License: Apache License 2.0 | 4 votes |
protected TimeZoneModel(Parcel in) { this.id = in.readString(); this.name = in.readString(); this.offset = (Number) in.readSerializable(); this.usesDST = in.readByte() != 0; }
Example 11
Source Project: kognitivo File: AppGroupCreationContent.java License: Apache License 2.0 | 4 votes |
AppGroupCreationContent(final Parcel in) { this.name = in.readString(); this.description = in.readString(); this.privacy = (AppGroupPrivacy) in.readSerializable(); }
Example 12
Source Project: Easer File: HeadsetUSourceData.java License: GNU General Public License v3.0 | 4 votes |
private HeadsetUSourceData(Parcel in) { hs_state = (HeadsetState) in.readSerializable(); hs_type = (HeadsetType) in.readSerializable(); }
Example 13
Source Project: Orin File: BreadCrumbLayout.java License: GNU General Public License v3.0 | 4 votes |
protected Crumb(Parcel in) { this.file = (File) in.readSerializable(); this.scrollPos = in.readInt(); }
Example 14
Source Project: PaintView File: DrawText.java License: MIT License | 4 votes |
private DrawText(Parcel in) { paint = (SerializablePaint)in.readSerializable(); }
Example 15
Source Project: droidconat-2016 File: ScheduleSlot.java License: Apache License 2.0 | 4 votes |
protected ScheduleSlot(Parcel in) { time = (LocalDateTime) in.readSerializable(); sessions = in.createTypedArrayList(Session.CREATOR); }
Example 16
Source Project: RxGroups File: GroupLifecycleManager.java License: Apache License 2.0 | 4 votes |
@Override public State createFromParcel(Parcel source) { return new State((UUID) source.readSerializable(), source.readLong()); }
Example 17
Source Project: Cheerleader File: NotificationConfig.java License: Apache License 2.0 | 4 votes |
/** * Parcelable. * * @param in source. */ private NotificationConfig(Parcel in) { mNotificationIcon = in.readInt(); mNotificationIconBackground = in.readInt(); mNotificationActivity = (Class<? extends Activity>) in.readSerializable(); }
Example 18
Source Project: starcor.xul File: XulDataNode.java License: GNU Lesser General Public License v3.0 | 4 votes |
@Override public XulDataNode createFromParcel(Parcel in) { return (XulDataNode) in.readSerializable(); }
Example 19
Source Project: AndroidPreferenceActivity File: NavigationPreference.java License: Apache License 2.0 | 3 votes |
/** * Creates a new data structure, which allows to store the internal state of a {@link * NavigationPreference}. This constructor is used when reading from a parcel. It reads the * state of the superclass. * * @param source * The parcel to read read from as a instance of the class {@link Parcel}. The * parcel may not be null */ SavedState(@NonNull final Parcel source) { super(source); breadCrumbTitle = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); fragment = source.readString(); extras = source.readBundle(NavigationPreference.class.getClassLoader()); tintList = source.readParcelable(getClass().getClassLoader()); tintMode = (PorterDuff.Mode) source.readSerializable(); }
Example 20
Source Project: AndroidMaterialDialog File: ScrollableArea.java License: Apache License 2.0 | 2 votes |
/** * Creates a new scrollable area. * * @param source * The source, the scrollable area should be created from, as an instance of the class * {@link Parcel}. The source may not be null */ private ScrollableArea(@NonNull final Parcel source) { this.topScrollableArea = (Area) source.readSerializable(); this.bottomScrollableArea = (Area) source.readSerializable(); }