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