Searched refs:hours (Results 1 - 11 of 11) sorted by relevance
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | Duration.java | 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)
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
H A D | DurationTest.java | 27 int sign, int weeks, int days, int hours, 36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours); 26 verifyDuration(String str, int sign, int weeks, int days, int hours, int minutes, int seconds) argument
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | TimeUtils.java | 102 int days = 0, hours = 0, minutes = 0; 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);
|
/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 321 int days = 0, hours = 0, minutes = 0; 328 hours = seconds / SECONDS_PER_HOUR; 329 seconds -= hours * SECONDS_PER_HOUR; 340 myLen += accumField(hours, 1, myLen > 0, 2); 357 pos = printField(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0);
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 479 * from seconds up to hours. 486 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); 488 com.android.internal.R.plurals.duration_hours, hours, hours); 518 // Break the elapsed seconds into hours, minutes, and seconds. 519 long hours = 0; 523 hours = elapsedSeconds / 3600; 524 elapsedSeconds -= hours * 3600; 545 if (hours > 0) { 546 return f.format(sElapsedFormatHMMSS, hours, minute [all...] |
H A D | Time.java | 525 * or subtracting hours or minutes, then you should use 698 int hours = offset / 3600; 700 return String.format(Locale.US, "%s%s%02d:%02d", base, sign, hours, minutes);
|
H A D | DateFormat.java | 574 int hours = offset / 3600; 577 tb.append(zeroPad(hours, 2));
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | RadialPickerLayout.java | 189 // Initialize the hours and minutes numbers. 191 int[] hours = {12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; 199 String.format("%02d", hours_24[i]) : String.format("%d", hours[i]); 200 innerHoursTexts[i] = String.format("%d", hours[i]); 231 public void setTime(int hours, int minutes) { argument 232 setItem(HOUR_INDEX, hours); 258 // We'll have the 00 hours on the outside circle. 271 * If the hours are showing, return the current hour. If the minutes are showing, return the 327 * circle (5 on the minutes, 1 or 13 on the hours). 422 * For the currently showing view (either hours o [all...] |
H A D | TimePickerDialog.java | 207 mHourView = (TextView) view.findViewById(R.id.hours); 454 int hours = mTimePicker.getHours(); 456 hours = hours % 12; 458 mTimePicker.setContentDescription(mHourPickerDescription + ": " + hours); 620 // For 24-hour mode, the time is legal if the hours and minutes are each legal. Note: 661 * Update the hours, minutes, and AM/PM displays with the typed times. If the typedTimes is 727 * Get the currently-entered time, as integer values of the hours and minutes typed. 730 * hours of minutes. This is helpful for deciding whether to show the dashes, or actual 0's. 731 * @return A size-3 int array. The first value will be the hours, th [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | MediaController.java | 409 int hours = totalSeconds / 3600; 412 if (hours > 0) { 413 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 1079 long hours = (seconds - used) / (60 * 60); 1080 if (hours != 0 || used != 0) { 1081 out.append(hours); 1084 used += hours * 60 * 60;
|
Completed in 208 milliseconds