MR1 - Adding more Telecom state dumping.
- Add toString for PhoneAccount class for use when dumping state. - Call Log.pii for PhoneAccountHandle mId since it may contain pii (eg sip uri). Bug: 17730966 Change-Id: Iddbd949b42704405de558f8ed8c4449242b74870
This commit is contained in:
@@ -451,4 +451,19 @@ public class PhoneAccount implements Parcelable {
|
||||
in.readList(supportedUriSchemes, classLoader);
|
||||
mSupportedUriSchemes = Collections.unmodifiableList(supportedUriSchemes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder().append("[PhoneAccount: ")
|
||||
.append(mAccountHandle)
|
||||
.append(" Capabilities: ")
|
||||
.append(mCapabilities)
|
||||
.append(" Schemes: ");
|
||||
for (String scheme : mSupportedUriSchemes) {
|
||||
sb.append(scheme)
|
||||
.append(" ");
|
||||
}
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,9 +71,11 @@ public class PhoneAccountHandle implements Parcelable {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
// Note: Log.pii called for mId as it can contain personally identifying phone account
|
||||
// information such as SIP account IDs.
|
||||
return new StringBuilder().append(mComponentName)
|
||||
.append(", ")
|
||||
.append(mId)
|
||||
.append(Log.pii(mId))
|
||||
.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user