/external/lldb/test/pexpect-2.4/examples/ |
uptime.py | 41 hours = '0' variable 48 hours = str(int(p.match.group(1))) variable 55 print 'days, hours, minutes, users, cpu avg 1 min, cpu avg 5 min, cpu avg 15 min' 56 print '%s, %s, %s, %s, %s, %s, %s' % (days, hours, mins, users, av1, av5, av15)
|
/external/toybox/toys/other/ |
uptime.c | 28 unsigned int days, hours, minutes; local 48 hours = info.uptime%24; 51 if (hours) xprintf("%2d:%02d, ", hours, minutes);
|
/cts/libs/vogar-expect/src/vogar/util/ |
TimeUtilities.java | 34 long hours = duration; local 37 if (hours != 0) { 38 result.append(hours); 85 long hours = duration % 24; local 94 if (result.length() > 1 || hours != 0) { 95 result.append(hours);
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
TimeUtil.java | 34 long hours = TimeUnit.MILLISECONDS.toHours(elapsedTimeMs); local 36 if (hours > 0) { 37 time.append(hours);
|
/external/icu/icu4c/source/i18n/ |
utmscale.c | 19 #define hours (minutes * 60) macro 20 #define days (hours * 24)
|
/external/vogar/src/vogar/util/ |
TimeUtilities.java | 34 long hours = duration; local 37 if (hours != 0) { 38 result.append(hours); 85 long hours = duration % 24; local 94 if (result.length() > 1 || hours != 0) { 95 result.append(hours);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
InCallDateUtils.java | 13 * "3 hours 1 second". Returns the hours, minutes and seconds in that order if they exist. 16 int hours = 0; local 21 hours = elapsedSeconds / 3600; 22 elapsedSeconds -= hours * 3600; 33 if (hours > 0) { 34 duration.append(res.getQuantityString(R.plurals.duration_hours, hours, hours)); 37 if (hours > 0) { 43 if (hours > 0 || minutes > 0) [all...] |
/system/core/toolbox/ |
uptime.c | 42 int hours = time % 24; local 46 sprintf(buffer, "%d day%s, %02d:%02d:%02d", days, (days == 1) ? "" : "s", hours, minutes, seconds); 48 sprintf(buffer, "%02d:%02d:%02d", hours, minutes, seconds);
|
/bionic/libc/dns/nameser/ |
ns_ttl.c | 52 int secs, mins, hours, days, weeks, x; local 57 hours = (int)(src % 24); src /= 24; 70 if (hours) { 71 T(fmt1(hours, 'H', &dst, &dstlen)); 78 if (secs || !(weeks || days || hours || mins)) {
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/srt/ |
SrtParser.java | 51 long hours = Long.parseLong(in.split(":")[0].trim()); local 56 return hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millies;
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
Duration.java | 24 * | DAYS [ HOURS [ MINUTES [ SECONDS ] ] ] 25 * | HOURS [ MINUTES [ SECONDS ] ] 34 public int hours; field in class:Duration 52 hours = 0; 101 hours = n; 133 cal.add(Calendar.HOUR, sign*hours); 146 + (60*60*hours)
|
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/ |
TimerFormat.java | 41 * Update the time to display. Separates that time into the hours, minutes, seconds. 58 long hours = minutes / 60; local 59 minutes = minutes - hours * 60; 60 if (hours > 999) { 61 hours = 0; 63 // The time can be between 0 and -1 seconds, but the "truncated" equivalent time of hours 66 if (hours == 0 && minutes == 0 && seconds == 0) { 78 hours++; 83 // Hours may be empty 84 if (hours >= 10) [all...] |
/developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/ |
TimerFormat.java | 41 * Update the time to display. Separates that time into the hours, minutes, seconds. 58 long hours = minutes / 60; local 59 minutes = minutes - hours * 60; 60 if (hours > 999) { 61 hours = 0; 63 // The time can be between 0 and -1 seconds, but the "truncated" equivalent time of hours 66 if (hours == 0 && minutes == 0 && seconds == 0) { 78 hours++; 83 // Hours may be empty 84 if (hours >= 10) [all...] |
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/util/ |
TimerFormat.java | 41 * Update the time to display. Separates that time into the hours, minutes, seconds. 58 long hours = minutes / 60; local 59 minutes = minutes - hours * 60; 60 if (hours > 999) { 61 hours = 0; 63 // The time can be between 0 and -1 seconds, but the "truncated" equivalent time of hours 66 if (hours == 0 && minutes == 0 && seconds == 0) { 78 hours++; 83 // Hours may be empty 84 if (hours >= 10) [all...] |
/external/toybox/toys/pending/ |
last.c | 74 unsigned days, hours, mins; local 82 hours = (mins = (mins%(24*60)))/60; 84 sprintf(toybuf+28, "(%u+%02u:%02u)", days, hours, mins); // Duration.
|
/external/v8/test/mjsunit/ |
to_number_order.js | 62 var hours = { valueOf: function() { x += 4; return 13; } }; 68 new Date(year, month, date, hours, minutes, seconds, ms); 73 Date(year, month, date, hours, minutes, seconds, ms); 77 Date.UTC(year, month, date, hours, minutes, seconds, ms); 102 new Date().setHours(hours, minutes, seconds, ms); 106 new Date().setUTCHours(hours, minutes, seconds, ms); 110 new Date().setDate(date, hours, minutes, seconds, ms); 114 new Date().setUTCDate(date, hours, minutes, seconds, ms); 118 new Date().setMonth(month, date, hours, minutes, seconds, ms); 122 new Date().setUTCMonth(month, date, hours, minutes, seconds, ms) [all...] |
/external/v8/test/webkit/ |
date-constructor.js | 80 var hours = { valueOf: function() { testStr += 4; return 13; } }; 86 new Date(year, month, date, hours, minutes, seconds, ms); 90 Date.UTC(year, month, date, hours, minutes, seconds, ms);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
ASN1GeneralizedTime.java | 215 int hours = offset / (60 * 60 * 1000); local 216 int minutes = (offset - (hours * 60 * 60 * 1000)) / (60 * 1000); 222 hours += sign.equals("+") ? 1 : -1; 230 return "GMT" + sign + convert(hours) + ":" + convert(minutes);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
DateTimeRule.java | 303 int hours = time / 60; local 311 buf.append(hours);
|
UniversalTimeScale.java | 290 private static final long hours = minutes * 60; field in class:UniversalTimeScale 291 private static final long days = hours * 24;
|
/frameworks/base/core/java/android/text/format/ |
Formatter.java | 199 int days = 0, hours = 0, minutes = 0; local 205 hours = (int)(secondsLong / SECONDS_PER_HOUR); 206 secondsLong -= hours * SECONDS_PER_HOUR; 215 days += (hours+12)/24; 218 if (hours == 1) { 219 return context.getString(com.android.internal.R.string.durationDayHour, days, hours); 221 return context.getString(com.android.internal.R.string.durationDayHours, days, hours); 222 } else if (hours >= 2) { 223 hours += (minutes+30)/60; 224 return context.getString(com.android.internal.R.string.durationHours, hours); [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
TimeUtils.java | 102 int days = 0, hours = 0, minutes = 0; local 109 hours = seconds / SECONDS_PER_HOUR; 110 seconds -= hours * SECONDS_PER_HOUR; 121 myLen += accumField(hours, 1, myLen > 0, 2); 138 pos = printField(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0);
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
DatatypeFactory.java | 208 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p> 222 * @param hours of this <code>Duration</code> 236 final BigInteger hours, 242 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p> 251 * @param hours of this <code>Duration</code> 264 * BigInteger hours, 273 final int hours, 286 // hours may not be set 287 BigInteger realHours = (hours != DatatypeConstants.FIELD_UNDEFINED) ? BigInteger.valueOf((long) hours) : null 413 int hours = (int) (val % 24L); \/\/ 24 hours per day local 430 BigInteger hours = BigInteger.valueOf(val % 24L); \/\/ 24 hours per day local [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeVoiceActivity.java | 121 int hours = minutes / 60; local 122 return res.getQuantityString(byHour, hours, hours, formattedTime);
|
/external/jetty/src/java/org/eclipse/jetty/http/ |
HttpFields.java | 111 int hours = gc.get(Calendar.HOUR_OF_DAY); local 127 StringUtil.append2digits(buf, hours); 154 int hours = epoch / 60; local 168 StringUtil.append2digits(buf, hours); [all...] |