/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Dates.java | 37 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/ |
D | TimerTextController.java | 21 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()
|
D | StopwatchTextController.java | 24 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()
|
D | ClockFragment.java | 493 final int hoursDifferent = (int) (offsetDelta / DateUtils.HOUR_IN_MILLIS); in bind() 495 final boolean displayMinutes = offsetDelta % DateUtils.HOUR_IN_MILLIS != 0; in bind()
|
D | Utils.java | 436 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/ |
D | PeriodicCallbackModel.java | 35 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/ |
D | AlarmSchedulerTest.java | 176 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()
|
D | AlertServiceTest.java | 641 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/ |
D | LapsAdapter.java | 44 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/ |
D | TimerStringFormatter.java | 25 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 36 int roundedHours = (int) (remainingTime / HOUR_IN_MILLIS); in formatTimeRemaining()
|
D | Timer.java | 25 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 77 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS;
|
D | SettingsDAO.java | 39 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/ |
D | ProgramGuide.java | 80 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/ |
D | CalendarProvider2Test.java | 1841 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/ |
D | WakeLockAnomalyDetectorTest.java | 61 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;
|
D | BluetoothScanAnomalyDetectorTest.java | 62 private static final long ANOMALY_BLUETOOTH_SCANNING_TIME = DateUtils.HOUR_IN_MILLIS;
|
D | WakeupAlarmAnomalyDetectorTest.java | 71 1 * DateUtils.HOUR_IN_MILLIS + 10 * DateUtils.MINUTE_IN_MILLIS;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/ |
D | AnomalyDetectionPolicy.java | 146 DateUtils.HOUR_IN_MILLIS); in AnomalyDetectionPolicy()
|
/packages/apps/Car/Stream/src/com/android/car/stream/telecom/ |
D | RecentCallStreamProducer.java | 40 private static final long RECENT_CALL_TIME_RANGE = 6 * DateUtils.HOUR_IN_MILLIS;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/checker/ |
D | WakeupAlarmAnomalyDetector.java | 77 / (double) DateUtils.HOUR_IN_MILLIS; in detectAnomalies()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/ |
D | AnomalyDetectionPolicyTest.java | 90 assertThat(anomalyDetectionPolicy.wakeLockThreshold).isEqualTo(DateUtils.HOUR_IN_MILLIS); in testInit_defaultValues()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadIdleService.java | 91 .setPeriodic(12 * DateUtils.HOUR_IN_MILLIS) in scheduleIdlePass()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/ |
D | DaydreamFragment.java | 60 private static final int DEFAULT_SLEEP_TIME_MS = (int) (3 * DateUtils.HOUR_IN_MILLIS);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | UtilsTest.java | 127 + 4 * DateUtils.HOUR_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerSetupView.java | 311 + hours * DateUtils.HOUR_IN_MILLIS; in getTimeInMillis()
|