Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java40 public static final int SECONDS_PER_HOUR = 60 * 60; field in StringUtil
66 if (seconds >= SECONDS_PER_HOUR) { in formatElapsedTime()
67 hours = seconds / SECONDS_PER_HOUR; in formatElapsedTime()
68 seconds -= hours * SECONDS_PER_HOUR; in formatElapsedTime()
129 } else if (seconds < 2 * SECONDS_PER_HOUR) { in formatRelativeTime()
135 value = (seconds + SECONDS_PER_HOUR / 2) in formatRelativeTime()
136 / SECONDS_PER_HOUR; in formatRelativeTime()
/frameworks/support/compat/src/main/java/androidx/core/util/
DTimeUtils.java37 private static final int SECONDS_PER_HOUR = 60 * 60; field in TimeUtils
113 if (seconds > SECONDS_PER_HOUR) { in formatDurationLocked()
114 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
115 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()
/frameworks/base/core/java/android/util/
DTimeUtils.java91 private static final int SECONDS_PER_HOUR = 60 * 60; field in TimeUtils
196 if (seconds >= SECONDS_PER_HOUR) { in formatDurationLocked()
197 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
198 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()
/frameworks/base/core/java/android/text/format/
DFormatter.java207 private static final int SECONDS_PER_HOUR = 60 * 60; field in Formatter
227 if (secondsLong >= SECONDS_PER_HOUR) { in formatShortElapsedTime()
228 hours = (int)(secondsLong / SECONDS_PER_HOUR); in formatShortElapsedTime()
229 secondsLong -= hours * SECONDS_PER_HOUR; in formatShortElapsedTime()