Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32af83b2 authored by Edgar Wang's avatar Edgar Wang
Browse files

Add Tap Gesture for Aware Settings

- Add new settings provider key for tap gesture.

Bug: 142702985
Test: atest & manual
Change-Id: Ib76327b37a415512145a150a4b0e176a6cb114d7
parent 23e881bb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -8253,6 +8253,12 @@ public final class Settings {
         */
        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
         * process when restoring historical backup datasets.
+1 −0
Original line number Diff line number Diff line
@@ -228,5 +228,6 @@ public class SecureSettingsValidators {
        VALIDATORS.put(Secure.GLOBAL_ACTIONS_PANEL_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.AWARE_LOCK_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.DISPLAY_DENSITY_FORCED, NON_NEGATIVE_INTEGER_VALIDATOR);
        VALIDATORS.put(Secure.TAP_GESTURE, BOOLEAN_VALIDATOR);
    }
}
+2 −1
Original line number Diff line number Diff line
@@ -732,7 +732,8 @@ public class SettingsBackupTest {
                 Settings.Secure.SILENCE_GESTURE,
                 Settings.Secure.DOZE_WAKE_LOCK_SCREEN_GESTURE,
                 Settings.Secure.DOZE_WAKE_DISPLAY_GESTURE,
                 Settings.Secure.FACE_UNLOCK_RE_ENROLL);
                 Settings.Secure.FACE_UNLOCK_RE_ENROLL,
                 Settings.Secure.TAP_GESTURE);

    @Test
    public void systemSettingsBackedUpOrBlacklisted() {