Searched refs:deltaNs (Results 1 – 2 of 2) sorted by relevance
292 auto deltaNs = after.tv_nsec - before.tv_nsec; in obtainBuffer() local293 if (deltaNs < 0) { in obtainBuffer()294 deltaNs += 1000000000; in obtainBuffer()297 if ((total.tv_nsec += deltaNs) >= 1000000000) { in obtainBuffer()
3906 nsecs_t deltaNs = timeLoopNextNs - nowNs; in threadLoop() local3907 if (deltaNs < -kMaxNextBufferDelayNs) { in threadLoop()3909 ALOGV("DelayNs: %lld, resetting timeLoopNextNs", (long long) deltaNs); in threadLoop()3910 deltaNs = microseconds((nsecs_t)mSleepTimeUs); in threadLoop()3911 timeLoopNextNs = nowNs + deltaNs; in threadLoop()3912 } else if (deltaNs < 0) { in threadLoop()3915 ALOGV("DelayNs: %lld, catching-up", (long long) deltaNs); in threadLoop()3916 deltaNs = 0; in threadLoop()3919 mSleepTimeUs = deltaNs / 1000; in threadLoop()