List of usage examples for android.os Parcel writeByte
public final void writeByte(byte val)
From source file:Main.java
public static void writeNullFlag(Object value, Parcel out) { out.writeByte((byte) (value == null ? 0 : 1)); }
From source file:Main.java
public static void writeBool(Parcel parcel, boolean bool) { if (bool) {//from ww w . j a va 2s. co m parcel.writeByte(TRUE_VALUE); } else { parcel.writeByte(FALSE_VALUE); } }
From source file:com.baasbox.android.BaasLink.java
private static void writeObject(Parcel p, BaasObject o) { if (o == null) { p.writeByte((byte) 0); } else {/* w w w. j a va 2s.c om*/ if (o instanceof BaasDocument) { p.writeByte((byte) 1); } else if (o instanceof BaasFile) { p.writeByte((byte) 2); } p.writeParcelable(o, 0); } }
From source file:com.codebutler.farebot.card.desfire.DesfireFileSettings.java
public void writeToParcel(Parcel parcel, int flags) { parcel.writeByte(fileType); parcel.writeByte(commSetting);//from w ww . j a v a2 s . c o m parcel.writeInt(accessRights.length); parcel.writeByteArray(accessRights); }
From source file:ch.berta.fabio.popularmovies.presentation.viewmodels.MovieDetailsViewModelFavImpl.java
@Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); dest.writeByte(mRefreshing ? (byte) 1 : (byte) 0); }
From source file:com.frodo.github.bean.dto.request.RepoRequestDTO.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.name); dest.writeString(this.description); dest.writeString(this.homepage); dest.writeByte(isPrivate ? (byte) 1 : (byte) 0); dest.writeByte(has_issues ? (byte) 1 : (byte) 0); dest.writeByte(has_wiki ? (byte) 1 : (byte) 0); dest.writeByte(has_downloads ? (byte) 1 : (byte) 0); dest.writeString(this.default_branch); dest.writeByte(auto_init ? (byte) 1 : (byte) 0); dest.writeString(this.gitignore_template); dest.writeString(this.license_template); dest.writeInt(this.team_id); }
From source file:com.nextgis.maplib.datasource.ngw.Resource.java
@Override public void writeToParcel(Parcel parcel, int i) { parcel.writeString(mName);/*from w ww . j a v a 2s . 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.citrus.sdk.payment.PaymentOption.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.name); dest.writeString(this.token); dest.writeByte(savePaymentOption ? (byte) 1 : (byte) 0); }
From source file:com.nextgis.maplib.datasource.ngw.ResourceGroup.java
@Override public void writeToParcel(Parcel parcel, int i) { super.writeToParcel(parcel, i); parcel.writeByte(mChildrenLoaded ? (byte) 1 : (byte) 0); parcel.writeInt(mChildren.size());/* w w w. java 2 s .co m*/ for (Resource resource : mChildren) { parcel.writeInt(resource.getType()); parcel.writeParcelable(resource, i); } }
From source file:it_minds.dk.eindberetningmobil_android.models.GPSCoordinateModel.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeDouble(this.Latitude); dest.writeDouble(this.Longitude); dest.writeByte(IsViaPoint ? (byte) 1 : (byte) 0); }