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()
131 } else if (seconds < 2 * SECONDS_PER_HOUR) { in formatRelativeTime()
137 value = (seconds + SECONDS_PER_HOUR / 2) in formatRelativeTime()
138 / SECONDS_PER_HOUR; in formatRelativeTime()
/frameworks/base/core/java/android/text/format/
DFormatter.java214 private static final int SECONDS_PER_HOUR = 60 * 60; field in Formatter
235 if (secondsLong >= SECONDS_PER_HOUR) { in formatShortElapsedTime()
236 hours = (int)(secondsLong / SECONDS_PER_HOUR); in formatShortElapsedTime()
237 secondsLong -= hours * SECONDS_PER_HOUR; in formatShortElapsedTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DEventIndexTest.java40 private static final long SECONDS_PER_HOUR = 60L * 60L; field in EventIndexTest
41 private static final long SECONDS_PER_DAY = SECONDS_PER_HOUR * 24L;
88 mInjector.moveTimeForwardSeconds(SECONDS_PER_HOUR * 3L); in testBitmapShift()
/frameworks/base/core/java/android/util/
DTimeUtils.java144 private static final int SECONDS_PER_HOUR = 60 * 60; field in TimeUtils
249 if (seconds >= SECONDS_PER_HOUR) { in formatDurationLocked()
250 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
251 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()