/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 230 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 …]
|
D | DateUtils.java | 408 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()
|
D | DateFormat.java | 570 int hours = offset / 3600; in formatZoneOffset() local 573 tb.append(zeroPad(hours, 2)); in formatZoneOffset()
|
D | Time.java | 933 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/ |
D | Duration.java | 34 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/ |
D | DurationTest.java | 27 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/ |
D | StringUtil.java | 61 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/ |
D | DependenciesTest.java | 48 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/ |
D | TimeUtils.java | 243 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/ |
D | RefreshRateStats.h | 129 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/ |
D | UtilsTest.java | 137 long hours = 12; in testToHMS() local 141 long time = (((hours * 60) + minutes) * 60) * 1000 + millis; in testToHMS()
|
/frameworks/base/core/java/android/text/style/ |
D | TtsSpan.java | 1109 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/ |
D | NotificationSwipeActionHelper.java | 49 public void snooze(StatusBarNotification sbn, int hours); in snooze() argument
|
/frameworks/base/media/java/android/media/ |
D | SRTRenderer.java | 195 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()
|
D | TtmlRenderer.java | 133 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/ |
D | NotificationSwipeHelper.java | 286 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/ |
D | MediaController.java | 444 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()
|
D | RadialTimePickerView.java | 679 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()
|
D | TimePickerClockDelegate.java | 152 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/ |
D | battery.proto | 39 // Battery capacity in microampere-hours
|
D | diskstats.proto | 50 // Average write speed of storaged benchmark for last 24 hours
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProvider.java | 368 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/ |
D | clock-plugins.md | 40 stop = t + datetime.timedelta(hours=12)
|
/frameworks/base/core/proto/android/app/ |
D | tvsettings_enums.proto | 554 // 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/ |
D | NotificationGutsManager.java | 455 (View v, int hours) -> { in initializeConversationNotificationInfo() 456 mListContainer.getSwipeActionHelper().snooze(sbn, hours); in initializeConversationNotificationInfo()
|