Home
last modified time | relevance | path

Searched refs:InternalAlarm (Results 1 – 16 of 16) sorted by relevance

/packages/modules/StatsD/statsd/tests/
DAlarmMonitor_test.cpp26 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> set; in TEST()
34 sp<const InternalAlarm> a = new InternalAlarm{10}; in TEST()
35 sp<const InternalAlarm> b = new InternalAlarm{20}; in TEST()
36 sp<const InternalAlarm> c = new InternalAlarm{20}; in TEST()
37 sp<const InternalAlarm> d = new InternalAlarm{30}; in TEST()
38 sp<const InternalAlarm> e = new InternalAlarm{40}; in TEST()
39 sp<const InternalAlarm> f = new InternalAlarm{50}; in TEST()
/packages/modules/StatsD/statsd/src/anomaly/
DAlarmMonitor.h44 struct InternalAlarm : public RefBase { struct
45 explicit InternalAlarm(uint32_t timestampSec) : timestampSec(timestampSec) { in InternalAlarm() function
52 bool operator()(sp<const InternalAlarm> a, sp<const InternalAlarm> b) const { in operator() argument
85 void add(sp<const InternalAlarm> alarm);
92 void remove(sp<const InternalAlarm> alarm);
98 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> popSoonerThan(
124 indexed_priority_queue<InternalAlarm, InternalAlarm::SmallerTimestamp> mPq;
DAlarmMonitor.cpp48 const sp<const InternalAlarm> top = mPq.top(); in setStatsCompanionService()
54 void AlarmMonitor::add(sp<const InternalAlarm> alarm) { in add()
74 void AlarmMonitor::remove(sp<const InternalAlarm> alarm) { in remove()
97 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> AlarmMonitor::popSoonerThan( in popSoonerThan()
100 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> oldAlarms; in popSoonerThan()
103 for (sp<const InternalAlarm> t = mPq.top(); t != nullptr && t->timestampSec <= timestampSec; in popSoonerThan()
DDurationAnomalyTracker.cpp52 sp<const InternalAlarm> alarm = new InternalAlarm{timestampSec}; in startAlarm()
88 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) { in informAlarmsFired() argument
96 unordered_map<MetricDimensionKey, sp<const InternalAlarm>> matchedAlarms; in informAlarmsFired()
DAlarmTracker.cpp44 mInternalAlarm = new InternalAlarm{static_cast<uint32_t>(mAlarmSec)}; in AlarmTracker()
73 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) { in informAlarmsFired() argument
85 mInternalAlarm = new InternalAlarm{static_cast<uint32_t>(mAlarmSec)}; in informAlarmsFired()
DAlarmTracker.h46 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms);
72 sp<const InternalAlarm> mInternalAlarm;
DDurationAnomalyTracker.h52 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) override;
64 std::unordered_map<MetricDimensionKey, sp<const InternalAlarm>> mAlarms;
DAnomalyTracker.h135 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) { in informAlarmsFired() argument
/packages/modules/StatsD/statsd/src/metrics/
DMetricsManager.h64 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
68 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
DMetricsManager.cpp677 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet) { in onAnomalyAlarmFired() argument
685 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet) { in onPeriodicAlarmFired() argument
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.h72 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet);
262 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet);
DStatsLogProcessor.cpp126 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in processFiredAnomalyAlarmsLocked() argument
133 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in onPeriodicAlarmFired() argument
1135 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAnomalyAlarmFiredLocked()
DStatsService.cpp987 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAlarmForSubscriberTriggeringFired()
/packages/modules/StatsD/statsd/tests/anomaly/
DAlarmTracker_test.cpp52 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarmSet = in TEST()
/packages/modules/StatsD/statsd/tests/metrics/
DMaxDurationTracker_test.cpp272 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST()
344 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()
DOringDurationTracker_test.cpp535 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST()
562 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()