Add Tap Gesture for Aware Settings
- Add new settings provider key for tap gesture. Bug: 138296598 Test: atest & manual Change-Id: Icf0073ded0063ba5ed128bd3e3ea7d28a9336715 Merged-In: Ib76327b37a415512145a150a4b0e176a6cb114d7
This commit is contained in:
@@ -8961,6 +8961,14 @@ public final class Settings {
|
||||
|
||||
private static final Validator AWARE_LOCK_ENABLED_VALIDATOR = BOOLEAN_VALIDATOR;
|
||||
|
||||
/**
|
||||
* Controls whether tap gesture is enabled.
|
||||
* @hide
|
||||
*/
|
||||
public static final String TAP_GESTURE = "tap_gesture";
|
||||
|
||||
private static final Validator TAP_GESTURE_VALIDATOR = BOOLEAN_VALIDATOR;
|
||||
|
||||
/**
|
||||
* This are the settings to be backed up.
|
||||
*
|
||||
@@ -9294,6 +9302,7 @@ public final class Settings {
|
||||
VALIDATORS.put(AWARE_LOCK_ENABLED, AWARE_LOCK_ENABLED_VALIDATOR);
|
||||
VALIDATORS.put(AWARE_TAP_PAUSE_GESTURE_COUNT, NON_NEGATIVE_INTEGER_VALIDATOR);
|
||||
VALIDATORS.put(AWARE_TAP_PAUSE_TOUCH_COUNT, NON_NEGATIVE_INTEGER_VALIDATOR);
|
||||
VALIDATORS.put(TAP_GESTURE, TAP_GESTURE_VALIDATOR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -731,6 +731,7 @@ public class SettingsBackupTest {
|
||||
Settings.Secure.SILENCE_GESTURE,
|
||||
Settings.Secure.DOZE_WAKE_LOCK_SCREEN_GESTURE,
|
||||
Settings.Secure.DOZE_WAKE_DISPLAY_GESTURE,
|
||||
Settings.Secure.TAP_GESTURE,
|
||||
Settings.Secure.FACE_UNLOCK_RE_ENROLL);
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user