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.cpp51 uint64_t currentTimeSec = startMillis / MS_PER_SEC + 10; in TEST() local
53 subscriberAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in TEST()
55 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST()
59 currentTimeSec = startMillis / MS_PER_SEC + 7000; in TEST()
61 firedAlarmSet = subscriberAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in TEST()
63 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST()
69 currentTimeSec = startMillis / MS_PER_SEC + 15 + 2 * 60 * 60; in TEST()
71 firedAlarmSet = subscriberAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in TEST()
73 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST()
79 currentTimeSec = startMillis / MS_PER_SEC + 15 + 4 * 60 * 60; in TEST()
[all …]
/frameworks/base/cmds/statsd/src/anomaly/
DAlarmTracker.cpp62 int64_t AlarmTracker::findNextAlarmSec(int64_t currentTimeSec) { in findNextAlarmSec() argument
63 if (currentTimeSec < mAlarmSec) { in findNextAlarmSec()
67 ((currentTimeSec - mAlarmSec) * MS_PER_SEC) / mAlarmConfig.period_millis() + 1; in findNextAlarmSec()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp982 int64_t currentTimeSec = getElapsedRealtimeSec(); in informAnomalyAlarmFired() local
984 mAnomalyAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in informAnomalyAlarmFired()
987 mProcessor->onAnomalyAlarmFired(currentTimeSec * NS_PER_SEC, alarmSet); in informAnomalyAlarmFired()
998 int64_t currentTimeSec = getElapsedRealtimeSec(); in informAlarmForSubscriberTriggeringFired() local
1000 mPeriodicAlarmMonitor->popSoonerThan(static_cast<uint32_t>(currentTimeSec)); in informAlarmForSubscriberTriggeringFired()
1003 mProcessor->onPeriodicAlarmFired(currentTimeSec * NS_PER_SEC, alarmSet); in informAlarmForSubscriberTriggeringFired()