/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | FileUtilsTest.java | 36 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 134 touch("file1", HOUR_IN_MILLIS); in testDeleteOlderTypical() 135 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 136 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 137 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 138 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 145 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture() 146 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture() 151 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture() 152 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture() [all …]
|
/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/DocumentsUI/src/com/android/documentsui/util/ |
D | FormatUtils.java | 46 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/ |
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/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/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipDialogFragmentTest.java | 66 private static final long SCREEN_TIME_MS = DateUtils.HOUR_IN_MILLIS; 67 private static final long AVERAGE_TIME_MS = DateUtils.HOUR_IN_MILLIS;
|
D | AppInfoTest.java | 41 private static final long SCREEN_TIME_MS = DateUtils.HOUR_IN_MILLIS;
|
D | BatteryTipPolicyTest.java | 100 assertThat(batteryTipPolicy.highUsagePeriodMs).isEqualTo(2 * DateUtils.HOUR_IN_MILLIS); in testInit_defaultValues()
|
D | BatteryTipPreferenceControllerTest.java | 66 private static final long AVERAGE_TIME_MS = DateUtils.HOUR_IN_MILLIS;
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CellBroadcastHandlerTest.java | 106 System.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS * 2, in query() 107 System.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS * 2, in query()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramGuide.java | 88 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/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | SummaryDetectorTest.java | 39 private static final long AVERAGE_TIME_MS = DateUtils.HOUR_IN_MILLIS;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | SummaryTipTest.java | 40 private static final long AVERAGE_TIME_MS = DateUtils.HOUR_IN_MILLIS;
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 1964 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery() 1976 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery() 1988 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery() 2000 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery() 2012 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery() 2024 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery() 2036 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery() 2048 startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceSearchQuery() 2770 startMs - DateUtils.YEAR_IN_MILLIS, startMs + DateUtils.HOUR_IN_MILLIS, in testInstanceQuery() 2780 startMs - DateUtils.YEAR_IN_MILLIS, startMs + 2 * DateUtils.HOUR_IN_MILLIS, in testInstanceQuery()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/ |
D | EnergySaverFragment.java | 47 private static final int DEFAULT_SLEEP_TIME_MS = (int) (24 * DateUtils.HOUR_IN_MILLIS);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadIdleService.java | 91 .setPeriodic(12 * DateUtils.HOUR_IN_MILLIS) in scheduleIdlePass()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerSetupView.java | 311 + hours * DateUtils.HOUR_IN_MILLIS; in getTimeInMillis()
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | ModernMediaScanner.java | 47 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 1227 if (Math.abs(offset) < 24 * HOUR_IN_MILLIS) { in parseOptionalDateTaken() 1234 if (Math.abs(offset) < 24 * HOUR_IN_MILLIS) { in parseOptionalDateTaken()
|