Searched refs:mAlarms (Results 1 – 5 of 5) sorted by relevance
/packages/modules/StatsD/statsd/src/anomaly/ |
D | DurationAnomalyTracker.cpp | 47 auto itr = mAlarms.find(dimensionKey); in startAlarm() 48 if (itr != mAlarms.end() && mAlarmMonitor != nullptr) { in startAlarm() 53 mAlarms[dimensionKey] = alarm; in startAlarm() 61 const auto itr = mAlarms.find(dimensionKey); in stopAlarm() 62 if (itr == mAlarms.end()) { in stopAlarm() 75 mAlarms.erase(dimensionKey); in stopAlarm() 80 for (const auto& itr : mAlarms) { in cancelAllAlarms() 84 mAlarms.clear(); in cancelAllAlarms() 90 if (firedAlarms.empty() || mAlarms.empty()) return; in informAlarmsFired() 97 for (const auto& kv : mAlarms) { in informAlarmsFired() [all …]
|
D | DurationAnomalyTracker.h | 57 auto it = mAlarms.find(dimensionKey); in getAlarmTimestampSec() 58 return it == mAlarms.end() ? 0 : it->second->timestampSec; in getAlarmTimestampSec() 63 std::unordered_map<MetricDimensionKey, sp<const InternalAlarm>> mAlarms; variable
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FetchMatchingAlarmsAction.kt | 43 private val mAlarms: List<Alarm>, constant in com.android.deskclock.FetchMatchingAlarmsAction 55 mMatchingAlarms.addAll(mAlarms) in run() 82 for (alarm in mAlarms) { in run() 95 for (alarm in mAlarms) { in run() 120 AlarmClock.ALARM_SEARCH_MODE_ALL -> mMatchingAlarms.addAll(mAlarms) in run() 131 for (alarm in mAlarms) { in run()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 282 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 287 ASSERT_EQ(0U, anomalyTracker->mAlarms.size()); in TEST() 291 ASSERT_EQ(1U, anomalyTracker->mAlarms.size()); in TEST() 292 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 347 ASSERT_EQ(1U, anomalyTracker->mAlarms.size()); in TEST() 348 auto alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 358 ASSERT_EQ(0u, anomalyTracker->mAlarms.size()); in TEST() 370 ASSERT_EQ(1U, anomalyTracker->mAlarms.size()); in TEST() 371 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 379 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() [all …]
|
D | OringDurationTracker_test.cpp | 514 ASSERT_EQ(1u, anomalyTracker->mAlarms.size()); in TEST() 516 (long long)(anomalyTracker->mAlarms.begin()->second->timestampSec * NS_PER_SEC)); in TEST() 556 ASSERT_EQ(1u, anomalyTracker->mAlarms.size()); in TEST() 557 sp<const InternalAlarm> alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 562 ASSERT_EQ(0u, anomalyTracker->mAlarms.size()); in TEST() 567 ASSERT_EQ(1u, anomalyTracker->mAlarms.size()); in TEST() 568 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 574 ASSERT_EQ(1u, anomalyTracker->mAlarms.size()); in TEST() 575 alarm = anomalyTracker->mAlarms.begin()->second; in TEST() 580 ASSERT_EQ(1u, anomalyTracker->mAlarms.size()); in TEST() [all …]
|