Home | History | Annotate | Download | only in util

Lines Matching refs:format

19 /** Helper class to format the timer. Based on com.android.deskclock.timer.CountingTimerView. */
49 String format;
85 format = showNeg ? NEG_TWO_DIGITS : TWO_DIGITS;
86 mHours = String.format(format, hours);
88 format = showNeg ? NEG_ONE_DIGIT : ONE_DIGIT;
89 mHours = String.format(format, hours);
96 format = (showNeg && hours == 0) ? NEG_TWO_DIGITS : TWO_DIGITS;
97 mMinutes = String.format(format, minutes);
99 format = (showNeg && hours == 0) ? NEG_ONE_DIGIT : ONE_DIGIT;
100 mMinutes = String.format(format, minutes);
104 mSeconds = String.format(TWO_DIGITS, seconds);
110 * @param time the time to format.
116 return String.format("%s:%s", mMinutes, mSeconds);
118 return String.format("%s:%s:%s", mHours, mMinutes, mSeconds);