Searched refs:mSumOverPastBuckets (Results 1 – 3 of 3) sorted by relevance
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 154 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 0u); in TEST() 165 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3u); in TEST() 179 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3u); in TEST() 192 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3UL); in TEST() 206 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3UL); in TEST() 219 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST() 232 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST() 245 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST() 258 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST() 299 ASSERT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 0UL); in TEST() [all …]
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 56 mSumOverPastBuckets.clear(); in resetStorage() 112 mSumOverPastBuckets[key] += bucketValue; in addPastBucket() 151 auto itr = mSumOverPastBuckets.find(key); in subtractValueFromSum() 152 if (itr == mSumOverPastBuckets.end()) { in subtractValueFromSum() 157 mSumOverPastBuckets.erase(itr); in subtractValueFromSum() 167 mSumOverPastBuckets[keyValuePair.first] += keyValuePair.second; in addBucketToSum() 188 const auto& itr = mSumOverPastBuckets.find(key); in getSumOverPastBuckets() 189 if (itr != mSumOverPastBuckets.end()) { in getSumOverPastBuckets()
|
D | AnomalyTracker.h | 177 DimToValMap mSumOverPastBuckets; variable
|