Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/format/cts/
DDateUtilsTest.java48 private long mBaseTime; field in DateUtilsTest
57 mBaseTime = System.currentTimeMillis(); in setup()
124 DateUtils.getRelativeTimeSpanString(mBaseTime - ONE_SECOND_IN_MS)); in test_getRelativeTimeSpanString()
126 DateUtils.getRelativeTimeSpanString(mBaseTime + ONE_SECOND_IN_MS)); in test_getRelativeTimeSpanString()
136 assertEquals("2 hours ago", DateUtils.getRelativeTimeSpanString(mBaseTime - TWO_HOURS_IN_MS, in test_getRelativeTimeSpanString()
137 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); in test_getRelativeTimeSpanString()
138 assertEquals("In 2 hours", DateUtils.getRelativeTimeSpanString(mBaseTime + TWO_HOURS_IN_MS, in test_getRelativeTimeSpanString()
139 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); in test_getRelativeTimeSpanString()
149 cal.setTimeInMillis(mBaseTime); in test_getRelativeTimeSpanString_withContext()
176 assertNotNull(DateUtils.getRelativeDateTimeString(mContext, mBaseTime - DAY_DURATION, in test_getRelativeDateTimeString()
[all …]