Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/format/
DRelativeDateTimeFormatter.java94 long now, long minResolution, int flags) { in getRelativeTimeSpanString() argument
100 return getRelativeTimeSpanString(locale, tz, time, now, minResolution, flags, in getRelativeTimeSpanString()
105 long now, long minResolution, int flags, DisplayContext displayContext) { in getRelativeTimeSpanString() argument
114 return getRelativeTimeSpanString(icuLocale, icuTimeZone, time, now, minResolution, flags, in getRelativeTimeSpanString()
119 android.icu.util.TimeZone icuTimeZone, long time, long now, long minResolution, in getRelativeTimeSpanString() argument
148 if (duration < MINUTE_IN_MILLIS && minResolution < MINUTE_IN_MILLIS) { in getRelativeTimeSpanString()
151 } else if (duration < HOUR_IN_MILLIS && minResolution < HOUR_IN_MILLIS) { in getRelativeTimeSpanString()
154 } else if (duration < DAY_IN_MILLIS && minResolution < DAY_IN_MILLIS) { in getRelativeTimeSpanString()
160 } else if (duration < WEEK_IN_MILLIS && minResolution < WEEK_IN_MILLIS) { in getRelativeTimeSpanString()
199 } else if (minResolution == WEEK_IN_MILLIS) { in getRelativeTimeSpanString()
[all …]
DDateUtils.java290 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { in getRelativeTimeSpanString() argument
292 return getRelativeTimeSpanString(time, now, minResolution, flags); in getRelativeTimeSpanString()
315 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, in getRelativeTimeSpanString() argument
318 TimeZone.getDefault(), time, now, minResolution, flags); in getRelativeTimeSpanString()
344 public static CharSequence getRelativeDateTimeString(Context c, long time, long minResolution, in getRelativeDateTimeString() argument
352 TimeZone.getDefault(), time, System.currentTimeMillis(), minResolution, in getRelativeDateTimeString()
/frameworks/base/core/tests/coretests/src/android/text/format/
DRelativeDateTimeFormatterTest.java110 private void test_getRelativeTimeSpanString_helper(long delta, long minResolution, int flags, in test_getRelativeTimeSpanString_helper() argument
121 getRelativeTimeSpanString(en_US, tz, base - delta, base, minResolution, flags)); in test_getRelativeTimeSpanString_helper()
123 getRelativeTimeSpanString(en_US, tz, base + delta, base, minResolution, flags)); in test_getRelativeTimeSpanString_helper()
126 private void test_getRelativeTimeSpanString_helper(long delta, long minResolution, in test_getRelativeTimeSpanString_helper() argument
129 test_getRelativeTimeSpanString_helper(delta, minResolution, 0, expectedInPast, in test_getRelativeTimeSpanString_helper()
717 final int minResolution = 1000 * 60; in test_bug25821045() local
718 final int transitionResolution = minResolution; in test_bug25821045()
729 locale, tz, time, now, minResolution, transitionResolution, flags); in test_bug25821045()