Home
last modified time | relevance | path

Searched refs:nowNs (Results 1 – 4 of 4) sorted by relevance

/system/media/audio_utils/include/audio_utils/
DSimpleLog.h88 void log(int64_t nowNs, const char *format, ...) in log() argument
92 logv(nowNs, format, args); in log()
105 void logv(int64_t nowNs, const char *format, va_list args) in logv() argument
111 logs(nowNs, "invalid format"); in logv()
121 logs(nowNs, buffer); in logv()
135 void logs(int64_t nowNs, U&& buffer) in logs() argument
139 if (nowNs == -1) { in logs()
140 nowNs = audio_utils_get_real_time_ns(); in logs()
142 mLog.emplace_back(nowNs, std::forward<U>(buffer)); in logs()
DErrorLog.h71 void log(const T &code, int64_t nowNs) in log() argument
79 && nowNs - mEntries[mIdx].mLastTime < mAggregateNs) { in log()
81 mEntries[mIdx].mLastTime = nowNs; in log()
89 mEntries[mIdx].setFirstError(code, nowNs); in log()
DPowerLog.h52 void processEnergy(size_t frames, float energy, int64_t nowNs);
133 void log(const void *buffer, size_t frames, int64_t nowNs);
/system/media/audio_utils/
DPowerLog.cpp55 void PowerLogBase::processEnergy(size_t frames, float energy, int64_t nowNs) { in processEnergy() argument
59 && nowNs > mCurrentTime + mCurrentFrames * 1e9 / mSampleRate + mMaxTimeSlipNs) { in processEnergy()
70 mCurrentTime = nowNs; in processEnergy()
74 __func__, (long long)nowNs, frames, mCurrentEnergy, mCurrentFrames); in processEnergy()
225 void PowerLog::log(const void *buffer, size_t frames, int64_t nowNs) { in log() argument
240 base->processEnergy(processFrames, energy, nowNs); in log()
245 nowNs += processFrames * NANOS_PER_SECOND / mSampleRate; in log()