Example usage for android.os Parcel writeByte

List of usage examples for android.os Parcel writeByte

Introduction

In this page you can find the example usage for android.os Parcel writeByte.

Prototype

public final void writeByte(byte val) 

Source Link

Document

Write a byte value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Usage

From source file:com.vk.sdk.api.model.VKApiWikiPage.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.group_id);
    dest.writeInt(this.creator_id);
    dest.writeString(this.title);
    dest.writeString(this.source);
    dest.writeByte(current_user_can_edit ? (byte) 1 : (byte) 0);
    dest.writeByte(current_user_can_edit_access ? (byte) 1 : (byte) 0);
    dest.writeInt(this.who_can_view);
    dest.writeInt(this.who_can_edit);
    dest.writeInt(this.editor_id);
    dest.writeLong(this.edited);
    dest.writeLong(this.created);
    dest.writeString(this.parent);
    dest.writeString(this.parent2);
}

From source file:android.net.ProxyInfo.java

/**
 * Implement the Parcelable interface./* w w w  .  j  a va2s .com*/
 * @hide
 */
public void writeToParcel(Parcel dest, int flags) {
    if (!Uri.EMPTY.equals(mPacFileUrl)) {
        dest.writeByte((byte) 1);
        mPacFileUrl.writeToParcel(dest, 0);
        dest.writeInt(mPort);
        return;
    } else {
        dest.writeByte((byte) 0);
    }
    if (mHost != null) {
        dest.writeByte((byte) 1);
        dest.writeString(mHost);
        dest.writeInt(mPort);
    } else {
        dest.writeByte((byte) 0);
    }
    dest.writeString(mExclusionList);
    dest.writeStringArray(mParsedExclusionList);
}

From source file:com.vk.sdk.api.model.VKApiComment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.from_id);
    dest.writeLong(this.date);
    dest.writeString(this.text);
    dest.writeInt(this.reply_to_user);
    dest.writeInt(this.reply_to_comment);
    dest.writeInt(this.likes);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(can_like ? (byte) 1 : (byte) 0);
    dest.writeParcelable(this.attachments, flags);
}

From source file:com.vk.sdk.api.model.VKApiPhotoAlbum.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.title);
    dest.writeInt(this.size);
    dest.writeInt(this.privacy);
    dest.writeString(this.description);
    dest.writeInt(this.owner_id);
    dest.writeByte(can_upload ? (byte) 1 : (byte) 0);
    dest.writeLong(this.updated);
    dest.writeLong(this.created);
    dest.writeInt(this.thumb_id);
    dest.writeString(this.thumb_src);
    dest.writeParcelable(this.photo, flags);
}

From source file:jp.alessandro.android.iab.Purchase.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mOriginalJson);//from www . j a va2  s. c  om
    dest.writeString(mOrderId);
    dest.writeString(mPackageName);
    dest.writeString(mSku);
    dest.writeLong(mPurchaseTime);
    dest.writeInt(mPurchaseState);
    dest.writeString(mDeveloperPayload);
    dest.writeString(mToken);
    dest.writeByte(mAutoRenewing ? (byte) 1 : (byte) 0);
    dest.writeString(mSignature);
}

From source file:com.nextgis.maplib.datasource.ngw.Connection.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(mName);//from  ww  w  .  ja  v  a2  s . com
    parcel.writeString(mLogin);
    parcel.writeString(mPassword);
    parcel.writeString(mURL);
    parcel.writeByte(mIsConnected ? (byte) 1 : (byte) 0);
    parcel.writeString(mCookie);
    parcel.writeInt(mId);
    parcel.writeInt(mSupportedTypes.size());
    for (Integer type : mSupportedTypes)
        parcel.writeInt(type);
    parcel.writeParcelable(mRootResource, i);
}

From source file:com.baasbox.android.BaasUser.java

private static void writeOptJson(Parcel p, JsonObject o) {
    if (o == null) {
        p.writeByte((byte) 0);
    } else {//from ww  w .j  ava  2  s .c o m
        p.writeByte((byte) 1);
        p.writeParcelable(o, 0);
    }
}

From source file:com.paymaya.sdk.android.checkout.models.Checkout.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(totalAmount, flags);
    dest.writeParcelable(buyer, flags);//from  ww  w  .  j  a  va2 s.  c  o m
    dest.writeTypedList(itemList);
    dest.writeParcelable(redirectUrl, flags);
    dest.writeString(requestReferenceNumber);
    dest.writeByte((byte) (isAutoRedirect ? 1 : 0));
    if (metadata != null) {
        dest.writeString(metadata.toString());
    }
}

From source file:com.eTilbudsavis.etasdk.model.Share.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mName);
    dest.writeString(this.mEmail);
    dest.writeString(this.mAccess);
    dest.writeString(this.mShoppinglistId);
    dest.writeByte(mAccepted ? (byte) 1 : (byte) 0);
    dest.writeString(this.mAcceptUrl);
    dest.writeInt(this.mSyncState);
}

From source file:com.vk.sdk.api.model.VKApiPost.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.to_id);
    dest.writeInt(this.from_id);
    dest.writeLong(this.date);
    dest.writeString(this.text);
    dest.writeInt(this.reply_owner_id);
    dest.writeInt(this.reply_post_id);
    dest.writeByte(friends_only ? (byte) 1 : (byte) 0);
    dest.writeInt(this.comments_count);
    dest.writeByte(can_post_comment ? (byte) 1 : (byte) 0);
    dest.writeInt(this.likes_count);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(can_like ? (byte) 1 : (byte) 0);
    dest.writeByte(can_publish ? (byte) 1 : (byte) 0);
    dest.writeInt(this.reposts_count);
    dest.writeByte(user_reposted ? (byte) 1 : (byte) 0);
    dest.writeString(this.post_type);
    dest.writeParcelable(attachments, flags);
    dest.writeParcelable(this.geo, flags);
    dest.writeInt(this.signer_id);
}