Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java30 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/
DFileUtilsTest.java36 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/
DNetworkStatsServiceTest.java62 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 …]
DNetworkStatsCollectionTest.java28 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/
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/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.kt34 var hours = (variableRemainingTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
35 var remainder = (variableRemainingTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
DStopwatchTextController.kt40 val hours = (accumulatedTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
41 var remainder = (accumulatedTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
DClockFragment.kt422 val hoursDifferent = (offsetDelta / DateUtils.HOUR_IN_MILLIS).toInt() in bind()
424 val displayMinutes = offsetDelta % DateUtils.HOUR_IN_MILLIS != 0L in bind()
DUtils.kt423 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/
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.kt20 import android.text.format.DateUtils.HOUR_IN_MILLIS
38 var roundedHours = (remainingTime / HOUR_IN_MILLIS).toInt() in formatTimeRemaining()
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
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiPowerMetrics.java56 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
68 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.kt191 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/
DEnergySaverFragment.java50 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/
DBatteryTipDialogFragmentTest.java66 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/
DCellBroadcastHandlerTest.java111 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/
DTimerSetupViewTest.java43 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/
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/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;
/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batterytip/
DAppInfoTest.java42 private static final long SCREEN_TIME_MS = DateUtils.HOUR_IN_MILLIS;
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1964 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()

12