Searched refs:mMostRecentBucketNum (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 72 if (bucketNum <= mMostRecentBucketNum) { in advanceMostRecentBucketTo() 74 (long long)bucketNum, (long long)mMostRecentBucketNum); in advanceMostRecentBucketTo() 78 if (bucketNum >= mMostRecentBucketNum + mNumOfPastBuckets) { in advanceMostRecentBucketTo() 80 mMostRecentBucketNum = bucketNum; in advanceMostRecentBucketTo() 85 for (int64_t i = mMostRecentBucketNum + 1; i <= bucketNum; i++) { in advanceMostRecentBucketTo() 90 mMostRecentBucketNum = bucketNum; in advanceMostRecentBucketTo() 98 bucketNum < 0 || bucketNum <= mMostRecentBucketNum - mNumOfPastBuckets) { in addPastBucket() 103 if (bucketNum <= mMostRecentBucketNum && (mPastBuckets[bucketIndex] != nullptr)) { in addPastBucket() 127 bucketNum < 0 || bucketNum <= mMostRecentBucketNum - mNumOfPastBuckets) { in addPastBucket() 131 if (bucketNum <= mMostRecentBucketNum) { in addPastBucket() [all …]
|
D | AnomalyTracker.h | 147 int64_t mMostRecentBucketNum = -1; variable
|
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 151 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, -1LL); in TEST() 165 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 0LL); in TEST() 179 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 0LL); in TEST() 187 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 1L); in TEST() 201 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 1L); in TEST() 214 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 2L); in TEST() 227 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 3L); in TEST() 240 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 4L); in TEST() 253 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 5L); in TEST() 294 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, -1LL); in TEST() [all …]
|