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:
@@ -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.
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user