a11y: Add cursor following mode dialog

This a pure UI change that adds a new magnification cursor following
mode dialog behind a flag. The framework support will be added
separately later.

There are 3 modes as the following:
  - continuous mode
  - center mode
  - edge mode

It also renames magnification mode dialog xml file for general purpose
within accessibility.

NO_IFTTT=linter not working

Bug: b/388335935
Flag: com.android.settings.accessibility.enable_magnification_cursor_following_dialog
Test: SettingsRoboTests:com.android.settings.accessibility.ToggleScreenMagnificationPreferenceFragmentTest &&
      SettingsRoboTests:com.android.settings.accessibility.MagnificationModePreferenceControllerTest &&
      SettingsRoboTests:com.android.settings.accessibility.MagnificationCursorFollowingModePreferenceControllerTest
Change-Id: If2672186faf7443cc210d79630b1ea4f3808d7e4
This commit is contained in:
Yongshun Liu
2025-02-12 10:28:11 +00:00
parent 43e0a04580
commit 20d1a7d1b6
8 changed files with 520 additions and 4 deletions

View File

@@ -5217,6 +5217,16 @@
<string name="accessibility_screen_magnification_title">Magnification</string>
<!-- Title for accessibility shortcut preference for magnification. [CHAR LIMIT=60] -->
<string name="accessibility_screen_magnification_shortcut_title">Magnification shortcut</string>
<!-- Title of cursor following mode preference for magnification. [CHAR LIMIT=60] -->
<string name="accessibility_magnification_cursor_following_title">Cursor following</string>
<!-- Header message of cursor following mode dialog for magnification. [CHAR LIMIT=none] -->
<string name="accessibility_magnification_cursor_following_header">Choose how Magnification follows your cursor.</string>
<!-- Option title of cursor following continuous mode in the mode selection dialog. [CHAR LIMIT=none] -->
<string name="accessibility_magnification_cursor_following_continuous">Move screen continuously as mouse moves</string>
<!-- Option title of cursor following center mode in the mode selection dialog. [CHAR LIMIT=none] -->
<string name="accessibility_magnification_cursor_following_center">Move screen keeping mouse at center of screen</string>
<!-- Option title of cursor following edge mode in the mode selection dialog. [CHAR LIMIT=none] -->
<string name="accessibility_magnification_cursor_following_edge">Move screen when mouse touches edges of screen</string>
<!-- Title for accessibility follow typing preference for magnification. [CHAR LIMIT=35] -->
<string name="accessibility_screen_magnification_follow_typing_title">Magnify typing</string>
<!-- Summary for accessibility follow typing preference for magnification. [CHAR LIMIT=none] -->