/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 61 size_t AnomalyTracker::index(int64_t bucketNum) const { in index() 62 if (bucketNum < 0) { in index() 63 ALOGE("index() was passed a negative bucket number (%lld)!", (long long)bucketNum); in index() 65 return bucketNum % mNumOfPastBuckets; in index() 68 void AnomalyTracker::advanceMostRecentBucketTo(const int64_t& bucketNum) { in advanceMostRecentBucketTo() argument 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() [all …]
|
D | AnomalyTracker.h | 52 void addPastBucket(std::shared_ptr<DimToValMap> bucket, const int64_t& bucketNum); 59 const int64_t& bucketNum); 88 int64_t getPastBucketValue(const MetricDimensionKey& key, const int64_t& bucketNum) const; 156 void advanceMostRecentBucketTo(const int64_t& bucketNum); 173 size_t index(int64_t bucketNum) const;
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | OringDurationTracker_test.cpp | 61 int64_t bucketNum = 0; in TEST() local 66 false, bucketStartTimeNs, bucketNum, bucketStartTimeNs, in TEST() 94 int64_t bucketNum = 0; in TEST() local 98 true, bucketStartTimeNs, bucketNum, bucketStartTimeNs, in TEST() 127 int64_t bucketNum = 0; in TEST() local 131 true, bucketStartTimeNs, bucketNum, bucketStartTimeNs, in TEST() 157 int64_t bucketNum = 0; in TEST() local 162 true, bucketStartTimeNs, bucketNum, bucketStartTimeNs, in TEST() 202 int64_t bucketNum = 0; in TEST() local 207 false, bucketStartTimeNs, bucketNum, bucketStartTimeNs, in TEST() [all …]
|
D | MaxDurationTracker_test.cpp | 63 int64_t bucketNum = 0; in TEST() local 67 false, bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST() 99 int64_t bucketNum = 0; in TEST() local 103 false, bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST() 135 int64_t bucketNum = 0; in TEST() local 139 false, bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST() 176 int64_t bucketNum = 0; in TEST() local 180 true, bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST() 261 int64_t bucketNum = 0; in TEST() local 277 false, bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | DurationTracker.h | 146 void addPastBucketToAnomalyTrackers(const int64_t& bucketValue, const int64_t& bucketNum) { in addPastBucketToAnomalyTrackers() argument 149 anomalyTracker->addPastBucket(mEventKey, bucketValue, bucketNum); in addPastBucketToAnomalyTrackers()
|
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 70 const int64_t& bucketNum, in detectAnomaliesPass() argument 75 if (!tracker.detectAnomaly(bucketNum, key, getBucketValue(currentBucket, key))) { in detectAnomaliesPass() 80 if (tracker.detectAnomaly(bucketNum, key, getBucketValue(currentBucket, key))) { in detectAnomaliesPass() 89 const int64_t& bucketNum, in detectAndDeclareAnomalies() argument 93 tracker.detectAndDeclareAnomaly(eventTimestamp, bucketNum, 0 /*metric_id*/, kv.first, in detectAndDeclareAnomalies()
|