Searched refs:expectedBefore (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/keystore/tests/src/android/security/
H A DKeyStoreTest.java672 long expectedBefore = now + SLOP_TIME_MILLIS;
674 assertLessThan("Time should be close to current time", expectedBefore, actual);
678 private static void assertLessThan(String explanation, long expectedBefore, long actual) { argument
679 if (actual >= expectedBefore) {
681 + ", expected before: " + expectedBefore);
/frameworks/base/keystore/tests/src/android/security/keystore/
H A DAndroidKeyStoreTest.java1068 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS);
1070 assertTrue("Time should be close to current time", actual.before(expectedBefore));
1088 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS);
1090 assertTrue("Time should be close to current time", actual.before(expectedBefore));
1107 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS);
1109 assertTrue("Time should be close to current time", actual.before(expectedBefore));

Completed in 91 milliseconds