Home
last modified time | relevance | path

Searched refs:prevTimestamp (Results 1 – 1 of 1) sorted by relevance

/hardware/interfaces/sensors/common/vts/utils/
DSensorsHidlTestBase.cpp474 int64_t prevTimestamp = -1; in testSamplingRateHotSwitchOperation() local
479 if (prevTimestamp > 0) { in testSamplingRateHotSwitchOperation()
480 timestampInterval += e.timestamp - prevTimestamp; in testSamplingRateHotSwitchOperation()
482 prevTimestamp = e.timestamp; in testSamplingRateHotSwitchOperation()
490 prevTimestamp = -1; in testSamplingRateHotSwitchOperation()
495 if (prevTimestamp > 0) { in testSamplingRateHotSwitchOperation()
496 timestampInterval += e.timestamp - prevTimestamp; in testSamplingRateHotSwitchOperation()
498 prevTimestamp = e.timestamp; in testSamplingRateHotSwitchOperation()