Example usage for android.os Parcel writeDouble

List of usage examples for android.os Parcel writeDouble

Introduction

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

Prototype

public final void writeDouble(double val) 

Source Link

Document

Write a double precision floating point value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Usage

From source file:net.exclaimindustries.geohashdroid.util.KnownLocation.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    // Nice how this is easily parcelable.
    dest.writeString(mName);/*from   www.j a  v  a 2  s.  c o m*/
    dest.writeParcelable(mLocation, 0);
    dest.writeDouble(mRange);
    dest.writeByte((byte) (mRestrictGraticule ? 0 : 1));
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(valid);// w  ww  . ja v  a 2s.co  m
    dest.writeString(service);
    dest.writeString(licensePlate);
    dest.writeString(time);
    dest.writeString(distance);
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
    dest.writeInt(passengerNumber);
    dest.writeInt(busIcon);
    dest.writeInt(defaultMapBusIcon);
    dest.writeInt(activeMapBusIcon);
    dest.writeString(direction);
    dest.writeString(descriptionError);
    dest.writeString(destination);
    dest.writeString(origin);
    dest.writeInt(color);
    dest.writeInt(realDistance);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeList(addressComponents);/*w  w w  .  jav  a 2 s . c om*/
    dest.writeString(formattedAddress);
    dest.writeString(localPhone);
    dest.writeParcelable(geometry, flags);
    dest.writeString(iconUrl);
    dest.writeString(placeId);
    dest.writeString(internationalPhone);
    dest.writeString(name);
    dest.writeParcelable(openingHours, flags);
    dest.writeList(photos);
    dest.writeSerializable(priceLevel);
    dest.writeDouble(rating);
    dest.writeList(reviews);
    dest.writeList(types);
    dest.writeString(googlePlacePageUrl);
    dest.writeInt(utcOffset);
    dest.writeString(vicinity);
    dest.writeString(businessWebsite);
}

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

@Override
/**/* w w w . j  av  a  2 s  .  c o  m*/
 * Used for writing a copy of this object to a Parcel, do not manually call.
 */
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(KEY_ID);
    dest.writeLong(loginId);
    dest.writeLong(storyId);
    dest.writeString(title);
    dest.writeString(body);
    dest.writeString(audioLink);
    dest.writeString(videoLink);
    dest.writeString(imageName);
    dest.writeString(imageLink);
    dest.writeString(tags);
    dest.writeLong(creationTime);
    dest.writeLong(storyTime);
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
}

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

