We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eaf140 commit a2d3cf1Copy full SHA for a2d3cf1
1 file changed
services/inputflinger/tests/FakeInputTracingBackend.cpp
@@ -23,7 +23,11 @@ namespace android::inputdispatcher {
23
24
namespace {
25
26
-constexpr auto TRACE_TIMEOUT = std::chrono::milliseconds(100);
+// Use a larger timeout while waiting for events to be traced, compared to the timeout used while
27
+// waiting to receive events through the input channel. Events are traced from a separate thread,
28
+// which does not have the same high thread priority as the InputDispatcher's thread, so the tracer
29
+// is expected to lag behind the Dispatcher at times.
30
+constexpr auto TRACE_TIMEOUT = std::chrono::seconds(5);
31
32
base::ResultError<> error(const std::ostringstream& ss) {
33
return base::ResultError(ss.str(), BAD_VALUE);
0 commit comments