Searched refs:mAlarmSec (Results 1 – 3 of 3) sorted by relevance
41 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 - 1) / 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 …]
72 int64_t mAlarmSec; variable
45 EXPECT_EQ(tracker.mAlarmSec, (int64_t)(startMillis / MS_PER_SEC + 15)); in TEST()52 EXPECT_EQ(tracker.mAlarmSec, (int64_t)(startMillis / MS_PER_SEC + 15)); in TEST()59 EXPECT_EQ(tracker.mAlarmSec, (int64_t)(startMillis / MS_PER_SEC + 15 + 2 * 60 * 60)); in TEST()