Searched refs:deltaNs (Results 1 – 2 of 2) sorted by relevance
329 auto deltaNs = after.tv_nsec - before.tv_nsec; in obtainBuffer() local330 if (deltaNs < 0) { in obtainBuffer()331 deltaNs += 1000000000; in obtainBuffer()334 if ((total.tv_nsec += deltaNs) >= 1000000000) { in obtainBuffer()588 auto deltaNs = after.tv_nsec - before.tv_nsec; in waitStreamEndDone() local589 if (deltaNs < 0) { in waitStreamEndDone()590 deltaNs += 1000000000; in waitStreamEndDone()593 if ((total.tv_nsec += deltaNs) >= 1000000000) { in waitStreamEndDone()
4610 nsecs_t deltaNs = timeLoopNextNs - nowNs; in threadLoop() local4611 if (deltaNs < -kMaxNextBufferDelayNs) { in threadLoop()4613 ALOGV("DelayNs: %lld, resetting timeLoopNextNs", (long long) deltaNs); in threadLoop()4614 deltaNs = microseconds((nsecs_t)mSleepTimeUs); in threadLoop()4615 timeLoopNextNs = nowNs + deltaNs; in threadLoop()4616 } else if (deltaNs < 0) { in threadLoop()4619 ALOGV("DelayNs: %lld, catching-up", (long long) deltaNs); in threadLoop()4620 deltaNs = 0; in threadLoop()4623 mSleepTimeUs = deltaNs / 1000; in threadLoop()