Home
last modified time | relevance | path

Searched refs:mIdx (Results 1 – 3 of 3) sorted by relevance

/system/media/audio_utils/include/audio_utils/
DErrorLog.h54 , mIdx(0)
76 if (code == mEntries[mIdx].mCode in log()
77 && nowNs - mEntries[mIdx].mLastTime < mAggregateNs) { in log()
78 mEntries[mIdx].mCount++; in log()
79 mEntries[mIdx].mLastTime = nowNs; in log()
84 if (++mIdx >= mEntries.size()) { in log()
85 mIdx = 0; in log()
87 mEntries[mIdx].setFirstError(code, nowNs); in log()
120 mEntries[(mIdx + numberOfEntries - offset) % numberOfEntries];
130 mEntries[(mIdx + numberOfEntries - offset) % numberOfEntries];
[all …]
DPowerLog.h95 size_t mIdx; // next usable index in mEntries variable
/system/media/audio_utils/
DPowerLog.cpp51 , mIdx(0) in PowerLog()
91 mEntries[mIdx++] = std::make_pair(nowNs, 0.f); in log()
96 mEntries[mIdx++] = std::make_pair(mCurrentTime, mCurrentEnergy); in log()
99 if (mIdx >= mEntries.size()) { in log()
100 mIdx -= mEntries.size(); in log()
128 const size_t idx = (mIdx + numberOfEntries - offset - 1) % numberOfEntries; in dumpToString()
181 const size_t idx = (mIdx + numberOfEntries - offset - 1) % numberOfEntries; in dumpToString()