Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/anomaly/
DAnomalyTracker.cpp71 if (bucketNum <= mMostRecentBucketNum) { in advanceMostRecentBucketTo()
73 (long long)bucketNum, (long long)mMostRecentBucketNum); in advanceMostRecentBucketTo()
77 if (bucketNum >= mMostRecentBucketNum + mNumOfPastBuckets) { in advanceMostRecentBucketTo()
79 mMostRecentBucketNum = bucketNum; in advanceMostRecentBucketTo()
84 for (int64_t i = mMostRecentBucketNum + 1; i <= bucketNum; i++) { in advanceMostRecentBucketTo()
89 mMostRecentBucketNum = bucketNum; in advanceMostRecentBucketTo()
96 bucketNum < 0 || bucketNum <= mMostRecentBucketNum - mNumOfPastBuckets) { in addPastBucket()
101 if (bucketNum <= mMostRecentBucketNum && (mPastBuckets[bucketIndex] != nullptr)) { in addPastBucket()
125 bucketNum < 0 || bucketNum <= mMostRecentBucketNum - mNumOfPastBuckets) { in addPastBucket()
129 if (bucketNum <= mMostRecentBucketNum) { in addPastBucket()
[all …]
DAnomalyTracker.h180 int64_t mMostRecentBucketNum = -1; variable
/packages/modules/StatsD/statsd/tests/anomaly/
DAnomalyTracker_test.cpp155 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, -1LL); in TEST()
169 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 0LL); in TEST()
183 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 0LL); in TEST()
191 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 1L); in TEST()
205 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 1L); in TEST()
218 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 2L); in TEST()
231 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 3L); in TEST()
244 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 4L); in TEST()
257 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 5L); in TEST()
298 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, -1LL); in TEST()
[all …]