List of usage examples for android.os Parcel writeInt
public final void writeInt(int val)
From source file:com.example.accountkitsample.ReverbUIManager.java
@Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeString(confirmButton != null ? confirmButton.name() : null); dest.writeString(entryButton != null ? entryButton.name() : null); dest.writeString(loginType != null ? loginType.name() : null); dest.writeString(textPosition != null ? textPosition.name() : null); dest.writeInt(themeResourceId); }
From source file:com.amossys.hooker.common.InterceptEvent.java
private void writeDataMap(Parcel out) { if (data == null) { out.writeInt(0); } else {/*from w w w . j a va 2 s. c o m*/ out.writeInt(data.size()); for (String key : data.keySet()) { out.writeString(key); out.writeString(data.get(key)); } } }
From source file:com.amossys.hooker.common.InterceptEvent.java
private void writeReturnsEntry(Parcel out) { if (returns == null) { out.writeInt(0); } else {/*ww w .j av a 2 s. c om*/ out.writeInt(1); out.writeString(returns.getKey()); out.writeString(returns.getValue()); } }
From source file:com.amossys.hooker.common.InterceptEvent.java
private void writeParametersList(Parcel out) { if (parameters == null) { out.writeInt(0); } else {//from w w w . j a v a 2 s .c om out.writeInt(parameters.size()); for (Entry<String, String> entry : parameters) { out.writeString(entry.getKey()); out.writeString(entry.getValue()); } } }
From source file:com.tlongdev.bktf.model.Item.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(defindex); dest.writeString(name);/*w w w. ja va 2 s.c o m*/ dest.writeInt(quality); dest.writeByte((byte) (tradable ? 1 : 0)); dest.writeByte((byte) (craftable ? 1 : 0)); dest.writeByte((byte) (australium ? 1 : 0)); dest.writeInt(priceIndex); dest.writeInt(weaponWear); dest.writeParcelable(price, flags); }
From source file:io.bunnyblue.noticedog.app.notifications.Notification.java
public void writeToParcel(Parcel out, int flags) { out.writeString(this.packageName); out.writeInt(this.id); out.writeString(this.tag); out.writeString(this.key); out.writeLong(this.when); out.writeInt(this.smallIcon); out.writeParcelable(this.largeIcon, 0); out.writeString(this.tickerText); out.writeString(this.contentTitle); out.writeString(this.contentText); out.writeString(this.contentInfoText); out.writeParcelable(this.expandedLargeIconBig, 0); out.writeString(this.expandedContentTitle); out.writeString(this.expandedContentText); out.writeStringList(this.expandedInboxText); out.writeList(this.people); out.writeParcelable(this.picture, 0); out.writeInt(this.priority); out.writeParcelable(this.pendingLaunchIntent, 0); out.writeList(this.actions); logParcelSize(out);//from w ww . j av a 2 s . c om }
From source file:com.nextgis.maplib.datasource.ngw.Resource.java
@Override public void writeToParcel(Parcel parcel, int i) { parcel.writeString(mName);// ww w. ja v a 2 s.c o m parcel.writeByte(mHasChildren ? (byte) 1 : (byte) 0); parcel.writeString(mDescription); parcel.writeString(mKeyName); parcel.writeLong(mOwnerId); boolean hasPermissions = null != mPermissions; parcel.writeByte(hasPermissions ? (byte) 1 : (byte) 0); if (hasPermissions) { parcel.writeString(mPermissions.toString()); } parcel.writeInt(mType); parcel.writeInt(mId); }
From source file:com.frodo.github.bean.dto.response.Repo.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeByte(fork ? (byte) 1 : (byte) 0); dest.writeByte(isPrivate ? (byte) 1 : (byte) 0); dest.writeLong(created_at != null ? created_at.getTime() : -1); dest.writeLong(pushed_at != null ? pushed_at.getTime() : -1); dest.writeLong(updated_at != null ? updated_at.getTime() : -1); dest.writeInt(this.forks_count); dest.writeLong(this.id); dest.writeParcelable(this.parent, 0); dest.writeParcelable(this.source, 0); dest.writeString(this.clone_url); dest.writeString(this.forks_url); dest.writeString(this.description); dest.writeString(this.homepage); dest.writeString(this.git_url); dest.writeString(this.contents_url); dest.writeString(this.language); dest.writeString(this.default_branch); dest.writeString(this.mirror_url); dest.writeString(this.name); dest.writeString(this.full_name); dest.writeString(this.ssh_url); dest.writeString(this.svn_url); dest.writeParcelable(this.owner, 0); dest.writeInt(this.stargazers_count); dest.writeInt(this.subscribers_count); dest.writeInt(this.network_count); dest.writeInt(this.watchers_count); dest.writeInt(this.size); dest.writeInt(this.open_issues_count); dest.writeByte(has_issues ? (byte) 1 : (byte) 0); dest.writeByte(has_downloads ? (byte) 1 : (byte) 0); dest.writeByte(has_wiki ? (byte) 1 : (byte) 0); dest.writeParcelable(this.permissions, 0); dest.writeParcelable(this.license, 0); dest.writeTypedList(branches);/*from w ww. j av a 2 s. c o m*/ dest.writeString(archive_url); }
From source file:com.github.michalbednarski.intentslab.browser.ComponentFetcher.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt((testWritePermissionForProviders ? 2 : 0)); dest.writeInt(type);//from www . j a v a 2s . c o m dest.writeInt(appType); dest.writeInt(protection); dest.writeString(requireMetaDataSubstring); }
From source file:com.fragmentmaster.app.FragmentMaster.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeBundle(mFragments);/*from w ww .java2 s. co m*/ dest.writeInt(mIsSlideable ? 0 : 1); dest.writeInt(mHomeFragmentApplied ? 0 : 1); }