/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 30 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 108 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordSingleBucket() 121 final long bucketDuration = HOUR_IN_MILLIS; in testRecordEqualBuckets() 130 assertValues(stats, 0, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); in testRecordEqualBuckets() 131 assertValues(stats, 1, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); in testRecordEqualBuckets() 157 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordGapBuckets() 175 final long middleEnd = middleStart + (HOUR_IN_MILLIS * 2); in testRecordGapBuckets() 182 assertValues(stats, 1, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); in testRecordGapBuckets() 183 assertValues(stats, 2, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); in testRecordGapBuckets() 189 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordOverlapBuckets() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | FileUtilsTest.java | 36 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 173 touch("file1", HOUR_IN_MILLIS); in testDeleteOlderTypical() 174 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 175 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 176 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 177 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 184 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture() 185 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture() 190 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture() 191 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 62 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 356 incrementWifiStats(HOUR_IN_MILLIS, TEST_IFACE, 1024L, 1L, 2048L, 2L); 385 incrementWifiStats(HOUR_IN_MILLIS, TEST_IFACE, 1024L, 1L, 2048L, 2L); 423 incrementCurrentTime(HOUR_IN_MILLIS); 484 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS); 493 incrementCurrentTime(2 * HOUR_IN_MILLIS); 494 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS); 503 assertEquals(HOUR_IN_MILLIS, history.getBucketDuration()); 534 incrementCurrentTime(HOUR_IN_MILLIS); 555 incrementCurrentTime(HOUR_IN_MILLIS); [all …]
|
D | NetworkStatsCollectionTest.java | 28 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 201 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); in testStartEndAtomicBuckets() 211 assertEquals(2 * HOUR_IN_MILLIS, collection.getEndMillis()); in testStartEndAtomicBuckets() 216 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); in testAccessLevels() 347 history = getHistory(collection, plan, TIME_B - HOUR_IN_MILLIS, in testAugmentPlan() 348 TIME_B + HOUR_IN_MILLIS); i = 0; in testAugmentPlan() 402 history = getHistory(collection, plan, TIME_B - HOUR_IN_MILLIS, in testAugmentPlan() 403 TIME_B + HOUR_IN_MILLIS); i = 0; in testAugmentPlan() 456 history = getHistory(collection, plan, TIME_B - HOUR_IN_MILLIS, in testAugmentPlan() 457 TIME_B + HOUR_IN_MILLIS); i = 0; in testAugmentPlan() [all …]
|
/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/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.kt | 34 var hours = (variableRemainingTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString() 35 var remainder = (variableRemainingTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
|
D | StopwatchTextController.kt | 40 val hours = (accumulatedTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString() 41 var remainder = (accumulatedTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
|
D | ClockFragment.kt | 422 val hoursDifferent = (offsetDelta / DateUtils.HOUR_IN_MILLIS).toInt() in bind() 424 val displayMinutes = offsetDelta % DateUtils.HOUR_IN_MILLIS != 0L in bind()
|
D | Utils.kt | 423 val hour = gmtOffset / DateUtils.HOUR_IN_MILLIS in getGMTHourOffset() 424 val min = abs(gmtOffset) % DateUtils.HOUR_IN_MILLIS / DateUtils.MINUTE_IN_MILLIS in getGMTHourOffset()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | LapsAdapter.kt | 284 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/ |
D | TimerStringFormatter.kt | 20 import android.text.format.DateUtils.HOUR_IN_MILLIS 38 var roundedHours = (remainingTime / HOUR_IN_MILLIS).toInt() in formatTimeRemaining()
|
D | Timer.kt | 20 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>()
|
D | SettingsDAO.kt | 25 import android.text.format.DateUtils.HOUR_IN_MILLIS 368 val hour: Long = absoluteGMTOffset / HOUR_IN_MILLIS
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiPowerMetrics.java | 56 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto() 68 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModel.kt | 191 val lastHour = periodStart - periodStart % DateUtils.HOUR_IN_MILLIS in getDelay() 192 val nextHour = lastHour + DateUtils.HOUR_IN_MILLIS in getDelay()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/ |
D | EnergySaverFragment.java | 50 private static final int DEFAULT_SLEEP_TIME_MS = (int) (24 * DateUtils.HOUR_IN_MILLIS); 51 private static final int WARNING_THRESHOLD_SLEEP_TIME_MS = (int) (4 * DateUtils.HOUR_IN_MILLIS);
|
/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;
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CellBroadcastHandlerTest.java | 111 System.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS * 2, in query() 112 System.currentTimeMillis() - DateUtils.HOUR_IN_MILLIS * 2, in query()
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerSetupViewTest.java | 43 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 269 hours * HOUR_IN_MILLIS + minutes * MINUTE_IN_MILLIS + seconds * SECOND_IN_MILLIS; in assertHasValue()
|
/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/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batterytip/ |
D | AppInfoTest.java | 42 private static final long SCREEN_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()
|