summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Jacky Kao <jackykao@google.com> 2021-11-04 13:53:10 +0800
committer Jacky Kao <jackykao@google.com> 2022-02-24 09:51:52 +0800
commit148938787075c6039054b30505673fd25d97b0ee (patch)
treefebeb4f869cdb15db77532dfa808d408a41e3348 /libs/hwui/FrameInfoVisualizer.cpp
parenta2fae6b5d6ef8f1e66a9000c8861531f9b0d7723 (diff)
Uses SF callback windows for the A11yWindowInfo [2/n]
1. The SF callbacks the windows even they are in the transition state. This will make many useless A11y events reporting to the A11y services, like windows change with bounds change event. To avoid this symptom, we assume the callback windows become stable and compute the reported windows to the A11y framework if the SF callback isn't sent within 2 frames time (about 35ms). 2. To avoid the endless SF callback always in a short time, then A11y framework can't obtain any windows, we set a maximum time, 500ms, which is longer than the whole animation, to compute the reported windows. 3. Removes the legacy signals from the WM to compute the reported windows due to they can be covered by the signals from the SF callback. Bug: 191736824 Test: a11y CTS & unit tests Test: Manual testing including the A11y services Change-Id: Ibe2096e388769a12e3bcbaa472239ec9e458a396
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions