diff options
| author | 2018-03-12 14:31:45 -0700 | |
|---|---|---|
| committer | 2018-03-19 13:55:13 -0700 | |
| commit | 37ce669cf88c3e80d3e950829c4585fe27cd0161 (patch) | |
| tree | 8ffa68720194c5d4d0b25c7854fe777182a3efeb | |
| parent | 1844f1cb431c413cccb4ae894545efdbf1bdbf97 (diff) | |
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
| -rw-r--r-- | core/java/android/provider/Settings.java | 8 | ||||
| -rw-r--r-- | core/tests/coretests/src/android/provider/SettingsBackupTest.java | 1 |
2 files changed, 9 insertions, 0 deletions
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 @@ -3621,6 +3621,14 @@ public final class Settings { 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? |