当前位置: 首页>>代码示例>>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;未经允许,请勿转载。