本文整理汇总了Java中android.os.Parcel.writeSerializable方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeSerializable方法的具体用法?Java Parcel.writeSerializable怎么用?Java Parcel.writeSerializable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeSerializable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例2: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.id);
dest.writeString(this.pname);
dest.writeString(this.pfrom);
dest.writeString(this.pfromId);
dest.writeString(this.fromUrl);
dest.writeString(this.detailUrl);
dest.writeString(this.detailAppUrl);
dest.writeString(this.image);
dest.writeString(this.htmlUrl);
dest.writeString(this.pfromImage);
dest.writeInt(this.type);
dest.writeString(this.typeVal);
dest.writeSerializable(this.price);
dest.writeString(this.symbol);
dest.writeString(this.description);
dest.writeString(this.remarkCount);
dest.writeInt(this.goodCount);
dest.writeInt(this.brandId);
dest.writeInt(this.familyId);
dest.writeInt(this.categoryId);
dest.writeInt(this.amountType);
dest.writeDouble(this.amountMoney);
}
示例3: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeParcelable(uri, flags);
dest.writeSerializable(state);
dest.writeInt(loaderId);
dest.writeString(contentType);
dest.writeString(name);
if (size != null) {
dest.writeInt(1);
dest.writeLong(size);
} else {
dest.writeInt(0);
}
dest.writeString(filename);
}
示例4: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.by);
dest.writeValue(this.id);
dest.writeValue(this.time);
dest.writeSerializable(this.kids);
dest.writeString(this.url);
dest.writeValue(this.score);
dest.writeString(this.title);
dest.writeString(this.text);
dest.writeInt(this.postType == null ? -1 : this.postType.ordinal());
}
示例5: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(this.id);
dest.writeParcelable(this.vehicle, flags);
dest.writeSerializable(this.price);
dest.writeLong(this.date != null ? this.date.getTime() : -1);
dest.writeString(this.info);
}
示例6: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(title);
if (items == null) {
dest.writeByte((byte) (0x00));
dest.writeInt(0);
} else {
dest.writeByte((byte) (0x01));
dest.writeInt(items.size());
final Class<?> objectsType = items.get(0).getClass();
dest.writeSerializable(objectsType);
dest.writeList(items);
}
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(final Parcel dest, final int flags) {
dest.writeString(getName());
dest.writeSerializable(getLocale());
dest.writeInt(getQuality());
dest.writeInt(getLatency());
dest.writeByte((byte) (isNetworkConnectionRequired() ? 1 : 0));
dest.writeStringList(new ArrayList<>(getFeatures()));
dest.writeString(engine);
dest.writeSerializable(gender);
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeByte(showHiddenFiles ? (byte) 1 : (byte) 0);
dest.writeByte(showNonDirectoryFiles ? (byte) 1 : (byte) 0);
dest.writeSerializable(this.defaultDirectory.getWrappedFile());
dest.writeByte(showCancelButton ? (byte) 1 : (byte) 0);
}
示例9: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.code);
dest.writeString(this.name);
dest.writeValue(this.flagId);
dest.writeParcelable(this.currency, flags);
dest.writeSerializable(this.locale);
}
示例10: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(this.id);
dest.writeParcelable(this.vehicle, flags);
dest.writeValue(this.distanceFromLastFillUp);
dest.writeSerializable(this.fuelVolume);
dest.writeSerializable(this.fuelPricePerLitre);
dest.writeSerializable(this.fuelPriceTotal);
dest.writeByte(this.isFullFillUp ? (byte) 1 : (byte) 0);
dest.writeSerializable(this.fuelConsumption);
dest.writeLong(this.date != null ? this.date.getTime() : -1);
dest.writeString(this.info);
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeSerializable(targetCls);
dest.writeInt(getFlags());
dest.writeInt(inAnim);
dest.writeInt(outAnim);
dest.writeInt(showAnim);
dest.writeInt(hideAnim);
dest.writeInt(tempShowAnim);
dest.writeInt(tempHideAnim);
dest.writeString(getInvokerId());
dest.writeString(getTag());
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(this.id);
dest.writeString(this.email);
dest.writeString(this.password);
dest.writeString(this.firstname);
dest.writeString(this.lastname);
dest.writeString(this.phone);
dest.writeValue(this.firstaccess);
dest.writeValue(this.lastaccess);
dest.writeValue(this.lastlogin);
dest.writeValue(this.avatar);
dest.writeSerializable(this.sex);
dest.writeString(this.cdate);
dest.writeString(this.bdate);
dest.writeString(this.description);
dest.writeValue(this.isactive);
dest.writeValue(this.bin);
dest.writeString(this.country);
dest.writeString(this.city);
dest.writeString(this.zip);
dest.writeString(this.street);
dest.writeString(this.house);
dest.writeString(this.flat);
dest.writeValue(this.accessLevel);
dest.writeString(this.role);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeInt(this.sofarBytes);
dest.writeSerializable(this.throwable);
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeSerializable(this.mOutputFile);
dest.writeString(this.mSourceFilePath);
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(mProcessName);
dest.writeInt(mPid);
dest.writeSerializable(mList);
}