summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Asmita Poddar <asmitapoddar@google.com> 2024-07-30 15:54:22 +0000
committer Asmita Poddar <asmitapoddar@google.com> 2024-08-07 16:04:11 +0000
commitb60ee9e69ed252b19de56e796880df9bde95dc0d (patch)
tree2bdd64d450c19240c0df49035d830070bfc5ab74 /libs/androidfw/StringPool.cpp
parent7ef1ce6e9e96a69ad9ed098fc768039df5856f68 (diff)
Ensure that VirtualMouse creation is complete before usage
Use Thread.join for waiting for the virtual mouse creation to complete before calling methods using the virtual mouse. This approach blocks the calling thread only if the virtual mouse creation thread is still running, and returns immediately if the thread has already completed. This will also fix test flakiness, which were failing due to VirtualMouse not being available yet. Bug: 356262422 Test: atest FrameworksServicesTests:MouseKeysInterceptorTest --iterations 300 Flag: TEST_ONLY Change-Id: I5bbbcad565dcfb5c8c71b1241828aaa005d185e0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions