Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4fd86737 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Ensure dispatcher is idle before checking policy state

Some of the dispatcher tests are flaky, including the newly added
'InjectedTouchesPokeUserActivity'.
The test can fail if the dispatcher hasn't yet notified policy about the
user activity.
To ensure that the dispatcher is done processing events, including
calling the policy, add a 'waitForIdle' call.

Bug: 281559590
Change-Id: I39a7b29638e2051d11a61560b0ef623a1ff91ea0
Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests --gtest_filter="*InjectedTouchesPokeUserActivity*" --gtest_repeat=100000 --gtest_break_on_failure
parent 0357e588
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment