Home
last modified time | relevance | path

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

/frameworks/support/compat/src/main/java/androidx/core/util/
DTimeUtils.java43 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
44 if (amt > 99 || (always && zeropad >= 3)) { in accumField()
47 if (amt > 9 || (always && zeropad >= 2)) { in accumField()
57 boolean always, int zeropad) { in printField() argument
60 if ((always && zeropad >= 3) || amt > 99) { in printField()
66 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printField()
141 boolean zeropad = fieldLen != 0; in formatDurationLocked()
143 pos = printField(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
144 pos = printField(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
145 pos = printField(formatStr, seconds, 's', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
[all …]
/frameworks/base/core/java/android/util/
DTimeUtils.java101 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument
110 if (amt > 99 || (always && zeropad >= 3)) { in accumField()
113 if (amt > 9 || (always && zeropad >= 2)) { in accumField()
124 boolean always, int zeropad) { in printFieldLocked() argument
142 if ((always && zeropad >= 3) || amt > 99) { in printFieldLocked()
148 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked()
224 boolean zeropad = fieldLen != 0; in formatDurationLocked()
226 pos = printFieldLocked(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
227 pos = printFieldLocked(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
228 pos = printFieldLocked(formatStr, seconds, 's', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
[all …]