Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/anomaly/
DAlarmTracker.cpp41 mAlarmSec = (startMillis + mAlarmConfig.offset_millis()) / MS_PER_SEC; in AlarmTracker()
44 mAlarmSec = findNextAlarmSec(currentMillis / MS_PER_SEC); // round up in AlarmTracker()
45 mInternalAlarm = new InternalAlarm{static_cast<uint32_t>(mAlarmSec)}; in AlarmTracker()
46 VLOG("AlarmTracker sets the periodic alarm at: %lld", (long long)mAlarmSec); in AlarmTracker()
64 if (currentTimeSec < mAlarmSec) { in findNextAlarmSec()
65 return mAlarmSec; in findNextAlarmSec()
68 ((currentTimeSec - mAlarmSec) * MS_PER_SEC) / mAlarmConfig.period_millis() + 1; in findNextAlarmSec()
69 return mAlarmSec + periodsForward * mAlarmConfig.period_millis() / MS_PER_SEC; in findNextAlarmSec()
85 mAlarmSec = findNextAlarmSec((timestampNs-1) / NS_PER_SEC + 1); // round up in informAlarmsFired()
86 mInternalAlarm = new InternalAlarm{static_cast<uint32_t>(mAlarmSec)}; in informAlarmsFired()
[all …]
DAlarmTracker.h72 int64_t mAlarmSec; variable
/frameworks/base/cmds/statsd/tests/anomaly/
DAlarmTracker_test.cpp46 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()
53 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()
62 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()
72 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()
82 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()