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:net.exclaimindustries.geohashdroid.util.KnownLocation.java

public void readFromParcel(Parcel in) {
    // Same way it went out.
    mName = in.readString();/*from   w  w w . ja  v  a2s. co  m*/
    mLocation = in.readParcelable(KnownLocation.class.getClassLoader());
    mRange = in.readDouble();
    mRestrictGraticule = in.readByte() != 0;
}

From source file:com.eTilbudsavis.etasdk.model.Store.java

private Store(Parcel in) {
    this.mErn = in.readString();
    this.mStreet = in.readString();
    this.mCity = in.readString();
    this.mZipcode = in.readString();
    this.mCountry = in.readParcelable(Country.class.getClassLoader());
    this.mLatitude = in.readDouble();
    this.mLongitude = in.readDouble();
    this.mDealerUrl = in.readString();
    this.mDealerId = in.readString();
    this.mBranding = in.readParcelable(Branding.class.getClassLoader());
    this.mContact = in.readString();
    this.mDealer = in.readParcelable(Dealer.class.getClassLoader());
}

From source file:cl.smartcities.isci.transportinspector.backend.Bus.java

/**
 * Allows to recreate a bus from a Parcel
 *//*  www .  ja v a 2 s .  c o  m*/
protected Bus(Parcel in) {
    valid = in.readInt();
    service = in.readString();
    licensePlate = in.readString();
    time = in.readString();
    distance = in.readString();
    latitude = in.readDouble();
    longitude = in.readDouble();
    passengerNumber = in.readInt();
    busIcon = in.readInt();
    defaultMapBusIcon = in.readInt();
    activeMapBusIcon = in.readInt();
    direction = in.readString();
    descriptionError = in.readString();
    destination = in.readString();
    origin = in.readString();
    color = in.readInt();
    realDistance = in.readInt();
}

From source file:edu.vuum.mocca.storage.StoryData.java

/**
 * Used for writing a copy of this object to a Parcel, do not manually call.
 *//* ww  w. j av a2  s .c o  m*/
private StoryData(Parcel in) {
    KEY_ID = in.readLong();
    loginId = in.readLong();
    storyId = in.readLong();
    title = in.readString();
    body = in.readString();
    audioLink = in.readString();
    videoLink = in.readString();
    imageName = in.readString();
    imageLink = in.readString();
    tags = in.readString();
    creationTime = in.readLong();
    storyTime = in.readLong();
    latitude = in.readDouble();
    longitude = in.readDouble();
}

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

@SuppressWarnings("unchecked")
public PlaceDetail(Parcel in) {
    addressComponents = in.readArrayList(AddressComponent.class.getClassLoader());
    formattedAddress = in.readString();//from  www  . j a  v a2s . co m
    localPhone = in.readString();
    geometry = in.readParcelable(Geometry.class.getClassLoader());
    iconUrl = in.readString();
    placeId = in.readString();
    internationalPhone = in.readString();
    name = in.readString();
    openingHours = in.readParcelable(OpeningHours.class.getClassLoader());
    photos = in.readArrayList(Photo.class.getClassLoader());
    priceLevel = (PriceLevel) in.readSerializable();
    rating = in.readDouble();
    reviews = in.readArrayList(Review.class.getClassLoader());
    types = in.readArrayList(PlaceType.class.getClassLoader());
    googlePlacePageUrl = in.readString();
    utcOffset = in.readInt();
    vicinity = in.readString();
    businessWebsite = in.readString();
}

From source file:edu.vuum.mocca.orm.StoryData.java

/**
 * Used for writing a copy of this object to a Parcel, do not manually call.
 *///from   w w w  .  jav a  2s  . c  o  m
private StoryData(Parcel in) {
    KEY_ID = in.readLong();
    loginId = in.readLong();
    storyId = in.readLong();
    title = in.readString();
    body = in.readString();
    audioLink = in.readString();
    videoLink = in.readString();
    imageName = in.readString();
    imageLink = in.readString();
    tags = in.readString();
    creationTime = in.readLong();
    storyTime = in.readLong();
    latitude = in.readDouble();
    longitude = in.readDouble();
    key = in.readString();
    href = in.readString();
}

From source file:com.nestapi.lib.API.Thermostat.java

