Deflake InterceptKeyIfKeyUp

The test checks that the keys with ACTION_UP are delivered immediately.

Therefore, the injection of ACTION_DOWN key should be done before we set
the intercept timeout.

Bug: 282837934
Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests --gtest_filter="*InterceptKeyIfKeyUp*" --gtest_repeat=100000 --gtest_break_on_failure
Change-Id: I93f34d578eacb93cfd8f9794a6f0af6e601d7956
1 file changed