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

Commit caef42f0 authored by Danny Wang's avatar Danny Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix typo in InputSettings and SecureSettingsValidators" into main

parents 6bf9f10e 27494b37
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1137,7 +1137,7 @@ public class InputSettings {
    @FlaggedApi(FLAG_KEYBOARD_A11Y_MOUSE_KEYS)
    @FlaggedApi(FLAG_KEYBOARD_A11Y_MOUSE_KEYS)
    @RequiresPermission(Manifest.permission.WRITE_SECURE_SETTINGS)
    @RequiresPermission(Manifest.permission.WRITE_SECURE_SETTINGS)
    public static void setAccessibilityMouseKeysAcceleration(@NonNull Context context,
    public static void setAccessibilityMouseKeysAcceleration(@NonNull Context context,
            int acceleration) {
            float acceleration) {
        if (!isAccessibilityMouseKeysFeatureFlagEnabled()) {
        if (!isAccessibilityMouseKeysFeatureFlagEnabled()) {
            return;
            return;
        }
        }
+1 −1
Original line number Original line Diff line number Diff line
@@ -13072,7 +13072,7 @@ public final class Settings {
                "accessibility_mouse_keys_enabled";
                "accessibility_mouse_keys_enabled";
        /**
        /**
         * The current acceleration for mouse keys movement.
         * The current float acceleration value for mouse keys movement.
         *
         *
         * @hide
         * @hide
         */
         */
+1 −1
Original line number Original line Diff line number Diff line
@@ -470,7 +470,7 @@ public class SecureSettingsValidators {
        VALIDATORS.put(Secure.ON_DEVICE_INTELLIGENCE_IDLE_TIMEOUT_MS, NONE_NEGATIVE_LONG_VALIDATOR);
        VALIDATORS.put(Secure.ON_DEVICE_INTELLIGENCE_IDLE_TIMEOUT_MS, NONE_NEGATIVE_LONG_VALIDATOR);
        VALIDATORS.put(Secure.ACCESSIBILITY_MOUSE_KEYS_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.ACCESSIBILITY_MOUSE_KEYS_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.ACCESSIBILITY_MOUSE_KEYS_ACCELERATION,
        VALIDATORS.put(Secure.ACCESSIBILITY_MOUSE_KEYS_ACCELERATION,
                new InclusiveIntegerRangeValidator(0, 10));
                new InclusiveFloatRangeValidator(0, 1.0f));
        VALIDATORS.put(Secure.ACCESSIBILITY_MOUSE_KEYS_MAX_SPEED,
        VALIDATORS.put(Secure.ACCESSIBILITY_MOUSE_KEYS_MAX_SPEED,
                new InclusiveIntegerRangeValidator(1, 10));
                new InclusiveIntegerRangeValidator(1, 10));
        VALIDATORS.put(Secure.MANDATORY_BIOMETRICS, new InclusiveIntegerRangeValidator(0, 1));
        VALIDATORS.put(Secure.MANDATORY_BIOMETRICS, new InclusiveIntegerRangeValidator(0, 1));