Home
last modified time | relevance | path

Searched refs:alarmMonitor (Results 1 – 11 of 11) sorted by relevance

/packages/modules/StatsD/statsd/tests/metrics/
DOringDurationTracker_test.cpp313 sp<AlarmMonitor> alarmMonitor; in TEST() local
315 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
374 sp<AlarmMonitor> alarmMonitor; in TEST() local
376 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
419 sp<AlarmMonitor> alarmMonitor; in TEST() local
421 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
477 sp<AlarmMonitor> alarmMonitor; in TEST() local
479 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
526 sp<AlarmMonitor> alarmMonitor; in TEST() local
528 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
DMaxDurationTracker_test.cpp264 sp<AlarmMonitor> alarmMonitor; in TEST() local
266 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
323 sp<AlarmMonitor> alarmMonitor; in TEST() local
325 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
405 sp<AlarmMonitor> alarmMonitor; in TEST() local
407 new DurationAnomalyTracker(alert, kConfigKey, alarmMonitor); in TEST()
DCountMetricProducer_test.cpp251 sp<AlarmMonitor> alarmMonitor; in TEST_P() local
272 countProducer.addAnomalyTracker(alert, alarmMonitor, UPDATE_NEW, bucketStartTimeNs); in TEST_P()
381 sp<AlarmMonitor> alarmMonitor; in TEST() local
405 countProducer.addAnomalyTracker(alert, alarmMonitor, UPDATE_NEW, bucketStartTimeNs); in TEST()
DGaugeMetricProducer_test.cpp201 sp<AlarmMonitor> alarmMonitor; in TEST_P() local
225 gaugeProducer.addAnomalyTracker(alert, alarmMonitor, UPDATE_NEW, bucketStartTimeNs); in TEST_P()
542 sp<AlarmMonitor> alarmMonitor; in TEST() local
576 gaugeProducer.addAnomalyTracker(alert, alarmMonitor, UPDATE_NEW, bucketStartTimeNs); in TEST()
DDurationMetricProducer_test.cpp354 sp<AlarmMonitor> alarmMonitor; in TEST_P() local
377 durationProducer.addAnomalyTracker(alert, alarmMonitor, UPDATE_NEW, bucketStartTimeNs); in TEST_P()
DValueMetricProducer_test.cpp974 sp<AlarmMonitor> alarmMonitor; in TEST() local
997 valueProducer.addAnomalyTracker(alert, alarmMonitor, UPDATE_NEW, bucketStartTimeNs); in TEST()
1049 sp<AlarmMonitor> alarmMonitor; in TEST() local
1081 valueProducer->addAnomalyTracker(alert, alarmMonitor, UPDATE_NEW, bucketStartTimeNs); in TEST()
/packages/modules/StatsD/statsd/src/anomaly/
DAlarmTracker.cpp35 const sp<AlarmMonitor>& alarmMonitor) in AlarmTracker() argument
38 mAlarmMonitor(alarmMonitor) { in AlarmTracker()
DDurationAnomalyTracker.cpp28 const sp<AlarmMonitor>& alarmMonitor) in DurationAnomalyTracker() argument
29 : AnomalyTracker(alert, configKey), mAlarmMonitor(alarmMonitor) { in DurationAnomalyTracker()
DDurationAnomalyTracker.h31 const sp<AlarmMonitor>& alarmMonitor);
DAnomalyTracker.h84 virtual void setAlarmMonitor(const sp<AlarmMonitor>& alarmMonitor) { in setAlarmMonitor() argument
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_test.cpp2501 sp<AlarmMonitor> alarmMonitor = processor->getPeriodicAlarmMonitor(); in TEST_F() local
2503 EXPECT_EQ(alarmMonitor->getRegisteredAlarmTimeSec(), startTimeSec + 5); in TEST_F()
2507 auto alarmSet = alarmMonitor->popSoonerThan(static_cast<uint32_t>(alarmFiredTimestampSec)); in TEST_F()
2512 EXPECT_EQ(alarmMonitor->getRegisteredAlarmTimeSec(), startTimeSec + 60); in TEST_F()
2516 alarmSet = alarmMonitor->popSoonerThan(static_cast<uint32_t>(alarmFiredTimestampSec)); in TEST_F()
2521 EXPECT_EQ(alarmMonitor->getRegisteredAlarmTimeSec(), startTimeSec + 120); in TEST_F()
2559 EXPECT_EQ(alarmMonitor->getRegisteredAlarmTimeSec(), startTimeSec + 120); in TEST_F()
2563 alarmSet = alarmMonitor->popSoonerThan(static_cast<uint32_t>(alarmFiredTimestampSec)); in TEST_F()
2568 EXPECT_EQ(alarmMonitor->getRegisteredAlarmTimeSec(), startTimeSec + 125); in TEST_F()
2572 alarmSet = alarmMonitor->popSoonerThan(static_cast<uint32_t>(alarmFiredTimestampSec)); in TEST_F()
[all …]