summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2020-06-30 19:32:39 -0500
committer Siarhei Vishniakou <svv@google.com> 2020-07-01 14:08:07 +0000
commita7d36fd16d8fd7e445de1a108882cd9301ba6ce7 (patch)
tree3f434574bb44306f473d5134bdba742c9082894c /vulkan/libvulkan/api.cpp
parent5a9bf901234f8f5ec228f0008fe9a1b62b7cbe85 (diff)
Increase ANR test timeouts
Currently, when running the ANR tests on the cloud device, we occasionally observe failures. There are several failures, and one of them is explained as follows: when we call setInputWindows, a FOCUS(hasFocus=true) event is generated for the focused window. The focused window needs to respond to the FOCUS event. But currently, we are setting a 10 ms dispatching timeout for the focused window. That means the focused window needs to respond to the FOCUS event within 10 ms. This happens most of the time, but on cuttlefish, this amount of time isn't always sufficient. Even changing this to 20 ms, I found cases where the test flakes. The timeouts were originally set to 10 ms to speed up the tests, and were tested on physical devices, but not stress tested on cf. To fix the immediate issue, increase the timeouts. We could also have fixed it by doing the following: Set a long timeout, process FOCUS event, then set a short timeout and call setInputWindows again. I decided against that approach because it's more complicated. Bug: 159489444 Test: adb shell /data/nativetest/inputflinger_tests/inputflinger_tests --gtest_repeat=100000 --gtest_break_on_failure --gtest_filter='*WindowAnr*' Change-Id: I61b27550f812c60738310b6cf1c0c2ed7bb86dc8
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions