Add Tap Gesture for Aware Settings

- Add new settings provider key for tap gesture.

Bug: 142702985
Test: atest & manual
Change-Id: Ib76327b37a415512145a150a4b0e176a6cb114d7
This commit is contained in:
Edgar Wang
2019-10-18 12:31:24 +08:00
parent 23e881bb50
commit 32af83b2cb
3 changed files with 9 additions and 1 deletions

View File

@@ -8253,6 +8253,12 @@ public final class Settings {
*/ */
public static final String AWARE_LOCK_ENABLED = "aware_lock_enabled"; public static final String AWARE_LOCK_ENABLED = "aware_lock_enabled";
/**
* Controls whether tap gesture is enabled.
* @hide
*/
public static final String TAP_GESTURE = "tap_gesture";
/** /**
* Keys we no longer back up under the current schema, but want to continue to * Keys we no longer back up under the current schema, but want to continue to
* process when restoring historical backup datasets. * process when restoring historical backup datasets.

View File

@@ -228,5 +228,6 @@ public class SecureSettingsValidators {
VALIDATORS.put(Secure.GLOBAL_ACTIONS_PANEL_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.GLOBAL_ACTIONS_PANEL_ENABLED, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.AWARE_LOCK_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.AWARE_LOCK_ENABLED, BOOLEAN_VALIDATOR);
VALIDATORS.put(Secure.DISPLAY_DENSITY_FORCED, NON_NEGATIVE_INTEGER_VALIDATOR); VALIDATORS.put(Secure.DISPLAY_DENSITY_FORCED, NON_NEGATIVE_INTEGER_VALIDATOR);
VALIDATORS.put(Secure.TAP_GESTURE, BOOLEAN_VALIDATOR);
} }
} }

View File

@@ -732,7 +732,8 @@ public class SettingsBackupTest {
Settings.Secure.SILENCE_GESTURE, Settings.Secure.SILENCE_GESTURE,
Settings.Secure.DOZE_WAKE_LOCK_SCREEN_GESTURE, Settings.Secure.DOZE_WAKE_LOCK_SCREEN_GESTURE,
Settings.Secure.DOZE_WAKE_DISPLAY_GESTURE, Settings.Secure.DOZE_WAKE_DISPLAY_GESTURE,
Settings.Secure.FACE_UNLOCK_RE_ENROLL); Settings.Secure.FACE_UNLOCK_RE_ENROLL,
Settings.Secure.TAP_GESTURE);
@Test @Test
public void systemSettingsBackedUpOrBlacklisted() { public void systemSettingsBackedUpOrBlacklisted() {