Java Code Examples for android.os.Parcel.writeDouble()

The following are Jave code examples for showing how to use writeDouble() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: GongXianSheng   File: ReturnOrderListResponse.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(productUom);
    dest.writeDouble(priceUnit);
    dest.writeDouble(tax);
    dest.writeDouble(discount);
    dest.writeDouble(deliveredQty);
    dest.writeDouble(priceSubtotal);
    dest.writeInt(productID);
    dest.writeInt(saleOrderProductID);
    dest.writeDouble(pickupWeight);
    dest.writeDouble(pickupNum);
    dest.writeString(stockType);
    dest.writeString(category);
    dest.writeDouble(productUomQty);
    dest.writeStringList(lotIDs);
    dest.writeTypedList(lotList);
}
 
Example 2
Project: proto-collecte   File: MesureContract.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(id.toString());
    dest.writeDouble(longitude);
    dest.writeDouble(latitude);
    dest.writeInt(precisionPosition);
    dest.writeInt(dateMesure);
    dest.writeString(typePosition);
    dest.writeString(tmType);
    dest.writeInt(tmCid);
    dest.writeInt(tmLac);
    dest.writeInt(tmMcc);
    dest.writeInt(tmMnc);
    dest.writeInt(tmDbm);
    dest.writeInt(tmLevel);
    dest.writeInt(gpsNum == null ? -1 : gpsNum);
    dest.writeInt(gpsSnr == null ? -1 : gpsSnr);
    dest.writeString(appareil);
    dest.writeString(parcoursId == null ? null : parcoursId.toString());
}
 
