Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/java/android/text/format/
H A 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
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()
261 long now, long minResolution, long transitionResolution, int flags) { in getRelativeDateTimeString() argument
295 if (days > 0 && minResolution < DAY_IN_MILLIS) { in getRelativeDateTimeString()
[all …]
H A DDateUtils.java294 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { in getRelativeTimeSpanString() argument
296 return getRelativeTimeSpanString(time, now, minResolution, flags); in getRelativeTimeSpanString()
319 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, in getRelativeTimeSpanString() argument
322 TimeZone.getDefault(), time, now, minResolution, flags); in getRelativeTimeSpanString()
348 public static CharSequence getRelativeDateTimeString(Context c, long time, long minResolution, in getRelativeDateTimeString() argument
356 TimeZone.getDefault(), time, System.currentTimeMillis(), minResolution, in getRelativeDateTimeString()
/aosp12/frameworks/base/core/tests/coretests/src/android/text/format/
H A 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()
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...