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

Method readFrom

core/java/android/net/Uri.java:2012–2025  ·  view source on GitHub ↗
(Parcel parcel)

Source from the content-addressed store, hash-verified

2010 }
2011
2012 static Part readFrom(Parcel parcel) {
2013 int representation = parcel.readInt();
2014 switch (representation) {
2015 case Representation.BOTH:
2016 return from(parcel.readString(), parcel.readString());
2017 case Representation.ENCODED:
2018 return fromEncoded(parcel.readString());
2019 case Representation.DECODED:
2020 return fromDecoded(parcel.readString());
2021 default:
2022 throw new IllegalArgumentException("Unknown representation: "
2023 + representation);
2024 }
2025 }
2026
2027 /**
2028 * Returns given part or {@link #NULL} if the given part is null.

Callers 3

readFromMethod · 0.95
readFromMethod · 0.95

Calls 5

fromMethod · 0.95
fromEncodedMethod · 0.95
fromDecodedMethod · 0.95
readIntMethod · 0.45
readStringMethod · 0.45

Tested by

no test coverage detected