Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/metrics/
DCountMetricProducer.cpp118 if (mCurrentSlicedCounter == nullptr || in dumpStatesLocked()
119 mCurrentSlicedCounter->size() == 0) { in dumpStatesLocked()
124 (unsigned long)mCurrentSlicedCounter->size()); in dumpStatesLocked()
126 for (const auto& it : *mCurrentSlicedCounter) { in dumpStatesLocked()
257 if (mCurrentSlicedCounter->find(newKey) != mCurrentSlicedCounter->end()) { in hitGuardRailLocked()
262 if (mCurrentSlicedCounter->size() > StatsdStats::kDimensionKeySizeSoftLimit - 1) { in hitGuardRailLocked()
263 size_t newTupleCount = mCurrentSlicedCounter->size() + 1; in hitGuardRailLocked()
287 auto it = mCurrentSlicedCounter->find(eventKey); in onMatchedLogEventInternalLocked()
288 if (it == mCurrentSlicedCounter->end()) { in onMatchedLogEventInternalLocked()
294 (*mCurrentSlicedCounter)[eventKey] = 1; in onMatchedLogEventInternalLocked()
[all …]
DCountMetricProducer.h88 std::shared_ptr<DimToValMap> mCurrentSlicedCounter = std::make_shared<DimToValMap>(); variable
/frameworks/base/cmds/statsd/tests/metrics/
DCountMetricProducer_test.cpp372 EXPECT_EQ(1UL, countProducer.mCurrentSlicedCounter->size()); in TEST()
373 EXPECT_EQ(2L, countProducer.mCurrentSlicedCounter->begin()->second); in TEST()
378 EXPECT_EQ(1UL, countProducer.mCurrentSlicedCounter->size()); in TEST()
379 EXPECT_EQ(1L, countProducer.mCurrentSlicedCounter->begin()->second); in TEST()
386 EXPECT_EQ(1UL, countProducer.mCurrentSlicedCounter->size()); in TEST()
387 EXPECT_EQ(3L, countProducer.mCurrentSlicedCounter->begin()->second); in TEST()
393 EXPECT_EQ(1UL, countProducer.mCurrentSlicedCounter->size()); in TEST()
394 EXPECT_EQ(4L, countProducer.mCurrentSlicedCounter->begin()->second); in TEST()