Example usage for android.os Parcel writeString

List of usage examples for android.os Parcel writeString

Introduction

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

Prototype

public final void writeString(String val) 

Source Link

Document

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

Usage

From source file:com.scvngr.levelup.core.net.AbstractRequest.java

@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(mMethod.name());
    dest.writeString(mUrlString);//from w  ww . j av  a 2  s.  co m
    dest.writeMap(mRequestHeaders);
    dest.writeMap(mQueryParams);
}

From source file:com.ibm.mobilefirstplatform.clientsdk.android.push.internal.MFPInternalPushMessage.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(id);
    dest.writeString(alert);//  ww w.j  a va  2s . com
    dest.writeString(url);
    dest.writeString(payload);
    dest.writeString(mid);
    dest.writeString(sound);
    dest.writeString(String.valueOf(bridge));
    dest.writeString(priority);
    dest.writeString(visibility);
    dest.writeString(redact);
    dest.writeString(category);
    dest.writeString(key);
    dest.writeString(gcmStyle);
    dest.writeString(iconName);
    dest.writeInt(notificationId);
}

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);/*from  w  w  w  . j  a  v  a  2  s . co  m*/
    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.oasisfeng.nevo.StatusBarNotificationEvo.java

/** Write all fields except the Notification which is passed as IPC holder */
@Override//from w  w  w.j  av  a2  s.c o  m
public void writeToParcel(final Parcel out, final int flags) {
    if ((flags & FLAG_WRITE_AS_ORIGINAL) != 0) {
        super.writeToParcel(out, flags & ~FLAG_WRITE_AS_ORIGINAL);
        return;
    }
    out.writeInt(PARCEL_MAGIC);
    out.writeString(getPackageName());
    out.writeInt(getId());
    if (getTag() != null) {
        out.writeInt(1);
        out.writeString(getTag());
    } else
        out.writeInt(0);
    out.writeInt(getUid(this));
    getUser().writeToParcel(out, flags);
    out.writeLong(getPostTime());
    out.writeStrongInterface(notification == null ? holder : new NotificationHolder(notification)); // The local copy of notification is "dirty" (possibly modified), hence needs to be updated.
}

From source file:edu.vuum.mocca.storage.StoryData.java

@Override
/**/* w w w .  ja v  a 2 s.  com*/
 * Used for writing a copy of this object to a Parcel, do not manually call.
 */
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(KEY_ID);
    dest.writeLong(loginId);
    dest.writeLong(storyId);
    dest.writeString(title);
    dest.writeString(body);
    dest.writeString(audioLink);
    dest.writeString(videoLink);
    dest.writeString(imageName);
    dest.writeString(imageLink);
    dest.writeString(tags);
    dest.writeLong(creationTime);
    dest.writeLong(storyTime);
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
}

From source file:io.github.data4all.model.data.TransformationParamBean.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(height);/*from ww  w.ja  va 2s.c  o  m*/
    dest.writeDouble(verticalViewAngle);
    dest.writeDouble(horizontalViewAngle);
    dest.writeInt(photoWidth);
    dest.writeInt(photoHeight);
    if (location != null) {
        dest.writeInt(1);
        dest.writeString(location.getProvider());
        dest.writeDouble(location.getLatitude());
        dest.writeDouble(location.getLongitude());
    } else {
        dest.writeInt(0);
    }
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.owner_id);
    dest.writeInt(this.album_id);
    dest.writeString(this.title);
    dest.writeString(this.description);
    dest.writeInt(this.duration);
    dest.writeString(this.link);
    dest.writeLong(this.date);
    dest.writeInt(this.views);
    dest.writeString(this.player);
    dest.writeString(this.photo_130);
    dest.writeString(this.photo_320);
    dest.writeString(this.photo_640);
    dest.writeParcelable(this.photo, flags);
    dest.writeString(this.access_key);
    dest.writeInt(this.comments);
    dest.writeByte(can_comment ? (byte) 1 : (byte) 0);
    dest.writeByte(can_repost ? (byte) 1 : (byte) 0);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(repeat ? (byte) 1 : (byte) 0);
    dest.writeInt(this.likes);
    dest.writeInt(this.privacy_view);
    dest.writeInt(this.privacy_comment);
    dest.writeString(this.mp4_240);
    dest.writeString(this.mp4_360);
    dest.writeString(this.mp4_480);
    dest.writeString(this.mp4_720);
    dest.writeString(this.external);
}

From source file:com.nttec.everychan.ui.gallery.GalleryInitResult.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(initPosition);//  www  .  ja v  a 2s  . co m
    dest.writeInt(shouldWaitForPageLoaded ? 1 : 0);
    dest.writeInt(attachments.size());
    for (Triple<AttachmentModel, String, String> tuple : attachments) {
        AttachmentModel attachment = tuple.getLeft();
        dest.writeInt(attachment.type);
        dest.writeInt(attachment.size);
        dest.writeString(attachment.thumbnail);
        dest.writeString(attachment.path);
        dest.writeInt(attachment.width);
        dest.writeInt(attachment.height);
        dest.writeString(attachment.originalName);
        dest.writeInt(attachment.isSpoiler ? 1 : 0);
        dest.writeString(tuple.getMiddle());
        dest.writeString(tuple.getRight());
    }
}

From source file:com.facebook.notifications.internal.asset.ParcelableAssetHandler.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    if (handler == null) {
        throw new IllegalStateException("AssetHandler should not be null, did you forget to call validate()?");
    }/*from   ww w.j a  v  a 2 s . c  o m*/

    if (handler instanceof Parcelable) {
        dest.writeInt(1);
        dest.writeParcelable((Parcelable) handler, flags);
    } else {
        dest.writeInt(0);
        dest.writeString(handler.getClass().getName());
    }
}

From source file:pl.poznan.put.cs.ify.api.params.YParam.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mType.ordinal());/*from ww w  .  ja  v  a 2 s.  c o m*/
    switch (mType) {
    case Boolean:
        dest.writeByte((byte) ((Boolean) mValue ? 0 : 1));
        break;
    case Integer:
        dest.writeInt((Integer) mValue);
        break;
    case String:
        dest.writeString((String) mValue);
        break;
    case Group:
        dest.writeString((String) mValue);
        break;
    case Position:
        dest.writeParcelable((YPosition) mValue, 0);
    default:
        dest.writeString((String) mValue);
    }
}