Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/anomaly/
DAlarmTracker_test.cpp46 int64_t nextAlarmTime = startMillis / MS_PER_SEC + 15; in TEST() local
49 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()
56 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()
57 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST()
60 nextAlarmTime = startMillis / MS_PER_SEC + 15 + 2 * 60 * 60; in TEST()
65 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()
66 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST()
70 nextAlarmTime = startMillis / MS_PER_SEC + 15 + 3 * 60 * 60; in TEST()
75 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST()
76 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStrongAuthTest.java89 final long nextAlarmTime = 1000; in testScheduleNonStrongBiometricIdleTimeout() local
91 .thenReturn(nextAlarmTime); in testScheduleNonStrongBiometricIdleTimeout()
100 verifyAlarm(nextAlarmTime, NON_STRONG_BIOMETRIC_IDLE_TIMEOUT_ALARM_TAG, alarm); in testScheduleNonStrongBiometricIdleTimeout()
115 final long nextAlarmTime = 1000; in testReportSuccessfulBiometricUnlock_nonStrongBiometric_fallbackTimeout() local
117 .thenReturn(nextAlarmTime); in testReportSuccessfulBiometricUnlock_nonStrongBiometric_fallbackTimeout()
126 verifyAlarm(nextAlarmTime, NON_STRONG_BIOMETRIC_TIMEOUT_ALARM_TAG, alarm); in testReportSuccessfulBiometricUnlock_nonStrongBiometric_fallbackTimeout()
169 final long nextAlarmTime = currentTime + timeout; in testReportSuccessfulStrongAuthUnlock_schedulePrimaryAuthTimeout() local
180 verifyAlarm(nextAlarmTime, STRONG_AUTH_TIMEOUT_ALARM_TAG, alarm); in testReportSuccessfulStrongAuthUnlock_schedulePrimaryAuthTimeout()
187 final long nextAlarmTime = currentTime + oldTimeout; in testReportSuccessfulStrongAuthUnlock_testRefreshStrongAuthTimeout() local
196 verifyAlarm(nextAlarmTime, STRONG_AUTH_TIMEOUT_ALARM_TAG, alarm); in testReportSuccessfulStrongAuthUnlock_testRefreshStrongAuthTimeout()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStrongAuth.java262 long nextAlarmTime = strongAuthTime + dpm.getRequiredStrongAuthTimeout(null, userId); in rescheduleStrongAuthTimeoutAlarm() local
265 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, nextAlarmTime, in rescheduleStrongAuthTimeoutAlarm()
289 long nextAlarmTime = mInjector.getNextAlarmTimeMs(DEFAULT_NON_STRONG_BIOMETRIC_TIMEOUT_MS); in handleScheduleNonStrongBiometricTimeout() local
306 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, nextAlarmTime, in handleScheduleNonStrongBiometricTimeout()
383 long nextAlarmTime = in handleScheduleNonStrongBiometricIdleTimeout() local
397 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, nextAlarmTime, in handleScheduleNonStrongBiometricIdleTimeout()