List of usage examples for android.os Parcel readString
public final String readString()
From source file:net.exclaimindustries.geohashdroid.util.KnownLocation.java
public void readFromParcel(Parcel in) { // Same way it went out. mName = in.readString(); mLocation = in.readParcelable(KnownLocation.class.getClassLoader()); mRange = in.readDouble();/*from w w w .j a va 2s . com*/ mRestrictGraticule = in.readByte() != 0; }
From source file:com.yanzhenjie.album.api.widget.Widget.java
protected Widget(Parcel in) { mUiStyle = in.readInt();/*from w ww. java 2 s . c o m*/ 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:com.nestapi.lib.API.Structure.java
private Structure(Parcel in) { mStructureID = in.readString(); in.readStringList(mThermostatIDs = new ArrayList<>()); in.readStringList(mSmokeCOAlarms = new ArrayList<>()); mName = in.readString();//from w w w . j av a2s.c o m mCountryCode = in.readString(); mPeakPeriodStartTime = in.readString(); mPeakPeriodEndTime = in.readString(); mTimeZone = in.readString(); mAwayState = (AwayState) in.readSerializable(); mETA = in.readParcelable(ETA.class.getClassLoader()); }
From source file:com.facebook.notifications.internal.asset.ParcelableAssetHandler.java
@SuppressWarnings("unchecked") public ParcelableAssetHandler(Parcel source) { boolean isParcelable = source.readInt() != 0; if (isParcelable) { handler = source.readParcelable(getClass().getClassLoader()); exception = null;/*from www . ja v a 2s . c om*/ } else { AssetManager.AssetHandler handler = null; InvalidParcelException exception = null; try { Class assetHandlerClass = (Class) Class.forName(source.readString(), true, getClass().getClassLoader()); handler = (AssetManager.AssetHandler) assetHandlerClass.newInstance(); } catch (Exception ex) { exception = new InvalidParcelException(ex); } this.handler = handler; this.exception = exception; } }
From source file:com.nestlabs.sdk.Structure.java
public Structure(Parcel in) { mStructureId = in.readString(); mThermostats = in.createStringArrayList(); mSmokeCoAlarms = in.createStringArrayList(); mCameras = in.createStringArrayList(); mDevices = new LinkedHashMap<>(); in.readMap(mDevices, LinkedHashMap.class.getClassLoader()); mAway = in.readString();/*w w w . j a v a2 s . c om*/ 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:cx.ring.model.CallContact.java
private void readFromParcel(Parcel in) { id = in.readLong();// www.j a va 2s. com key = in.readString(); mDisplayName = in.readString(); photo_id = in.readLong(); phones.clear(); in.readTypedList(phones, Phone.CREATOR); mEmail = in.readString(); isUser = in.readByte() != 0; stared = in.readByte() != 0; }
From source file:com.markupartist.sthlmtraveling.provider.planner.JourneyQuery.java
public JourneyQuery(Parcel parcel) { origin = parcel.readParcelable(Location.class.getClassLoader()); destination = parcel.readParcelable(Location.class.getClassLoader()); via = parcel.readParcelable(Location.class.getClassLoader()); time = new Time(); time.parse(parcel.readString()); isTimeDeparture = (parcel.readInt() == 1) ? true : false; alternativeStops = (parcel.readInt() == 1) ? true : false; transportModes = new ArrayList<String>(); parcel.readStringList(transportModes); ident = parcel.readString();// w w w . j a v a2 s . co m seqnr = parcel.readString(); }
From source file:com.amossys.hooker.common.InterceptEvent.java
/** * Constructor which will be used to read in the Parcel. * @param in//from w w w .j a v a 2s. c om */ private InterceptEvent(Parcel in) { idEvent = UUID.fromString(in.readString()); IDXP = in.readString(); timestamp = in.readLong(); relativeTimestamp = in.readLong(); hookerName = in.readString(); intrusiveLevel = in.readInt(); instanceID = in.readInt(); packageName = in.readString(); className = in.readString(); methodName = in.readString(); readParametersList(in); readReturnsEntry(in); readDataMap(in); }
From source file:com.paymaya.sdk.android.checkout.models.Checkout.java
public Checkout(Parcel in) { totalAmount = in.readParcelable(TotalAmount.class.getClassLoader()); buyer = in.readParcelable(Buyer.class.getClassLoader()); itemList = new ArrayList<>(); in.readTypedList(itemList, Item.CREATOR); redirectUrl = in.readParcelable(RedirectUrl.class.getClassLoader()); requestReferenceNumber = in.readString(); isAutoRedirect = in.readByte() != 0; try {//from w ww . ja v a 2 s . c o m String json = in.readString(); if (!TextUtils.isEmpty(json)) { metadata = new JSONObject(json); } } catch (JSONException ignored) { } }
From source file:de.schildbach.wallet.data.PaymentIntent.java
private PaymentIntent(final Parcel in) { standard = (Standard) in.readSerializable(); payeeName = in.readString(); payeeVerifiedBy = in.readString();/*w w w .j ava 2s.c o m*/ final int outputsLength = in.readInt(); if (outputsLength > 0) { outputs = new Output[outputsLength]; in.readTypedArray(outputs, Output.CREATOR); } else { outputs = null; } memo = in.readString(); paymentUrl = in.readString(); final int payeeDataLength = in.readInt(); if (payeeDataLength > 0) { payeeData = new byte[payeeDataLength]; in.readByteArray(payeeData); } else { payeeData = null; } paymentRequestUrl = in.readString(); final int paymentRequestHashLength = in.readInt(); if (paymentRequestHashLength > 0) { paymentRequestHash = new byte[paymentRequestHashLength]; in.readByteArray(paymentRequestHash); } else { paymentRequestHash = null; } }