From 4d3c17862ce64bb44cfc5c0f6dc9ddb93d49010d Mon Sep 17 00:00:00 2001 From: Sean Kelley Date: Tue, 22 May 2018 14:35:27 -0700 Subject: Add EXTRA_SKIP_CALL_FILTERING PhoneAccount extra This adds a new @hide extra to PhoneAccount which will allow TelecomService to skip call filtering on PhoneAccounts which set it to true. This will be useful to allow devices like Wear which receive bridged calls that have already undergone call filtering to avoid doing it again. Bug: 65223222 Change-Id: I5b9992735a8cc29c70282daf5c6e285bfc8a4217 Merged-In: I5b9992735a8cc29c70282daf5c6e285bfc8a4217 --- telecomm/java/android/telecom/PhoneAccount.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java index b3a3bf21cd8b..d25e59f11495 100644 --- a/telecomm/java/android/telecom/PhoneAccount.java +++ b/telecomm/java/android/telecom/PhoneAccount.java @@ -155,6 +155,18 @@ public final class PhoneAccount implements Parcelable { public static final String EXTRA_PLAY_CALL_RECORDING_TONE = "android.telecom.extra.PLAY_CALL_RECORDING_TONE"; + /** + * Boolean {@link PhoneAccount} extras key (see {@link PhoneAccount#getExtras()} which + * indicates whether calls for a {@link PhoneAccount} should skip call filtering. + *

+ * If not specified, this will default to false; all calls will undergo call filtering unless + * specifically exempted (e.g. {@link Connection#PROPERTY_EMERGENCY_CALLBACK_MODE}.) However, + * this may be used to skip call filtering when it has already been performed on another device. + * @hide + */ + public static final String EXTRA_SKIP_CALL_FILTERING = + "android.telecom.extra.SKIP_CALL_FILTERING"; + /** * Flag indicating that this {@code PhoneAccount} can act as a connection manager for * other connections. The {@link ConnectionService} associated with this {@code PhoneAccount} -- cgit v1.2.3-59-g8ed1b