本文整理匯總了Java中android.os.Parcel.readLong方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.readLong方法的具體用法?Java Parcel.readLong怎麽用?Java Parcel.readLong使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.readLong方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: MediaFormat
import android.os.Parcel; //導入方法依賴的package包/類
MediaFormat(Parcel in) {
trackId = in.readString();
mimeType = in.readString();
bitrate = in.readInt();
maxInputSize = in.readInt();
durationUs = in.readLong();
width = in.readInt();
height = in.readInt();
rotationDegrees = in.readInt();
pixelWidthHeightRatio = in.readFloat();
channelCount = in.readInt();
sampleRate = in.readInt();
language = in.readString();
subsampleOffsetUs = in.readLong();
initializationData = new ArrayList<>();
in.readList(initializationData, null);
adaptive = in.readInt() == 1;
maxWidth = in.readInt();
maxHeight = in.readInt();
pcmEncoding = in.readInt();
encoderDelay = in.readInt();
encoderPadding = in.readInt();
}
示例2: Document
import android.os.Parcel; //導入方法依賴的package包/類
protected Document(Parcel in) {
super(in);
id = in.readInt();
ownerId = in.readInt();
title = in.readString();
size = in.readLong();
ext = in.readString();
url = in.readString();
date = in.readLong();
//noinspection ResourceType
type = in.readInt();
accessKey = in.readString();
photoPreview = in.readParcelable(PhotoSizes.class.getClassLoader());
videoPreview = in.readParcelable(VideoPreview.class.getClassLoader());
graffiti = in.readParcelable(Graffiti.class.getClassLoader());
}
示例3: DrawItem
import android.os.Parcel; //導入方法依賴的package包/類
protected DrawItem(Parcel in) {
this.draw_item_id = in.readLong();
this.location_id = (Integer) in.readValue(Integer.class.getClassLoader());
this.draw_item_title = in.readString();
this.draw_item_content = in.readString();
this.draw_item_text_color = in.readInt();
this.draw_item_background_color = in.readInt();
this.draw_item_time_star = in.readInt();
this.draw_item_time_end = in.readInt();
this.draw_item_time_remind = in.readInt();
int tmpDraw_item_status = in.readInt();
this.draw_item_status = tmpDraw_item_status == -1 ? null : EventStatus.values()[tmpDraw_item_status];
this.draw_item_status_reason_change = in.readString();
this.draw_item_is_all_day = in.readByte() != 0;
int tmpDraw_item_type = in.readInt();
this.draw_item_type = tmpDraw_item_type == -1 ? null : EventType.values()[tmpDraw_item_type];
this.draw_item_parent_id = in.readString();
}
示例4: CommentEvent
import android.os.Parcel; //導入方法依賴的package包/類
private CommentEvent(Parcel in) {
this.id = in.readLong();
this.user = in.readParcelable(User.class.getClassLoader());
this.url = in.readString();
this.body = in.readString();
this.bodyHtml = in.readString();
this.htmlUrl = in.readString();
long tmpCreatedAt = in.readLong();
this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
long tmpUpdatedAt = in.readLong();
this.updatedAt = tmpUpdatedAt == -1 ? null : new Date(tmpUpdatedAt);
this.position = in.readInt();
this.line = in.readInt();
this.path = in.readString();
this.commitId = in.readString();
this.repoId = in.readString();
this.login = in.readString();
this.gistId = in.readString();
this.issueId = in.readString();
this.pullRequestId = in.readString();
this.reactions = in.readParcelable(ReactionsModel.class.getClassLoader());
}
示例5: Poll
import android.os.Parcel; //導入方法依賴的package包/類
protected Poll(Parcel in) {
super(in);
id = in.readInt();
ownerId = in.readInt();
creationTime = in.readLong();
question = in.readString();
voteCount = in.readInt();
myAnswerId = in.readInt();
anonymous = in.readByte() != 0;
answers = in.createTypedArrayList(Answer.CREATOR);
board = in.readByte() != 0;
}
示例6: Config
import android.os.Parcel; //導入方法依賴的package包/類
private Config(Parcel in) {
scaleType = in.readString();
fullScreenOnly = in.readByte() != 0;
defaultRetryTime = in.readLong();
title = in.readString();
url = in.readString();
showNavIcon = in.readByte() != 0;
}
示例7: Info
import android.os.Parcel; //導入方法依賴的package包/類
private Info(Parcel in) {
date = in.readLong();
reason = in.readInt();
comment = in.readString();
endDate = in.readLong();
commentVisible = in.readByte() != 0;
}
示例8: Tag
import android.os.Parcel; //導入方法依賴的package包/類
protected Tag(Parcel in) {
this.id = in.readString();
this.name = in.readString();
this.slug = in.readString();
this.description = in.readString();
this.image = in.readString();
this.hidden = in.readByte() != 0;
this.metaTitle = in.readString();
this.metaDescription = in.readString();
long tmpCreatedAt = in.readLong();
this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
long tmpUpdatedAt = in.readLong();
this.updatedAt = tmpUpdatedAt == -1 ? null : new Date(tmpUpdatedAt);
}
示例9: Video
import android.os.Parcel; //導入方法依賴的package包/類
protected Video(Parcel in) {
id = in.readString();
iso6391 = in.readString();
iso31661 = in.readString();
key = in.readString();
name = in.readString();
site = in.readString();
size = in.readLong();
type = in.readString();
}
示例10: CalendarDataSet
import android.os.Parcel; //導入方法依賴的package包/類
/**
* Called from {@link #CREATOR} to create an instance of CalendarDataSet form the given parcel
* <var>source</var>.
*
* @param source Parcel with data for the new instance.
*/
CalendarDataSet(Parcel source) {
this.calendar = (Calendar) source.readSerializable();
this.dateMin = source.readLong();
this.dateMax = source.readLong();
this.startingYear = source.readInt();
this.startingMonth = source.readInt();
this.months = source.readInt();
}
示例11: Video
import android.os.Parcel; //導入方法依賴的package包/類
protected Video(Parcel in) {
super(in);
id = in.readInt();
ownerId = in.readInt();
albumId = in.readInt();
title = in.readString();
description = in.readString();
link = in.readString();
date = in.readLong();
addingDate = in.readLong();
views = in.readInt();
player = in.readString();
photo130 = in.readString();
photo320 = in.readString();
photo800 = in.readString();
accessKey = in.readString();
commentsCount = in.readInt();
canComment = in.readByte() != 0;
canRepost = in.readByte() != 0;
userLikes = in.readByte() != 0;
likesCount = in.readInt();
mp4link240 = in.readString();
mp4link360 = in.readString();
mp4link480 = in.readString();
mp4link720 = in.readString();
mp4link1080 = in.readString();
externalLink = in.readString();
platform = in.readString();
repeat = in.readByte() != 0;
duration = in.readInt();
privacyView = in.readParcelable(SimplePrivacy.class.getClassLoader());
privacyComment = in.readParcelable(SimplePrivacy.class.getClassLoader());
canEdit = in.readByte() != 0;
canAdd = in.readByte() != 0;
}
示例12: Repository
import android.os.Parcel; //導入方法依賴的package包/類
protected Repository(Parcel in) {
this.id = in.readInt();
this.name = in.readString();
this.fullName = in.readString();
this.repPrivate = in.readByte() != 0;
this.htmlUrl = in.readString();
this.description = in.readString();
this.language = in.readString();
this.owner = in.readParcelable(User.class.getClassLoader());
this.defaultBranch = in.readString();
long tmpCreatedAt = in.readLong();
this.createdAt = tmpCreatedAt == -1 ? null : new Date(tmpCreatedAt);
long tmpUpdatedAt = in.readLong();
this.updatedAt = tmpUpdatedAt == -1 ? null : new Date(tmpUpdatedAt);
long tmpPushedAt = in.readLong();
this.pushedAt = tmpPushedAt == -1 ? null : new Date(tmpPushedAt);
this.gitUrl = in.readString();
this.sshUrl = in.readString();
this.cloneUrl = in.readString();
this.svnUrl = in.readString();
this.size = in.readInt();
this.stargazersCount = in.readInt();
this.watchersCount = in.readInt();
this.forksCount = in.readInt();
this.openIssuesCount = in.readInt();
this.subscribersCount = in.readInt();
this.fork = in.readByte() != 0;
this.parent = in.readParcelable(Repository.class.getClassLoader());
this.permissions = in.readParcelable(RepositoryPermissions.class.getClassLoader());
this.hasIssues = in.readByte() != 0;
this.hasProjects = in.readByte() != 0;
this.hasDownloads = in.readByte() != 0;
this.hasWiki = in.readByte() != 0;
this.hasPages = in.readByte() != 0;
this.sinceStargazersCount = in.readInt();
int tmpTrendingSince = in.readInt();
this.since = tmpTrendingSince == -1 ? null : TrendingSince.values()[tmpTrendingSince];
}
示例13: Media
import android.os.Parcel; //導入方法依賴的package包/類
protected Media(Parcel in) {
id = in.readLong();
posterPath = in.readString();
title = in.readString();
name = in.readString();
mediaType = in.readString();
}
示例14: VUserInfo
import android.os.Parcel; //導入方法依賴的package包/類
private VUserInfo(Parcel source) {
id = source.readInt();
name = source.readString();
iconPath = source.readString();
flags = source.readInt();
serialNumber = source.readInt();
creationTime = source.readLong();
lastLoggedInTime = source.readLong();
partial = source.readInt() != 0;
profileGroupId = source.readInt();
guestToRemove = source.readInt() != 0;
}
示例15: Alert
import android.os.Parcel; //導入方法依賴的package包/類
protected Alert(Parcel in) {
this.id = in.readString();
this.count = in.readInt();
this.name = in.readString();
this.date = in.readLong();
}