Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp292 auto deltaNs = after.tv_nsec - before.tv_nsec; in obtainBuffer() local
293 if (deltaNs < 0) { in obtainBuffer()
294 deltaNs += 1000000000; in obtainBuffer()
297 if ((total.tv_nsec += deltaNs) >= 1000000000) { in obtainBuffer()
/frameworks/av/services/audioflinger/
DThreads.cpp3906 nsecs_t deltaNs = timeLoopNextNs - nowNs; in threadLoop() local
3907 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()