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.llc.bumpr.sdk.models.Driver.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    // TODO Auto-generated method stub
    dest.writeInt(id);//w  w w  . j  a  va  2s .c om
    dest.writeDouble(fee);
    dest.writeString(licenseId);
    dest.writeString(insuranceId);
    dest.writeDouble(balance);
    dest.writeByte((byte) (active ? 1 : 0));
    dest.writeList(requests);
}

From source file:com.cas.model.SiteInfo.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(sitename);//from   w ww .  j a  v a2  s. c  om
    dest.writeString(username);
    dest.writeString(firstname);
    dest.writeString(lastname);
    dest.writeString(fullname);
    dest.writeInt(userid);
    dest.writeString(siteurl);
    dest.writeString(userpictureurl);
    dest.writeByte((byte) (downloadfiles ? 1 : 0));

    dest.writeInt(functions.size());
    for (String s : functions.keySet()) {
        dest.writeString(s);
        dest.writeString(functions.get(s));
    }

}

From source file:id.satusatudua.sigap.data.model.ImportantContact.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(contactId);/*  www .j  ava2s  .  co m*/
    dest.writeString(name);
    dest.writeString(phoneNumber);
    dest.writeString(userId);
    dest.writeString(address);
    dest.writeLong(createdAt.getTime());
    dest.writeDouble(avgRate);
    dest.writeDouble(totalRate);
    dest.writeLong(totalUserRate);
    dest.writeInt(myRate);
    dest.writeByte((byte) (bookmarked ? 1 : 0));
    dest.writeParcelable(user, flags);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.owner_id);
    dest.writeString(this.title);
    dest.writeLong(this.size);
    dest.writeString(this.ext);
    dest.writeString(this.url);
    dest.writeString(this.photo_100);
    dest.writeString(this.photo_130);
    dest.writeParcelable(this.photo, flags);
    dest.writeString(this.access_key);
    dest.writeByte(mIsImage ? (byte) 1 : (byte) 0);
    dest.writeByte(mIsGif ? (byte) 1 : (byte) 0);
}

From source file:it_minds.dk.eindberetningmobil_android.models.DrivingReport.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.Uuid);
    dest.writeString(this.purpose);
    dest.writeString(this.orgLocation);
    dest.writeString(this.Rate);
    dest.writeString(this.extraDescription);
    dest.writeByte(haveEditedDistance ? (byte) 1 : (byte) 0);
    dest.writeByte(startedAtHome ? (byte) 1 : (byte) 0);
    dest.writeByte(endedAtHome ? (byte) 1 : (byte) 0);
    dest.writeByte(fourKMRule ? (byte) 1 : (byte) 0);
    dest.writeSerializable(this.startTime);
    dest.writeSerializable(this.endTime);
    dest.writeDouble(this.distanceInMeters);
    dest.writeTypedList(gpsPoints);/* w w  w.  j  av  a2 s  .  co m*/
    dest.writeDouble(this.homeToBorderDistance);
}

From source file:com.dwg.weibo.entity.Status.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.created_at);
    dest.writeString(this.id);
    dest.writeString(this.mid);
    dest.writeString(this.idstr);
    dest.writeInt(this.textLength);
    dest.writeString(this.text);
    dest.writeByte(this.isLongText ? (byte) 1 : (byte) 0);
    dest.writeInt(this.source_type);
    dest.writeString(this.source);
    dest.writeByte(this.favorited ? (byte) 1 : (byte) 0);
    dest.writeByte(this.truncated ? (byte) 1 : (byte) 0);
    dest.writeString(this.in_reply_to_status_id);
    dest.writeString(this.in_reply_to_user_id);
    dest.writeString(this.in_reply_to_screen_name);
    dest.writeString(this.thumbnail_pic);
    dest.writeString(this.bmiddle_pic);
    dest.writeString(this.original_pic);
    dest.writeParcelable(this.geo, flags);
    dest.writeParcelable(this.user, flags);
    dest.writeParcelable(this.retweeted_status, flags);
    dest.writeInt(this.reposts_count);
    dest.writeInt(this.comments_count);
    dest.writeInt(this.attitudes_count);
    dest.writeInt(this.mlevel);
    dest.writeParcelable(this.visible, flags);
    dest.writeInt(this.source_allowclick);
    dest.writeList(this.pic_urls);
    dest.writeStringList(this.thumbnail_pic_urls);
    dest.writeStringList(this.bmiddle_pic_urls);
    dest.writeStringList(this.origin_pic_urls);
    dest.writeString(this.singleImgSizeType);
}

From source file:net.exclaimindustries.geohashdroid.util.KnownLocation.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    // Nice how this is easily parcelable.
    dest.writeString(mName);/*from   ww w .  ja  v a 2s . co m*/
    dest.writeParcelable(mLocation, 0);
    dest.writeDouble(mRange);
    dest.writeByte((byte) (mRestrictGraticule ? 0 : 1));
}

From source file:com.notalenthack.blaster.Command.java

@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeString(mName);/*from   w w w .  j  a  v  a2  s  . c o  m*/
    parcel.writeString(mCommandStart);
    parcel.writeString(mCommandStop);
    parcel.writeString(mCommandStat);
    parcel.writeInt(mCommandResId);
    parcel.writeInt(mStatus.ordinal());
    parcel.writeInt(mKillMethod.ordinal());
    parcel.writeInt(mCpuUsage);
    parcel.writeByte((byte) (mDisplayOutput ? 1 : 0));
    parcel.writeByte((byte) (mDisplayStatus ? 1 : 0));
    parcel.writeByte((byte) (mSystemCmd ? 1 : 0));
}

From source file:com.tlongdev.bktf.model.Item.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(defindex);//w  ww. j  a va  2 s .c  o m
    dest.writeString(name);
    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:cx.ring.model.CallContact.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(id);//from   w  ww  .j a v  a  2 s .co m
    dest.writeString(key);
    dest.writeString(mDisplayName);
    dest.writeLong(photo_id);
    dest.writeTypedList(phones);
    dest.writeString(mEmail);
    dest.writeByte((byte) (isUser ? 1 : 0));
    dest.writeByte(stared ? (byte) 1 : (byte) 0);
}