Example usage for android.os Parcel pushAllowFds

List of usage examples for android.os Parcel pushAllowFds

Introduction

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

Prototype

public final boolean pushAllowFds(boolean allowFds) 

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 {//from w w w . j  av  a  2  s  . co  m
        p.writeValue(object);
        return new ParceledPayload(p.marshall());
    } finally {
        p.restoreAllowFds(oldFds);
        p.recycle();
    }
}