Home
last modified time | relevance | path

Searched refs:hours (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/text/format/
DFormatter.java230 int days = 0, hours = 0, minutes = 0; in formatShortElapsedTime() local
236 hours = (int)(secondsLong / SECONDS_PER_HOUR); in formatShortElapsedTime()
237 secondsLong -= hours * SECONDS_PER_HOUR; in formatShortElapsedTime()
248 if (days >= 2 || (days > 0 && hours == 0)) { in formatShortElapsedTime()
249 days += (hours+12)/24; in formatShortElapsedTime()
254 new Measure(hours, MeasureUnit.HOUR)); in formatShortElapsedTime()
255 } else if (hours >= 2 || (hours > 0 && minutes == 0)) { in formatShortElapsedTime()
256 hours += (minutes+30)/60; in formatShortElapsedTime()
257 return measureFormat.format(new Measure(hours, MeasureUnit.HOUR)); in formatShortElapsedTime()
258 } else if (hours > 0) { in formatShortElapsedTime()
[all …]
DDateUtils.java415 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); in formatDuration() local
416 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); in formatDuration()
445 long hours = 0; in formatElapsedTime() local
449 hours = elapsedSeconds / 3600; in formatElapsedTime()
450 elapsedSeconds -= hours * 3600; in formatElapsedTime()
471 if (hours > 0) { in formatElapsedTime()
472 return f.format(sElapsedFormatHMMSS, hours, minutes, seconds).toString(); in formatElapsedTime()
DDateFormat.java621 int hours = offset / 3600; in formatZoneOffset() local
624 tb.append(zeroPad(hours, 2)); in formatZoneOffset()
DTime.java932 int hours = offset / 3600; in format3339() local
934 return String.format(Locale.US, "%s%s%02d:%02d", base, sign, hours, minutes); in format3339()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java34 public int hours; field in Duration
52 hours = 0; in parse()
104 hours = n; in parse()
136 cal.add(Calendar.HOUR, sign*hours); in addTo()
149 + (60*60*hours) in getMillis()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java27 int sign, int weeks, int days, int hours, in verifyDuration() argument
36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours); in verifyDuration()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java61 int days = 0, hours = 0, minutes = 0; in formatElapsedTime() local
67 hours = seconds / SECONDS_PER_HOUR; in formatElapsedTime()
68 seconds -= hours * SECONDS_PER_HOUR; in formatElapsedTime()
79 if (hours > 0) { in formatElapsedTime()
80 measureList.add(new Measure(hours, MeasureUnit.HOUR)); in formatElapsedTime()
/frameworks/base/tests/net/common/java/android/net/
DDependenciesTest.java48 final int hours = 24; in testTimeUnit() local
49 final long inSeconds = TimeUnit.HOURS.toMillis(hours); in testTimeUnit()
50 assertEquals(inSeconds, hours * 60 * 60 * 1000); in testTimeUnit()
/frameworks/base/core/java/android/util/
DTimeUtils.java242 int days = 0, hours = 0, minutes = 0; in formatDurationLocked() local
249 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
250 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()
261 myLen += accumField(hours, 1, myLen > 0, 2); in formatDurationLocked()
278 pos = printFieldLocked(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h128 auto [hours, hourRemainderMs] = std::div(dayRemainderMs, MS_PER_HOUR); in getDateFormatFromMs()
133 days, hours, mins, sec, secRemainderMs); in getDateFormatFromMs()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DUtilsTest.java135 long hours = 12; in testToHMS() local
139 long time = (((hours * 60) + minutes) * 60) * 1000 + millis; in testToHMS()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java1109 public TimeBuilder(int hours, int minutes) { in TimeBuilder() argument
1111 setHours(hours); in TimeBuilder()
1121 public TimeBuilder setHours(int hours) { in setHours() argument
1122 return setIntArgument(TtsSpan.ARG_HOURS, hours); in setHours()
/frameworks/base/media/java/android/media/
DSRTRenderer.java195 long hours = Long.parseLong(in.split(":")[0].trim()); in parseMs() local
200 return hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millies; in parseMs()
DTtmlRenderer.java133 String hours = matcher.group(1); in parseTimeExpression() local
134 double durationSeconds = Long.parseLong(hours) * 3600; in parseTimeExpression()
/frameworks/base/core/java/android/widget/
DMediaController.java444 int hours = totalSeconds / 3600; in stringForTime() local
447 if (hours > 0) { in stringForTime()
448 return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); in stringForTime()
DRadialTimePickerView.java679 private void showPicker(boolean hours, boolean animate) { in showPicker() argument
680 if (mShowHours == hours) { in showPicker()
684 mShowHours = hours; in showPicker()
687 animatePicker(hours, ANIM_DURATION_NORMAL); in showPicker()
694 mHoursToMinutes = hours ? 0.0f : 1.0f; in showPicker()
DTimePickerClockDelegate.java152 mHourView = (NumericTextView) mainView.findViewById(R.id.hours); in TimePickerClockDelegate()
1031 case R.id.hours:
1059 case R.id.hours:
/frameworks/base/core/proto/android/service/
Dbattery.proto39 // Battery capacity in microampere-hours
Ddiskstats.proto50 // Average write speed of storaged benchmark for last 24 hours
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java372 private boolean withinNHoursLocked(AlarmManager.AlarmClockInfo alarmClockInfo, int hours) { in withinNHoursLocked() argument
377 long limit = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(hours); in withinNHoursLocked()
/frameworks/base/packages/SystemUI/docs/
Dclock-plugins.md40 stop = t + datetime.timedelta(hours=12)
/frameworks/hardware/interfaces/stats/1.0/
Dtypes.hal157 /* The number of slow IO operations of this type over 24 hours. */
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java2088 final long hours = duration % 24; in formatDurationHMS() local
2099 print = printTwoDigitNumber(sb, hours, 'h', print); in formatDurationHMS()
/frameworks/base/core/java/android/os/
DBatteryStats.java3139 long hours = (seconds - used) / (60 * 60); in formatTimeRaw() local
3140 if (hours != 0 || used != 0) { in formatTimeRaw()
3141 out.append(hours); in formatTimeRaw()
3144 used += hours * 60 * 60; in formatTimeRaw()
/frameworks/base/cmds/statsd/src/
Datoms.proto2665 // The number of slow IO operations of this type over 24 hours.

12