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
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java
index 30403f4..759afd7 100644
--- a/telecomm/java/android/telecom/Connection.java
+++ b/telecomm/java/android/telecom/Connection.java
@@ -671,6 +671,14 @@
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
* the specified number.