diff options
author | 2023-10-03 10:45:16 -0700 | |
---|---|---|
committer | 2023-10-03 11:01:49 -0700 | |
commit | c033dfbb5f7053585bbdbd1b8c3f92c78ae3c94b (patch) | |
tree | a4a311b2985a75117c834b5d3b7e96a1a55157fb /cmds/dumpstate/dumpstate.cpp | |
parent | 80e8cfe3d73baecc749dba0de0bd7f96c17a5eec (diff) |
Reset no focused window timeout when window gets focus
If a window is about to receive focus, then we should stop the "no
focused window" timeout.
Otherwise, we would report an ANR, even though the focused window was
added within the "dispatching timeout" grace period of the application.
Bug: 302326393
Test: TEST=inputflinger_tests; m $TEST && adb sync data && adb shell -t data/nativetest64/$TEST/$TEST --gtest_filter="*FocusedWindowWithoutSetFocusedApplication_NoAnr*" --gtest_repeat=3000 --gtest_break_on_failure
Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST --gtest_filter="*FocusedWindowWithoutSetFocusedApplication_NoAnr" --gtest_repeat=1000 --gtest_break_on_failure
Change-Id: Ie272545e1be23ff5ef4d1bf24507a8ba7e6d170b
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
0 files changed, 0 insertions, 0 deletions