Example 3
Project: anitrend-app   File: Video.java   View Source Code Vote up 6 votes
/**
 * Flatten this object in to a Parcel.
 *
 * @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.writeString(fileName);
    dest.writeLong(size);
    dest.writeString(audioLang);
    dest.writeDouble(duration);
    dest.writeInt(totalUpvotes);
    dest.writeString(sectionDate);
    dest.writeString(uploadStatus);
    dest.writeString(addedDate);
    dest.writeString(addedBy);
    dest.writeString(_id);
    dest.writeString(thumbnail);
    dest.writeTypedList(subtitles);
    dest.writeTypedList(content);
    dest.writeString(title);
    dest.writeString(description);
    dest.writeString(category);
    dest.writeInt(quality);
}
 
Example 4
Project: 9AnimeAndroid   File: Anime.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(id);
    dest.writeString(link);
    dest.writeString(quality);
    dest.writeString(title);
    dest.writeString(imagelink);
    dest.writeTypedList(mirrors);
    dest.writeDouble(score);
    dest.writeString(status);
    dest.writeString(date);
    dest.writeStringList(genres);
    dest.writeStringList(otherNames);
    dest.writeString(description);
    dest.writeString(descriptorLink);
    dest.writeByte((byte) (descriptorLoaded ? 1 : 0));
    dest.writeByte((byte) (favorited ? 1 : 0));
}
 
Example 5
Project: mapbox-events-android   File: LocationEvent.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(event);
  dest.writeString(created);
  dest.writeString(source);
  dest.writeString(sessionId);
  dest.writeDouble(latitude);
  dest.writeDouble(longitude);
  if (altitude == null) {
    dest.writeByte((byte) (0x00));
  } else {
    dest.writeByte((byte) (0x01));
    dest.writeDouble(altitude);
  }
  dest.writeString(operatingSystem);
  dest.writeString(applicationState);
  if (accuracy == null) {
    dest.writeByte((byte) (0x00));
  } else {
    dest.writeByte((byte) (0x01));
    dest.writeFloat(accuracy);
  }
}
 
Example 6
Project: data-mediator   File: HistoryData.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.age);
    dest.writeLong(this.id);
    dest.writeInt(this.testShort);
    dest.writeByte(this.testByte);
    dest.writeByte(this.testBoolean ? (byte) 1 : (byte) 0);
    dest.writeFloat(this.testFloat);
    dest.writeDouble(this.testDouble);
    dest.writeInt(this.testChar);
    dest.writeValue(this.testLONG);
    dest.writeValue(this.testDOUBLE);
    dest.writeSerializable(this.testCharacter);
    dest.writeValue(this.testBOOLEAN);
    dest.writeValue(this.testSHORT);
    dest.writeString(this.name);
    dest.writeParcelable(this.data, flags);
    dest.writeTypedList(this.datas);
    dest.writeTypedArray(this.testArrayResultData, flags);
    dest.writeIntArray(this.testArrayInt);
    dest.writeArray(this.testArrayInteger);
}
 
Example 7
Project: leanback-assistant   File: Movie.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);
    dest.writeString(title);
    dest.writeString(description);
    dest.writeString(cardImage);
    dest.writeString(backgroundImage);
    dest.writeString(videoUrl);
    dest.writeString(contentType);
    dest.writeInt(live ? 1 : 0);
    dest.writeInt(width);
    dest.writeInt(height);
    dest.writeString(audioChannelConfig);
    dest.writeString(purchasePrice);
    dest.writeString(rentalPrice);
    dest.writeInt(ratingStyle);
    dest.writeDouble(ratingScore);
    dest.writeInt(productionYear);
    dest.writeInt(duration);
}
 
Example 8
Project: GongXianSheng   File: ReturnOrderListResponse.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(orderID);
    dest.writeString(doneDate);
    dest.writeString(name);
    dest.writeByte((byte) (isTwoUnit ? 1 : 0));
    dest.writeString(doneDtate);
    dest.writeString(driver);
    dest.writeString(createDate);
    dest.writeString(createUser);
    dest.writeDouble(amount);
    dest.writeDouble(amountTotal);
    dest.writeString(state);
    dest.writeString(loadingDate);
    dest.writeString(vehicle);
    dest.writeByte((byte) (isDispatch ? 1 : 0));
    dest.writeInt(returnOrderID);
    dest.writeString(driveMobile);
    dest.writeString(deliveryType);
    dest.writeInt(hasAttachment);
    dest.writeByte((byte)(returnThirdPartLog?1:0));
    dest.writeTypedList(lines);
    dest.writeStringList(stateTracker);
}
 
Example 9
Project: GitHub   File: RoutePoint.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeDouble(routeLat);
    parcel.writeDouble(routeLng);
    parcel.writeInt(id);

}
 
Example 10
Project: microMathematics   File: PhysicalArea.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags)
{
    min.writeToParcel(dest, flags);
    max.writeToParcel(dest, flags);
    dim.writeToParcel(dest, flags);
    dest.writeDouble(zoom);
}
 
Example 11
Project: Mobike   File: RoutePoint.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeDouble(routeLat);
    parcel.writeDouble(routeLng);
    parcel.writeInt(id);

}
 
Example 12
Project: Simpler   File: Draft.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.uid);
    dest.writeString(this.content);
    dest.writeList(this.photoList);
    dest.writeDouble(this.latitude);
    dest.writeDouble(this.longitude);
    dest.writeByte(this.isEnableGeo ? (byte) 1 : (byte) 0);
    dest.writeByte(this.isLocation ? (byte) 1 : (byte) 0);
    dest.writeString(this.addrStr);
    dest.writeInt(this.menuId);
    dest.writeString(this.groupId);
    dest.writeString(this.groupName);
}
 
Example 13
Project: Celebino   File: GardenStatus.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeParcelable(this.garden, flags);
    dest.writeDouble(this.sunLight);
    dest.writeDouble(this.soilHumidity);
    dest.writeDouble(this.airHumidity);
    dest.writeDouble(this.airTemperature);
    dest.writeValue(this.time);
}
 
Example 14
Project: TPlayer   File: VLocation.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
    dest.writeDouble(altitude);
    dest.writeFloat(accuracy);
    dest.writeFloat(speed);
    dest.writeFloat(bearing);
}
 
Example 15
Project: login   File: Marker.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(longitude);
    dest.writeDouble(latitude);
    dest.writeString(title);
    dest.writeString(snippet);
    dest.writeString(method);
    dest.writeString(time);
    dest.writeString(tag);
}
 
Example 16
Project: Hands-On-Android-UI-Development   File: ClaimItem.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(description);
    dest.writeDouble(amount);
    dest.writeLong(timestamp != null ? timestamp.getTime() : -1);
    dest.writeInt(category != null ? category.ordinal() : -1);
    dest.writeTypedList(attachments);
}
 
Example 17
Project: Hubs   File: UserConfig.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(size());

    for (Map.Entry<String, Object> entry : entrySet()) {
        final Object value = entry.getValue();

        if (value instanceof Integer) {
            dest.writeByte((byte) 1);
            dest.writeString(entry.getKey());
            dest.writeInt((Integer) value);
        } else if (value instanceof Long) {
            dest.writeByte((byte) 2);
            dest.writeString(entry.getKey());
            dest.writeLong((Long) value);
        } else if (value instanceof Float) {
            dest.writeByte((byte) 3);
            dest.writeString(entry.getKey());
            dest.writeFloat((Float) value);
        } else if (value instanceof Double) {
            dest.writeByte((byte) 4);
            dest.writeString(entry.getKey());
            dest.writeDouble((Double) value);
        } else if (value instanceof String) {
            dest.writeByte((byte) 5);
            dest.writeString(entry.getKey());
            dest.writeString((String) value);
        } else if (value instanceof Byte) {
            dest.writeByte((byte) 6);
            dest.writeString(entry.getKey());
            dest.writeByte((Byte) value);
        } else if (value instanceof Boolean) {
            dest.writeByte((byte) 7);
            dest.writeString(entry.getKey());
            dest.writeByte(((Boolean) value) ? (byte) 1 : 0);
        } else {
            throw new RuntimeException("Unsupported type.");
        }
    }
}
 
Example 18
Project: WeatherPlus   File: CityCoordinatesModel.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.name);
    dest.writeDouble(this.lat);
    dest.writeDouble(this.lon);
}
 
Example 19
Project: Phoenix-for-VK   File: ParcelUtils.java   View Source Code Vote up 4 votes
public static void writeObjectDouble(Parcel dest, Double value){
    dest.writeByte(value == null ? (byte) 1 : (byte) 0);
    if(value != null){
        dest.writeDouble(value);
    }
}
 
Example 20
Project: Camera-warner   File: Camera.java   View Source Code Vote up 2 votes
/**
 * Writes the data of the class to a parcel
 * Needed for the class to be parcelable
 * @param dest the parcel to write to
 * @param flags flags; unused
 * @see Parcelable
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
}