From 37ce669cf88c3e80d3e950829c4585fe27cd0161 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Mon, 12 Mar 2018 14:31:45 -0700 Subject: Add Telecom debug setting for enabling enhanced call blocking. This feature is only available for certain carriers at the current time. To facilitate test team productivity, adding a system setting which can be accessed from the Telecom debug menu to enable this functionality. Test: Manual Bug: 28189985 Change-Id: I4c812cecd2832a722e5dc73b7c719a9e0594064d --- core/java/android/provider/Settings.java | 8 ++++++++ core/tests/coretests/src/android/provider/SettingsBackupTest.java | 1 + 2 files changed, 9 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index ca3f5e9a31e5..fb97059c3659 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -3620,6 +3620,14 @@ public final class Settings { /** @hide */ public static final Validator VIBRATE_WHEN_RINGING_VALIDATOR = sBooleanValidator; + /** + * When {@code 1}, Telecom enhanced call blocking functionality is enabled. When + * {@code 0}, enhanced call blocking functionality is disabled. + * @hide + */ + public static final String DEBUG_ENABLE_ENHANCED_CALL_BLOCKING = + "debug.enable_enhanced_calling"; + /** * Whether the audible DTMF tones are played by the dialer when dialing. The value is * boolean (1 or 0). diff --git a/core/tests/coretests/src/android/provider/SettingsBackupTest.java b/core/tests/coretests/src/android/provider/SettingsBackupTest.java index 757a70ca834e..50fa48fc5a5e 100644 --- a/core/tests/coretests/src/android/provider/SettingsBackupTest.java +++ b/core/tests/coretests/src/android/provider/SettingsBackupTest.java @@ -64,6 +64,7 @@ public class SettingsBackupTest { Settings.System.NOTIFICATION_LIGHT_PULSE, // candidate for backup? Settings.System.NOTIFICATION_SOUND_CACHE, // internal cache Settings.System.POINTER_LOCATION, // backup candidate? + Settings.System.DEBUG_ENABLE_ENHANCED_CALL_BLOCKING, // used for testing only Settings.System.RINGTONE_CACHE, // internal cache Settings.System.SETUP_WIZARD_HAS_RUN, // Only used by SuW Settings.System.SHOW_GTALK_SERVICE_STATUS, // candidate for backup? -- cgit v1.2.3-59-g8ed1b