Searched refs:MS_PER_SEC (Results 1 – 7 of 7) sorted by relevance
51 alarm.set_offset_millis(15 * MS_PER_SEC); in TEST()52 alarm.set_period_millis(60 * 60 * MS_PER_SEC); // 1hr in TEST()53 int64_t startMillis = 100000000 * MS_PER_SEC; in TEST()54 int64_t nextAlarmTime = startMillis / MS_PER_SEC + 15; in TEST()59 uint64_t currentTimeSec = startMillis / MS_PER_SEC + 10; in TEST()67 currentTimeSec = startMillis / MS_PER_SEC + 7000; in TEST()68 nextAlarmTime = startMillis / MS_PER_SEC + 15 + 2 * 60 * 60; in TEST()77 currentTimeSec = startMillis / MS_PER_SEC + 15 + 2 * 60 * 60; in TEST()78 nextAlarmTime = startMillis / MS_PER_SEC + 15 + 3 * 60 * 60; in TEST()87 currentTimeSec = startMillis / MS_PER_SEC + 15 + 4 * 60 * 60; in TEST()[all …]
40 mAlarmSec = (startMillis + mAlarmConfig.offset_millis()) / MS_PER_SEC; in AlarmTracker()43 mAlarmSec = findNextAlarmSec(currentMillis / MS_PER_SEC); // round up in AlarmTracker()67 ((currentTimeSec - mAlarmSec) * MS_PER_SEC) / mAlarmConfig.period_millis() + 1; in findNextAlarmSec()68 return mAlarmSec + periodsForward * mAlarmConfig.period_millis() / MS_PER_SEC; in findNextAlarmSec()
20 import static com.android.server.uwb.correction.math.MathHelper.MS_PER_SEC;148 float timeScale = (float) MathHelper.MS_PER_SEC / timeDeltaMs; in prime()294 double fom = max(1 - elapsedMs / MS_PER_SEC * FALLOFF_FOM_PER_SEC, MINIMUM_FOM); in updateFom()
29 public static final long MS_PER_SEC = 1000; field in MathHelper
3882 Alarm alarm1 = createAlarm("Alarm1", /*offset*/ 1 * MS_PER_SEC, /*period*/ 50 * MS_PER_SEC); in TEST_F()3886 Alarm alarm2 = createAlarm("Alarm2", /*offset*/ 1 * MS_PER_SEC, /*period*/ 2000 * MS_PER_SEC); in TEST_F()3890 Alarm alarm3 = createAlarm("Alarm3", /*offset*/ 10 * MS_PER_SEC, /*period*/ 5000 * MS_PER_SEC); in TEST_F()3911 config.mutable_alarm(1)->set_offset_millis(5 * MS_PER_SEC); in TEST_F()3912 config.mutable_alarm(2)->set_period_millis(10000 * MS_PER_SEC); in TEST_F()
596 return time(nullptr) * MS_PER_SEC; in getWallClockMillis()
2674 Alarm alarmPreserve = createAlarm("AlarmPreserve", /*offset*/ 5 * MS_PER_SEC, in TEST_F()