Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/anomaly/
DAnomalyTracker_test.cpp152 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 0u); in TEST()
163 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3u); in TEST()
177 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3u); in TEST()
190 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3UL); in TEST()
204 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3UL); in TEST()
217 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST()
230 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST()
243 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST()
256 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST()
297 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 0UL); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp60 mSumOverPastBuckets.clear(); in resetStorage()
117 mSumOverPastBuckets[key] += bucketValue; in addPastBucket()
157 auto itr = mSumOverPastBuckets.find(key); in subtractValueFromSum()
158 if (itr == mSumOverPastBuckets.end()) { in subtractValueFromSum()
163 mSumOverPastBuckets.erase(itr); in subtractValueFromSum()
173 mSumOverPastBuckets[keyValuePair.first] += keyValuePair.second; in addBucketToSum()
194 const auto& itr = mSumOverPastBuckets.find(key); in getSumOverPastBuckets()
195 if (itr != mSumOverPastBuckets.end()) { in getSumOverPastBuckets()
DAnomalyTracker.h154 DimToValMap mSumOverPastBuckets; variable