List of usage examples for android.os Parcel readInt
public final int readInt()
From source file:net.issarlk.androbunny.inkbunny.File.java
public File(Parcel in) { this.id = in.readInt(); this.name = in.readString(); this.thumbnails = new Thumbnail[in.readInt()]; for (int i = this.thumbnails.length - 1; i >= 0; i--) { if (in.readInt() == 1) { this.thumbnails[i] = Thumbnail.CREATOR.createFromParcel(in); }// w w w .j a va2s.c o m } this.mimetype = in.readString(); this.submission_id = in.readInt(); this.user_id = in.readInt(); this.submission_file_order = in.readInt(); this.dimensions = new Dimension2D[in.readInt()]; for (int i = this.dimensions.length - 1; i >= 0; i--) { if (in.readInt() == 1) { this.dimensions[i] = Dimension2D.CREATOR.createFromParcel(in); } } this.md5s = new String[5]; in.readStringArray(this.md5s); this.file_urls = new URI[3]; for (int i = 0; i < 3; i++) { String tmp = in.readString(); if (tmp != null) { try { this.file_urls[i] = new URI(tmp); } catch (URISyntaxException e) { Log.e(TAG, e.toString()); } } } this.deleted = in.readInt(); this.create_datetime = in.readString(); this.create_datetime_usertime = in.readString(); }
From source file:com.example.testmoodle.util.Document.java
private Document(Parcel in) { this.type = in.readString(); this.fileName = in.readString(); this.filePath = in.readString(); this.fileSize = in.readInt(); this.fileURL = in.readString(); this.content = in.readString(); this.timeCreated = in.readLong(); this.timeModified = in.readLong(); this.sortedOrder = in.readInt(); this.userID = in.readInt(); this.author = in.readString(); this.license = in.readString(); }
From source file:com.achep.base.dashboard.DashboardCategory.java
private DashboardCategory(Parcel in) { titleRes = in.readInt(); title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); final int count = in.readInt(); for (int n = 0; n < count; n++) { DashboardTile tile = DashboardTile.CREATOR.createFromParcel(in); tiles.add(tile);/* w ww . j ava 2 s .c o m*/ } }
From source file:com.yanzhenjie.album.api.widget.Widget.java
protected Widget(Parcel in) { mUiStyle = in.readInt(); mStatusBarColor = in.readInt();// w w w . j av a 2 s . c om mToolBarColor = in.readInt(); mNavigationBarColor = in.readInt(); mTitle = in.readString(); mMediaItemCheckSelector = in.readParcelable(ColorStateList.class.getClassLoader()); mBucketItemCheckSelector = in.readParcelable(ColorStateList.class.getClassLoader()); mButtonStyle = in.readParcelable(ButtonStyle.class.getClassLoader()); }
From source file:com.vk.sdk.api.model.VKApiVideo.java
/** * Creates a Video instance from Parcel. *///from w ww . ja va 2 s. c o m public VKApiVideo(Parcel in) { this.id = in.readInt(); this.owner_id = in.readInt(); this.album_id = in.readInt(); this.title = in.readString(); this.description = in.readString(); this.duration = in.readInt(); this.link = in.readString(); this.date = in.readLong(); this.views = in.readInt(); this.player = in.readString(); this.photo_130 = in.readString(); this.photo_320 = in.readString(); this.photo_640 = in.readString(); this.photo = in.readParcelable(VKPhotoSizes.class.getClassLoader()); this.access_key = in.readString(); this.comments = in.readInt(); this.can_comment = in.readByte() != 0; this.can_repost = in.readByte() != 0; this.user_likes = in.readByte() != 0; this.repeat = in.readByte() != 0; this.likes = in.readInt(); this.privacy_view = in.readInt(); this.privacy_comment = in.readInt(); this.mp4_240 = in.readString(); this.mp4_360 = in.readString(); this.mp4_480 = in.readString(); this.mp4_720 = in.readString(); this.external = in.readString(); }
From source file:com.artemchep.horario.database.models.Note.java
public Note(Parcel source) { key = source.readString();/* w w w . j a v a 2 s. c om*/ title = source.readString(); content = source.readString(); contentHtml = source.readString(); priority = source.readString(); source.readStringList(subjects = new ArrayList<>()); due = source.readInt(); }
From source file:moodle.android.moodle.model.Content.java
private Content(Parcel in) { this.type = in.readString(); this.filename = in.readString(); this.filepath = in.readString(); this.filesize = in.readInt(); this.fileurl = in.readString(); this.content = in.readString(); this.timecreated = in.readLong(); this.timemodified = in.readLong(); this.sortorder = in.readInt(); this.userid = in.readInt(); this.author = in.readString(); this.license = in.readString(); }
From source file:com.guavabot.alarmpreference.Alarm.java
private Alarm(Parcel in) { mAlarmOn = in.readByte() != 0;/* w w w. j a v a 2 s . c o m*/ String time = in.readString(); mTime = TIME_FMT.parseLocalTime(time); mWeeklyAlarms = in.readInt(); mId = in.readLong(); }
From source file:fr.free.nrw.commons.contributions.Contribution.java
public Contribution(Parcel in) { super(in);//from w w w . ja v a 2 s. com contentUri = in.readParcelable(Uri.class.getClassLoader()); source = in.readString(); state = in.readInt(); transferred = in.readLong(); isMultiple = in.readInt() == 1; }
From source file:com.lugia.timetable.Event.java
/** * Constructor for Parcelable./*from ww w . j av a2 s. co m*/ * * @param parcel the parcel. */ private Event(Parcel parcel) { mId = parcel.readLong(); mName = parcel.readString(); mVenue = parcel.readString(); mNote = parcel.readString(); mType = parcel.readInt(); mDate = parcel.readInt(); mTimeStart = parcel.readInt(); mTimeEnd = parcel.readInt(); }