Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/services/audioflinger/
DFastThread.cpp224 long nsec = newTs.tv_nsec - mOldTs.tv_nsec; in threadLoop() local
225 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 …]
DAudioWatchdog.cpp68 long nsec = newTs.tv_nsec - mOldTs.tv_nsec; in threadLoop() local
69 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()
/frameworks/av/media/libnbaio/
DMonoPipe.cpp131 long nsec = nowTs.tv_nsec - mWriteTs.tv_nsec; in write() local
132 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()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp104 long nsec = ts.tv_nsec - pContext->mBufferUpdateTime.tv_nsec; in Visualizer_getDeltaTimeMsFromUpdatedTime() local
105 if (nsec < 0) { in Visualizer_getDeltaTimeMsFromUpdatedTime()
107 nsec += 1000000000; in Visualizer_getDeltaTimeMsFromUpdatedTime()
109 deltaMs = secs * 1000 + nsec / 1000000; in Visualizer_getDeltaTimeMsFromUpdatedTime()
/frameworks/av/media/libaudioclient/
DToneGenerator.cpp1041 long nsec = stopTime.tv_nsec - mStartTime.tv_nsec; in stopTone() local
1042 if (nsec < 0) { in stopTone()
1044 nsec += 1000000000; in stopTone()
1051 sec = sec * 1000 + nsec / 1000000; // duration in milliseconds in stopTone()