Home
last modified time | relevance | path

Searched refs:HOUR_IN_MILLIS (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/util/
DDates.java37 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; field in Dates
38 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24;
134 } else if (!minPeriodToday && timeDiff < DateUtils.HOUR_IN_MILLIS) { in getTimestamp()
247 if (duration < HOUR_IN_MILLIS) { in getShortRelativeTimeSpanString()
251 count = duration / HOUR_IN_MILLIS; in getShortRelativeTimeSpanString()
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerTextController.java21 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
43 int hours = (int) (remainingTime / HOUR_IN_MILLIS); in setTimeString()
44 int remainder = (int) (remainingTime % HOUR_IN_MILLIS); in setTimeString()
DStopwatchTextController.java24 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
50 final int hours = (int) (accumulatedTime / HOUR_IN_MILLIS); in setTimeString()
51 int remainder = (int) (accumulatedTime % HOUR_IN_MILLIS); in setTimeString()
DClockFragment.java493 final int hoursDifferent = (int) (offsetDelta / DateUtils.HOUR_IN_MILLIS); in bind()
495 final boolean displayMinutes = offsetDelta % DateUtils.HOUR_IN_MILLIS != 0; in bind()
DUtils.java443 final long hour = gmtOffset / DateUtils.HOUR_IN_MILLIS; in getGMTHourOffset()
444 final long min = (Math.abs(gmtOffset) % DateUtils.HOUR_IN_MILLIS) / in getGMTHourOffset()
/packages/apps/DocumentsUI/src/com/android/documentsui/util/
DFormatUtils.java46 if (millis >= DateUtils.HOUR_IN_MILLIS) { in formatDuration()
48 (int) ((millis + DateUtils.HOUR_IN_MILLIS / 2) / DateUtils.HOUR_IN_MILLIS); in formatDuration()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java35 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
156 final long lastHour = periodStart - (periodStart % HOUR_IN_MILLIS); in getDelay()
157 final long nextHour = lastHour + HOUR_IN_MILLIS; in getDelay()
DPeriodicCallbackModel.kt190 val lastHour = periodStart - periodStart % DateUtils.HOUR_IN_MILLIS in getDelay()
191 val nextHour = lastHour + DateUtils.HOUR_IN_MILLIS in getDelay()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.java44 private static final long HOUR = DateUtils.HOUR_IN_MILLIS;
247 hours = (int) (time / DateUtils.HOUR_IN_MILLIS); in formatTime()
248 int remainder = (int) (time % DateUtils.HOUR_IN_MILLIS); in formatTime()
DLapsAdapter.kt284 private val HOUR: Long = DateUtils.HOUR_IN_MILLIS
313 hours = (time / DateUtils.HOUR_IN_MILLIS).toInt() in formatTime()
314 var remainder = (time % DateUtils.HOUR_IN_MILLIS).toInt() in formatTime()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerStringFormatter.java25 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
36 int roundedHours = (int) (remainingTime / HOUR_IN_MILLIS); in formatTimeRemaining()
DTimerStringFormatter.kt20 import android.text.format.DateUtils.HOUR_IN_MILLIS
38 var roundedHours = (remainingTime / HOUR_IN_MILLIS).toInt() in formatTimeRemaining()
DTimer.java25 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
77 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS;
DTimer.kt20 import android.text.format.DateUtils.HOUR_IN_MILLIS in <lambda>()
338 val MAX_LENGTH: Long = 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS in <lambda>()
DSettingsDAO.kt25 import android.text.format.DateUtils.HOUR_IN_MILLIS
368 val hour: Long = absoluteGMTOffset / HOUR_IN_MILLIS
DSettingsDAO.java39 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
377 final long hour = absoluteGMTOffset / HOUR_IN_MILLIS; in TimeZoneDescriptor()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastHandlerTest.java97 System.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS * 2, in query()
98 System.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS * 2, in query()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java60 private static final long SCREEN_TIME_MS = DateUtils.HOUR_IN_MILLIS;
61 private static final long AVERAGE_TIME_MS = DateUtils.HOUR_IN_MILLIS;
DAppInfoTest.java41 private static final long SCREEN_TIME_MS = DateUtils.HOUR_IN_MILLIS;
DBatteryTipPolicyTest.java100 assertThat(batteryTipPolicy.highUsagePeriodMs).isEqualTo(2 * DateUtils.HOUR_IN_MILLIS); in testInit_defaultValues()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGuide.java88 private static final long HOUR_IN_MILLIS = TimeUnit.HOURS.toMillis(1); field in ProgramGuide
89 private static final long HALF_HOUR_IN_MILLIS = HOUR_IN_MILLIS / 2;
218 mViewPortMillis = (gridWidth * HOUR_IN_MILLIS) / mWidthPerHour; in ProgramGuide()
1061 (int) (mWidthPerHour * mProgramManager.getShiftedTime() / HOUR_IN_MILLIS); in onTimeRangeUpdated()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerSetupViewTest.java43 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
268 hours * HOUR_IN_MILLIS + minutes * MINUTE_IN_MILLIS + seconds * SECOND_IN_MILLIS; in assertHasValue()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1945 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1957 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1969 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1981 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1993 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
2005 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
2017 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
2029 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
2751 startMs - DateUtils.YEAR_IN_MILLIS, startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceQuery()
2761 startMs - DateUtils.YEAR_IN_MILLIS, startMs + 2 * DateUtils.HOUR_IN_MILLIS, in testInstanceQuery()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DSummaryDetectorTest.java39 private static final long AVERAGE_TIME_MS = DateUtils.HOUR_IN_MILLIS;
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DSummaryTipTest.java40 private static final long AVERAGE_TIME_MS = DateUtils.HOUR_IN_MILLIS;

12