Home
last modified time | relevance | path

Searched refs:bucketNum (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp60 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 …]
DAnomalyTracker.h54 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/
DOringDurationTracker_test.cpp61 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 …]
DMaxDurationTracker_test.cpp63 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/
DDurationTracker.h146 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/
DAnomalyTracker_test.cpp70 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()