Example usage for android.os Parcel readMap

List of usage examples for android.os Parcel readMap

Introduction

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

Prototype

public final void readMap(Map outVal, ClassLoader loader) 

Source Link

Document

Please use #readBundle(ClassLoader) instead (whose data must have been written with #writeBundle .

Usage

From source file:it.polimi.spf.shared.model.SPFQuery.java

@SuppressWarnings("unchecked")
private SPFQuery(Parcel in) {
    ClassLoader cl = ((Object) this).getClass().getClassLoader();
    mTags = in.readArrayList(cl);//from  www  .  ja  va  2 s. c  o  m
    mProfileFields = new HashMap<String, String>();
    in.readMap(mProfileFields, cl);
    mApps = in.readArrayList(cl);
}

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

/**
 * Constructor for parceling./*from   w w  w  . j a v  a2 s .  c om*/
 *
 * @param in the parcel to read from
 */
public AbstractRequest(@NonNull final Parcel in) {
    mMethod = NullUtils.nonNullContract(HttpMethod.valueOf(in.readString()));
    mUrlString = NullUtils.nonNullContract(in.readString());

    final Map<String, String> headers = new HashMap<String, String>();
    in.readMap(headers, HashMap.class.getClassLoader());
    mRequestHeaders = NullUtils.nonNullContract(Collections.unmodifiableMap(headers));

    final Map<String, String> query = new HashMap<String, String>();
    in.readMap(query, HashMap.class.getClassLoader());
    mQueryParams = NullUtils.nonNullContract(Collections.unmodifiableMap(query));

    checkRep();
}

From source file:com.nestlabs.sdk.Structure.java

public Structure(Parcel in) {
    mStructureId = in.readString();/*from  ww w .j av a 2s. c  om*/
    mThermostats = in.createStringArrayList();
    mSmokeCoAlarms = in.createStringArrayList();
    mCameras = in.createStringArrayList();
    mDevices = new LinkedHashMap<>();
    in.readMap(mDevices, LinkedHashMap.class.getClassLoader());
    mAway = in.readString();
    mName = in.readString();
    mCountryCode = in.readString();
    mPostalCode = in.readString();
    mPeakPeriodStartTime = in.readString();
    mPeakPeriodEndTime = in.readString();
    mTimeZone = in.readString();
    mEta = in.readParcelable(ETA.class.getClassLoader());
    mRhrEnrollment = Utils.readBoolean(in);
    mWheres = new LinkedHashMap<>();
    in.readMap(mWheres, LinkedHashMap.class.getClassLoader());
}