本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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());
}
}
示例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);
}
示例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);
}
示例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));
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例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);
}
示例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();
}
}