Merge "Expose Uri toSafeString api"
am: 17f9b9bfb6
Change-Id: I26873145668dc451ff1324d7664c386d9223a6c4
This commit is contained in:
@@ -27783,6 +27783,7 @@ package android.net {
|
|||||||
method public abstract boolean isRelative();
|
method public abstract boolean isRelative();
|
||||||
method public android.net.Uri normalizeScheme();
|
method public android.net.Uri normalizeScheme();
|
||||||
method public static android.net.Uri parse(java.lang.String);
|
method public static android.net.Uri parse(java.lang.String);
|
||||||
|
method public java.lang.String toSafeString();
|
||||||
method public abstract java.lang.String toString();
|
method public abstract java.lang.String toString();
|
||||||
method public static android.net.Uri withAppendedPath(android.net.Uri, java.lang.String);
|
method public static android.net.Uri withAppendedPath(android.net.Uri, java.lang.String);
|
||||||
method public static void writeToParcel(android.os.Parcel, android.net.Uri);
|
method public static void writeToParcel(android.os.Parcel, android.net.Uri);
|
||||||
|
|||||||
@@ -374,11 +374,12 @@ public abstract class Uri implements Parcelable, Comparable<Uri> {
|
|||||||
public abstract String toString();
|
public abstract String toString();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a string representation of the URI that is safe to print
|
* Return a string representation of this URI that has common forms of PII redacted,
|
||||||
* to logs and other places where PII should be avoided.
|
* making it safer to use for logging purposes. For example, {@code tel:800-466-4411} is
|
||||||
* @hide
|
* returned as {@code tel:xxx-xxx-xxxx} and {@code http://example.com/path/to/item/} is
|
||||||
|
* returned as {@code http://example.com/...}.
|
||||||
|
* @return the common forms PII redacted string of this URI
|
||||||
*/
|
*/
|
||||||
@UnsupportedAppUsage
|
|
||||||
public String toSafeString() {
|
public String toSafeString() {
|
||||||
String scheme = getScheme();
|
String scheme = getScheme();
|
||||||
String ssp = getSchemeSpecificPart();
|
String ssp = getSchemeSpecificPart();
|
||||||
|
|||||||
Reference in New Issue
Block a user