當前位置: 首頁>>代碼示例>>Java>>正文


Java Parcel.writeLong方法代碼示例

本文整理匯總了Java中android.os.Parcel.writeLong方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.writeLong方法的具體用法?Java Parcel.writeLong怎麽用?Java Parcel.writeLong使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.writeLong方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: 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

示例2: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(TITLE);
    dest.writeString(StreamURI);
    dest.writeBundle(mStationFetchResults);
    dest.writeByte((byte) (mPlayback ? 1 : 0));  // if mPlayback == true, byte == 1
    dest.writeLong(_ID);
    dest.writeString(UNIQUE_ID);
    dest.writeString(SUBTITLE);
    dest.writeString(IMAGE_PATH);
    dest.writeString(IMAGE_FILE_NAME);
    dest.writeString(SMALL_IMAGE_FILE_NAME);
    dest.writeString(CONTENT_TYPE);
    dest.writeString(DESCRIPTION);
    dest.writeInt(RATING);
    dest.writeString(COMMA_SEPARATED_TAGS);
    dest.writeString(CATEGORY);
    dest.writeString(MarkdownDescription);
    dest.writeString(SMALL_IMAGE_PATH);
    dest.writeInt(IS_FAVOURITE);
    dest.writeString(THUMP_UP_STATUS);
}
 
開發者ID:malah-code,項目名稱:Open-Quran-Radio,代碼行數:23,代碼來源:Station.java

示例3: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(id);
    dest.writeString(firstName);
    dest.writeString(lastName);
    dest.writeByte((byte) (online ? 1 : 0));
    dest.writeByte((byte) (onlineMobile ? 1 : 0));
    dest.writeInt(onlineApp);
    dest.writeString(photo50);
    dest.writeString(photo100);
    dest.writeString(photo200);
    dest.writeLong(lastSeen);
    dest.writeInt(platform);
    dest.writeString(status);
    dest.writeInt(sex);
    dest.writeString(domain);
    dest.writeByte((byte) (friend ? 1 : 0));
    dest.writeInt(friendStatus);
}
 
開發者ID:PhoenixDevTeam,項目名稱:Phoenix-for-VK,代碼行數:21,代碼來源:User.java

示例4: warmup

import android.os.Parcel; //導入方法依賴的package包/類
public boolean warmup(long flags) throws RemoteException {
    Parcel _data = Parcel.obtain();
    Parcel _reply = Parcel.obtain();

    boolean _result;
    try {
        _data.writeInterfaceToken("android.support.customtabs.ICustomTabsService");
        _data.writeLong(flags);
        this.mRemote.transact(2, _data, _reply, 0);
        _reply.readException();
        _result = 0 != _reply.readInt();
    } finally {
        _reply.recycle();
        _data.recycle();
    }

    return _result;
}
 
開發者ID:MLNO,項目名稱:airgram,代碼行數:19,代碼來源:ICustomTabsService.java

示例5: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
public void writeToParcel(Parcel dest, int flags) {
    if (callback != null) {
        throw new RuntimeException(
                "Can't marshal callbacks across processes.");
    }
    dest.writeInt(what);
    dest.writeInt(arg1);
    dest.writeInt(arg2);
    if (obj != null) {
        try {
            Parcelable p = (Parcelable) obj;
            dest.writeInt(1);
            dest.writeParcelable(p, flags);
        } catch (ClassCastException e) {
            throw new RuntimeException(
                    "Can't marshal non-Parcelable objects across processes.");
        }
    } else {
        dest.writeInt(0);
    }
    dest.writeLong(when);
    dest.writeBundle(data);
    Messenger.writeMessengerOrNullToParcel(replyTo, dest);
    dest.writeInt(sendingUid);
}
 
開發者ID:wzx54321,項目名稱:XinFramework,代碼行數:26,代碼來源:PresenterMessage.java

示例6: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.sessionId);
    dest.writeString(this.installerPackageName);
    dest.writeString(this.resolvedBaseCodePath);
    dest.writeFloat(this.progress);
    dest.writeByte(this.sealed ? (byte) 1 : (byte) 0);
    dest.writeByte(this.active ? (byte) 1 : (byte) 0);
    dest.writeInt(this.mode);
    dest.writeLong(this.sizeBytes);
    dest.writeString(this.appPackageName);
    dest.writeParcelable(this.appIcon, flags);
    if (appLabel != null) {
        dest.writeString(appLabel.toString());
    }
}
 
開發者ID:coding-dream,項目名稱:TPlayer,代碼行數:17,代碼來源:SessionInfo.java

示例7: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(id);
    dest.writeString(created_at);
    dest.writeInt(width);
    dest.writeInt(height);
    dest.writeString(color);
    dest.writeLong(downloads);
    dest.writeLong(likes);
    dest.writeByte((byte) (liked_by_user ? 1 : 0));
    dest.writeParcelable(exif, flags);
    dest.writeParcelable(location, flags);
    dest.writeParcelable(urls, flags);
    dest.writeParcelable(links, flags);
    dest.writeParcelable(user, flags);
    dest.writeTypedList(current_user_collections);
    dest.writeTypedList(categories);
}
 
開發者ID:alphater,項目名稱:garras,代碼行數:19,代碼來源:PhotoDetails.java

示例8: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(id);
    dest.writeString(author);
    dest.writeString(authorId);
    dest.writeString(toUserId);
    dest.writeString(postId);
    dest.writeLong(timestamp);
}
 
