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.cpp499 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet) { in onAnomalyAlarmFired() argument
501 itr->informAlarmsFired(timestampNs, alarmSet); in onAnomalyAlarmFired()
507 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet) { in onPeriodicAlarmFired() argument
509 itr->informAlarmsFired(timestampNs, alarmSet); in onPeriodicAlarmFired()
DMetricsManager.h59 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
63 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h70 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet);
75 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet);
DStatsLogProcessor.cpp115 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in onAnomalyAlarmFired() argument
118 itr.second->onAnomalyAlarmFired(timestampNs, alarmSet); in onAnomalyAlarmFired()
123 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in onPeriodicAlarmFired() argument
127 itr.second->onPeriodicAlarmFired(timestampNs, alarmSet); in onPeriodicAlarmFired()
DStatsService.cpp1030 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAnomalyAlarmFired() local
1032 if (alarmSet.size() > 0) { in informAnomalyAlarmFired()
1034 mProcessor->onAnomalyAlarmFired(currentTimeSec * NS_PER_SEC, alarmSet); in informAnomalyAlarmFired()
1046 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAlarmForSubscriberTriggeringFired() local
1048 if (alarmSet.size() > 0) { in informAlarmForSubscriberTriggeringFired()
1050 mProcessor->onPeriodicAlarmFired(currentTimeSec * NS_PER_SEC, alarmSet); in informAlarmForSubscriberTriggeringFired()