log VoIP capabilites that were introduced in U
CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS and
CAPABILITY_SUPPORTS_CALL_STREAMING were added in android U.
Currently, if you register these capabilities, they fail to print
in dumpsys. This will make debugging harder. Adding to logs to
make the debugging easier.
bug: 270620095
Test: manual
Change-Id: Ia11907c983404b06c400fb9b8757a3ea26b08772
diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java
index b6def1a..94c737d 100644
--- a/telecomm/java/android/telecom/PhoneAccount.java
+++ b/telecomm/java/android/telecom/PhoneAccount.java
@@ -1227,6 +1227,12 @@
if (hasCapabilities(CAPABILITY_VOICE_CALLING_AVAILABLE)) {
sb.append("Voice ");
}
+ if (hasCapabilities(CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS)) {
+ sb.append("TransactOps ");
+ }
+ if (hasCapabilities(CAPABILITY_SUPPORTS_CALL_STREAMING)) {
+ sb.append("Stream ");
+ }
return sb.toString();
}