Lines Matching refs:nsec
227 long nsec = newTs.tv_nsec - mOldTs.tv_nsec; in threadLoop() local
228 ALOGE_IF(sec < 0 || (sec == 0 && nsec < 0), in threadLoop()
231 if (nsec < 0) { in threadLoop()
233 nsec += 1000000000; in threadLoop()
244 mMeasuredWarmupTs.tv_nsec += nsec; in threadLoop()
250 if (mWarmupNsMin <= nsec && nsec <= mWarmupNsMax) { in threadLoop()
251 ALOGV("warmup cycle %d in range: %.03f ms", mWarmupCycles, nsec * 1e-9); in threadLoop()
254 ALOGV("warmup cycle %d out of range: %.03f ms", mWarmupCycles, nsec * 1e-9); in threadLoop()
269 if (sec > 0 || nsec > mUnderrunNs) { in threadLoop()
273 (int) sec, nsec / 1000000L); in threadLoop()
277 } else if (nsec < mOverrunNs) { in threadLoop()
283 (int) sec, nsec / 1000000L); in threadLoop()
293 mSleepNs = mForceNs - nsec; in threadLoop()
310 uint32_t monotonicNs = nsec; in threadLoop()
321 nsec = newLoad.tv_nsec - mOldLoad.tv_nsec; in threadLoop()
322 if (nsec < 0) { in threadLoop()
324 nsec += 1000000000; in threadLoop()
326 loadNs = nsec; in threadLoop()