summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Hiroki Sato <hirokisato@google.com> 2024-10-02 15:57:14 +0900
committer Hiroki Sato <hirokisato@google.com> 2024-10-21 11:19:17 +0900
commit2b5c3c6cddf1ba710f5e51ab51ea9166f79327da (patch)
treec294cb31bae2f36b7365931594fb7b119cc2c414 /api/api_test.go
parent5a2c7673eb6a40eebc6122e33f6c22ea82c19e2b (diff)
Fullscreen Magnification updates pointer icon on non-transient change
Changing pointer icon scale involves resource loading, which is expensive. Thus, we want to change the size of pointer icon only when the change is not transient, i.e., not during animation, user's gesture, moving a slider bar in settings panel, etc. In order to update it, this change adds `isScaleTransient` parameter to all the entrance point of changing fullscreen magnification scale so that when the change is actually applied, we can tell whether we should update a pointer icon size. The change itself is big, but most of them are mechanical change of method signatures and the behavior is controlled behind the aconfig flag. Bug: 355734856 Test: Enable flag, and changing scale with slider or gesture will change pointer icons. Test: atest com.android.server.accessibility.magnification Flag: com.android.server.accessibility.magnification_enlarge_pointer Change-Id: Ibd8c0aa05c047c3977f8d2e7fc5d50f2193705fa
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions