Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java137 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTime()
138 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); in testFormatShortElapsedTime()
139 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); in testFormatShortElapsedTime()
141 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime()
143 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); in testFormatShortElapsedTime()
144 assertEquals("1 day", Formatter.formatShortElapsedTime(mContext, 1 * DAY)); in testFormatShortElapsedTime()
145 assertEquals("24 hr", Formatter.formatShortElapsedTime(mContext, 23 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime()
146 assertEquals("3 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime()
147 assertEquals("2 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR)); in testFormatShortElapsedTime()
148 assertEquals("1 hr", Formatter.formatShortElapsedTime(mContext, 1 * HOUR)); in testFormatShortElapsedTime()
[all …]
/frameworks/base/core/java/android/text/format/
DFormatter.java219 public static String formatShortElapsedTime(Context context, long millis) { in formatShortElapsedTime() method in Formatter
284 return formatShortElapsedTime(context, minutesRoundedUp * MILLIS_PER_MINUTE); in formatShortElapsedTimeRoundingUpToMinutes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java180 String delay = Formatter.formatShortElapsedTime(mContext, millisSinceLastTick); in verifyLastTimeTick()
DDozeTriggers.java265 pw.println(Formatter.formatShortElapsedTime(mContext, mNotificationPulseTime)); in dump()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt5665 Landroid/text/format/Formatter;->formatShortElapsedTime(Landroid/content/Context;J)Ljava/lang/Strin…