diff options
author | Patrick Rohr <prohr@google.com> | 2021-12-27 13:55:16 +0100 |
---|---|---|
committer | Patrick Rohr <prohr@google.com> | 2021-12-27 14:25:15 +0100 |
commit | 2b0e9ee4ac1dd395e2e68eb6ddb687da17491c60 (patch) | |
tree | a50237817ea5884d28637d91acfb9ee273023d95 /sensors/aidl/default/Sensor.cpp | |
parent | 81e149cd06b5fb62a8773ceb2bcccc4ba3b58647 (diff) |
Fix time measurement in FilterDelayHintTest
The startTime needs to be set before setting the delayHint timeout as
that is when the callback scheduler's clock start ticking.
In addition, we need to await the first callback before starting the
test to make sure the scheduler thread has been run at least once (so
the timeout should be initialized correctly).
Test: atest TunerFilterAidlTest#FilterDelayHintTest
Bug: 210943300
Change-Id: I0b2443f3e7d33977fb6666ba09d3ff51d8b1f152
Diffstat (limited to 'sensors/aidl/default/Sensor.cpp')
0 files changed, 0 insertions, 0 deletions