summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jacky Kao <jackykao@google.com> 2021-11-17 15:27:42 +0800
committer Jacky Kao <jackykao@google.com> 2022-02-24 09:53:55 +0800
commitdabdcc6738d92a6e6018466f564d8305ab5f9c67 (patch)
tree4e71b3ab3638971b9862e2bf3bd7ac8f7f258d1b /libs/androidfw/StringPool.cpp
parent914cef5f32e823d3480afa731b5260dcbe660da5 (diff)
Descreses the counts of windows_change_bounds events
When the display magnification is activated, the window bounds of the windows callbacked from the SF will be the real position after the magnifying. We need to use the inverse matrix of magnification spec to compute the original bounds without the magnification effect. And we found if the magnification spec changed too quickly, the computed window bounds won't be correct because the callbacked windows will get one frame behind. This symptom will make the window bounds of the same window isn't the same, and send the windows_change_bounds event out. To descreses the counts of the window_change_bounds events, we stores two consecutive magnification specs, and found out which one is the proper one closing the identity matrix for generating the inverse matrix based on below formula under window is at the stable state based on the assumption, We don't consider the transition effect because this condition wouldn't happen with changing the magnification spec simultaneously: WindowState#transform * MagnificationSpecMatrix * inputWindowHandle#transform = IdentityMatrix Bug: 191736824 Test: a11y CTS & unit tests Test: Manual testing including the A11y services Change-Id: Ib447d696feaa2758fe3192f7e570cce8019f40df
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions