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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user