HomeSort by relevance Sort by last modified time
    Searched defs:hours (Results 1 - 25 of 229) sorted by null

1 2 3 4 5 6 7 8 910

  /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)
  /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/chromium_org/ash/system/chromeos/power/
power_status_unittest.cc 101 int hours = 0, minutes = 0; local
103 base::TimeDelta::FromSeconds(0), &hours, &minutes);
104 EXPECT_EQ(0, hours);
108 base::TimeDelta::FromSeconds(60), &hours, &minutes);
109 EXPECT_EQ(0, hours);
113 base::TimeDelta::FromSeconds(3600), &hours, &minutes);
114 EXPECT_EQ(1, hours);
118 base::TimeDelta::FromSeconds(3600 + 60), &hours, &minutes);
119 EXPECT_EQ(1, hours);
123 base::TimeDelta::FromSeconds(7 * 3600 + 23 * 60), &hours, &minutes)
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/
utmscale.c 19 #define hours (minutes * 60) macro
20 #define days (hours * 24)
  /external/icu/icu4c/source/i18n/
utmscale.c 19 #define hours (minutes * 60) macro
20 #define days (hours * 24)
  /bionic/libc/dns/nameser/
ns_ttl.c 58 int secs, mins, hours, days, weeks, x; local
63 hours = (int)(src % 24); src /= 24;
76 if (hours) {
77 T(fmt1(hours, 'H', &dst, &dstlen));
84 if (secs || !(weeks || days || hours || mins)) {
  /developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/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/chromium_org/ui/base/l10n/
time_format.cc 82 // Anything up to 23.5 hours (respectively 23:59:30.000 when |cutoff|
83 // permits two-value output) is formatted as hours (respectively hours and
86 const int hours = (delta + half_hour).InHours(); local
87 formatter->Format(Formatter::UNIT_HOUR, hours, time_string);
89 const int hours = (delta + half_minute).InHours(); local
92 hours, minutes, time_string);
96 // Anything bigger is formatted as days (respectively days and hours).
102 const int hours = (delta + half_hour).InHours() % 24; local
104 days, hours, time_string)
    [all...]
  /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;
  /external/smack/src/org/xbill/DNS/
TTL.java 90 long secs, mins, hours, days, weeks; local
95 hours = ttl % 24;
104 if (hours > 0)
105 sb.append(hours + "H");
108 if (secs > 0 || (weeks == 0 && days == 0 && hours == 0 && mins == 0))
  /frameworks/base/core/java/android/text/format/
Formatter.java 125 int days = 0, hours = 0, minutes = 0; local
131 hours = (int)(secondsLong / SECONDS_PER_HOUR);
132 secondsLong -= hours * SECONDS_PER_HOUR;
141 days += (hours+12)/24;
144 if (hours == 1) {
145 return context.getString(com.android.internal.R.string.durationDayHour, days, hours);
147 return context.getString(com.android.internal.R.string.durationDayHours, days, hours);
148 } else if (hours >= 2) {
149 hours += (minutes+30)/60;
150 return context.getString(com.android.internal.R.string.durationHours, hours);
    [all...]
  /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)
  /system/core/toolbox/
uptime.c 42 int seconds, minutes, hours, days; local
48 hours = time % 24;
52 sprintf(buffer, "%d days, %02d:%02d:%02d", days, hours, minutes, seconds);
54 sprintf(buffer, "%02d:%02d:%02d", hours, minutes, seconds);
  /development/samples/wearable/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...]
  /external/chromium_org/media/video/capture/
fake_video_capture_device.cc 142 int hours = (elapsed_ms / 1000 / 60 / 60) % 60; local
145 base::StringPrintf("%d:%02d:%02d:%03d %d", hours, minutes,
  /external/chromium_org/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/chromium_org/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/
DERGeneralizedTime.java 191 int hours = offset / (60 * 60 * 1000); local
192 int minutes = (offset - (hours * 60 * 60 * 1000)) / (60 * 1000);
198 hours += sign.equals("+") ? 1 : -1;
206 return "GMT" + sign + convert(hours) + ":" + convert(minutes);
  /external/chromium_org/third_party/WebKit/Source/core/html/
MediaFragmentURIParser.cpp 238 enum Mode { minutes, hours }; enumerator in enum:WebCore::Mode
246 // fractional part to indicate miliseconds, or as colon-separated hours,
248 // seconds must be specified as exactly two digits, hours and fractional
249 // seconds can be any number of digits. The hours, minutes and seconds
283 mode = hours;
295 // Detect whether this timestamp includes hours.
297 if (mode == hours || (offset < length && timeString[offset] == ':')) {
  /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/DeskClock/src/com/android/deskclock/
AlarmUtils.java 75 * format "Alarm set for 2 days 7 hours and 53 minutes from
80 long hours = delta / (1000 * 60 * 60); local
82 long days = hours / 24;
83 hours = hours % 24;
93 String hourSeq = (hours == 0) ? "" :
94 (hours == 1) ? context.getString(R.string.hour) :
95 context.getString(R.string.hours, Long.toString(hours));
98 boolean dispHour = hours > 0
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
TimePicker.java 69 // PM case, valid hours: 12-23
75 // AM case, valid hours: 0-11
123 PickerColumn hours = new PickerColumn(mIs24hFormat ? mConstant.hours24 : mConstant.hours12); local
125 ret.add(hours);
  /external/replicaisland/src/com/replica/replicaisland/
GameOverActivity.java 94 float hours = minutes / 60.0f; local
96 int totalHours = (int)Math.floor(hours);

Completed in 1105 milliseconds

1 2 3 4 5 6 7 8 910