Searched refs:getSumOverPastBuckets (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 162 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST() 163 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 164 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 176 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST() 177 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 178 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 189 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST() 190 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 191 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST() 203 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 2LL); in TEST() [all …]
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | CountMetricProducer_test.cpp | 242 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 254 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 264 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 273 EXPECT_EQ(2, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
|
D | GaugeMetricProducer_test.cpp | 232 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 244 EXPECT_EQ(0, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 256 EXPECT_EQ(1, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST() 267 EXPECT_EQ(2, anomalyTracker->getSumOverPastBuckets(DEFAULT_METRIC_DIMENSION_KEY)); in TEST()
|
D | DurationMetricProducer_test.cpp | 338 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 | 191 int64_t AnomalyTracker::getSumOverPastBuckets(const MetricDimensionKey& key) const { in getSumOverPastBuckets() function in android::os::statsd::AnomalyTracker 208 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 | 341 int64_t pastNs = currentBucketPastNs + anomalyTracker.getSumOverPastBuckets(mEventKey); in predictAnomalyTimestampNs()
|