Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/anomaly/
DAnomalyTracker.cpp59 size_t AnomalyTracker::index(int64_t bucketNum) const { in index()
60 if (bucketNum < 0) { in index()
61 ALOGE("index() was passed a negative bucket number (%lld)!", (long long)bucketNum); in index()
63 return bucketNum % mNumOfPastBuckets; in index()
66 void AnomalyTracker::advanceMostRecentBucketTo(const int64_t bucketNum) { in advanceMostRecentBucketTo() argument
71 if (bucketNum <= mMostRecentBucketNum) { in advanceMostRecentBucketTo()
73 (long long)bucketNum, (long long)mMostRecentBucketNum); in advanceMostRecentBucketTo()
77 if (bucketNum >= mMostRecentBucketNum + mNumOfPastBuckets) { in advanceMostRecentBucketTo()
79 mMostRecentBucketNum = bucketNum; in advanceMostRecentBucketTo()
84 for (int64_t i = mMostRecentBucketNum + 1; i <= bucketNum; i++) { in advanceMostRecentBucketTo()
[all …]
DAnomalyTracker.h57 void addPastBucket(const std::shared_ptr<DimToValMap>& bucket, const int64_t bucketNum);
63 void addPastBucket(const MetricDimensionKey& key, int64_t bucketValue, int64_t bucketNum);
91 int64_t getPastBucketValue(const MetricDimensionKey& key, int64_t bucketNum) const;
191 void advanceMostRecentBucketTo(int64_t bucketNum);
208 size_t index(int64_t bucketNum) const;
/packages/modules/StatsD/statsd/tests/metrics/
DOringDurationTracker_test.cpp61 int64_t bucketNum = 0; in TEST() local
66 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
95 int64_t bucketNum = 0; in TEST() local
99 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
128 int64_t bucketNum = 0; in TEST() local
132 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
158 int64_t bucketNum = 0; in TEST() local
163 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
203 int64_t bucketNum = 0; in TEST() local
208 bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs, in TEST()
[all …]
DMaxDurationTracker_test.cpp64 int64_t bucketNum = 0; in TEST() local
68 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
101 int64_t bucketNum = 0; in TEST() local
105 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
137 int64_t bucketNum = 0; in TEST() local
141 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
177 int64_t bucketNum = 0; in TEST() local
181 bucketNum, bucketStartTimeNs, bucketSizeNs, false, false, {}); in TEST()
261 int64_t bucketNum = 0; in TEST() local
277 bucketNum, bucketStartTimeNs, bucketSizeNs, true, false, in TEST()
[all …]
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DMetricsUtils.java173 FieldDescriptor bucketNum = descriptor.findFieldByName("bucket_num"); in assertBucketTimePresent() local
176 if (bucketNum != null && bucketInfo.hasField(bucketNum)) { in assertBucketTimePresent()
/packages/modules/StatsD/statsd/tests/anomaly/
DAnomalyTracker_test.cpp77 bool detectAnomaliesPass(AnomalyTracker& tracker, int64_t bucketNum, in detectAnomaliesPass() argument
82 if (!tracker.detectAnomaly(bucketNum, key, getBucketValue(currentBucket, key))) { in detectAnomaliesPass()
87 if (tracker.detectAnomaly(bucketNum, key, getBucketValue(currentBucket, key))) { in detectAnomaliesPass()
95 void detectAndDeclareAnomalies(AnomalyTracker& tracker, int64_t bucketNum, in detectAndDeclareAnomalies() argument
98 tracker.detectAndDeclareAnomaly(eventTimestamp, bucketNum, 0 /*metric_id*/, kv.first, in detectAndDeclareAnomalies()
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DDurationTracker.h194 int64_t bucketNum) { in addPastBucketToAnomalyTrackers() argument
197 anomalyTracker->addPastBucket(eventKey, bucketValue, bucketNum); in addPastBucketToAnomalyTrackers()