From cbfc37f10ebe0a6db9f1d4781626f01cf9eef609 Mon Sep 17 00:00:00 2001 From: Nate Myren Date: Tue, 3 Dec 2024 11:13:07 -0800 Subject: Add API constant for in call blocking dialog This intent action will be used by settings to trigger the "action blocked due to being in untrusted call" dialog Bug: 364535720 Test: build Flag: android.permission.flags.enhanced_confirmation_in_call_apis_enabled Relnote: 25Q2 api LOW_COVERAGE_REASON=NON_CODE_ONLY Change-Id: Ic96ca1ce17ed5df3a4f4f736c6bd48ea599dadbe --- .../java/android/app/ecm/EnhancedConfirmationManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework-s/java') diff --git a/framework-s/java/android/app/ecm/EnhancedConfirmationManager.java b/framework-s/java/android/app/ecm/EnhancedConfirmationManager.java index 8eaa9354d..e497ba5f4 100644 --- a/framework-s/java/android/app/ecm/EnhancedConfirmationManager.java +++ b/framework-s/java/android/app/ecm/EnhancedConfirmationManager.java @@ -199,6 +199,15 @@ public final class EnhancedConfirmationManager { public static final String ACTION_SHOW_ECM_RESTRICTED_SETTING_DIALOG = "android.app.ecm.action.SHOW_ECM_RESTRICTED_SETTING_DIALOG"; + /** + * Shows a dialog indicating a setting has been blocked due to the phone state (such as being + * on a call with an unknown number). Opened when a setting is blocked. + */ + @SdkConstant(BROADCAST_INTENT_ACTION) + @FlaggedApi(Flags.FLAG_ENHANCED_CONFIRMATION_IN_CALL_APIS_ENABLED) + public static final String ACTION_SHOW_ECM_PHONE_STATE_BLOCKED_SETTING_DIALOG = + "android.app.ecm.action.SHOW_ECM_PHONE_STATE_BLOCKED_SETTING_DIALOG"; + /** A map of ECM states to their corresponding app op states */ @Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(prefix = {"ECM_STATE_"}, value = {EcmState.ECM_STATE_NOT_GUARDED, -- cgit v1.2.3-59-g8ed1b