List of usage examples for android.os Parcel readString
public final String readString()
From source file:com.google.sample.beaconservice.Beacon.java
private Beacon(Parcel source) { type = source.readString(); int len = source.readInt(); id = new byte[len]; source.readByteArray(id);/*from w ww. j av a 2s . c o m*/ status = source.readString(); if (source.readInt() == 1) { placeId = source.readString(); } if (source.readInt() == 1) { latitude = source.readDouble(); } if (source.readInt() == 1) { longitude = source.readDouble(); } if (source.readInt() == 1) { expectedStability = source.readString(); } if (source.readInt() == 1) { description = source.readString(); } }
From source file:org.onepf.opfmaps.osmdroid.model.BitmapDescriptor.java
private BitmapDescriptor(@NonNull final Parcel parcel) { this.source = BitmapSource.valueOf(parcel.readString()); this.image = parcel.readParcelable(Bitmap.class.getClassLoader()); this.path = parcel.readString(); this.hue = parcel.readFloat(); this.resourceId = parcel.readInt(); }
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:fr.cph.chicago.entity.BikeStation.java
private void readFromParcel(@NonNull final Parcel in) { id = in.readInt();/* w w w .j a v a2s.co m*/ name = in.readString(); availableDocks = in.readInt(); totalDocks = in.readInt(); latitude = in.readDouble(); longitude = in.readDouble(); statusValue = in.readString(); statusKey = in.readString(); availableBikes = in.readInt(); stAddress1 = in.readString(); stAddress2 = in.readString(); city = in.readString(); postalCode = in.readString(); location = in.readString(); altitude = in.readString(); testStation = Boolean.valueOf(in.readString()); lastCommunicationTime = in.readString(); landMark = in.readString(); }
From source file:com.eTilbudsavis.etasdk.model.Session.java
private Session(Parcel in) { this.mToken = in.readString(); long tmpMExpires = in.readLong(); this.mExpires = tmpMExpires == -1 ? null : new Date(tmpMExpires); this.mUser = in.readParcelable(User.class.getClassLoader()); this.mPermission = in.readParcelable(Permission.class.getClassLoader()); this.mProvider = in.readString(); this.mClientId = in.readString(); this.mReference = in.readString(); }
From source file:org.opendatakit.common.android.data.RawRow.java
public RawRow(RawUserTable userTable, Parcel in) { this.mUserTable = userTable; this.mRowId = in.readString(); int count;/*w w w . j a va 2 s. co m*/ count = in.readInt(); this.mRowData = new String[count]; in.readStringArray(mRowData); }
From source file:android.database.DatabaseUtils.java
public static void readExceptionWithFileNotFoundExceptionFromParcel(Parcel reply) throws FileNotFoundException { int code = reply.readInt(); if (code == 0) return;/* w w w .j ava 2 s.c om*/ String msg = reply.readString(); if (code == 1) { throw new FileNotFoundException(msg); } else { DatabaseUtils.readExceptionFromParcel(reply, msg, code); } }
From source file:com.patloew.navigationviewfragmentadapters.StateMap.java
public StateMap(Parcel in) { ClassLoader classLoader = getClass().getClassLoader(); int size = in.readInt(); map = new HashMap<>(size); for (int i = 0; i < size; i++) { map.put(in.readString(), (Fragment.SavedState) in.readParcelable(classLoader)); }//from w ww . ja v a 2 s .co m }
From source file:com.datastore_android_sdk.rxvolley.http.URLHttpResponse.java
protected URLHttpResponse(Parcel in) { this.headers = (HashMap<String, String>) in.readSerializable(); this.responseCode = in.readInt(); this.responseMessage = in.readString(); this.contentEncoding = in.readString(); this.contentType = in.readString(); this.contentLength = in.readLong(); }
From source file:com.citrus.sdk.payment.NetbankingOption.java
private NetbankingOption(Parcel in) { this.bankName = in.readString(); this.bankCID = in.readString(); this.name = in.readString(); this.token = in.readString(); }