本文整理汇总了Java中android.os.Parcel.writeValue方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeValue方法的具体用法?Java Parcel.writeValue怎么用?Java Parcel.writeValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(this.iD);
dest.writeString(this.name);
dest.writeValue(this.packageBaseID);
dest.writeString(this.packageBase);
dest.writeString(this.version);
dest.writeString(this.description);
dest.writeString(this.uRL);
dest.writeValue(this.numVotes);
dest.writeValue(this.popularity);
dest.writeString(this.outOfDate);
dest.writeString(this.maintainer);
dest.writeValue(this.firstSubmitted);
dest.writeValue(this.lastModified);
dest.writeString(this.uRLPath);
}
示例2: parcelClone
import android.os.Parcel; //导入方法依赖的package包/类
public MasterSecret parcelClone() {
Parcel thisParcel = Parcel.obtain();
Parcel thatParcel = Parcel.obtain();
byte[] bytes = null;
thisParcel.writeValue(this);
bytes = thisParcel.marshall();
thatParcel.unmarshall(bytes, 0, bytes.length);
thatParcel.setDataPosition(0);
MasterSecret that = (MasterSecret)thatParcel.readValue(MasterSecret.class.getClassLoader());
thisParcel.recycle();
thatParcel.recycle();
return that;
}
示例3: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(this.fromTime);
dest.writeValue(this.toTime);
dest.writeValue(this.atTime);
dest.writeString(this.episode);
dest.writeValue(this.similarity);
dest.writeValue(this.anilistId);
dest.writeString(this.japaneseTitle);
dest.writeString(this.englishTitle);
dest.writeString(this.romanjiTitle);
dest.writeStringList(this.synonyms);
dest.writeString(this.season);
dest.writeString(this.anime);
dest.writeString(this.fileName);
dest.writeString(this.tokenThumb);
}
示例4: onWriteToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
protected void onWriteToParcel(Parcel dest, int flags) {
dest.writeInt(mMode);
switch (mMode){
case MODE_MESSAGE:
dest.writeValue(mMessage);
break;
case MODE_ITEMS:
dest.writeArray(mItems);
dest.writeInt(mSelectedIndexes == null ? 0 : mSelectedIndexes[0]);
break;
case MODE_MULTI_ITEMS:
dest.writeArray(mItems);
int length = mSelectedIndexes == null ? 0 : mSelectedIndexes.length;
dest.writeInt(length);
if(length > 0)
dest.writeIntArray(mSelectedIndexes);
break;
}
}
示例5: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(raw);
dest.writeValue(full);
dest.writeValue(regular);
dest.writeValue(small);
dest.writeValue(thumb);
}
示例6: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(this.id);
dest.writeString(this.author);
dest.writeString(this.rhythmic);
dest.writeString(this.content);
dest.writeString(this.pyquan);
dest.writeString(this.pyquany);
dest.writeString(this.pyjian);
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(this.dstOffset);
dest.writeValue(this.rawOffset);
dest.writeString(this.status);
dest.writeString(this.timeZoneId);
dest.writeString(this.timeZoneName);
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.id);
dest.writeString(this.name);
dest.writeString(this.pinYin);
dest.writeValue(this.gisGcj02Lat);
dest.writeValue(this.gisGcj02Lng);
dest.writeValue(this.gisBd09Lat);
dest.writeValue(this.gisBd09Lng);
dest.writeString(this.zipcode);
dest.writeList(this.cityList);
}
示例9: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.name);
dest.writeString(this.details);
dest.writeValue(this.length);
dest.writeInt(this.id);
}
示例10: marshall
import android.os.Parcel; //导入方法依赖的package包/类
static byte[] marshall(Object o) {
Parcel parcel = Parcel.obtain();
parcel.writeValue(o);
byte[] result = parcel.marshall();
parcel.recycle();
return result;
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(make);
dest.writeValue(model);
dest.writeValue(exposureTime);
dest.writeValue(aperture);
dest.writeValue(focalLength);
dest.writeValue(iso);
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(dt);
dest.writeValue(temp);
dest.writeValue(pressure);
dest.writeValue(humidity);
dest.writeList(weather);
dest.writeValue(speed);
dest.writeValue(deg);
dest.writeValue(clouds);
dest.writeValue(rain);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeString(mSerializedPattern);
dest.writeInt(mDisplayMode);
dest.writeValue(mInputEnabled);
dest.writeValue(mInStealthMode);
dest.writeValue(mTactileFeedbackEnabled);
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int flags) {
parcel.writeSerializable(placeClass);
parcel.writeSerializable(dataClass);
if (Void.class.equals(dataClass)) {
parcel.writeValue(null);
} else if (Parcelable.class.isAssignableFrom(dataClass)) {
parcel.writeParcelable((Parcelable) data, 0);
} else if (Serializable.class.isAssignableFrom(dataClass)) {
parcel.writeSerializable((Serializable) data);
} else {
throw new RuntimeException(String.format("Error restoring place %s", placeClass));
}
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this._id);
dest.writeString(this.address);
dest.writeString(this.horario);
dest.writeValue(this.lat);
dest.writeValue(this.lon);
dest.writeString(this.name);
dest.writeString(this.phone);
dest.writeString(this.locality);
dest.writeString(this.province);
dest.writeString(this.postal_code);
}