Searched refs:mBaseTime (Results 1 – 1 of 1) sorted by relevance
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateUtilsTest.java | 45 private long mBaseTime; field in DateUtilsTest 52 mBaseTime = System.currentTimeMillis(); in setup() 113 DateUtils.getRelativeTimeSpanString(mBaseTime - ONE_SECOND_IN_MS)); in test_getRelativeTimeSpanString() 115 DateUtils.getRelativeTimeSpanString(mBaseTime + ONE_SECOND_IN_MS)); in test_getRelativeTimeSpanString() 125 assertEquals("2 hours ago", DateUtils.getRelativeTimeSpanString(mBaseTime - TWO_HOURS_IN_MS, in test_getRelativeTimeSpanString() 126 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); in test_getRelativeTimeSpanString() 127 assertEquals("In 2 hours", DateUtils.getRelativeTimeSpanString(mBaseTime + TWO_HOURS_IN_MS, in test_getRelativeTimeSpanString() 128 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); in test_getRelativeTimeSpanString() 138 cal.setTimeInMillis(mBaseTime); in test_getRelativeTimeSpanString_withContext() 165 assertNotNull(DateUtils.getRelativeDateTimeString(mContext, mBaseTime - DAY_DURATION, in test_getRelativeDateTimeString() [all …]
|