/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerStringFormatter.kt | 44 val hours: Int in formatTimeRemaining() constant 55 hours = roundedHours in formatTimeRemaining() 58 hours = roundedHours in formatTimeRemaining() 63 hours = roundedHours in formatTimeRemaining() 69 hours = roundedHours in formatTimeRemaining() 73 val hourSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.hours, hours) in formatTimeRemaining() 78 context.getString(if (minutes > 1 || hours > 1 || seconds > 1) { in formatTimeRemaining() 84 val showHours = hours > 0 in formatTimeRemaining()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmUtils.kt | 79 var hours = variableDelta.toInt() / (1000 * 60 * 60) in formatElapsedTimeUntilAlarm() variable 81 val days = hours / 24 in formatElapsedTimeUntilAlarm() 82 hours %= 24 in formatElapsedTimeUntilAlarm() 86 val hourSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.hours, hours) in formatElapsedTimeUntilAlarm() 89 val showHours = hours > 0 in formatElapsedTimeUntilAlarm()
|
D | TimerTextController.kt | 34 var hours = (variableRemainingTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString() variable 51 hours++ in setTimeString() 56 var time = Utils.getTimeString(mTextView.context, hours, minutes, seconds) in setTimeString() 57 if (isNegative && !(hours == 0 && minutes == 0 && seconds == 0)) { in setTimeString()
|
D | StopwatchTextController.kt | 40 val hours = (accumulatedTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString() constant 56 val time = Utils.getTimeString(context, hours, minutes, seconds) in setTimeString()
|
D | Utils.kt | 561 context, R.plurals.hours, abs(hoursDifferent)) in now() 585 fun getTimeString(context: Context, hours: Int, minutes: Int, seconds: Int): String { in getTimeString() 586 if (hours != 0) { in getTimeString() 587 return context.getString(R.string.hours_minutes_seconds, hours, minutes, seconds) in getTimeString()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipDatetimeTest.java | 36 private Date makeDate(int month, int day, int year, int hours, int min, int sec, TimeZone tz) { in makeDate() argument 41 builder.setTimeOfDay(hours, min, sec, 0); in makeDate() 46 private Date makeDate(int month, int day, int year, int hours, int min, int sec) { in makeDate() argument 47 return makeDate(month, day, year, hours, min, sec, null); in makeDate() 50 private String makeTzAdjustedString(int month, int day, int year, int hours, int min, in makeTzAdjustedString() argument 53 cal.setTime(makeDate(month, day, year, hours, min, sec)); in makeTzAdjustedString()
|
D | BipAttachmentFormatTest.java | 35 private Date makeDate(int month, int day, int year, int hours, int min, int sec, TimeZone tz) { in makeDate() argument 40 builder.setTimeOfDay(hours, min, sec, 0); in makeDate() 45 private Date makeDate(int month, int day, int year, int hours, int min, int sec) { in makeDate() argument 46 return makeDate(month, day, year, hours, min, sec, null); in makeDate()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerSetupView.kt | 182 val hours = mInput[5] * 10 + mInput[4] in updateTime() constant 186 uidm.getFormattedNumber(hours, 2), in updateTime() 192 r.getQuantityString(R.plurals.hours, hours, hours), in updateTime() 282 val hours = mInput[5] * 10 + mInput[4] constant 285 hours * DateUtils.HOUR_IN_MILLIS
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerSetupViewTest.java | 267 private void assertHasValue(int hours, int minutes, int seconds) { in assertHasValue() argument 269 hours * HOUR_IN_MILLIS + minutes * MINUTE_IN_MILLIS + seconds * SECOND_IN_MILLIS; in assertHasValue() 270 assertStateEquals(hours, minutes, seconds); in assertHasValue() 275 String.format(Locale.US, "%02dh %02dm %02ds", hours, minutes, seconds); in assertHasValue() 297 private void assertStateEquals(int hours, int minutes, int seconds) { in assertStateEquals() argument 299 seconds % 10, seconds / 10, minutes % 10, minutes / 10, hours % 10, hours / 10 in assertStateEquals()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | Utils.kt | 186 HOURS -> context.resources.getQuantityString(R.plurals.hours, in getTimeDiffStr() 225 val hours = minutes / 60 in calculateTimeDiffAndUnit() constant 226 if (hours < 24) { in calculateTimeDiffAndUnit() 227 return Pair.create(hours, HOURS) in calculateTimeDiffAndUnit() 229 val days = hours / 24 in calculateTimeDiffAndUnit()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | DigitalWellBeingToast.java | 144 int hours = Math.toIntExact(duration.toHours()); in getReadableDuration() local 145 int minutes = Math.toIntExact(duration.minusHours(hours).toMinutes()); in getReadableDuration() 148 if (hours > 0 && minutes > 0) { in getReadableDuration() 151 new Measure(hours, MeasureUnit.HOUR), in getReadableDuration() 156 if (hours > 0) { in getReadableDuration() 160 .formatMeasures(new Measure(hours, MeasureUnit.HOUR)); in getReadableDuration()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | LapsAdapter.kt | 302 val hours: Int in formatTime() constant 311 hours = minutes in formatTime() 313 hours = (time / DateUtils.HOUR_IN_MILLIS).toInt() in formatTime() 335 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 1)) in formatTime() 340 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 2)) in formatTime() 345 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 3)) in formatTime()
|
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/ |
D | MainActivity.java | 63 final long hours = duration.toHours(); 64 duration = duration.minusHours(hours); 73 final String daysHours = durationPairToString(days, "days", hours, "hours"); 75 final String hoursMinutes = durationPairToString(hours, "hours", minutes, "minutes");
|
/packages/modules/Connectivity/tests/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()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeVoiceActivity.java | 121 int hours = minutes / 60; in getChangeSummary() local 122 return res.getQuantityString(byHour, hours, hours, formattedTime); in getChangeSummary()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | TimeBar.java | 254 int hours = totalSeconds / 3600; in stringForTime() local 255 if (hours > 0) { in stringForTime() 256 return String.format("%d:%02d:%02d", hours, minutes, seconds).toString(); in stringForTime()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/util/ |
D | FormatUtils.java | 47 final int hours = in formatDuration() local 49 return formatter.format(new Measure(hours, MeasureUnit.HOUR)); in formatDuration()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/ |
D | PlaybackProgress.java | 77 long hours = TimeUnit.MILLISECONDS.toHours(millis); in formatTime() local 81 return String.format("%d:%02d:%02d", hours, minutes, seconds); in formatTime()
|
/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/ |
D | EventsLiveDataTest.java | 347 int hours = 48; in multiDayEvent_keepsOriginalTimes() local 348 mTestContentProvider.addRow(buildTestRowWithDuration(CURRENT_DATE_TIME, hours)); in multiDayEvent_keepsOriginalTimes() 362 ZonedDateTime expectedEndTime = expectedStartTime.plus(hours, HOURS); in multiDayEvent_keepsOriginalTimes() 625 static long addHoursAndTruncate(ZonedDateTime dateTime, int hours) { 626 return dateTime.truncatedTo(HOURS).plus(Duration.ofHours(hours)).toInstant().toEpochMilli();
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | NavStateController.java | 203 long hours = (seconds / 3600) % 24; in formatEta() local 207 return String.format("%d d %d hr", days, hours); in formatEta() 208 } else if (hours > 0) { in formatEta() 209 return String.format("%d hr %d min", hours, minutes); in formatEta()
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
D | NavStateController.java | 201 long hours = (seconds / 3600) % 24; in formatEta() local 205 return String.format("%d d %d hr", days, hours); in formatEta() 206 } else if (hours > 0) { in formatEta() 207 return String.format("%d hr %d min", hours, minutes); in formatEta()
|
/packages/modules/Wifi/service/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()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarInstancesHelper.java | 235 duration.hours = 0; in performInstanceExpansion() 306 duration.hours = 0; in performInstanceExpansion() 316 duration.hours = 0; in performInstanceExpansion()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | VideoModule.java | 1546 long hours = minutes / 60; in millisecondToTimeString() local 1547 long remainderMinutes = minutes - (hours * 60); in millisecondToTimeString() 1553 if (hours > 0) { in millisecondToTimeString() 1554 if (hours < 10) { in millisecondToTimeString() 1557 timeStringBuilder.append(hours); in millisecondToTimeString()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | VideoCamera.java | 1777 long hours = minutes / 60; in millisecondToTimeString() local 1778 long remainderMinutes = minutes - (hours * 60); in millisecondToTimeString() 1784 if (hours > 0) { in millisecondToTimeString() 1785 if (hours < 10) { in millisecondToTimeString() 1788 timeStringBuilder.append(hours); in millisecondToTimeString()
|