summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android/telecom
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-10-15 15:15:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-15 15:15:25 +0000
commit234703b3a1d2477b38be9402e69652ecaee6ee68 (patch)
tree8f9b1c607dabb3dcb5021722f57a9e94a48653db /telecomm/java/android/telecom
parentf55cdab4bf9f9206d77748d0774065dc8438af0f (diff)
parent76c01a50d3028d9db251d7fc8bc5dbab1879d493 (diff)
downloadframeworks_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.java15
-rw-r--r--telecomm/java/android/telecom/PhoneAccountHandle.java4
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();
}