本文整理汇总了Java中android.os.Parcel.writeDouble方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeDouble方法的具体用法?Java Parcel.writeDouble怎么用?Java Parcel.writeDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeDouble方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例2: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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());
}
示例3: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
/**
* 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);
}
示例4: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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));
}
示例5: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
}
示例6: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeDouble(routeLat);
parcel.writeDouble(routeLng);
parcel.writeInt(id);
}
示例9: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags)
{
min.writeToParcel(dest, flags);
max.writeToParcel(dest, flags);
dim.writeToParcel(dest, flags);
dest.writeDouble(zoom);
}
示例10: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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);
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@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.");
}
}
}