@Override
/**/*ww w .j a v  a  2  s  .co  m*/
 * Used for writing a copy of this object to a Parcel, do not manually call.
 */
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(KEY_ID);
    dest.writeLong(loginId);
    dest.writeLong(storyId);
    dest.writeString(title);
    dest.writeString(body);
    dest.writeString(audioLink);
    dest.writeString(videoLink);
    dest.writeString(imageName);
    dest.writeString(imageLink);
    dest.writeString(tags);
    dest.writeLong(creationTime);
    dest.writeLong(storyTime);
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
    dest.writeString(key);
    dest.writeString(href);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    writeBoolean(dest, mCanCool);//from w ww. j  a va  2  s.  c om
    writeBoolean(dest, mCanHeat);
    writeBoolean(dest, mIsUsingEmergencyHeat);
    writeBoolean(dest, mHasFan);
    dest.writeString(mFanTimerTimeout);
    writeBoolean(dest, mHasLeaf);
    dest.writeString(mTemperatureScale);
    dest.writeLong(mAwayTemperatureHighF);
    dest.writeDouble(mAwayTemperatureHighC);
    dest.writeLong(mAwayTemperatureLowF);
    dest.writeDouble(mAwayTemperatureLowC);
    dest.writeLong(mAmbientTemperatureF);
    dest.writeDouble(mAmbientTemperatureC);
    writeBoolean(dest, mFanTimerActive);
    dest.writeLong(mTargetTemperatureF);
    dest.writeDouble(mTargetTemperatureC);
    dest.writeLong(mTargetTemperatureHighF);
    dest.writeDouble(mTargetTemperatureHighC);
    dest.writeLong(mTargetTemperatureLowF);
    dest.writeDouble(mTargetTemperatureLowC);
    dest.writeSerializable(mHVACmode);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.Uuid);
    dest.writeString(this.purpose);
    dest.writeString(this.orgLocation);
    dest.writeString(this.Rate);
    dest.writeString(this.extraDescription);
    dest.writeByte(haveEditedDistance ? (byte) 1 : (byte) 0);
    dest.writeByte(startedAtHome ? (byte) 1 : (byte) 0);
    dest.writeByte(endedAtHome ? (byte) 1 : (byte) 0);
    dest.writeByte(fourKMRule ? (byte) 1 : (byte) 0);
    dest.writeSerializable(this.startTime);
    dest.writeSerializable(this.endTime);
    dest.writeDouble(this.distanceInMeters);
    dest.writeTypedList(gpsPoints);//ww w .  j av a  2s.c  o  m
    dest.writeDouble(this.homeToBorderDistance);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    Utils.writeBoolean(dest, mCanCool);/*from  w  w  w . j  a v  a 2s.co  m*/
    Utils.writeBoolean(dest, mCanHeat);
    Utils.writeBoolean(dest, mIsUsingEmergencyHeat);
    Utils.writeBoolean(dest, mHasFan);
    Utils.writeBoolean(dest, mFanTimerActive);
    dest.writeString(mFanTimerTimeout);
    Utils.writeBoolean(dest, mHasLeaf);
    dest.writeString(mTemperatureScale);
    dest.writeLong(mTargetTemperatureF);
    dest.writeDouble(mTargetTemperatureC);
    dest.writeLong(mTargetTemperatureHighF);
    dest.writeDouble(mTargetTemperatureHighC);
    dest.writeLong(mTargetTemperatureLowF);
    dest.writeDouble(mTargetTemperatureLowC);
    dest.writeLong(mAwayTemperatureHighF);
    dest.writeDouble(mAwayTemperatureHighC);
    dest.writeLong(mAwayTemperatureLowF);
    dest.writeDouble(mAwayTemperatureLowC);
    dest.writeString(mHvacMode);
    dest.writeLong(mAmbientTemperatureF);
    dest.writeDouble(mAmbientTemperatureC);
    dest.writeLong(mHumidity);
    dest.writeString(mHvacState);
    Utils.writeBoolean(dest, mIsLocked);
    dest.writeString(mLockedTempMinF);
    dest.writeString(mLockedTempMaxF);
    dest.writeString(mLockedTempMinC);
    dest.writeString(mLockedTempMaxC);
    dest.writeString(mLabel);
}

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

@Override
public void writeToParcel(Parcel out, int flags) {

    out.writeLong(getLocalId());/* w w w.  j av  a  2s  .  c  o  m*/
    out.writeString(getPk());
    out.writeString(getBookingKey());
    out.writeString(getDriverPk());
    out.writeString(getPickupDateString());
    out.writeParcelable(getPickupLocation(), 0);
    out.writeParcelable(getDropoffLocation(), 0);
    out.writeInt(getPassengerCount());
    out.writeInt(getLuggageCount());
    out.writeString(getFlightNumber());
    out.writeDouble(getDistanceKm());
    out.writeDouble(getDistanceMiles());
    out.writeString(getCustomerName());
    out.writeString(getCustomerPhone());
    out.writeString(getExtraInfo());
    out.writeString(getPaymentStatus());
    out.writeInt(getPaymentMethod());
    out.writeByte((byte) (isPrepaid() ? 1 : 0));
    out.writeString(getCost());
    out.writeString(getTotalCost());
    out.writeString(getCabOfficeName());
    out.writeString(getCabOfficeSlug());
    out.writeInt(getType());
    out.writeString(getReceiptUrl());

    out.writeString(getJson().toString());

    out.writeInt(mWayPoints.size());
    for (LocationData item : mWayPoints) {
        out.writeParcelable(item, 0);
    }
}