Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DTimeUtils.java183 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
192 if (amt > 99 || (always && zeropad >= 3)) { in accumField()
195 if (amt > 9 || (always && zeropad >= 2)) { in accumField()
206 boolean always, int zeropad) { in printFieldLocked() argument
224 if ((always && zeropad >= 3) || amt > 99) { in printFieldLocked()
230 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked()
306 boolean zeropad = fieldLen != 0; in formatDurationLocked()
308 pos = printFieldLocked(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
309 pos = printFieldLocked(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
310 pos = printFieldLocked(formatStr, seconds, 's', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
[all …]