Searched refs:mMostRecentBucketNum (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 73 if (bucketNum <= mMostRecentBucketNum) { in advanceMostRecentBucketTo() 75 (long long)bucketNum, (long long)mMostRecentBucketNum); in advanceMostRecentBucketTo() 79 if (bucketNum >= mMostRecentBucketNum + mNumOfPastBuckets) { in advanceMostRecentBucketTo() 81 mMostRecentBucketNum = bucketNum; in advanceMostRecentBucketTo() 86 for (int64_t i = mMostRecentBucketNum + 1; i <= bucketNum; i++) { in advanceMostRecentBucketTo() 91 mMostRecentBucketNum = bucketNum; in advanceMostRecentBucketTo() 99 bucketNum < 0 || bucketNum <= mMostRecentBucketNum - mNumOfPastBuckets) { in addPastBucket() 104 if (bucketNum <= mMostRecentBucketNum && (mPastBuckets[bucketIndex] != nullptr)) { in addPastBucket() 128 bucketNum < 0 || bucketNum <= mMostRecentBucketNum - mNumOfPastBuckets) { in addPastBucket() 132 if (bucketNum <= mMostRecentBucketNum) { in addPastBucket() [all …]
|
D | AnomalyTracker.h | 145 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 …]
|