diff options
author | Riddle Hsu <riddlehsu@google.com> | 2019-09-27 01:41:33 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-01-22 00:50:25 +0800 |
commit | 2fc86ae4a10797bd42794351a0804c263c2a0d4e (patch) | |
tree | 163f5070ccae709b01671eced9f1575f556237bb /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | a2fc38e471d2dfada920df3816670a20e19161a6 (diff) |
Fix potential leakage of InputWindowHandle from display removal
In general, input info is updated asynchronously by setInputWindowInfo.
So there may be a timing:
(1) Send a input info transaction.
(2) Clear input info for display removal.
(3) The transaction of (1) arrived.
This change ensures that (2) will be called after (3).
Bug: 126141550
Test: Run "atest WindowFocusTests" many times.
Check "adb shell dumpsys input | grep Display:"
It should only print "Display: 0".
Change-Id: Iffc867e1630f8b0715faef346c2ecb9210312d9f
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions