summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author ryanlwlin <ryanlwlin@google.com> 2021-11-18 21:51:59 +0800
committer ryanlwlin <ryanlwlin@google.com> 2022-04-12 22:24:21 +0800
commit7bdc82af7c207aaf9885e4b2d5db16a4043406de (patch)
tree2a18e8690576a4df3b110db44c08ac158cc41f69 /libs/androidfw/StringPool.cpp
parent6fcd7dd723222a2807e28df649e4075e56bca44b (diff)
Change node bounds procedure based on SufaceFlinger Callback
The attachInfo from ViewRootImpl is not reliable for DisplayArea manipulation or windowless window. To fix this problem, we use the transform matrix of InputWindowHandle, which could transform the bounds from window coorindate to screen coordinate. We also transfrom the bounds to logical display coordinates with the associated display matrix. Besides, we also record the magnification spec of the window, which could get the bounds before magnification. We use this value to decide the property 'visibleToUser'. Bug: 200797785 Test: atest android.accessibilityservice.cts WindowInfoTest atest com.android.server.accessibility Change-Id: I0917b04fe8b027fb2bd932a6f0604ba1449ebc66
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions