diff options
author | 2019-12-20 11:02:58 -0800 | |
---|---|---|
committer | 2020-01-07 09:08:04 -0800 | |
commit | adfd4fa3745c9c414591bbd3141586e464a86750 (patch) | |
tree | fa6ac8f9069f5a0cdd568790df9d95113f048742 /vulkan/libvulkan/api.cpp | |
parent | a81d409ce10bc25bd8b3e28f8ef87376d5fa2b5b (diff) |
Update eventTime to prevent stale events
Generate a new motionevent for each injection to ensure that eventtime
remains up to date.
In the InputDispatcher benchmarks, if the eventTime is not updated, then
the test will be stuck, because dispatcher will just drop all events.
To hit this condition, the benchmark must be ran for a sufficiently long
amount of time so that isStaleEvent returns true.
At that point, the benchmark for injectMotion will be stuck, because all
events are dropped, and we cannot consume anything.
The setDownTime api is unsupportedAppUsage in the Java layer, so we
shouldn't remove it.
Bug: none
Test: flame:/data/benchmarktest64/inputflinger_benchmarks #
./inputflinger_benchmarks --benchmark_min_time=10
Change-Id: I1eb93ca9ddac52562e0da50de355d5cdc584c893
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions