Home
last modified time | relevance | path

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

/frameworks/support/v4/java/android/support/v4/util/
DTimeUtils.java38 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
39 if (amt > 99 || (always && zeropad >= 3)) { in accumField()
42 if (amt > 9 || (always && zeropad >= 2)) { in accumField()
52 boolean always, int zeropad) { in printField() argument
55 if ((always && zeropad >= 3) || amt > 99) { in printField()
61 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printField()
136 boolean zeropad = fieldLen != 0; in formatDurationLocked()
138 pos = printField(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
139 pos = printField(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
140 pos = printField(formatStr, seconds, 's', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
[all …]
/frameworks/base/core/java/android/util/
DTimeUtils.java255 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
264 if (amt > 99 || (always && zeropad >= 3)) { in accumField()
267 if (amt > 9 || (always && zeropad >= 2)) { in accumField()
278 boolean always, int zeropad) { in printFieldLocked() argument
296 if ((always && zeropad >= 3) || amt > 99) { in printFieldLocked()
302 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked()
378 boolean zeropad = fieldLen != 0; in formatDurationLocked()
380 pos = printFieldLocked(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
381 pos = printFieldLocked(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
382 pos = printFieldLocked(formatStr, seconds, 's', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
[all …]