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

Method readHashMap

core/java/android/os/Parcel.java:1588–1597  ·  view source on GitHub ↗

Please use #readBundle(ClassLoader) instead (whose data must have been written with #writeBundle. Read and return a new HashMap object from the parcel at the current dataPosition(), using the given class loader to load any enclosed Parcelables. Returns null if the previously writte

(ClassLoader loader)

Source from the content-addressed store, hash-verified

1586 * the previously written map object was null.
1587 */
1588 public final HashMap readHashMap(ClassLoader loader)
1589 {
1590 int N = readInt();
1591 if (N < 0) {
1592 return null;
1593 }
1594 HashMap m = new HashMap(N);
1595 readMapInternal(m, N, loader);
1596 return m;
1597 }
1598
1599 /**
1600 * Read and return a new Bundle object from the parcel at the current

Callers 3

readValueMethod · 0.95
onTransactMethod · 0.80
createFromParcelMethod · 0.80

Calls 2

readIntMethod · 0.95
readMapInternalMethod · 0.95

Tested by

no test coverage detected