Home
last modified time | relevance | path

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

/frameworks/av/services/audioflinger/
DFastThread.cpp227 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()
[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.cpp116 long nsec = ts.tv_nsec - pContext->mBufferUpdateTime.tv_nsec; in Visualizer_getDeltaTimeMsFromUpdatedTime() local
117 if (nsec < 0) { in Visualizer_getDeltaTimeMsFromUpdatedTime()
119 nsec += 1000000000; in Visualizer_getDeltaTimeMsFromUpdatedTime()
121 deltaMs = secs * 1000 + nsec / 1000000; in Visualizer_getDeltaTimeMsFromUpdatedTime()
/frameworks/av/media/libaudioclient/
DToneGenerator.cpp1178 auto nsec = stopTime.tv_nsec - mStartTime.tv_nsec; in stopTone() local
1179 if (nsec < 0) { in stopTone()
1181 nsec += 1000000000; in stopTone()
1188 sec = sec * 1000 + nsec / 1000000; // duration in milliseconds in stopTone()
/frameworks/base/cmds/incidentd/src/
DSection.cpp550 lastTimestamp.tv_nsec = msg.entry.nsec; in BlockingCall()
555 proto.write(BinaryLogEntry::NANOSEC, (int32_t)msg.entry.nsec); in BlockingCall()
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp41 mLogdTimestampNs = msg.entry.sec * NS_PER_SEC + msg.entry.nsec; in LogEvent()