diff options
author | Tyler Gunn <tgunn@google.com> | 2014-10-15 15:15:23 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-10-15 15:15:25 +0000 |
commit | 234703b3a1d2477b38be9402e69652ecaee6ee68 (patch) | |
tree | 8f9b1c607dabb3dcb5021722f57a9e94a48653db /telecomm/java/android/telecom | |
parent | f55cdab4bf9f9206d77748d0774065dc8438af0f (diff) | |
parent | 76c01a50d3028d9db251d7fc8bc5dbab1879d493 (diff) | |
download | frameworks_base-234703b3a1d2477b38be9402e69652ecaee6ee68.zip frameworks_base-234703b3a1d2477b38be9402e69652ecaee6ee68.tar.gz frameworks_base-234703b3a1d2477b38be9402e69652ecaee6ee68.tar.bz2 |
Merge "MR1 - Adding more Telecom state dumping." into lmp-mr1-dev
Diffstat (limited to 'telecomm/java/android/telecom')
-rw-r--r-- | telecomm/java/android/telecom/PhoneAccount.java | 15 | ||||
-rw-r--r-- | telecomm/java/android/telecom/PhoneAccountHandle.java | 4 |
2 files changed, 18 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java index 062baa5..66b52ae 100644 --- a/telecomm/java/android/telecom/PhoneAccount.java +++ b/telecomm/java/android/telecom/PhoneAccount.java @@ -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(); + } } diff --git a/telecomm/java/android/telecom/PhoneAccountHandle.java b/telecomm/java/android/telecom/PhoneAccountHandle.java index e13df76..768188b 100644 --- a/telecomm/java/android/telecom/PhoneAccountHandle.java +++ b/telecomm/java/android/telecom/PhoneAccountHandle.java @@ -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(); } |