Loading core/java/android/hardware/input/InputSettings.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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; } } Loading core/java/android/provider/Settings.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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 */ */ Loading packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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)); Loading Loading
core/java/android/hardware/input/InputSettings.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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; } } Loading
core/java/android/provider/Settings.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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 */ */ Loading
packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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)); Loading