summaryrefslogtreecommitdiff
path: root/core/java/android/accessibilityservice/MagnificationConfig.java
Commit message (Collapse)AuthorAgeFilesLines
* Updates the doc for FEATURE_WINDOW_MAGNIFICATIONmincheli2022-03-291-5/+8
| | | | | | | | | | | If this feature is not supported, 1. Settings should hide window magnification settings. 2. Magnification mode settings should fallback to. full-screen settings. Bug: 225086379 Test: none Change-Id: I3248034d25eb88136bda1874092319d4702be455
* Fixes the API format of MagnificationConfigmincheli2021-12-021-25/+32
| | | | | | | | | | | | | 1. Add a range to the parameter in setScale(), setCenterX(), setCenterY() 2. The IntDef annotation name of MagnificationMode should not be capitalized. The constants names should also start with the same prefix set in the IntDef annotation. 3. Adds @hide for the IntDef annotation. 4. The related constants uses consistent prefix Bug: 208422801 Test: none Change-Id: Ibd997c3a13385d8884e208564092d829833ae637
* MagnificationProcessor uses MagnificationConfig to control the specified ↵mincheli2021-11-221-0/+250
magnifier MagnificationConfig stores the magnification configuration of the controlling magnifier, such as magnification mode, scale and center postion. And MagnificationProcessor uses the config to controll the magnifier for AccessibilityService. See API review doc: go/b200769372 Design doc: go/a11yservice_control_magnification_in_t The chapter at Proposal A and MagnificationConfig CTS: ag/15824302 Bug: 199732498 Test: atest AbstractAccessibilityServiceConnectionTest, atest MagnificationProcessorTest, atest WindowMagnificationManagerTest, atest MagnificationConfigTest Change-Id: I20323865d2efe1b40626f0c86767848733856482