下面列出了android.os.Parcel#readInt ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
/** {@hide} */
public SessionInfo(Parcel source) {
sessionId = source.readInt();
installerPackageName = source.readString();
resolvedBaseCodePath = source.readString();
progress = source.readFloat();
sealed = source.readInt() != 0;
active = source.readInt() != 0;
mode = source.readInt();
installReason = source.readInt();
sizeBytes = source.readLong();
appPackageName = source.readString();
appIcon = source.readParcelable(null);
appLabel = source.readString();
installLocation = source.readInt();
originatingUri = source.readParcelable(null);
originatingUid = source.readInt();
referrerUri = source.readParcelable(null);
grantedRuntimePermissions = source.readStringArray();
installFlags = source.readInt();
}
protected WeekdaysDataItem(Parcel in) {
this.position = in.readInt();
this.calendarId = in.readInt();
this.label = in.readString();
this.numberOfLetters = in.readInt();
this.selected = in.readByte() != 0;
this.textDrawableType = in.readInt();
}
/**
* Creates a University instance from Parcel.
*/
public VKApiUniversity(Parcel in) {
this.id = in.readInt();
this.country_id = in.readInt();
this.city_id = in.readInt();
this.name = in.readString();
this.faculty = in.readString();
this.faculty_name = in.readString();
this.chair = in.readInt();
this.chair_name = in.readString();
this.graduation = in.readInt();
this.education_form = in.readString();
this.education_status = in.readString();
}
protected Region(Parcel in) {
mUniqueId = in.readString();
mBluetoothAddress = in.readString();
int size = in.readInt();
mIdentifiers = new ArrayList<Identifier>(size);
for (int i = 0; i < size; i++) {
String identifierString = in.readString();
if (identifierString == null) {
mIdentifiers.add(null);
} else {
Identifier identifier = Identifier.parse(identifierString);
mIdentifiers.add(identifier);
}
}
}
protected LightSwitchProxyModel(Parcel in) {
this.dimPercent = in.readInt();
this.colorTemp = in.readInt();
this.on = in.readByte() != 0;
this.supportsColorTemp = in.readByte() != 0;
this.supportsOnOff = in.readByte() != 0;
this.supportsDim = in.readByte() != 0;
}
protected Song(Parcel in) {
this.content = in.readString();
this.copy_type = in.readString();
this.toneid = in.readString();
this.info = in.readString();
this.all_rate = in.readString();
this.resource_type = in.readInt();
this.relate_status = in.readInt();
this.has_mv_mobile = in.readInt();
this.song_id = in.readString();
this.title = in.readString();
this.ting_uid = in.readString();
this.author = in.readString();
this.album_id = in.readString();
this.album_title = in.readString();
this.is_first_publish = in.readInt();
this.havehigh = in.readInt();
this.charge = in.readInt();
this.has_mv = in.readInt();
this.learn = in.readInt();
this.song_source = in.readString();
this.piao_id = in.readString();
this.korean_bb_song = in.readString();
this.resource_type_ext = in.readString();
this.artist_id = in.readString();
this.all_artist_id = in.readString();
this.lrclink = in.readString();
this.data_source = in.readInt();
this.cluster_id = in.readInt();
this.bitrate = in.readParcelable(Bitrate.class.getClassLoader());
this.songinfo = in.readParcelable(SongInfo.class.getClassLoader());
}
public FragmentState(Parcel in) {
mClassName = in.readString();
mIndex = in.readInt();
mFromLayout = in.readInt() != 0;
mFragmentId = in.readInt();
mContainerId = in.readInt();
mTag = in.readString();
mRetainInstance = in.readInt() != 0;
mDetached = in.readInt() != 0;
mArguments = in.readBundle();
mSavedFragmentState = in.readBundle();
}
protected GActivityBuilder(Parcel in) {
this.activityClass = in.readString();
this.extras = in.readBundle(getClass().getClassLoader());
this.data = in.readParcelable(Uri.class.getClassLoader());
this.enterAnim = in.readInt();
this.exitAnim = in.readInt();
this.flags = in.readInt();
}
protected NodeBean(Parcel in) {
id = in.readInt();
name = in.readString();
title = in.readString();
title_alternative = in.readString();
url = in.readString();
topics = in.readInt();
avatar_mini = in.readString();
avatar_normal = in.readString();
avatar_large = in.readString();
}
private Suggestion(Parcel in) {
mId = in.readString();
mTitle = in.readCharSequence();
mSummary = in.readCharSequence();
mIcon = in.readParcelable(Icon.class.getClassLoader());
mFlags = in.readInt();
mPendingIntent = in.readParcelable(PendingIntent.class.getClassLoader());
}
protected LuhnCard(Parcel in) {
pan = in.readString();
cardName = in.readString();
expMonth = in.readInt();
expYear = in.readInt();
cvv = in.readString();
pin = in.readString();
expDate = in.readString();
}
private SavedState(Parcel in) {
super(in);
color = in.readInt();
}
@Override public BackstackFrame createFromParcel(Parcel source) {
Screen screen = Screen.values()[source.readInt()];
Bundle bundle = source.readBundle();
SparseArray<Parcelable> viewState = bundle.getSparseParcelableArray("viewState");
return new BackstackFrame(screen, viewState);
}
public Message(Parcel p) {
mMessage = p.readString();
mActionMessage = p.readString();
mActionIcon = p.readInt();
mToken = p.readParcelable(getClass().getClassLoader());
}
public Emojicon(Parcel in) {
this.icon = in.readInt();
this.value = (char) in.readInt();
this.emoji = in.readString();
}
private SavedState(Parcel in) {
super(in);
index = in.readInt();
}
@Override
public @NonNull OvalGuideRenderer createFromParcel(@NonNull Parcel in) {
return new OvalGuideRenderer(in.readInt());
}
private SavedState(Parcel in) {
super(in);
currentPage = in.readInt();
}
private Cell(Parcel in) {
column = in.readInt();
row = in.readInt();
}
private ClickCounter(Parcel parcel) {
count = parcel.readInt();
}