/packages/modules/StatsD/statsd/tests/ |
D | AlarmMonitor_test.cpp | 26 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/ |
D | AlarmMonitor.h | 44 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;
|
D | AlarmMonitor.cpp | 48 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()
|
D | DurationAnomalyTracker.cpp | 52 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()
|
D | AlarmTracker.cpp | 44 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()
|
D | AlarmTracker.h | 46 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms); 72 sp<const InternalAlarm> mInternalAlarm;
|
D | DurationAnomalyTracker.h | 52 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) override; 64 std::unordered_map<MetricDimensionKey, sp<const InternalAlarm>> mAlarms;
|
D | AnomalyTracker.h | 135 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) { in informAlarmsFired() argument
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricsManager.h | 64 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet); 68 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
|
D | MetricsManager.cpp | 677 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/ |
D | StatsLogProcessor.h | 72 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet); 262 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet);
|
D | StatsLogProcessor.cpp | 126 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()
|
D | StatsService.cpp | 987 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet = in informAlarmForSubscriberTriggeringFired()
|
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AlarmTracker_test.cpp | 52 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarmSet = in TEST()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 272 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 344 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()
|
D | OringDurationTracker_test.cpp | 535 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 562 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()
|