Example usage for android.os Parcel restoreAllowFds

List of usage examples for android.os Parcel restoreAllowFds

Introduction

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

Prototype

public final void restoreAllowFds(boolean lastValue) 

Source Link

Usage

From source file:edu.umich.flowfence.common.ParceledPayload.java

public static ParceledPayload create(Object object) {
    Parcel p = Parcel.obtain();
    boolean oldFds = p.pushAllowFds(false);
    try {/* w w  w  .  j a  v  a 2s . c  om*/
        p.writeValue(object);
        return new ParceledPayload(p.marshall());
    } finally {
        p.restoreAllowFds(oldFds);
        p.recycle();
    }
}