Home
last modified time | relevance | path

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

/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DSensor.cpp131 int64_t nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run() local
133 if (now >= nextSampleTime) { in run()
135 nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run()
139 mWaitCV.wait_for(runLock, std::chrono::nanoseconds(nextSampleTime - now)); in run()
/hardware/interfaces/sensors/common/default/2.X/
DSensor.cpp120 int64_t nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run() local
122 if (now >= nextSampleTime) { in run()
124 nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run()
128 mWaitCV.wait_for(runLock, std::chrono::nanoseconds(nextSampleTime - now)); in run()
/hardware/interfaces/sensors/aidl/default/
DSensor.cpp117 int64_t nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run() local
119 if (now >= nextSampleTime) { in run()
121 nextSampleTime = mLastSampleTimeNs + mSamplingPeriodNs; in run()
125 mWaitCV.wait_for(runLock, std::chrono::nanoseconds(nextSampleTime - now)); in run()