Example usage for android.os Parcel writeBundle

List of usage examples for android.os Parcel writeBundle

Introduction

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

Prototype

public final void writeBundle(Bundle val) 

Source Link

Document

Flatten a Bundle into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Usage

From source file:com.schedjoules.eventdiscovery.framework.eventlist.EventListLoaderMicroFragment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeBundle(mArgs);
}

From source file:de.mrapp.android.dialog.datastructure.ViewPagerItem.java

@Override
public final void writeToParcel(final Parcel dest, final int flags) {
    TextUtils.writeToParcel(getTitle(), dest, flags);
    dest.writeSerializable(getFragmentClass());
    dest.writeBundle(getArguments());
}

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

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

    dest.writeSerializable(mFragmentClass);

    dest.writeBundle(mParams);

    dest.writeString(mTag);// w  w  w  .  j av  a 2 s.  c o  m

    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.clover.sdk.v1.merchant.Merchant.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeBundle(data);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    Bundle bundle = new Bundle();
    for (Map.Entry<String, ParcelableAssetHandler> entry : registeredHandlers.entrySet()) {
        bundle.putParcelable(entry.getKey(), entry.getValue());
    }//from   ww w .j a  va 2 s .c o m

    dest.writeBundle(bundle);
}

From source file:com.tigerpenguin.places.model.Geometry.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(location, flags);
    // Android documentation recommends using writeBundle() instead of writeMap()
    Bundle bundle = null;//from  www  .j a v  a  2 s .co  m
    if (viewports != null && viewports.size() > 0) {
        bundle = new Bundle();
        for (Map.Entry<String, PlaceLocation> viewport : viewports.entrySet()) {
            bundle.putParcelable(viewport.getKey(), viewport.getValue());
        }
    }
    dest.writeBundle(bundle);
}

From source file:com.itude.mobile.mobbl.core.model.MBElement.java

@Override
public void writeToParcel(Parcel out, int flags) {
    Bundle valueBundle = new Bundle();

    for (String key : _values.keySet()) {
        valueBundle.putString(key, _values.get(key));
    }/*from  w w  w. jav a 2 s .com*/

    out.writeBundle(valueBundle);
    out.writeParcelable(_definition, flags);
}

From source file:com.fragmentmaster.app.FragmentMaster.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeBundle(mFragments);
    dest.writeInt(mIsSlideable ? 0 : 1);
    dest.writeInt(mHomeFragmentApplied ? 0 : 1);
}

From source file:com.clover.sdk.GenericClient.java

/**
 * Method that replaces the "writeToParcel" methods. "flags" seems to be unused, but was also passed in the original classes.
 *///from  ww  w.  j ava2  s.  c  o  m
public void writeToParcel(android.os.Parcel dest, int flags) {
    com.clover.sdk.v3.JsonParcelHelper.wrap(getJSONObject()).writeToParcel(dest, 0);
    dest.writeBundle(bundle);
    dest.writeBundle(changeLog);
}

From source file:org.alfresco.mobile.android.api.session.impl.RepositorySessionImpl.java

@Override
public void writeToParcel(Parcel dest, int arg1) {
    dest.writeString(baseUrl);/*from   w  ww  . java 2 s. co m*/
    dest.writeString(userIdentifier);
    dest.writeString(password);
    dest.writeParcelable(rootNode, PARCELABLE_WRITE_RETURN_VALUE);
    dest.writeSerializable(repositoryInfo);
    dest.writeSerializable(cmisSession);
    Bundle b = new Bundle();
    b.putSerializable("userParameters", (Serializable) userParameters);
    dest.writeBundle(b);
}