V
- Value object, per contract of Parcel.writeValue(Object)
.public class FdParcelable<V> extends Object implements Parcelable
Parcelable
that transfers data over a pipe
created using ParcelFileDescriptor.createPipe()
.
This circumvents the standard Android binder size limit allowing for passing objects
of any size, limited only by the heap space of the sender and receiver process.
This class is not thread safe.
To enable verbose logging:
adb shell setprop log.tag.FdParcelable VERBOSE
There are two copies of this file, one in clover-android-sdk and one in
schema-tool, please keep them in sync.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<FdParcelable> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
FdParcelable(Parcel in) |
FdParcelable(V value) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
V |
getValue() |
protected Future<?> |
write(byte[] data,
ParcelFileDescriptor readFd,
ParcelFileDescriptor writeFd) |
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator<FdParcelable> CREATOR
public FdParcelable(V value)
public FdParcelable(Parcel in)
public V getValue()
protected Future<?> write(byte[] data, ParcelFileDescriptor readFd, ParcelFileDescriptor writeFd)
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
public int describeContents()
describeContents
in interface Parcelable