Searched refs:nsec (Results 1 – 5 of 5) sorted by relevance
224 long nsec = newTs.tv_nsec - mOldTs.tv_nsec; in threadLoop() local225 ALOGE_IF(sec < 0 || (sec == 0 && nsec < 0), in threadLoop()228 if (nsec < 0) { in threadLoop()230 nsec += 1000000000; in threadLoop()241 mMeasuredWarmupTs.tv_nsec += nsec; in threadLoop()247 if (mWarmupNsMin <= nsec && nsec <= mWarmupNsMax) { in threadLoop()248 ALOGV("warmup cycle %d in range: %.03f ms", mWarmupCycles, nsec * 1e-9); in threadLoop()251 ALOGV("warmup cycle %d out of range: %.03f ms", mWarmupCycles, nsec * 1e-9); in threadLoop()263 if (sec > 0 || nsec > mUnderrunNs) { in threadLoop()267 (int) sec, nsec / 1000000L); in threadLoop()[all …]
68 long nsec = newTs.tv_nsec - mOldTs.tv_nsec; in threadLoop() local69 if (nsec < 0) { in threadLoop()71 nsec += 1000000000; in threadLoop()75 uint32_t cycleNs = nsec; in threadLoop()84 if ((mLogTs.tv_nsec += nsec) >= 1000000000) { in threadLoop()
131 long nsec = nowTs.tv_nsec - mWriteTs.tv_nsec; in write() local132 ALOGE_IF(sec < 0 || (sec == 0 && nsec < 0), in write()135 if (nsec < 0) { in write()137 nsec += 1000000000; in write()140 if ((long) ns > nsec) { in write()141 ns -= nsec; in write()
104 long nsec = ts.tv_nsec - pContext->mBufferUpdateTime.tv_nsec; in Visualizer_getDeltaTimeMsFromUpdatedTime() local105 if (nsec < 0) { in Visualizer_getDeltaTimeMsFromUpdatedTime()107 nsec += 1000000000; in Visualizer_getDeltaTimeMsFromUpdatedTime()109 deltaMs = secs * 1000 + nsec / 1000000; in Visualizer_getDeltaTimeMsFromUpdatedTime()
1041 long nsec = stopTime.tv_nsec - mStartTime.tv_nsec; in stopTone() local1042 if (nsec < 0) { in stopTone()1044 nsec += 1000000000; in stopTone()1051 sec = sec * 1000 + nsec / 1000000; // duration in milliseconds in stopTone()