Home
last modified time | relevance | path

Searched refs:MS_PER_SEC (Results 1 – 7 of 7) sorted by relevance

/packages/modules/StatsD/statsd/tests/anomaly/
DAlarmTracker_test.cpp51 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 …]
/packages/modules/StatsD/statsd/src/anomaly/
DAlarmTracker.cpp40 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()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/
DBackAzimuthPrimer.java20 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()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DMathHelper.java29 public static final long MS_PER_SEC = 1000; field in MathHelper
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp3882 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()
/packages/modules/StatsD/statsd/src/
Dstats_log_util.cpp596 return time(nullptr) * MS_PER_SEC; in getWallClockMillis()
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_test.cpp2674 Alarm alarmPreserve = createAlarm("AlarmPreserve", /*offset*/ 5 * MS_PER_SEC, in TEST_F()