Home
last modified time | relevance | path

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

/frameworks/av/services/audioflinger/fastpath/
DFastThread.cpp187 auto nsec = newTs.tv_nsec - mOldTs.tv_nsec; in threadLoop() local
188 ALOGE_IF(sec < 0 || (sec == 0 && nsec < 0), in threadLoop()
191 if (nsec < 0) { in threadLoop()
193 nsec += 1000000000; in threadLoop()
204 mMeasuredWarmupTs.tv_nsec += nsec; in threadLoop()
210 if (mWarmupNsMin <= nsec && nsec <= mWarmupNsMax) { in threadLoop()
211 ALOGV("warmup cycle %d in range: %.03f ms", mWarmupCycles, nsec * 1e-9); in threadLoop()
214 ALOGV("warmup cycle %d out of range: %.03f ms", mWarmupCycles, nsec * 1e-9); in threadLoop()
229 if (sec > 0 || nsec > mUnderrunNs) { in threadLoop()
233 (int) sec, nsec / 1000000L); in threadLoop()
[all …]
/frameworks/av/services/audioflinger/afutils/
DAudioWatchdog.cpp68 auto 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 mLogTs.tv_nsec += nsec; 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/native/libs/binder/tests/unit_fuzzers/
DRecordedTransactionFuzz.cpp36 long nsec = provider.ConsumeIntegral<long>(); in LLVMFuzzerTestOneInput() local
37 timespec timestamp = {.tv_sec = sec, .tv_nsec = nsec}; in LLVMFuzzerTestOneInput()
/frameworks/av/media/libeffects/visualizer/aidl/
DVisualizerContext.cpp123 long nsec = ts.tv_nsec - mBufferUpdateTime.tv_nsec; in getDeltaTimeMsFromUpdatedTime_l() local
124 if (nsec < 0) { in getDeltaTimeMsFromUpdatedTime_l()
126 nsec += 1000000000; in getDeltaTimeMsFromUpdatedTime_l()
128 deltaMs = secs * 1000 + nsec / 1000000; in getDeltaTimeMsFromUpdatedTime_l()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioTimestampInternal.aidl32 int nsec;
/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/native/libs/binder/
DRecordedTransaction.cpp410 int32_t nsec = mData.mHeader.timestampNanoseconds; in getTimestamp() local
411 return (timespec){.tv_sec = sec, .tv_nsec = nsec}; in getTimestamp()
/frameworks/av/media/libaudioclient/
DToneGenerator.cpp1261 auto nsec = stopTime.tv_nsec - mStartTime.tv_nsec; in stopTone() local
1262 if (nsec < 0) { in stopTone()
1264 nsec += 1000000000; in stopTone()
1267 const uint64_t msec = static_cast<uint64_t>(sec) * 1000 + nsec / 1'000'000; in stopTone()
DAidlConversion.cpp524 legacy.mTime.tv_nsec = VALUE_OR_RETURN(convertIntegral<uint32_t>(aidl.nsec)); in aidl2legacy_AudioTimestampInternal_AudioTimestamp()
533 aidl.nsec = VALUE_OR_RETURN(convertIntegral<int32_t>(legacy.mTime.tv_nsec)); in legacy2aidl_AudioTimestamp_AudioTimestampInternal()
/frameworks/base/cmds/incidentd/src/
DSection.cpp625 lastTimestamp.tv_nsec = msg.entry.nsec; in BlockingCall()
630 proto.write(BinaryLogEntry::NANOSEC, (int32_t)msg.entry.nsec); in BlockingCall()