Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/e2e/
DAlarm_e2e_test.cpp69 auto alarmSet = processor->getPeriodicAlarmMonitor()->popSoonerThan( in TEST() local
71 EXPECT_EQ(1u, alarmSet.size()); in TEST()
72 processor->onPeriodicAlarmFired(alarmFiredTimestampSec0 * NS_PER_SEC, alarmSet); in TEST()
78 alarmSet = processor->getPeriodicAlarmMonitor()->popSoonerThan( in TEST()
80 EXPECT_EQ(2u, alarmSet.size()); in TEST()
81 processor->onPeriodicAlarmFired(alarmFiredTimestampSec1 * NS_PER_SEC, alarmSet); in TEST()
DAnomaly_duration_sum_e2e_test.cpp158 auto alarmSet = processor->getAnomalyAlarmMonitor()->popSoonerThan( in TEST() local
160 EXPECT_EQ(1u, alarmSet.size()); in TEST()
161 processor->onAnomalyAlarmFired(alarmFiredTimestampSec0 * NS_PER_SEC, alarmSet); in TEST()
192 alarmSet = processor->getAnomalyAlarmMonitor()->popSoonerThan( in TEST()
194 EXPECT_EQ(0u, alarmSet.size()); in TEST()
425 auto alarmSet = processor->getAnomalyAlarmMonitor()->popSoonerThan( in TEST() local
427 EXPECT_EQ(1u, alarmSet.size()); in TEST()
428 processor->onAnomalyAlarmFired(firedAlarmTimestampNs, alarmSet); in TEST()
/frameworks/base/cmds/statsd/src/metrics/
DMetricsManager.cpp381 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet) { in onAnomalyAlarmFired() argument
383 itr->informAlarmsFired(timestampNs, alarmSet); in onAnomalyAlarmFired()
389 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet) { in onPeriodicAlarmFired() argument
391 itr->informAlarmsFired(timestampNs, alarmSet); in onPeriodicAlarmFired()
DMetricsManager.h53 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
57 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h72 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet);
77 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet);
DStatsLogProcessor.cpp94 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in onAnomalyAlarmFired() argument
97 itr.second->onAnomalyAlarmFired(timestampNs, alarmSet); in onAnomalyAlarmFired()
102 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in onPeriodicAlarmFired() argument
106 itr.second->onPeriodicAlarmFired(timestampNs, alarmSet); in onPeriodicAlarmFired()
DStatsService.cpp799 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAnomalyAlarmFired() local
801 if (alarmSet.size() > 0) { in informAnomalyAlarmFired()
803 mProcessor->onAnomalyAlarmFired(currentTimeSec * NS_PER_SEC, alarmSet); in informAnomalyAlarmFired()
815 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAlarmForSubscriberTriggeringFired() local
817 if (alarmSet.size() > 0) { in informAlarmForSubscriberTriggeringFired()
819 mProcessor->onPeriodicAlarmFired(currentTimeSec * NS_PER_SEC, alarmSet); in informAlarmForSubscriberTriggeringFired()