private Thermostat(Parcel in) {
    super(in);//from  w w  w.  j av a  2 s . com
    mCanCool = readBoolean(in);
    mCanHeat = readBoolean(in);
    mIsUsingEmergencyHeat = readBoolean(in);
    mHasFan = readBoolean(in);
    mFanTimerTimeout = in.readString();
    mHasLeaf = readBoolean(in);
    mTemperatureScale = in.readString();
    mAwayTemperatureHighF = in.readLong();
    mAwayTemperatureHighC = in.readDouble();
    mAwayTemperatureLowF = in.readLong();
    mAwayTemperatureLowC = in.readDouble();
    mAmbientTemperatureF = in.readLong();
    mAmbientTemperatureC = in.readDouble();

    mFanTimerActive = readBoolean(in);
    mTargetTemperatureF = in.readLong();
    mTargetTemperatureC = in.readDouble();
    mTargetTemperatureHighF = in.readLong();
    mTargetTemperatureHighC = in.readDouble();
    mTargetTemperatureLowF = in.readLong();
    mTargetTemperatureLowC = in.readDouble();
    mHVACmode = (HVACMode) in.readSerializable();
}

From source file:it_minds.dk.eindberetningmobil_android.models.DrivingReport.java

protected DrivingReport(Parcel in) {
    this.Uuid = in.readString();
    this.purpose = in.readString();
    this.orgLocation = in.readString();
    this.Rate = in.readString();
    this.extraDescription = in.readString();
    this.haveEditedDistance = in.readByte() != 0;
    this.startedAtHome = in.readByte() != 0;
    this.endedAtHome = in.readByte() != 0;
    this.fourKMRule = in.readByte() != 0;
    this.startTime = (DateTime) in.readSerializable();
    this.endTime = (DateTime) in.readSerializable();
    this.distanceInMeters = in.readDouble();
    this.gpsPoints = in.createTypedArrayList(GPSCoordinateModel.CREATOR);
    this.homeToBorderDistance = in.readDouble();
}

From source file:com.nestlabs.sdk.Thermostat.java

private Thermostat(Parcel in) {
    super(in);//from  w w  w .  j  a va2  s.co m
    mCanCool = readBoolean(in);
    mCanHeat = readBoolean(in);
    mIsUsingEmergencyHeat = readBoolean(in);
    mHasFan = readBoolean(in);
    mFanTimerActive = readBoolean(in);
    mFanTimerTimeout = in.readString();
    mHasLeaf = readBoolean(in);
    mTemperatureScale = in.readString();
    mTargetTemperatureF = in.readLong();
    mTargetTemperatureC = in.readDouble();
    mTargetTemperatureHighF = in.readLong();
    mTargetTemperatureHighC = in.readDouble();
    mTargetTemperatureLowF = in.readLong();
    mTargetTemperatureLowC = in.readDouble();
    mAwayTemperatureHighF = in.readLong();
    mAwayTemperatureHighC = in.readDouble();
    mAwayTemperatureLowF = in.readLong();
    mAwayTemperatureLowC = in.readDouble();
    mHvacMode = in.readString();
    mAmbientTemperatureF = in.readLong();
    mAmbientTemperatureC = in.readDouble();
    mHumidity = in.readLong();
    mHvacState = in.readString();
    mIsLocked = readBoolean(in);
    mLockedTempMinF = in.readString();
    mLockedTempMaxF = in.readString();
    mLockedTempMinC = in.readString();
    mLockedTempMaxC = in.readString();
    mLabel = in.readString();
}

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

private BookingData(Parcel in) {
    setLocalId(in.readLong());//  w w w. ja  v a 2s . c  o  m
    setPk(in.readString());
    setBookingKey(in.readString());
    setDriverPk(in.readString());
    setPickupDate(in.readString());
    setPickupLocation((LocationData) in.readParcelable(LocationData.class.getClassLoader()));
    setDropoffLocation((LocationData) in.readParcelable(LocationData.class.getClassLoader()));
    setPassengerCount(in.readInt());
    setLuggageCount(in.readInt());
    setFlightNumber(in.readString());
    setDistanceKm(in.readDouble());
    setDistanceMiles(in.readDouble());
    setCustomerName(in.readString());
    setCustomerPhone(in.readString());
    setExtraInfo(in.readString());
    setPaymentStatus(in.readString());
    setPaymentMethod(in.readInt());
    setPrepaid((in.readByte() == 1));
    setCost(in.readString());
    setTotalCost(in.readString());
    setCabOfficeName(in.readString());
    setCabOfficeSlug(in.readString());
    setType(in.readInt());
    setReceiptUrl(in.readString());

    setJson(in.readString());

    int wpCount = in.readInt();
    for (int i = 0; i < wpCount; i++) {
        LocationData ld = (LocationData) in.readParcelable(LocationData.class.getClassLoader());
        mWayPoints.add(ld);
    }
}