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()
4029 nsecs_t deltaNs = timeLoopNextNs - nowNs; in threadLoop() local4030 if (deltaNs < -kMaxNextBufferDelayNs) { in threadLoop()4032 ALOGV("DelayNs: %lld, resetting timeLoopNextNs", (long long) deltaNs); in threadLoop()4033 deltaNs = microseconds((nsecs_t)mSleepTimeUs); in threadLoop()4034 timeLoopNextNs = nowNs + deltaNs; in threadLoop()4035 } else if (deltaNs < 0) { in threadLoop()4038 ALOGV("DelayNs: %lld, catching-up", (long long) deltaNs); in threadLoop()4039 deltaNs = 0; in threadLoop()4042 mSleepTimeUs = deltaNs / 1000; in threadLoop()