Searched refs:formatShortElapsedTime (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 138 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTime() 139 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); in testFormatShortElapsedTime() 140 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); in testFormatShortElapsedTime() 142 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime() 144 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); in testFormatShortElapsedTime() 145 assertEquals("1 day", Formatter.formatShortElapsedTime(mContext, 1 * DAY)); in testFormatShortElapsedTime() 146 assertEquals("24 hr", Formatter.formatShortElapsedTime(mContext, 23 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime() 147 assertEquals("3 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime() 148 assertEquals("2 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR)); in testFormatShortElapsedTime() 149 assertEquals("1 hr", Formatter.formatShortElapsedTime(mContext, 1 * HOUR)); in testFormatShortElapsedTime() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 227 public static String formatShortElapsedTime(Context context, long millis) { in formatShortElapsedTime() method in Formatter 293 return formatShortElapsedTime(context, minutesRoundedUp * MILLIS_PER_MINUTE); in formatShortElapsedTimeRoundingUpToMinutes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeUi.java | 195 String delay = Formatter.formatShortElapsedTime(mContext, millisSinceLastTick); in verifyLastTimeTick()
|
D | DozeTriggers.java | 412 pw.println(Formatter.formatShortElapsedTime(mContext, mNotificationPulseTime)); in dump()
|