Searched refs:mMostRecentBucketNum (Results 1 – 3 of 3) sorted by relevance
/packages/modules/StatsD/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 71 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 …]
|
D | AnomalyTracker.h | 180 int64_t mMostRecentBucketNum = -1; variable
|
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 155 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 …]
|