Home
last modified time | relevance | path

Searched refs:HOUR_IN_MILLIS (Results 1 – 25 of 32) 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.java436 final long hour = gmtOffset / DateUtils.HOUR_IN_MILLIS; in getGMTHourOffset()
437 final long min = (Math.abs(gmtOffset) % DateUtils.HOUR_IN_MILLIS) / in getGMTHourOffset()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java35 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
153 final long lastHour = periodStart - (periodStart % HOUR_IN_MILLIS); in getDelay()
154 final long nextHour = lastHour + HOUR_IN_MILLIS; in getDelay()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlarmSchedulerTest.java176 long startMillis = currentMillis + DateUtils.HOUR_IN_MILLIS; in testNonAllDayEvent()
222 long startMillis = currentMillis + DateUtils.HOUR_IN_MILLIS; in testExpiredReminder()
304 mMockProvider.addEventInfo(i, false, currentMillis + DateUtils.HOUR_IN_MILLIS * i, in testLargeBatch()
DAlertServiceTest.java641 allDayStart + DateUtils.HOUR_IN_MILLIS * 24, 0); in testGenerateAlerts_refreshTime()
791 laterStartTime + DateUtils.HOUR_IN_MILLIS, 0); in testProcessQuery_recurringEvent()
793 earlierStartTime + DateUtils.HOUR_IN_MILLIS, 0); in testProcessQuery_recurringEvent()
850 at.addAlertRow(eventId, SCHEDULED, ACCEPTED, 1, day2, day2 + DateUtils.HOUR_IN_MILLIS * 24, in testProcessQuery_recurringAllDayEvent()
852 at.addAlertRow(eventId, SCHEDULED, ACCEPTED, 1, day1, day1 + DateUtils.HOUR_IN_MILLIS * 24, in testProcessQuery_recurringAllDayEvent()
/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()
/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()
DTimer.java25 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
77 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS;
DSettingsDAO.java39 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
377 final long hour = absoluteGMTOffset / HOUR_IN_MILLIS; in TimeZoneDescriptor()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGuide.java80 private static final long HOUR_IN_MILLIS = TimeUnit.HOURS.toMillis(1); field in ProgramGuide
81 private static final long HALF_HOUR_IN_MILLIS = HOUR_IN_MILLIS / 2;
191 mViewPortMillis = (gridWidth * HOUR_IN_MILLIS) / mWidthPerHour; in ProgramGuide()
916 / HOUR_IN_MILLIS); in onTimeRangeUpdated()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1841 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1853 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1865 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1877 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1889 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1901 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1913 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
1925 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery()
2647 startMs - DateUtils.YEAR_IN_MILLIS, startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceQuery()
2657 startMs - DateUtils.YEAR_IN_MILLIS, startMs + 2 * DateUtils.HOUR_IN_MILLIS, in testInstanceQuery()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/checker/
DWakeLockAnomalyDetectorTest.java61 private static final long ANOMALY_WAKELOCK_TIME_MS = 2 * DateUtils.HOUR_IN_MILLIS;
63 private static final long WAKELOCK_THRESHOLD_MS = DateUtils.HOUR_IN_MILLIS;
DBluetoothScanAnomalyDetectorTest.java62 private static final long ANOMALY_BLUETOOTH_SCANNING_TIME = DateUtils.HOUR_IN_MILLIS;
DWakeupAlarmAnomalyDetectorTest.java71 1 * DateUtils.HOUR_IN_MILLIS + 10 * DateUtils.MINUTE_IN_MILLIS;
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/
DAnomalyDetectionPolicy.java146 DateUtils.HOUR_IN_MILLIS); in AnomalyDetectionPolicy()
/packages/apps/Car/Stream/src/com/android/car/stream/telecom/
DRecentCallStreamProducer.java40 private static final long RECENT_CALL_TIME_RANGE = 6 * DateUtils.HOUR_IN_MILLIS;
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/checker/
DWakeupAlarmAnomalyDetector.java77 / (double) DateUtils.HOUR_IN_MILLIS; in detectAnomalies()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/
DAnomalyDetectionPolicyTest.java90 assertThat(anomalyDetectionPolicy.wakeLockThreshold).isEqualTo(DateUtils.HOUR_IN_MILLIS); in testInit_defaultValues()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadIdleService.java91 .setPeriodic(12 * DateUtils.HOUR_IN_MILLIS) in scheduleIdlePass()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DDaydreamFragment.java60 private static final int DEFAULT_SLEEP_TIME_MS = (int) (3 * DateUtils.HOUR_IN_MILLIS);
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java127 + 4 * DateUtils.HOUR_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerSetupView.java311 + hours * DateUtils.HOUR_IN_MILLIS; in getTimeInMillis()

12