Searched defs:nsec (Results 1 - 4 of 4) sorted by relevance

/frameworks/av/services/audioflinger/
H A DAudioWatchdog.cpp68 long nsec = newTs.tv_nsec - mOldTs.tv_nsec; local
69 if (nsec < 0) {
71 nsec += 1000000000;
74 // cycleNs is same as sec*1e9 + nsec, but limited to about 4 seconds
75 uint32_t cycleNs = nsec;
84 if ((mLogTs.tv_nsec += nsec) >= 1000000000) {
/frameworks/av/media/libmedia/
H A DToneGenerator.cpp986 long nsec = stopTime.tv_nsec - mStartTime.tv_nsec; local
988 if (nsec < 0) {
990 nsec += 1000000000;
997 sec = sec * 1000 + nsec / 1000000; // duration in milliseconds
/frameworks/av/media/libnbaio/
H A DMonoPipe.cpp169 long nsec = nowTs.tv_nsec - mWriteTs.tv_nsec; local
170 ALOGE_IF(sec < 0 || (sec == 0 && nsec < 0),
173 if (nsec < 0) {
175 nsec += 1000000000;
178 if ((long) ns > nsec) {
179 ns -= nsec;
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp98 long nsec = ts.tv_nsec - pContext->mBufferUpdateTime.tv_nsec; local
99 if (nsec < 0) {
101 nsec += 1000000000;
103 deltaMs = secs * 1000 + nsec / 1000000;

Completed in 80 milliseconds