Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java39 public static final int SECONDS_PER_MINUTE = 60; field in StringUtil
70 if (seconds >= SECONDS_PER_MINUTE) { in formatElapsedTime()
71 minutes = seconds / SECONDS_PER_MINUTE; in formatElapsedTime()
72 seconds -= minutes * SECONDS_PER_MINUTE; in formatElapsedTime()
127 if (withSeconds && seconds < 2 * SECONDS_PER_MINUTE) { in formatRelativeTime()
131 value = (seconds + SECONDS_PER_MINUTE / 2) in formatRelativeTime()
132 / SECONDS_PER_MINUTE; in formatRelativeTime()
/frameworks/support/compat/src/main/java/androidx/core/util/
DTimeUtils.java36 private static final int SECONDS_PER_MINUTE = 60; field in TimeUtils
117 if (seconds > SECONDS_PER_MINUTE) { in formatDurationLocked()
118 minutes = seconds / SECONDS_PER_MINUTE; in formatDurationLocked()
119 seconds -= minutes * SECONDS_PER_MINUTE; in formatDurationLocked()
/frameworks/base/core/java/android/util/
DTimeUtils.java90 private static final int SECONDS_PER_MINUTE = 60; field in TimeUtils
200 if (seconds >= SECONDS_PER_MINUTE) { in formatDurationLocked()
201 minutes = seconds / SECONDS_PER_MINUTE; in formatDurationLocked()
202 seconds -= minutes * SECONDS_PER_MINUTE; in formatDurationLocked()
/frameworks/base/core/java/android/text/format/
DFormatter.java206 private static final int SECONDS_PER_MINUTE = 60; field in Formatter
231 if (secondsLong >= SECONDS_PER_MINUTE) { in formatShortElapsedTime()
232 minutes = (int)(secondsLong / SECONDS_PER_MINUTE); in formatShortElapsedTime()
233 secondsLong -= minutes * SECONDS_PER_MINUTE; in formatShortElapsedTime()