MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / readParcelable

Method readParcelable

core/java/android/os/Parcel.java:2096–2105  ·  view source on GitHub ↗

Read and return a new Parcelable from the parcel. The given class loader will be used to load any enclosed Parcelables. If it is null, the default class loader will be used. @param loader A ClassLoader from which to instantiate the Parcelable object, or null for the default class loader. @return R

(ClassLoader loader)

Source from the content-addressed store, hash-verified

2094 * was an error trying to instantiate the Parcelable.
2095 */
2096 public final <T extends Parcelable> T readParcelable(ClassLoader loader) {
2097 Parcelable.Creator<T> creator = readParcelableCreator(loader);
2098 if (creator == null) {
2099 return null;
2100 }
2101 if (creator instanceof Parcelable.ClassLoaderCreator<?>) {
2102 return ((Parcelable.ClassLoaderCreator<T>)creator).createFromParcel(this, loader);
2103 }
2104 return creator.createFromParcel(this);
2105 }
2106
2107 /** @hide */
2108 public final <T extends Parcelable> T readCreator(Parcelable.Creator<T> creator,

Callers 15

readValueMethod · 0.95
readParcelableArrayMethod · 0.95
GeoFenceParamsMethod · 0.80
createFromParcelMethod · 0.80
SavedStateMethod · 0.80
initFromParcelMethod · 0.80
readFromParcelMethod · 0.80
StorageVolumeMethod · 0.80
AbsSavedStateMethod · 0.80
createFromParcelMethod · 0.80
readFromParcelMethod · 0.80

Calls 2

readParcelableCreatorMethod · 0.95
createFromParcelMethod · 0.65

Tested by

no test coverage detected