Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp329 auto deltaNs = after.tv_nsec - before.tv_nsec; in obtainBuffer() local
330 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() local
589 if (deltaNs < 0) { in waitStreamEndDone()
590 deltaNs += 1000000000; in waitStreamEndDone()
593 if ((total.tv_nsec += deltaNs) >= 1000000000) { in waitStreamEndDone()
/frameworks/av/services/audioflinger/
DThreads.cpp4610 nsecs_t deltaNs = timeLoopNextNs - nowNs; in threadLoop() local
4611 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()