Home
last modified time | relevance | path

Searched refs:hours (Results 1 – 25 of 34) 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.java408 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); in formatDuration() local
409 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); in formatDuration()
438 long hours = 0; in formatElapsedTime() local
442 hours = elapsedSeconds / 3600; in formatElapsedTime()
443 elapsedSeconds -= hours * 3600; in formatElapsedTime()
464 if (hours > 0) { in formatElapsedTime()
465 return f.format(sElapsedFormatHMMSS, hours, minutes, seconds).toString(); in formatElapsedTime()
DDateFormat.java570 int hours = offset / 3600; in formatZoneOffset() local
573 tb.append(zeroPad(hours, 2)); in formatZoneOffset()
DTime.java933 int hours = offset / 3600; in format3339() local
935 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.java243 int days = 0, hours = 0, minutes = 0; in formatDurationLocked() local
250 hours = seconds / SECONDS_PER_HOUR; in formatDurationLocked()
251 seconds -= hours * SECONDS_PER_HOUR; in formatDurationLocked()
262 myLen += accumField(hours, 1, myLen > 0, 2); in formatDurationLocked()
279 pos = printFieldLocked(formatStr, hours, 'h', pos, pos != start, zeropad ? 2 : 0); in formatDurationLocked()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h129 auto [hours, hourRemainderMs] = std::div(dayRemainderMs, MS_PER_HOUR); in getDateFormatFromMs()
134 days, hours, mins, sec, secRemainderMs); in getDateFormatFromMs()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DUtilsTest.java137 long hours = 12; in testToHMS() local
141 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/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/
DNotificationSwipeActionHelper.java49 public void snooze(StatusBarNotification sbn, int hours); in snooze() argument
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelper.java286 public void snooze(StatusBarNotification sbn, int hours) { in snooze() argument
287 mCallback.onSnooze(sbn, hours); in snooze()
455 void onSnooze(StatusBarNotification sbn, int hours); in onSnooze() argument
/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.java368 private boolean withinNHoursLocked(AlarmManager.AlarmClockInfo alarmClockInfo, int hours) { in withinNHoursLocked() argument
373 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/base/core/proto/android/app/
Dtvsettings_enums.proto554 // TvSettings > System > Energy saver > Turn off display after > 3 hours
557 // TvSettings > System > Energy saver > Turn off display after > 6 hours
560 // TvSettings > System > Energy saver > Turn off display after > 12 hours
874 // 2 hours
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java455 (View v, int hours) -> { in initializeConversationNotificationInfo()
456 mListContainer.getSwipeActionHelper().snooze(sbn, hours); in initializeConversationNotificationInfo()

12