/frameworks/base/cmds/statsd/tests/ |
D | AlarmMonitor_test.cpp | 25 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/ |
D | AlarmMonitor.h | 42 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;
|
D | AlarmMonitor.cpp | 46 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()
|
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 | 45 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()
|
D | AlarmTracker.h | 49 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms); 75 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 | 111 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& firedAlarms) { in informAlarmsFired() argument
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricsManager.h | 59 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet); 63 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>>& alarmSet);
|
D | MetricsManager.cpp | 499 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/ |
D | StatsLogProcessor.h | 70 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet); 75 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet);
|
D | StatsLogProcessor.cpp | 115 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in onAnomalyAlarmFired() argument 123 unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> alarmSet) { in onPeriodicAlarmFired() argument
|
D | StatsService.cpp | 1030 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/ |
D | AlarmTracker_test.cpp | 49 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarmSet = in TEST()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 281 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 354 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()
|
D | OringDurationTracker_test.cpp | 550 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 577 std::unordered_set<sp<const InternalAlarm>, SpHash<InternalAlarm>> firedAlarms({alarm}); in TEST()
|