/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | Duration.java | 34 public int hours; field in class:Duration 52 hours = 0; 104 hours = n; 136 cal.add(Calendar.HOUR, sign*hours); 149 + (60*60*hours)
|
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | PlaybackSeekDataProviderSample.java | 64 long hours = minutes / 60; 66 minutes -= hours * 60; 69 if (hours > 0) { 70 b.append(hours).append(':');
|
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | PlaybackSeekDataProviderSample.java | 64 long hours = minutes / 60; 66 minutes -= hours * 60; 69 if (hours > 0) { 70 b.append(hours).append(':');
|
/frameworks/base/core/java/android/text/format/ |
H A D | Formatter.java | 222 int days = 0, hours = 0, minutes = 0; 228 hours = (int)(secondsLong / SECONDS_PER_HOUR); 229 secondsLong -= hours * SECONDS_PER_HOUR; 240 if (days >= 2 || (days > 0 && hours == 0)) { 241 days += (hours+12)/24; 246 new Measure(hours, MeasureUnit.HOUR)); 247 } else if (hours >= 2 || (hours > 0 && minutes == 0)) { 248 hours += (minutes+30)/60; 249 return measureFormat.format(new Measure(hours, MeasureUni [all...] |
H A D | DateUtils.java | 360 * from seconds up to hours. 371 * from seconds up to hours. 374 * locales may not have abbreviations). Use LENGTH_LONG for the full spelling (e.g. "2 hours"), 398 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); 399 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); 427 // Break the elapsed seconds into hours, minutes, and seconds. 428 long hours = 0; 432 hours = elapsedSeconds / 3600; 433 elapsedSeconds -= hours * 3600; 454 if (hours > [all...] |
H A D | DateFormat.java | 565 int hours = offset / 3600; 568 tb.append(zeroPad(hours, 2));
|
H A D | Time.java | 735 * or subtracting hours or minutes, then you should use 933 int hours = offset / 3600; 935 return String.format(Locale.US, "%s%s%02d:%02d", base, sign, hours, minutes);
|
/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/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
H A D | StringUtil.java | 61 int days = 0, hours = 0, minutes = 0; 67 hours = seconds / SECONDS_PER_HOUR; 68 seconds -= hours * SECONDS_PER_HOUR; 79 if (hours > 0) { 80 measureList.add(new Measure(hours, MeasureUnit.HOUR)); 113 * <p>The unit is chosen to have good information value while only using one unit. So 27 hours 114 * and 50 minutes would be formatted as "28 hr. ago", while 50 hours would be formatted as
|
/frameworks/support/compat/src/main/java/androidx/core/util/ |
H A D | TimeUtils.java | 107 int days = 0, hours = 0, minutes = 0; 114 hours = seconds / SECONDS_PER_HOUR; 115 seconds -= hours * SECONDS_PER_HOUR; 126 myLen += accumField(hours, 1, myLen > 0, 2); 143 pos = printField(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0);
|
/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 190 int days = 0, hours = 0, minutes = 0; 197 hours = seconds / SECONDS_PER_HOUR; 198 seconds -= hours * SECONDS_PER_HOUR; 209 myLen += accumField(hours, 1, myLen > 0, 2); 226 pos = printFieldLocked(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | PlaybackControlsPresenter.java | 191 long hours = minutes / 60; 193 minutes -= hours * 60; 196 if (hours > 0) { 197 sb.append(hours).append(':');
|
H A D | PlaybackTransportRowPresenter.java | 525 long hours = minutes / 60; 527 minutes -= hours * 60; 529 if (hours > 0) { 530 sb.append(hours).append(':');
|
/frameworks/base/core/java/android/text/style/ |
H A D | TtsSpan.java | 106 * hours and minutes, specified with {@link #ARG_HOURS} and 298 * Argument used to specify the hours of a time. The hours should be 302 public static final String ARG_HOURS = "android.arg.hours"; 305 * Argument used to specify the minutes of a time. The hours should be 1109 public TimeBuilder(int hours, int minutes) { argument 1111 setHours(hours); 1117 * @param hours The value to be set for hours. See {@link #ARG_HOURS}. 1121 public TimeBuilder setHours(int hours) { argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | SRTRenderer.java | 194 long hours = Long.parseLong(in.split(":")[0].trim()); 199 return hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millies;
|
H A D | TtmlRenderer.java | 131 String hours = matcher.group(1); 132 double durationSeconds = Long.parseLong(hours) * 3600;
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | RadialPickerLayout.java | 190 // Initialize the hours and minutes numbers. 192 int[] hours = {12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; 200 String.format("%02d", hours_24[i]) : String.format("%d", hours[i]); 201 innerHoursTexts[i] = String.format("%d", hours[i]); 232 public void setTime(int hours, int minutes) { argument 233 setItem(HOUR_INDEX, hours); 259 // We'll have the 00 hours on the outside circle. 272 * If the hours are showing, return the current hour. If the minutes are showing, return the 328 * circle (5 on the minutes, 1 or 13 on the hours). 423 * For the currently showing view (either hours o [all...] |
H A D | TimePickerDialog.java | 210 mHourView = (TextView) view.findViewById(R.id.hours); 457 int hours = mTimePicker.getHours(); 459 hours = hours % 12; 461 mTimePicker.setContentDescription(mHourPickerDescription + ": " + hours); 623 // For 24-hour mode, the time is legal if the hours and minutes are each legal. Note: 664 * Update the hours, minutes, and AM/PM displays with the typed times. If the typedTimes is 730 * Get the currently-entered time, as integer values of the hours and minutes typed. 733 * hours of minutes. This is helpful for deciding whether to show the dashes, or actual 0's. 734 * @return A size-3 int array. The first value will be the hours, th [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
H A D | KeyguardSliceProvider.java | 69 * Only show alarms that will ring within N hours. 223 private boolean withinNHours(AlarmManager.AlarmClockInfo alarmClockInfo, int hours) { argument 228 long limit = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(hours);
|
/frameworks/base/core/java/android/widget/ |
H A D | MediaController.java | 424 int hours = totalSeconds / 3600; 427 if (hours > 0) { 428 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
|
H A D | RadialTimePickerView.java | 223 * circle (5 on the minutes, 1 or 13 on the hours). 592 * Sets whether the picker is showing AM or PM hours. Has no effect when 623 // Initialize the hours and minutes numbers. 677 private void showPicker(boolean hours, boolean animate) { argument 678 if (mShowHours == hours) { 682 mShowHours = hours; 685 animatePicker(hours, ANIM_DURATION_NORMAL); 692 mHoursToMinutes = hours ? 0.0f : 1.0f; 726 // Exclude the selector region, then draw inner/outer hours with no 743 // Draw outer hours [all...] |
H A D | TimePickerClockDelegate.java | 152 mHourView = (NumericTextView) mainView.findViewById(R.id.hours); 457 // Horizontal mode, with AM/PM appearing to left/right of hours and minutes. 479 // Vertical mode, with AM/PM appearing to top/bottom of hours and minutes. 802 * We pass the correct "skeleton" depending on 12 or 24 hours view and then extract the 985 // Done with hours entry, make visual updates 1026 case R.id.hours: 1054 case R.id.hours:
|
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
H A D | MediaControlView2Impl.java | 691 int hours = totalSeconds / 3600; 694 if (hours > 0) { 695 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
|
/frameworks/support/media-widget/src/main/java/androidx/media/widget/ |
H A D | MediaControlView2.java | 832 int hours = totalSeconds / 3600; 835 if (hours > 0) { 836 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
|
/frameworks/base/services/core/java/com/android/server/content/ |
H A D | SyncManager.java | 2112 final long hours = duration % 24; 2123 print = printTwoDigitNumber(sb, hours, 'h', print);
|