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

/frameworks/av/media/libaudioclient/
H A DAudioTrackShared.cpp288 long deltaNs = after.tv_nsec - before.tv_nsec; local
289 if (deltaNs < 0) {
290 deltaNs += 1000000000;
293 if ((total.tv_nsec += deltaNs) >= 1000000000) {
/frameworks/av/services/audioflinger/
H A DThreads.cpp3342 nsecs_t deltaNs = timeLoopNextNs - nowNs; local
3343 if (deltaNs < -kMaxNextBufferDelayNs) {
3345 ALOGV("DelayNs: %lld, resetting timeLoopNextNs", (long long) deltaNs);
3346 deltaNs = microseconds((nsecs_t)mSleepTimeUs);
3347 timeLoopNextNs = nowNs + deltaNs;
3348 } else if (deltaNs < 0) {
3351 ALOGV("DelayNs: %lld, catching-up", (long long) deltaNs);
3352 deltaNs = 0;
3355 mSleepTimeUs = deltaNs / 1000;

Completed in 64 milliseconds