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.cpp150 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 0u); in TEST()
161 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3u); in TEST()
175 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3u); in TEST()
188 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3UL); in TEST()
202 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 3UL); in TEST()
215 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST()
228 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST()
241 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST()
254 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 2UL); in TEST()
295 EXPECT_EQ(anomalyTracker.mSumOverPastBuckets.size(), 0UL); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp58 mSumOverPastBuckets.clear(); in resetStorage()
115 mSumOverPastBuckets[key] += bucketValue; in addPastBucket()
155 auto itr = mSumOverPastBuckets.find(key); in subtractValueFromSum()
156 if (itr == mSumOverPastBuckets.end()) { in subtractValueFromSum()
161 mSumOverPastBuckets.erase(itr); in subtractValueFromSum()
171 mSumOverPastBuckets[keyValuePair.first] += keyValuePair.second; in addBucketToSum()
192 const auto& itr = mSumOverPastBuckets.find(key); in getSumOverPastBuckets()
193 if (itr != mSumOverPastBuckets.end()) { in getSumOverPastBuckets()
DAnomalyTracker.h142 DimToValMap mSumOverPastBuckets; variable