當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。