Package-level declarations
This package contains utilities to serialize various types to Android's Parcel
type.
Types
A marshalled ParcelableTraceEvent.
Optimized parcelable wrapper for a list of booleans, suitable for Binder
transactions.
Optimized parcelable wrapper for a list of doubles, suitable for Binder
transactions.
A Parcelable wrapper for enums, suitable for Binder
transactions.
A parcelable variant of an Exception.
Optimized parcelable wrapper for a list of floats, suitable for Binder
transactions.
Optimized parcelable wrapper for a list of integers, suitable for Binder
transactions.
Optimized parcelable wrapper for a list of longs, suitable for Binder
transactions.
Optimized parcelable wrapper for a list of strings, suitable for Binder
transactions.
Parcelable TraceEvent.
Functions
Creates and reads a list of elements of type T from a Parcel, by invoking elementReader on each element in the List.
Creates and reads a set with element type T from a Parcel, by invoking elementReader on each element in the Set.
Same as Parcel.createListOptimized except for a SparseArray.
Reads a Array of T from a Parcel. Same as Parcel.readArray, except this function also works on Android 12 and earlier.
Reads a Boolean from a Parcel. Same as Parcel.readBoolean, except this function also works on Android 8.1.
Reads a Parcelable from a Parcel. Same as Parcel.readParcelable, except this function also works on Android 12 and earlier.
Overload of Parcel.readParcelable to read Parcel objects, while allowing type flexibility.
Overload of Parcel.readParcelable to read VersionedParcelable objects, while allowing type flexibility.
Reads a Serializable from a Parcel. Same as Parcel.readSerializable, except this function also works on Android 12 and earlier.
Converts this TraceEvent to a MarshalledTraceEvent.
Converts this TraceEvent to a ParcelableTraceEvent.
Converts this Exception to a ParcelableException.
Writes a Boolean to a Parcel. Same as Parcel.writeBoolean, except this function also works on Android 8.1.
Optimized way to write a collection of T objects to a Parcel.
Overload of Parcel.readParcelable to read Parcel objects, while allowing type flexibility.
Overload of Parcel.readParcelable to read VersionedParcelable objects, while allowing type flexibility.
Same as Parcel.writeCollectionOptimized except for a SparseArray.
Writes array to the Parcel, like Parcel.writeArray. Except this function will not throw a RuntimeException when the array contains an element that is not supported by Parcel.writeValue.