List of usage examples for android.os Parcel writeDouble
public final void writeDouble(double val)
From source file:io.github.data4all.model.data.TransformationParamBean.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeDouble(height); dest.writeDouble(verticalViewAngle); dest.writeDouble(horizontalViewAngle); dest.writeInt(photoWidth);//w w w .j a va2 s. c om dest.writeInt(photoHeight); if (location != null) { dest.writeInt(1); dest.writeString(location.getProvider()); dest.writeDouble(location.getLatitude()); dest.writeDouble(location.getLongitude()); } else { dest.writeInt(0); } }
From source file:org.mariotaku.twidere.model.ParcelableLocation.java
@Override public void writeToParcel(final Parcel out, final int flags) { out.writeDouble(latitude); out.writeDouble(longitude);/* ww w . j av a2 s. c o m*/ }
From source file:com.vk.sdk.api.model.VKApiPlace.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.id); dest.writeString(this.title); dest.writeDouble(this.latitude); dest.writeDouble(this.longitude); dest.writeLong(this.created); dest.writeInt(this.checkins); dest.writeLong(this.updated); dest.writeInt(this.country_id); dest.writeInt(this.city_id); dest.writeString(address);//from www . j a va 2s . c o m }
From source file:com.codebutler.farebot.transit.orca.OrcaTransitData.java
@Override public void writeToParcel(Parcel parcel, int flags) { parcel.writeInt(mSerialNumber);/*from w w w . jav a2 s . c om*/ parcel.writeDouble(mBalance); if (mTrips != null) { parcel.writeInt(mTrips.length); parcel.writeParcelableArray(mTrips, flags); } else { parcel.writeInt(0); } }
From source file:edu.pdx.its.portal.routelandia.entities.TrafficStat.java
/** * Flatten this object in to a Parcel./*from ww w . j a v a 2 s. co m*/ * * @param dest The Parcel in which the object should be written. * @param flags Additional flags about how the object should be written. * May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}. */ @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(hour); dest.writeInt(minutes); dest.writeDouble(speed); dest.writeDouble(travelTime); dest.writeDouble(accuracy); dest.writeDouble(distance); }
From source file:com.tdispatch.passenger.model.LocationData.java
@Override public void writeToParcel(Parcel out, int flags) { out.writeString(getAddress());/* w ww . ja v a2 s . c om*/ out.writeString(getPostCode()); out.writeDouble(getLatitude()); out.writeDouble(getLongitude()); }
From source file:ir.aarani.bazaar.billing.SkuDetails.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.productId); dest.writeString(this.title); dest.writeString(this.description); dest.writeByte(isSubscription ? (byte) 1 : (byte) 0); dest.writeString(this.currency); dest.writeDouble(this.priceValue); dest.writeLong(this.priceLong); dest.writeString(this.priceText); }
From source file:fr.cph.chicago.entity.BikeStation.java
@Override public final void writeToParcel(final Parcel dest, final int flags) { dest.writeInt(id);/* w w w .ja va2s . c om*/ dest.writeString(name); dest.writeInt(availableDocks); dest.writeInt(totalDocks); dest.writeDouble(latitude); dest.writeDouble(longitude); dest.writeString(statusValue); dest.writeString(statusKey); dest.writeInt(availableBikes); dest.writeString(stAddress1); dest.writeString(stAddress2); dest.writeString(city); dest.writeString(postalCode); dest.writeString(location); dest.writeString(altitude); dest.writeString(String.valueOf(testStation)); dest.writeString(lastCommunicationTime); dest.writeString(landMark); }
From source file:com.tigerpenguin.places.model.Place.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(placeId);// w w w .jav a 2 s. co m dest.writeString(name); dest.writeString(vicinity); dest.writeString(formattedAddress); dest.writeSerializable(priceLevel); dest.writeDouble(rating); dest.writeString(iconUrl); dest.writeList(types); dest.writeParcelable(geometry, flags); dest.writeParcelable(openingHours, flags); dest.writeList(photos); }
From source file:com.kevinquan.android.location.SimpleRecordedLocation.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeDouble(mLatitude); dest.writeDouble(mLongitude);//from w w w . j a v a 2s . co m dest.writeFloat(mAccuracy); dest.writeDouble(mAltitude); dest.writeFloat(mBearing); dest.writeFloat(mSpeed); dest.writeLong(mRecordedAt); dest.writeString(mProvider.toString()); }