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