本文整理汇总了Java中android.os.Parcel.writeTypedList方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeTypedList方法的具体用法?Java Parcel.writeTypedList怎么用?Java Parcel.writeTypedList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeTypedList方法的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.writeString(this.address);
dest.writeString(this.appointUserNickname);
dest.writeString(this.appointUserid);
dest.writeString(this.content);
dest.writeLong(this.createTime);
dest.writeInt(this.goodjobCount);
dest.writeString(this.id);
dest.writeString(this.isvalid);
dest.writeDouble(this.latitude);
dest.writeDouble(this.longitude);
dest.writeString(this.pictures);
dest.writeInt(this.replyCount);
dest.writeInt(this.type);
dest.writeString(this.icon);
dest.writeString(this.userId);
dest.writeString(this.nickName);
dest.writeTypedList(goodjobs);
dest.writeTypedList(replys);
dest.writeString(this.linkImg);
dest.writeString(this.linkTitle);
dest.writeInt(this.takeTimes);
}
示例3: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeInt(id);
dest.writeInt(ownerId);
dest.writeLong(creationTime);
dest.writeString(question);
dest.writeInt(voteCount);
dest.writeInt(myAnswerId);
dest.writeByte((byte) (anonymous ? 1 : 0));
dest.writeTypedList(answers);
dest.writeByte((byte) (board ? 1 : 0));
}
示例4: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.mode);
dest.writeParcelable(this.cell, flags);
dest.writeTypedList(this.allCell);
dest.writeTypedList(this.neighboringCell);
dest.writeParcelable(this.location, flags);
}
示例5: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(final Parcel dest, final int flags) {
dest.writeLong(id);
dest.writeString(description);
dest.writeDouble(amount);
dest.writeLong(timestamp != null ? timestamp.getTime() : -1);
dest.writeInt(category != null ? category.ordinal() : -1);
dest.writeTypedList(attachments);
}
示例6: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeTypedList(on_hold);
parcel.writeTypedList(plan_to_read);
parcel.writeTypedList(dropped);
parcel.writeTypedList(completed);
parcel.writeTypedList(reading);
parcel.writeTypedList(watching);
parcel.writeTypedList(plan_to_watch);
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(id);
dest.writeString(name);
dest.writeInt(servings);
dest.writeString(image);
dest.writeTypedList(ingredients);
dest.writeTypedList(steps);
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(animeId);
dest.writeString(episode);
dest.writeString(link);
dest.writeTypedList(medias);
}
示例9: onTransact
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
throws RemoteException {
switch (code) {
case INTERFACE_TRANSACTION: {
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_getBookList: {
data.enforceInterface(DESCRIPTOR);
List<Book> result = this.getBookList();
reply.writeNoException();
reply.writeTypedList(result);
return true;
}
case TRANSACTION_addBook: {
data.enforceInterface(DESCRIPTOR);
Book arg0;
if ((0 != data.readInt())) {
arg0 = Book.CREATOR.createFromParcel(data);
} else {
arg0 = null;
}
this.addBook(arg0);
reply.writeNoException();
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
示例10: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.mState);
dest.writeLong(this.mPosition);
dest.writeFloat(this.mSpeed);
dest.writeLong(this.mUpdateTime);
dest.writeLong(this.mBufferedPosition);
dest.writeLong(this.mActions);
TextUtils.writeToParcel(this.mErrorMessage, dest, flags);
dest.writeTypedList(this.mCustomActions);
dest.writeLong(this.mActiveItemId);
dest.writeBundle(this.mExtras);
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeTypedList(this.groups);
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedList(songs);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.count);
dest.writeInt(this.page);
dest.writeTypedList(this.data);
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedList(mNetworks);
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.mActive);
dest.writeTypedList(mCrumbs);
dest.writeInt(this.mVisibility);
}