Searched refs:getSumOverPastBuckets (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 161 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST() 162 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 163 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 175 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST() 176 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 177 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 188 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST() 189 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 190 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 202 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST() [all …]
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | CountMetricProducer_test.cpp | 233 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 245 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 255 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 264 EXPECT_EQ(2, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
|
D | GaugeMetricProducer_test.cpp | 166 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 178 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 190 EXPECT_EQ(1, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 201 EXPECT_EQ(2, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
|
D | DurationMetricProducer_test.cpp | 280 anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
|
D | OringDurationTracker_test.cpp | 515 EXPECT_EQ(anomalyTracker->getSumOverPastBuckets(eventKey), (long long)(bucketSizeNs)); in TEST()
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 190 int64_t AnomalyTracker::getSumOverPastBuckets(const MetricDimensionKey& key) const { in getSumOverPastBuckets() function in android::os::statsd::AnomalyTracker 207 getSumOverPastBuckets(key) + currentBucketValue > mAlert.trigger_if_sum_gt(); in detectAnomaly()
|
D | AnomalyTracker.h | 85 int64_t getSumOverPastBuckets(const MetricDimensionKey& key) const;
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.cpp | 342 int64_t pastNs = currentBucketPastNs + anomalyTracker.getSumOverPastBuckets(mEventKey); in predictAnomalyTimestampNs()
|