Searched refs:zeropad (Results 1 – 2 of 2) sorted by relevance
/frameworks/support/compat/java/android/support/v4/util/ |
D | TimeUtils.java | 44 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument 45 if (amt > 99 || (always && zeropad >= 3)) { in accumField() 48 if (amt > 9 || (always && zeropad >= 2)) { in accumField() 58 boolean always, int zeropad) { in printField() argument 61 if ((always && zeropad >= 3) || amt > 99) { in printField() 67 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printField() 142 boolean zeropad = fieldLen != 0; in formatDurationLocked() 144 pos = printField(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked() 145 pos = printField(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked() 146 pos = printField(formatStr, seconds, 's', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked() [all …]
|
/frameworks/base/core/java/android/util/ |
D | TimeUtils.java | 254 static private int accumField(int amt, int suffix, boolean always, int zeropad) { in accumField() argument 263 if (amt > 99 || (always && zeropad >= 3)) { in accumField() 266 if (amt > 9 || (always && zeropad >= 2)) { in accumField() 277 boolean always, int zeropad) { in printFieldLocked() argument 295 if ((always && zeropad >= 3) || amt > 99) { in printFieldLocked() 301 if ((always && zeropad >= 2) || amt > 9 || startPos != pos) { in printFieldLocked() 377 boolean zeropad = fieldLen != 0; in formatDurationLocked() 379 pos = printFieldLocked(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked() 380 pos = printFieldLocked(formatStr, minutes, 'm', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked() 381 pos = printFieldLocked(formatStr, seconds, 's', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked() [all …]
|