/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 60 size_t AnomalyTracker::index(int64_t bucketNum) const { in index() 61 if (bucketNum < 0) { in index() 62 ALOGE("index() was passed a negative bucket number (%lld)!", (long long)bucketNum); in index() 64 return bucketNum % mNumOfPastBuckets; in index() 67 void AnomalyTracker::advanceMostRecentBucketTo(const int64_t& bucketNum) { in advanceMostRecentBucketTo() argument 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() [all …]
|
D | AnomalyTracker.h | 54 void addPastBucket(std::shared_ptr<DimToValMap> bucket, const int64_t& bucketNum); 61 const int64_t& bucketNum); 90 int64_t getPastBucketValue(const MetricDimensionKey& key, const int64_t& bucketNum) const; 158 void advanceMostRecentBucketTo(const int64_t& bucketNum); 175 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()
|