From 649bedd65002f35f1c04d0610e27d579085edcfc Mon Sep 17 00:00:00 2001 From: Thomas Stuart Date: Thu, 23 Feb 2023 15:48:31 -0800 Subject: 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 --- telecomm/java/android/telecom/PhoneAccount.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java index b6def1a22205..94c737d61b0a 100644 --- a/telecomm/java/android/telecom/PhoneAccount.java +++ b/telecomm/java/android/telecom/PhoneAccount.java @@ -1227,6 +1227,12 @@ public final class PhoneAccount implements Parcelable { 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(); } -- cgit v1.2.3-59-g8ed1b