Java Code Examples for android.os.Parcel.writeLong()

The following are Jave code examples for showing how to use writeLong() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: MyFire   File: CircleItem.java   View Source Code Vote up 6 votes
@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);
}
 
Example 2
Project: Open-Quran-Radio   File: Station.java   View Source Code Vote up 6 votes
@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);
}
 
Example 3
Project: Phoenix-for-VK   File: User.java   View Source Code Vote up 6 votes
@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);
}
 
Example 4
Project: airgram   File: ICustomTabsService.java   View Source Code Vote up 6 votes
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;
}
 
Example 5
Project: XinFramework   File: PresenterMessage.java   View Source Code Vote up 6 votes
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);
}
 
Example 6
Project: TPlayer   File: SessionInfo.java   View Source Code Vote up 6 votes
@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());
    }
}
 
Example 7
Project: garras   File: PhotoDetails.java   View Source Code Vote up 6 votes
@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);
}
 
Example 8
Project: Programmers   File: Notification.java   View Source Code Vote up 5 votes
@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);
}
 
Example 9
Project: Phoenix-for-VK   File: Post.java   View Source Code Vote up 5 votes
@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));
}
 
Example 10
Project: Android-Scrapper   File: Team.java   View Source Code Vote up 5 votes
@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);
}
 
Example 11
Project: mvvm-template   File: StatusesModel.java   View Source Code Vote up 5 votes
@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);
}
 
Example 12
Project: mvvm-template   File: GenericEvent.java   View Source Code Vote up 5 votes
@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());
}
 
Example 13
Project: OpenHub   File: ReleaseAsset.java   View Source Code Vote up 5 votes
@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);
}
 
Example 14
Project: SugarPhotoPicker   File: ImageConfig.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.minWidth);
    dest.writeInt(this.minHeight);
    dest.writeLong(this.minSize);
    dest.writeStringArray(this.mimeType);
}
 
Example 15
Project: boohee_v5.6   File: IMediaSession.java   View Source Code Vote up 5 votes
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();
    }
}
 
Example 16
Project: boohee_v5.6   File: Image.java   View Source Code Vote up 5 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.path);
    dest.writeString(this.name);
    dest.writeLong(this.time);
    dest.writeLong(this.originSize);
    dest.writeString(this.id);
}
 
Example 17
Project: Hands-On-Android-UI-Development   File: DatePickerLayout.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(final Parcel out, final int flags) {
    super.writeToParcel(out, flags);

    out.writeLong(timestamp);
    TextUtils.writeToParcel(label, out, flags);
}
 
Example 18
Project: Exoplayer2Radio   File: SpliceInsertCommand.java   View Source Code Vote up 4 votes
public void writeToParcel(Parcel dest) {
  dest.writeInt(componentTag);
  dest.writeLong(componentSplicePts);
  dest.writeLong(componentSplicePlaybackPositionUs);
}
 
Example 19
Project: letv   File: DownloadVideo.java   View Source Code Vote up 4 votes
public void writeToParcel(Parcel dest, int flags) {
    int i;
    int i2 = 1;
    dest.writeLong(this.aid);
    dest.writeLong(this.cid);
    dest.writeInt(this.ord);
    dest.writeInt(this.type);
    dest.writeLong(this.vid);
    dest.writeString(this.name);
    dest.writeString(this.picUrl);
    dest.writeLong(this.totalsize);
    dest.writeLong(this.length);
    dest.writeString(this.videoTypeKey);
    dest.writeString(this.filePath);
    dest.writeInt(this.streamType);
    dest.writeByte((byte) (this.isNew ? 1 : 0));
    dest.writeLong(this.btime);
    dest.writeLong(this.etime);
    if (this.isWatch) {
        i = 1;
    } else {
        i = 0;
    }
    dest.writeByte((byte) i);
    dest.writeLong(this.duration);
    dest.writeString(this.downloadUrl);
    dest.writeLong(this.downloaded);
    dest.writeInt(this.threadNum);
    dest.writeInt(this.state);
    dest.writeString(this.mmsid);
    dest.writeString(this.pcode);
    dest.writeString(this.version);
    dest.writeParcelable(this.mDownloadAlbum, 1);
    dest.writeLong(this.rowID);
    dest.writeLong(this.timestamp);
    dest.writeString(this.speed);
    dest.writeLong(this.pid);
    dest.writeByte((byte) (this.isVideoNormal ? 1 : 0));
    if (this.isVipDownload) {
        i = 1;
    } else {
        i = 0;
    }
    dest.writeByte((byte) i);
    if (!this.hasSubtitle) {
        i2 = 0;
    }
    dest.writeByte((byte) i2);
    dest.writeString(this.subtitleUrl);
}
 
Example 20
Project: okuki   File: WelcomePlace.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeLong(getData().getTime());
}