Example usage for android.os Parcel readParcelable

List of usage examples for android.os Parcel readParcelable

Introduction

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

Prototype

@SuppressWarnings("unchecked")
public final <T extends Parcelable> T readParcelable(ClassLoader loader) 

Source Link

Document

Read and return a new Parcelable from the parcel.

Usage

From source file:org.alfresco.mobile.android.api.services.impl.onpremise.OnPremisePersonServiceImpl.java

public OnPremisePersonServiceImpl(Parcel o) {
    super((AlfrescoSession) o.readParcelable(RepositorySessionImpl.class.getClassLoader()));
}

From source file:org.alfresco.mobile.android.api.services.impl.onpremise.OnPremiseServiceRegistry.java

public OnPremiseServiceRegistry(Parcel o) {
    super((AlfrescoSession) o.readParcelable(RepositorySessionImpl.class.getClassLoader()));
}

From source file:org.alfresco.mobile.android.api.services.impl.publicapi.PublicAPIPersonServiceImpl.java

public PublicAPIPersonServiceImpl(Parcel o) {
    super((AlfrescoSession) o.readParcelable(RepositorySessionImpl.class.getClassLoader()));
}

From source file:com.facebook.notifications.internal.configuration.HeroConfiguration.java

private HeroConfiguration(Parcel parcel) {
    ClassLoader loader = getClass().getClassLoader();

    height = parcel.readFloat();//  w ww  .j a va2s  . c om
    background = parcel.readParcelable(loader);

    content = parcel.readParcelable(loader);
    contentVerticalAlignment = parcel.readParcelable(loader);
}

From source file:ca.frozen.rpicameraviewer.classes.Camera.java

private void readFromParcel(Parcel in) {
    network = in.readString();/*w w w  .ja  v a2s. com*/
    name = in.readString();
    source = in.readParcelable(Source.class.getClassLoader());
}

From source file:com.citrus.sdk.payment.PaymentBill.java

private PaymentBill(Parcel in) {
    this.amount = in.readParcelable(Amount.class.getClassLoader());
    this.requestSignature = in.readString();
    this.merchantTransactionId = in.readString();
    this.merchantAccessKey = in.readString();
    this.returnUrl = in.readString();
    this.notifyUrl = in.readString();
    this.customParametersMap = in.readHashMap(String.class.getClassLoader());
}

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

@SuppressWarnings("unchecked")
public ParcelableAssetHandler(Parcel source) {
    boolean isParcelable = source.readInt() != 0;

    if (isParcelable) {
        handler = source.readParcelable(getClass().getClassLoader());
        exception = null;/*from   ww  w  .  jav  a 2  s  .  c  o m*/
    } else {
        AssetManager.AssetHandler handler = null;
        InvalidParcelException exception = null;

        try {
            Class assetHandlerClass = (Class) Class.forName(source.readString(), true,
                    getClass().getClassLoader());
            handler = (AssetManager.AssetHandler) assetHandlerClass.newInstance();
        } catch (Exception ex) {
            exception = new InvalidParcelException(ex);
        }

        this.handler = handler;
        this.exception = exception;
    }
}

From source file:com.paranoid.gerrit.objects.CommitComment.java

public CommitComment(Parcel parcel) {
    try {//  w w w.ja  v  a2  s  .co m
        mJsonObject = new JSONObject(parcel.readString());
        mId = parcel.readString();
        mAuthorObject = parcel.readParcelable(CommitterObject.class.getClassLoader());
        mDate = parcel.readString();
        mMessage = parcel.readString();
        mRevisionNumber = parcel.readInt();
    } catch (JSONException e) {
        Log.e(TAG, "Failed to create object from Parcel!", e);
    }
}

From source file:org.alfresco.mobile.android.api.services.impl.onpremise.OnPremiseTaggingServiceImpl.java

public OnPremiseTaggingServiceImpl(Parcel o) {
    super((AlfrescoSession) o.readParcelable(RepositorySessionImpl.class.getClassLoader()));
}

From source file:ca.frozen.rpicameraviewer.classes.Settings.java

private void readFromParcel(Parcel in) {
    cameraName = in.readString();/*from   w ww  .j  a  v a 2s .c om*/
    showAllCameras = in.readInt() != 0;
    rawTcpIpSource = in.readParcelable(Source.class.getClassLoader());
    rawHttpSource = in.readParcelable(Source.class.getClassLoader());
    rawMulticastSource = in.readParcelable(Source.class.getClassLoader());
}