Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/tests/e2e/
DAnomaly_duration_sum_e2e_test.cpp143 anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
150 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
158 anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
165 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
175 const int64_t alarmFiredTimestampSec0 = anomalyTracker->getAlarmTimestampSec(dimensionKey1); in TEST()
185 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
194 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
204 const int64_t alarmFiredTimestampSec1 = anomalyTracker->getAlarmTimestampSec(dimensionKey1); in TEST()
213 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
226 anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
[all …]
DAlarm_e2e_test.cpp64 EXPECT_EQ(alarmTimestampSec0, alarmTracker1->getAlarmTimestampSec()); in TEST()
65 EXPECT_EQ(alarmTimestampSec1, alarmTracker2->getAlarmTimestampSec()); in TEST()
73 EXPECT_EQ(alarmTimestampSec0, alarmTracker1->getAlarmTimestampSec()); in TEST()
74 EXPECT_EQ(alarmTimestampSec1 + 30 * 60, alarmTracker2->getAlarmTimestampSec()); in TEST()
82 EXPECT_EQ(alarmTimestampSec0 + 60 * 60 * 3, alarmTracker1->getAlarmTimestampSec()); in TEST()
83 EXPECT_EQ(alarmTimestampSec1 + 30 * 60 * 5, alarmTracker2->getAlarmTimestampSec()); in TEST()
/packages/modules/StatsD/statsd/tests/anomaly/
DAlarmTracker_test.cpp57 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST()
66 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST()
76 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST()
86 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST()
/packages/modules/StatsD/statsd/src/anomaly/
DAlarmTracker.h50 inline int32_t getAlarmTimestampSec() const { in getAlarmTimestampSec() function
DDurationAnomalyTracker.h57 uint32_t getAlarmTimestampSec(const MetricDimensionKey& dimensionKey) const override { in getAlarmTimestampSec() function
DAnomalyTracker.h154 virtual uint32_t getAlarmTimestampSec(const MetricDimensionKey& dimensionKey) const { in getAlarmTimestampSec() function
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp3469 EXPECT_EQ(oldAlarmTrackers[0]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 1); in TEST_F()
3470 EXPECT_EQ(oldAlarmTrackers[1]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 1); in TEST_F()
3471 EXPECT_EQ(oldAlarmTrackers[2]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 10); in TEST_F()
3491 EXPECT_EQ(newAlarmTrackers[0]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 1 + 50); in TEST_F()
3492 EXPECT_EQ(newAlarmTrackers[1]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 5); in TEST_F()
3493 EXPECT_EQ(newAlarmTrackers[2]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 10); in TEST_F()
3522 EXPECT_EQ(newAlarmTrackers[0]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 1 + 2 * 50); in TEST_F()
3523 EXPECT_EQ(newAlarmTrackers[1]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 5 + 2000); in TEST_F()
3524 EXPECT_EQ(newAlarmTrackers[2]->getAlarmTimestampSec(), timeBaseNs / NS_PER_SEC + 10 + 10000); in TEST_F()