Example usage for android.os Parcel writeStringArray

List of usage examples for android.os Parcel writeStringArray

Introduction

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

Prototype

public final void writeStringArray(String[] val) 

Source Link

Usage

From source file:com.aknowledge.v1.automation.PytoDevice.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(devID);/*w w w .jav a 2 s. c  o m*/
    dest.writeStringArray(devCommands);
    dest.writeString(devName);
    dest.writeString(devState);
    dest.writeString(devType);

}

From source file:org.droid2droid.internal.RemoteBinderProxy.java

@Override
public void dump(FileDescriptor fd, String[] args) throws RemoteException {
    Parcel data = Parcel.obtain();
    data.writeFileDescriptor(fd);/*from w w w  .j ava  2 s.  co  m*/
    data.writeStringArray(args);
    try {
        transact(DUMP_TRANSACTION, data, null, 0);
    } finally {
        data.recycle();
    }
}

From source file:org.imaginationforpeople.android2.model.Picture.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);/*from   www .  j av  a 2 s .com*/
    dest.writeStringArray(new String[] { author, created, desc, license, source, thumbUrl, imageUrl });
}

From source file:org.opendatakit.common.android.data.RawRow.java

@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeString(mRowId);/*from w w w . j  a  v a2 s . co m*/
    if (mRowData == null) {
        out.writeInt(0);
        String[] emptyString = {};
        out.writeStringArray(emptyString);
    } else {
        out.writeInt(mRowData.length);
        out.writeStringArray(mRowData);
    }
}

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

private static void writeStringSet(Parcel p, Set<String> s) {
    p.writeInt(s.size());/*from w  ww. jav a  2s .  c o  m*/
    p.writeStringArray(s.toArray(new String[s.size()]));
}

From source file:com.rc.droid_stalker.components.NetworkStats.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(elapsedRealtime);//from  w w  w.j av a  2  s  .c o  m
    dest.writeInt(size);
    dest.writeStringArray(iface);
    dest.writeIntArray(uid);
    dest.writeIntArray(set);
    dest.writeIntArray(tag);
    dest.writeLongArray(rxBytes);
    dest.writeLongArray(rxPackets);
    dest.writeLongArray(txBytes);
    dest.writeLongArray(txPackets);
    dest.writeLongArray(operations);
}

From source file:org.jorge.lolin1.func.champs.models.Champion.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    Field[] declaredFields = Champion.class.getDeclaredFields();
    try {//from   w  ww .  ja v  a2 s  .c o  m
        for (Field x : declaredFields) {
            Class<?> thisType = x.getType();
            if (thisType == String.class) {
                x.setAccessible(Boolean.TRUE);
                dest.writeString(x.get(this).toString());
                x.setAccessible(Boolean.FALSE);
            }
        }
    } catch (IllegalAccessException e) {
        Crashlytics.logException(e);
    }
    dest.writeStringArray(tags);
    dest.writeStringArray(skins);
    dest.writeParcelable(this.passive, flags);
    dest.writeParcelableArray(this.spells, flags);
}

From source file:android.net.ProxyInfo.java

/**
 * Implement the Parcelable interface./*from   w w  w  . j av  a  2  s .  c  om*/
 * @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.aokyu.dev.pocket.content.Page.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(getUID());// ww w  . j av a2 s.c  o  m
    dest.writeString(mResolvedId);
    dest.writeString(mGivenUrl);
    dest.writeString(mResolvedUrl);
    dest.writeString(mGivenTitle);
    dest.writeString(mResolvedTitle);
    dest.writeInt(mIsFavorited ? 1 : 0);
    dest.writeInt(mState.intValue());
    dest.writeString(mExcerpt);
    dest.writeInt(mIsArticle ? 1 : 0);
    dest.writeInt(mImageState.intValue());
    dest.writeInt(mVideoState.intValue());
    dest.writeInt(mWordCount);
    dest.writeStringArray(mTags);
    dest.writeStringArray(mAuthors);
    dest.writeParcelableArray(mImages, 0);
    dest.writeParcelableArray(mVideos, 0);
}

From source file:net.issarlk.androbunny.inkbunny.File.java

public void writeToParcel(Parcel out, int flag) {
    out.writeInt(this.id);
    out.writeString(this.name);
    out.writeInt(this.thumbnails.length);
    for (int i = this.thumbnails.length - 1; i >= 0; i--) {
        if (this.thumbnails[i] != null) {
            out.writeInt(1);//from   ww  w.  ja  v a 2s. c  o  m
            this.thumbnails[i].writeToParcel(out, 0);
        } else {
            out.writeInt(0);
        }

    }
    out.writeString(this.mimetype);
    out.writeInt(this.submission_id);
    out.writeInt(this.user_id);
    out.writeInt(this.submission_file_order);
    out.writeInt(this.dimensions.length);
    for (int i = this.dimensions.length - 1; i >= 0; i--) {
        if (this.dimensions[i] != null) {
            out.writeInt(1);
            this.dimensions[i].writeToParcel(out, 0);
        } else {
            out.writeInt(0);
        }
    }
    out.writeStringArray(this.md5s);
    out.writeString(this.file_urls[0].toString());
    out.writeString(this.file_urls[1].toString());
    out.writeString(this.file_urls[2].toString());
    out.writeInt(this.deleted);
    out.writeString(this.create_datetime);
    out.writeString(this.create_datetime_usertime);
}