Home
last modified time | relevance | path

Searched refs:DAY (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java69 private static final int DAY = 18; field in DateFormatTest
185 Date date = new Date(YEAR_FROM_1900, MONTH, DAY, HOUR, MINUTE); in testFormatMethods()
208 Calendar calendar = new GregorianCalendar(YEAR, MONTH, DAY); in testFormatMethods()
211 Date formatDate = new Date(YEAR_FROM_1900, MONTH, DAY); in testFormatMethods()
324 Date date = new Date(YEAR_FROM_1900, MONTH, DAY); in test_ContextLocaleIsUsed()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java145 private static final long DAY = TimeUnit.DAYS.toMillis(1); field in UsageStatsTest
146 private static final long WEEK = 7 * DAY;
147 private static final long MONTH = 30 * DAY;
148 private static final long YEAR = 365 * DAY;
326 mUsageStatsManager.getLastTimeAnyComponentUsed(targetPackage) / DAY; in verifyLastTimeAnyComponentUsedWithinRange()
327 assertLessThanOrEqual(startTime / DAY, lastDayAnyComponentUsedGlobal); in verifyLastTimeAnyComponentUsedWithinRange()
328 assertLessThanOrEqual(lastDayAnyComponentUsedGlobal, endTime / DAY); in verifyLastTimeAnyComponentUsedWithinRange()
353 mUsageStatsManager.getLastTimeAnyComponentUsed(mTargetPackage) / DAY; in testLastTimeAnyComponentUsed_JobServiceShouldBeIgnored()
355 assertLessThanOrEqual(lastDayAnyComponentUsedGlobal, startTime / DAY); in testLastTimeAnyComponentUsed_JobServiceShouldBeIgnored()
589 SystemClock.setCurrentTimeMillis(System.currentTimeMillis() - (DAY / 2)); in ignore_testStatsAreShiftedInTimeWhenSystemTimeChanges()
[all …]