Home
last modified time | relevance | path

Searched refs:currentTimeSec (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/cmds/statsd/tests/anomaly/
DAlarmTracker_test.cpp48 uint64_t currentTimeSec = startMillis / MS_PER_SEC + 10; in TEST() local
50 subscriberAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in TEST()
52 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST()
56 currentTimeSec = startMillis / MS_PER_SEC + 7000; in TEST()
58 firedAlarmSet = subscriberAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in TEST()
60 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST()
66 currentTimeSec = startMillis / MS_PER_SEC + 15 + 2 * 60 * 60; in TEST()
68 firedAlarmSet = subscriberAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in TEST()
70 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST()
76 currentTimeSec = startMillis / MS_PER_SEC + 15 + 4 * 60 * 60; in TEST()
[all …]
/frameworks/base/cmds/statsd/src/anomaly/
DAlarmTracker.cpp63 int64_t AlarmTracker::findNextAlarmSec(int64_t currentTimeSec) { in findNextAlarmSec() argument
64 if (currentTimeSec < mAlarmSec) { in findNextAlarmSec()
68 ((currentTimeSec - mAlarmSec) * MS_PER_SEC) / mAlarmConfig.period_millis() + 1; in findNextAlarmSec()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp1029 int64_t currentTimeSec = getElapsedRealtimeSec(); in informAnomalyAlarmFired() local
1031 mAnomalyAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in informAnomalyAlarmFired()
1034 mProcessor->onAnomalyAlarmFired(currentTimeSec * NS_PER_SEC, alarmSet); in informAnomalyAlarmFired()
1045 int64_t currentTimeSec = getElapsedRealtimeSec(); in informAlarmForSubscriberTriggeringFired() local
1047 mPeriodicAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in informAlarmForSubscriberTriggeringFired()
1050 mProcessor->onPeriodicAlarmFired(currentTimeSec * NS_PER_SEC, alarmSet); in informAlarmForSubscriberTriggeringFired()