Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/
DAlarmMonitor_test.cpp25 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> set; in TEST()
32 sp<const InternalAlarm> a = new InternalAlarm{10}; in TEST()
33 sp<const InternalAlarm> b = new InternalAlarm{20}; in TEST()
34 sp<const InternalAlarm> c = new InternalAlarm{20}; in TEST()
35 sp<const InternalAlarm> d = new InternalAlarm{30}; in TEST()
36 sp<const InternalAlarm> e = new InternalAlarm{40}; in TEST()
37 sp<const InternalAlarm> f = new InternalAlarm{50}; in TEST()
/frameworks/base/cmds/statsd/src/anomaly/
DAlarmMonitor.h42 struct InternalAlarm : public RefBase { struct
43 explicit InternalAlarm(uint32_t timestampSec) : timestampSec(timestampSec) { in InternalAlarm() function
50 bool operator()(sp<const InternalAlarm> a, sp<const InternalAlarm> b) const { in operator() argument
82 void add(sp<const InternalAlarm> alarm);
89 void remove(sp<const InternalAlarm> alarm);
95 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> popSoonerThan(
121 indexed_priority_queue<InternalAlarm, InternalAlarm::SmallerTimestamp> mPq;
DAlarmMonitor.cpp46 const sp<const InternalAlarm> top = mPq.top(); in setStatsCompanionService()
52 void AlarmMonitor::add(sp<const InternalAlarm> alarm) { in add()
72 void AlarmMonitor::remove(sp<const InternalAlarm> alarm) { in remove()
95 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> AlarmMonitor::popSoonerThan( in popSoonerThan()
98 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> oldAlarms; in popSoonerThan()
101 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.cpp45 mInternalAlarm = new InternalAlarm{static_cast<uint32_t>(mAlarmSec)}; in AlarmTracker()
74 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) { in informAlarmsFired() argument
86 mInternalAlarm = new InternalAlarm{static_cast<uint32_t>(mAlarmSec)}; in informAlarmsFired()
DAlarmTracker.h49 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms);
75 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.h111 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) { in informAlarmsFired() argument
/frameworks/base/cmds/statsd/src/metrics/
DMetricsManager.h59 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
63 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
DMetricsManager.cpp499 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet) { in onAnomalyAlarmFired() argument
507 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet) { in onPeriodicAlarmFired() argument
/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
123 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in onPeriodicAlarmFired() argument
DStatsService.cpp1030 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAnomalyAlarmFired()
1046 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAlarmForSubscriberTriggeringFired()
/frameworks/base/cmds/statsd/tests/anomaly/
DAlarmTracker_test.cpp49 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarmSet = in TEST()
/frameworks/base/cmds/statsd/tests/metrics/
DMaxDurationTracker_test.cpp281 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST()
354 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()
DOringDurationTracker_test.cpp550 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST()
577 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()