summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorJacky Kao <jackykao@google.com>2021-04-07 10:41:52 +0800
committerBaligh Uddin <baligh@google.com>2021-05-19 07:54:39 +0000
commit31eaf452adee227f1b9f00503ed4470fb525d9b7 (patch)
treee7d940229f2235101f37ecf5755ad04a20dada0a /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parente59ae90be33685cafe73291736af6f7329d192a7 (diff)
Improve the windows register and unregister mechanism
1. For fixing the crash due to mutl-register callback, we avoid using the display context when un-registering the callback. Instead, we remove the observer mapping if the display exists along with the observer of any embedded displays that are children of the un-registered one. 2. When an display registers its callback first, and then got its reparent window, there's an displayWindowObserver for it in the A11yWindowManager. But it didn't be used because it's an embedded display and any windows change on it will be notified through the callback of its parent display. So we add a callback to remove this un-used displayWindowObservers in the A11yWindowManager when this display is an embedded one. Bug: 143114102 Test: a11y CTS & unit tests Merged-In: I00fd1f45c0b4e362143a8d82f31264ff202f0967 (cherry picked from commit 5b8b737755b6f0d5fad0d4bf1f31254a9c71a5ab)
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions