Java Code Examples for android.os.Parcel#writeInt()
The following examples show how to use
android.os.Parcel#writeInt() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: SublimePicker File: RecurrenceEndDatePicker.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeInt(mSelectedYear); dest.writeInt(mSelectedMonth); dest.writeInt(mSelectedDay); dest.writeLong(mMinDate); dest.writeLong(mMaxDate); dest.writeInt(mListPosition); }
Example 2
Source Project: ESeal File: UpdateResponse.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.ApkSize); dest.writeByte(this.Force ? (byte) 1 : (byte) 0); dest.writeString(this.UpdateContent); dest.writeString(this.UpdateUrl); dest.writeInt(this.VersionCode); dest.writeString(this.VersionName); }
Example 3
Source Project: android_9.0.0_r45 File: AuthenticatorDescription.java License: Apache License 2.0 | 5 votes |
/** @inheritDoc */ public void writeToParcel(Parcel dest, int flags) { dest.writeString(type); dest.writeString(packageName); dest.writeInt(labelId); dest.writeInt(iconId); dest.writeInt(smallIconId); dest.writeInt(accountPreferencesId); dest.writeByte((byte) (customTokens ? 1 : 0)); }
Example 4
Source Project: RxTools-master File: RxSeekBar.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeFloat(minValue); out.writeFloat(maxValue); out.writeFloat(reserveValue); out.writeInt(cellsCount); out.writeFloat(currSelectedMin); out.writeFloat(currSelectedMax); }
Example 5
Source Project: android_9.0.0_r45 File: ZenModeConfig.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(allowCalls ? 1 : 0); dest.writeInt(allowRepeatCallers ? 1 : 0); dest.writeInt(allowMessages ? 1 : 0); dest.writeInt(allowReminders ? 1 : 0); dest.writeInt(allowEvents ? 1 : 0); dest.writeInt(allowCallsFrom); dest.writeInt(allowMessagesFrom); dest.writeInt(user); dest.writeParcelable(manualRule, 0); if (!automaticRules.isEmpty()) { final int len = automaticRules.size(); final String[] ids = new String[len]; final ZenRule[] rules = new ZenRule[len]; for (int i = 0; i < len; i++) { ids[i] = automaticRules.keyAt(i); rules[i] = automaticRules.valueAt(i); } dest.writeInt(len); dest.writeStringArray(ids); dest.writeTypedArray(rules, 0); } else { dest.writeInt(0); } dest.writeInt(allowAlarms ? 1 : 0); dest.writeInt(allowMedia ? 1 : 0); dest.writeInt(allowSystem ? 1 : 0); dest.writeInt(suppressedVisualEffects); dest.writeInt(areChannelsBypassingDnd ? 1 : 0); }
Example 6
Source Project: WayHoo File: UpgradeInfo.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(id); dest.writeString(key); dest.writeString(version); dest.writeString(versionName); dest.writeString(result); dest.writeString(url); dest.writeString(description); dest.writeLong(downloadSize); dest.writeString(result); dest.writeString(mustUpdate); dest.writeString(changeLog); dest.writeString(errorCode); }
Example 7
Source Project: OTTLivePlayer_vlc File: MediaWrapper.java License: MIT License | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeParcelable(mUri, flags); dest.writeLong(getTime()); dest.writeLong(getLength()); dest.writeInt(getType()); dest.writeParcelable(getPicture(), flags); dest.writeString(getTitle()); dest.writeString(getArtist()); dest.writeString(getGenre()); dest.writeString(getAlbum()); dest.writeString(getAlbumArtist()); dest.writeInt(getWidth()); dest.writeInt(getHeight()); dest.writeString(getArtworkURL()); dest.writeInt(getAudioTrack()); dest.writeInt(getSpuTrack()); dest.writeInt(getTrackNumber()); dest.writeInt(getDiscNumber()); dest.writeLong(getLastModified()); dest.writeLong(getSeen()); if (mSlaves != null) { PSlave pslaves[] = new PSlave[mSlaves.length]; for (int i = 0; i < mSlaves.length; ++i) { pslaves[i] = new PSlave(mSlaves[i]); } dest.writeTypedArray(pslaves, flags); } else dest.writeTypedArray(null, flags); }
Example 8
Source Project: OpenHub File: CommitFile.java License: GNU General Public License v3.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.sha); dest.writeString(this.fileName); dest.writeInt(this.status == null ? -1 : this.status.ordinal()); dest.writeInt(this.additions); dest.writeInt(this.deletions); dest.writeInt(this.changes); dest.writeString(this.blobUrl); dest.writeString(this.rawUrl); dest.writeString(this.contentsUrl); dest.writeString(this.patch); }
Example 9
Source Project: Infinity-For-Reddit File: CustomThemeSettingsItem.java License: GNU Affero General Public License v3.0 | 5 votes |
@Override public void writeToParcel(Parcel parcel, int i) { parcel.writeString(itemName); parcel.writeString(itemDetails); parcel.writeInt(colorValue); parcel.writeByte((byte) (isEnabled ? 1 : 0)); }
Example 10
Source Project: MaterialDesignColorPalette File: PaletteColor.java License: Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel out, int flags) { out.writeString(colorSectionName); out.writeInt(hex); out.writeString(baseName); byte bAbpc = (byte) (isPrimaryColor ? 1 : 0); byte bPc = (byte) (isPreviewColor ? 1 : 0); out.writeByte(bAbpc); out.writeByte(bPc); }
Example 11
Source Project: android-galaxyzoo File: QuestionFragment.java License: GNU General Public License v3.0 | 4 votes |
@Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeTypedList(answers); dest.writeInt(favorite ? 1 : 0); }
Example 12
Source Project: letv File: MediaBrowserCompat.java License: Apache License 2.0 | 4 votes |
public void writeToParcel(Parcel out, int flags) { out.writeInt(this.mFlags); this.mDescription.writeToParcel(out, flags); }
Example 13
Source Project: android_9.0.0_r45 File: AutofillId.java License: Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel parcel, int flags) { parcel.writeInt(mViewId); parcel.writeInt(mVirtual ? 1 : 0); parcel.writeInt(mVirtualId); }
Example 14
Source Project: privacy-friendly-dame File: CheckersGame.java License: GNU General Public License v3.0 | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeParcelable(gameBoard, 0); dest.writeInt(whoseTurn()); }
Example 15
Source Project: Aurora File: DownloadProgressInfo.java License: Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.currentBytes); dest.writeInt(this.contentLength); dest.writeString(this.id); }
Example 16
Source Project: android_9.0.0_r45 File: Fingerprint.java License: Apache License 2.0 | 4 votes |
public void writeToParcel(Parcel out, int flags) { out.writeString(mName.toString()); out.writeInt(mGroupId); out.writeInt(mFingerId); out.writeLong(mDeviceId); }
Example 17
Source Project: android_external_GmsLib File: Task.java License: Apache License 2.0 | 4 votes |
public void writeToParcel(Parcel parcel, int i) { parcel.writeString(serviceName); parcel.writeString(tag); parcel.writeInt(updateCurrent ? 1 : 0); parcel.writeInt(persisted ? 1 : 0); }
Example 18
Source Project: CSipSimple File: IcsAbsSpinner.java License: GNU General Public License v3.0 | 4 votes |
@Override public void writeToParcel(Parcel out, int flags) { super.writeToParcel(out, flags); out.writeLong(selectedId); out.writeInt(position); }
Example 19
Source Project: android_9.0.0_r45 File: PackageInfo.java License: Apache License 2.0 | 4 votes |
@Override public void writeToParcel(Parcel dest, int parcelableFlags) { dest.writeString(packageName); dest.writeStringArray(splitNames); dest.writeInt(versionCode); dest.writeInt(versionCodeMajor); dest.writeString(versionName); dest.writeInt(baseRevisionCode); dest.writeIntArray(splitRevisionCodes); dest.writeString(sharedUserId); dest.writeInt(sharedUserLabel); if (applicationInfo != null) { dest.writeInt(1); applicationInfo.writeToParcel(dest, parcelableFlags); } else { dest.writeInt(0); } dest.writeLong(firstInstallTime); dest.writeLong(lastUpdateTime); dest.writeIntArray(gids); dest.writeTypedArray(activities, parcelableFlags | Parcelable.PARCELABLE_ELIDE_DUPLICATES); dest.writeTypedArray(receivers, parcelableFlags | Parcelable.PARCELABLE_ELIDE_DUPLICATES); dest.writeTypedArray(services, parcelableFlags | Parcelable.PARCELABLE_ELIDE_DUPLICATES); dest.writeTypedArray(providers, parcelableFlags | Parcelable.PARCELABLE_ELIDE_DUPLICATES); dest.writeTypedArray(instrumentation, parcelableFlags); dest.writeTypedArray(permissions, parcelableFlags); dest.writeStringArray(requestedPermissions); dest.writeIntArray(requestedPermissionsFlags); dest.writeTypedArray(signatures, parcelableFlags); dest.writeTypedArray(configPreferences, parcelableFlags); dest.writeTypedArray(reqFeatures, parcelableFlags); dest.writeTypedArray(featureGroups, parcelableFlags); dest.writeInt(installLocation); dest.writeInt(isStub ? 1 : 0); dest.writeInt(coreApp ? 1 : 0); dest.writeInt(requiredForAllUsers ? 1 : 0); dest.writeString(restrictedAccountType); dest.writeString(requiredAccountType); dest.writeString(overlayTarget); dest.writeString(overlayCategory); dest.writeInt(overlayPriority); dest.writeBoolean(mOverlayIsStatic); dest.writeInt(compileSdkVersion); dest.writeString(compileSdkVersionCodename); if (signingInfo != null) { dest.writeInt(1); signingInfo.writeToParcel(dest, parcelableFlags); } else { dest.writeInt(0); } }
Example 20
Source Project: RedReader File: RedditPost.java License: GNU General Public License v3.0 | 4 votes |
public void writeToParcel(final Parcel parcel, final int flags) { parcel.writeString(id); parcel.writeString(name); parcel.writeString(title); parcel.writeString(url); parcel.writeString(author); parcel.writeString(domain); parcel.writeString(subreddit); parcel.writeString(subreddit_id); parcel.writeInt(num_comments); parcel.writeInt(score); parcel.writeInt(ups); parcel.writeInt(downs); parcel.writeInt(gilded); parcel.writeInt(archived ? 1 : 0); parcel.writeInt(over_18 ? 1 : 0); parcel.writeInt(hidden ? 1 : 0); parcel.writeInt(saved ? 1 : 0); parcel.writeInt(is_self ? 1 : 0); parcel.writeInt(clicked ? 1 : 0); parcel.writeInt(stickied ? 1 : 0); if(edited instanceof Long) { parcel.writeLong((Long)edited); } else { parcel.writeLong(-1); } if(likes == null) { parcel.writeInt(0); } else { parcel.writeInt(likes ? 1 : -1); } parcel.writeLong(created); parcel.writeLong(created_utc); parcel.writeString(selftext); parcel.writeString(selftext_html); parcel.writeString(permalink); parcel.writeString(link_flair_text); parcel.writeString(author_flair_text); parcel.writeString(thumbnail); if(spoiler == null) { parcel.writeInt(0); } else { parcel.writeInt(spoiler ? 1 : -1); } getDashUrl(); parcel.writeString(rr_internal_dash_url); }