開發者ID:pedromassango,項目名稱:Programmers,代碼行數:10,代碼來源:Notification.java

示例9: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(dbid);
    dest.writeInt(vkid);
    dest.writeInt(ownerId);
    dest.writeParcelable(author, flags);
    dest.writeInt(authorId);
    dest.writeLong(date);
    dest.writeString(text);
    dest.writeInt(replyOwnerId);
    dest.writeInt(replyPostId);
    dest.writeByte((byte) (friendsOnly ? 1 : 0));
    dest.writeInt(commentsCount);
    dest.writeByte((byte) (canPostComment ? 1 : 0));
    dest.writeInt(likesCount);
    dest.writeByte((byte) (canLike ? 1 : 0));
    dest.writeInt(repostCount);
    dest.writeByte((byte) (canRepost ? 1 : 0));
    dest.writeByte((byte) (userReposted ? 1 : 0));
    dest.writeInt(postType);
    dest.writeParcelable(attachments, flags);
    dest.writeInt(signerId);
    dest.writeInt(creatorId);
    dest.writeParcelable(creator, flags);
    dest.writeByte((byte) (canPin ? 1 : 0));
    dest.writeByte((byte) (pinned ? 1 : 0));
    dest.writeTypedList(copyHierarchy);
    dest.writeByte((byte) (deleted ? 1 : 0));
    dest.writeParcelable(source, flags);
    dest.writeInt(viewCount);
    dest.writeByte((byte) (canEdit ? 1 : 0));
}
 
開發者ID:PhoenixDevTeam,項目名稱:Phoenix-for-VK,代碼行數:34,代碼來源:Post.java

示例10: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(_id);
    dest.writeLong(teamID);
    dest.writeString(City);
    dest.writeString(Name);
    dest.writeString(acronym);
    dest.writeParcelable(leagueType, flags);
}
 
開發者ID:riteshakya037,項目名稱:Android-Scrapper,代碼行數:10,代碼來源:Team.java

示例11: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.url);
    dest.writeInt(this.state == null ? -1 : this.state.ordinal());
    dest.writeString(this.description);
    dest.writeString(this.targetUrl);
    dest.writeString(this.context);
    dest.writeLong(this.createdAt != null ? this.createdAt.getTime() : -1);
    dest.writeLong(this.updatedAt != null ? this.updatedAt.getTime() : -1);
}
 
開發者ID:duyp,項目名稱:mvvm-template,代碼行數:10,代碼來源:StatusesModel.java

示例12: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(this.id);
    dest.writeString(this.url);
    dest.writeString(this.commitId);
    dest.writeString(this.commitUrl);
    dest.writeString(this.message);
    dest.writeString(this.sha);
    dest.writeString(this.htmlUrl);
    dest.writeLong(this.createdAt != null ? this.createdAt.getTime() : -1);
    dest.writeParcelable(this.actor, flags);
    dest.writeParcelable(this.requestedReviewer, flags);
    dest.writeParcelable(this.reviewRequester, flags);
    dest.writeParcelable(this.assigner, flags);
    dest.writeParcelable(this.assignee, flags);
    dest.writeParcelable(this.author, flags);
    dest.writeParcelable(this.committer, flags);
    dest.writeParcelable(this.label, flags);
    dest.writeParcelable(this.requestedTeam, flags);
    dest.writeParcelable(this.milestone, flags);
    dest.writeParcelable(this.rename, flags);
    dest.writeParcelable(this.source, flags);
    dest.writeParcelable(this.issue, flags);
    dest.writeParcelable(this.pullRequest, flags);
    dest.writeParcelable(this.tree, flags);
    dest.writeTypedList(this.parents);
    dest.writeInt(this.event == null ? -1 : this.event.ordinal());
}
 
開發者ID:duyp,項目名稱:mvvm-template,代碼行數:29,代碼來源:GenericEvent.java

示例13: 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.label);
    dest.writeParcelable(this.uploader, flags);
    dest.writeString(this.contentType);
    dest.writeString(this.state);
    dest.writeLong(this.size);
    dest.writeInt(this.downloadCout);
    dest.writeLong(this.createdAt != null ? this.createdAt.getTime() : -1);
    dest.writeLong(this.updatedAt != null ? this.updatedAt.getTime() : -1);
    dest.writeString(this.downloadUrl);
}
 
開發者ID:ThirtyDegreesRay,項目名稱:OpenHub,代碼行數:15,代碼來源:ReleaseAsset.java

示例14: writeToParcel

import android.os.Parcel; //導入方法依賴的package包/類
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.minWidth);
    dest.writeInt(this.minHeight);
    dest.writeLong(this.minSize);
    dest.writeStringArray(this.mimeType);
}
 
開發者ID:Sugarya,項目名稱:SugarPhotoPicker,代碼行數:8,代碼來源:ImageConfig.java

示例15: seekTo

import android.os.Parcel; //導入方法依賴的package包/類
public void seekTo(long pos) throws RemoteException {
    Parcel _data = Parcel.obtain();
    Parcel _reply = Parcel.obtain();
    try {
        _data.writeInterfaceToken(Stub.DESCRIPTOR);
        _data.writeLong(pos);
        this.mRemote.transact(24, _data, _reply, 0);
        _reply.readException();
    } finally {
        _reply.recycle();
        _data.recycle();
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:14,代碼來源:IMediaSession.java


注:本文中的android.os.Parcel.writeLong方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。