Home
last modified time | relevance | path

Searched refs:mEntries (Results 1 – 6 of 6) sorted by relevance

/system/media/audio_utils/include/audio_utils/
DErrorLog.h58 , mEntries(entries)
78 if (code == mEntries[mIdx].mCode in log()
79 && nowNs - mEntries[mIdx].mLastTime < mAggregateNs) { in log()
80 mEntries[mIdx].mCount++; in log()
81 mEntries[mIdx].mLastTime = nowNs; in log()
86 if (++mIdx >= mEntries.size()) { in log()
89 mEntries[mIdx].setFirstError(code, nowNs); in log()
105 const size_t numberOfEntries = mEntries.size();
122 mEntries[(mIdx + numberOfEntries - offset) % numberOfEntries];
132 mEntries[(mIdx + numberOfEntries - offset) % numberOfEntries];
[all …]
DPowerLog.h106 std::vector<std::pair<int64_t /* real time ns */, float /* energy */>> mEntries; variable
/system/media/audio_utils/
DPowerLog.cpp57 , mEntries(entries) 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()
116 const size_t numberOfEntries = mEntries.size(); in dumpToString()
131 const int64_t time = mEntries[idx].first; in dumpToString()
132 const float energy = mEntries[idx].second; in dumpToString()
183 const int64_t time = mEntries[idx].first; in dumpToString()
184 const float energy = mEntries[idx].second; in dumpToString()
/system/libcppbor/include/cppbor/
Dcppbor.h636 virtual size_t size() const { return mEntries.size(); } in size()
639 return std::accumulate(mEntries.begin(), mEntries.end(), headerSize(size()), in encodedSize()
650 const std::unique_ptr<Item>& get(size_t index) const { return mEntries[index]; } in get()
651 std::unique_ptr<Item>& get(size_t index) { return mEntries[index]; } in get()
659 auto begin() { return mEntries.begin(); } in begin()
660 auto begin() const { return mEntries.begin(); } in begin()
661 auto end() { return mEntries.end(); } in end()
662 auto end() const { return mEntries.end(); } in end()
665 std::vector<std::unique_ptr<Item>> mEntries;
709 virtual size_t size() const { return mEntries.size(); } in size()
[all …]
/system/libcppbor/src/
Dcppbor.cpp433 && std::equal(mEntries.begin(), mEntries.end(), other.mEntries.begin(), in operator ==()
440 for (auto& entry : mEntries) { in encode()
449 for (auto& entry : mEntries) { in encode()
456 for (size_t i = 0; i < mEntries.size(); i++) { in clone()
457 res->add(mEntries[i]->clone()); in clone()
474 for (auto& entry : mEntries) { in encode()
485 for (auto& entry : mEntries) { in encode()
535 for (auto& entry : mEntries) { in canonicalize()
Dcppbor_parse.cpp131 mEntries.push_back(std::move(item)); in add()
153 mEntries.push_back({std::move(mKeyHeldForAdding), std::move(item)}); in add()