Example usage for android.os Parcel readDouble

List of usage examples for android.os Parcel readDouble

Introduction

In this page you can find the example usage for android.os Parcel readDouble.

Prototype

public final double readDouble() 

Source Link

Document

Read a double precision floating point value from the parcel at the current dataPosition().

Usage

From source file:com.tigerpenguin.places.model.Place.java

@SuppressWarnings("unchecked")
public Place(Parcel in) {
    placeId = in.readString();//from  w  w w  .  j a  v  a  2s . co m
    name = in.readString();
    vicinity = in.readString();
    formattedAddress = in.readString();
    priceLevel = (PriceLevel) in.readSerializable();
    rating = in.readDouble();
    iconUrl = in.readString();
    types = in.readArrayList(PlaceType.class.getClassLoader());
    geometry = in.readParcelable(Geometry.class.getClassLoader());
    openingHours = in.readParcelable(OpeningHours.class.getClassLoader());
    photos = in.readArrayList(Photo.class.getClassLoader());
}

From source file:com.kevinquan.android.location.SimpleRecordedLocation.java

public SimpleRecordedLocation(Parcel in) {
    this();/*  w w w.j av a 2  s .  com*/
    mLatitude = in.readDouble();
    mLongitude = in.readDouble();
    mAccuracy = in.readFloat();
    mAltitude = in.readDouble();
    mBearing = in.readFloat();
    mSpeed = in.readFloat();
    mRecordedAt = in.readLong();
    mProvider = LocationProviderType.fromValue(in.readString());
}

From source file:com.llc.bumpr.sdk.models.Driver.java

/**
 * A constructor for implementing the Driver as a Parcelable.
 * @param source The source Parcel/*from   ww w  .  j av a  2s.c  om*/
 */
public Driver(Parcel source) {
    id = source.readInt();
    fee = source.readDouble();
    licenseId = source.readString();
    insuranceId = source.readString();
    balance = source.readDouble();
    active = source.readByte() != 0;
    source.readList(requests, Request.class.getClassLoader());
}

From source file:vandy.mooc.model.provider.VideoClient.java

public VideoClient(Parcel in) {
    id = in.readLong();//from   w w  w. j a v a 2s.c o m
    title = in.readString();
    duration = in.readLong();
    location = in.readString();
    subject = in.readString();
    contentType = in.readString();
    rating = in.readDouble();
    count = in.readInt();
    filepath = in.readString();
}

From source file:com.nextgis.firereporter.ScanexNotificationItem.java

private ScanexNotificationItem(Parcel in) {
    dt = (Date) in.readSerializable();
    X = in.readDouble();
    Y = in.readDouble();/*from ww w.j av  a  2 s .c o  m*/
    nIconId = in.readInt();
    nID = in.readLong();
    nConfidence = in.readInt();
    nPower = in.readInt();
    sURL1 = in.readString();
    sURL2 = in.readString();
    sType = in.readString();
    sPlace = in.readString();
    sMap = in.readString();
    mbWatched = in.readInt() == 1 ? true : false;

    //
    nFormat = in.readInt();
    sCoordLat = in.readString();
    sCoordLon = in.readString();

    sN = in.readString();
    sS = in.readString();
    sW = in.readString();
    sE = in.readString();
}

From source file:com.tdispatch.passenger.model.ApiSearchLocationData.java

private ApiSearchLocationData(Parcel in) {
    setTown(in.readString());/*from   w w  w  .  ja v a 2  s.c om*/
    setCountry(in.readString());
    setPostCode(in.readString());
    setAddress(in.readString());
    setCounty(in.readString());

    setLatitude(in.readDouble());
    setLongitude(in.readDouble());
}

From source file:id.satusatudua.sigap.data.model.ImportantContact.java

protected ImportantContact(Parcel in) {
    contactId = in.readString();//from  w  w w .  ja  v a  2  s  .c o m
    name = in.readString();
    phoneNumber = in.readString();
    userId = in.readString();
    address = in.readString();
    createdAt = new Date(in.readLong());
    avgRate = in.readDouble();
    totalRate = in.readDouble();
    totalUserRate = in.readLong();
    myRate = in.readInt();
    bookmarked = in.readByte() != 0;
    user = in.readParcelable(User.class.getClassLoader());
}

From source file:org.immopoly.android.model.Flat.java

public Flat(Parcel in) {
    uid = in.readInt();/*from   w w w  . ja  v  a2 s .c om*/
    name = in.readString();
    description = in.readString();
    city = in.readString();
    titlePictureSmall = in.readString();
    priceValue = in.readString();
    currency = in.readString();
    priceIntervaleType = in.readString();
    lat = in.readDouble();
    lng = in.readDouble();
    creationDate = in.readLong();
    long ageMs = System.currentTimeMillis() - creationDate;
    age = ageMs < Const.EXPOSE_THRESHOLD_NEW ? AGE_NEW
            : ageMs < Const.EXPOSE_THRESHOLD_OLD ? AGE_NORMAL : AGE_OLD;
}

From source file:com.google.sample.beaconservice.Beacon.java

private Beacon(Parcel source) {
    type = source.readString();//from www. j  ava  2s.co m
    int len = source.readInt();
    id = new byte[len];
    source.readByteArray(id);
    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:com.codebutler.farebot.transit.OrcaTransitData.java

public OrcaTransitData(Parcel parcel) {
    mSerialNumber = parcel.readInt();
    mBalance = parcel.readDouble();

    parcel.readInt();
    mTrips = (Trip[]) parcel.readParcelableArray(null);
}