当前位置: 首页>>代码示例>>Java>>正文


Java Parcel.writeDouble方法代码示例

本文整理汇总了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);
}
 
开发者ID:ebridfighter,项目名称:GongXianSheng,代码行数:19,代码来源:ReturnOrderListResponse.java

示例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());
}
 
开发者ID:ANFR-France,项目名称:proto-collecte,代码行数:21,代码来源:MesureContract.java

示例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);
}
 
开发者ID:wax911,项目名称:anitrend-app,代码行数:28,代码来源:Video.java

示例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));
}
 
开发者ID:RutoTV,项目名称:9AnimeAndroid,代码行数:19,代码来源:Anime.java

示例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);
  }
}
 
开发者ID:mapbox,项目名称:mapbox-events-android,代码行数:24,代码来源:LocationEvent.java

示例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);
}
 
开发者ID:LightSun,项目名称:data-mediator,代码行数:23,代码来源:HistoryData.java

示例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);
}
 
开发者ID:googlesamples,项目名称:leanback-assistant,代码行数:21,代码来源:Movie.java

示例8: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeDouble(routeLat);
    parcel.writeDouble(routeLng);
    parcel.writeInt(id);

}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:RoutePoint.java

示例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);
}
 
开发者ID:mkulesh,项目名称:microMathematics,代码行数:9,代码来源:PhysicalArea.java

示例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);
}
 
开发者ID:liying2008,项目名称:Simpler,代码行数:16,代码来源:Draft.java

示例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);
}
 
开发者ID:mrh3nry,项目名称:Celebino,代码行数:11,代码来源:GardenStatus.java

示例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);
}
 
开发者ID:coding-dream,项目名称:TPlayer,代码行数:10,代码来源:VLocation.java

示例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);
}
 
开发者ID:yuhodev,项目名称:login,代码行数:11,代码来源:Marker.java

示例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);
}
 
开发者ID:PacktPublishing,项目名称:Hands-On-Android-UI-Development,代码行数:9,代码来源:ClaimItem.java

示例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.");
        }
    }
}
 
开发者ID:nekocode,项目名称:Hubs,代码行数:41,代码来源:UserConfig.java


注:本文中的android.os.Parcel.writeDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。