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


Java Parcel.writeTypedList方法代码示例

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

示例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);
}
 
开发者ID:wp521,项目名称:MyFire,代码行数:25,代码来源:CircleItem.java

示例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));
}
 
开发者ID:PhoenixDevTeam,项目名称:Phoenix-for-VK,代码行数:14,代码来源:Poll.java

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

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

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

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

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

示例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);
}
 
开发者ID:didi,项目名称:VirtualAPK,代码行数:31,代码来源:BookManagerImpl.java

示例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);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:13,代码来源:PlaybackStateCompat.java

示例11: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeTypedList(this.groups);
}
 
开发者ID:miLLlulei,项目名称:Accessibility,代码行数:5,代码来源:Cgroup.java

示例12: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(songs);
}
 
开发者ID:aliumujib,项目名称:Orin,代码行数:5,代码来源:Album.java

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

示例14: writeToParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(mNetworks);
}
 
开发者ID:uncleashi,项目名称:find-client-android,代码行数:5,代码来源:WifiData.java

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


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