From 60e5eb6d61011e7707d7b6860379887cc58b8f07 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Thu, 1 Jul 2021 16:55:32 -0700 Subject: [PATCH] Add a hidden extra key for caller number verification status. This is used to work around a bug in the remote connection service API where this property is not being passed through to Telecom. Test: Use connection manager carrier and verify that VERSTAT is now propagated to Telecom. Bug: 192608283 Change-Id: Ie45e7c05d78623085cd2be32470a5870d243745c --- telecomm/java/android/telecom/Connection.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 30403f416661a..759afd72d539e 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -670,6 +670,14 @@ public abstract class Connection extends Conferenceable { }) public @interface AudioCodec {} + /** + * Contains the same value as {@link #getCallerNumberVerificationStatus()}, except will be + * present in the {@link #getExtras()} using this key. + * @hide + */ + public static final String EXTRA_CALLER_NUMBER_VERIFICATION_STATUS = + "android.telecom.extra.CALLER_NUMBER_VERIFICATION_STATUS"; + /** * Connection extra key used to store the last forwarded number associated with the current * connection. Used to communicate to the user interface that the connection was forwarded via