Example usage for android.os Parcel writeIntArray

List of usage examples for android.os Parcel writeIntArray

Introduction

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

Prototype

public final void writeIntArray(int[] val) 

Source Link

Usage

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.type);
    dest.writeString(this.title);
    dest.writeInt(this.admin_id);
    dest.writeIntArray(this.users);
}

From source file:android.support.design.internal.ParcelableSparseArray.java

@Override
public void writeToParcel(Parcel parcel, int flags) {
    int size = size();
    int[] keys = new int[size];
    Parcelable[] values = new Parcelable[size];
    for (int i = 0; i < size; ++i) {
        keys[i] = keyAt(i);/*from www  .java2  s  .  co  m*/
        values[i] = valueAt(i);
    }
    parcel.writeInt(size);
    parcel.writeIntArray(keys);
    parcel.writeParcelableArray(values, flags);
}

From source file:net.soulwolf.structure.core.FragmentParameter.java

@Override
public void writeToParcel(Parcel dest, int flags) {

    dest.writeSerializable(mFragmentClass);

    dest.writeBundle(mParams);//from   w  w  w. j a  va 2  s  . c  o m

    dest.writeString(mTag);

    dest.writeInt(mRequestCode);

    dest.writeInt(mResultCode);

    int size = 0;
    if (mAnimationRes != null) {
        size = mAnimationRes.length;
    }
    dest.writeInt(size);

    dest.writeIntArray(mAnimationRes);

    dest.writeParcelable(mResultParams, flags);
}

From source file:com.chuhan.privatecalc.fragment.os.BackStackState.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeIntArray(mOps);
    dest.writeInt(mTransition);/*  w w  w.j  a v  a  2  s.  co  m*/
    dest.writeInt(mTransitionStyle);
    dest.writeString(mName);
    dest.writeInt(mIndex);
    dest.writeInt(mBreadCrumbTitleRes);
    TextUtils.writeToParcel(mBreadCrumbTitleText, dest, 0);
    dest.writeInt(mBreadCrumbShortTitleRes);
    TextUtils.writeToParcel(mBreadCrumbShortTitleText, dest, 0);
}

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 ava 2  s.com
    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:android.app.FragmentManager.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedArray(mActive, flags);
    dest.writeIntArray(mAdded);
    dest.writeTypedArray(mBackStack, flags);
}