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

Method createFromParcel

core/java/android/net/Uri.java:1761–1772  ·  view source on GitHub ↗
(Parcel in)

Source from the content-addressed store, hash-verified

1759 public static final Parcelable.Creator<Uri> CREATOR
1760 = new Parcelable.Creator<Uri>() {
1761 public Uri createFromParcel(Parcel in) {
1762 int type = in.readInt();
1763 switch (type) {
1764 case NULL_TYPE_ID: return null;
1765 case StringUri.TYPE_ID: return StringUri.readFrom(in);
1766 case OpaqueUri.TYPE_ID: return OpaqueUri.readFrom(in);
1767 case HierarchicalUri.TYPE_ID:
1768 return HierarchicalUri.readFrom(in);
1769 }
1770
1771 throw new IllegalArgumentException("Unknown URI type: " + type);
1772 }
1773
1774 public Uri[] newArray(int size) {
1775 return new Uri[size];

Callers

nothing calls this directly

Calls 4

readFromMethod · 0.95
readFromMethod · 0.95
readFromMethod · 0.95
readIntMethod · 0.45

Tested by

no test coverage detected