Searched refs:DAY (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 63 private static final long DAY = MINUTE * 60 * 24; field in UsageStatsTest 64 private static final long WEEK = 7 * DAY; 65 private static final long MONTH = 30 * DAY; 66 private static final long YEAR = 365 * DAY; 206 SystemClock.setCurrentTimeMillis(System.currentTimeMillis() - (DAY / 2)); in ignore_testStatsAreShiftedInTimeWhenSystemTimeChanges() 217 assertLessThan(Math.abs(diff - (DAY / 2)), TIME_DIFF_THRESHOLD); in ignore_testStatsAreShiftedInTimeWhenSystemTimeChanges() 225 SystemClock.setCurrentTimeMillis(System.currentTimeMillis() + (DAY / 2)); in ignore_testStatsAreShiftedInTimeWhenSystemTimeChanges() 277 intervalLengths.put(UsageStatsManager.INTERVAL_DAILY, DAY); in testPackageUsageStatsIntervals()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 47 private static final int DAY = 18; field in DateFormatTest 158 Date date = new Date(YEAR_FROM_1900, MONTH, DAY, HOUR, MINUTE); in testFormatMethods() 181 Calendar calendar = new GregorianCalendar(YEAR, MONTH, DAY); in testFormatMethods() 184 Date formatDate = new Date(YEAR_FROM_1900, MONTH, DAY); in testFormatMethods()
|