Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java76 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; field in CountQuotaTrackerTest
153 advanceElapsedClock(24 * HOUR_IN_MILLIS); in setUp()
230 mQuotaTracker.setCountLimit(SINGLE_CATEGORY, 7, 2 * HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
234 logEventAt(now - 6 * HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
235 logEventAt(now - 5 * HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
236 logEventAt(now - 4 * HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
237 logEventAt(now - 3 * HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
238 logEventAt(now - 2 * HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
239 logEventAt(now - HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
243 expectedEvents.addLast(now - HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java20 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
237 createJobInfo().setPeriodic(HOUR_IN_MILLIS)); in testGetRescheduleJobForPeriodic_insideWindow()
238 final long nextWindowStartTime = now + HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_insideWindow()
239 final long nextWindowEndTime = now + 2 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_insideWindow()
307 createJobInfo().setPeriodic(HOUR_IN_MILLIS)); in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
309 nextWindowStartTime = now + HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
310 nextWindowEndTime = now + 2 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
337 createJobInfo().setPeriodic(6 * HOUR_IN_MILLIS)); in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
339 nextWindowStartTime = now + 6 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
340 nextWindowEndTime = now + 12 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
[all …]
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java30 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
105 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordSingleBucket()
118 final long bucketDuration = HOUR_IN_MILLIS; in testRecordEqualBuckets()
127 assertValues(stats, 0, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); in testRecordEqualBuckets()
128 assertValues(stats, 1, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); in testRecordEqualBuckets()
154 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordGapBuckets()
172 final long middleEnd = middleStart + (HOUR_IN_MILLIS * 2); in testRecordGapBuckets()
179 assertValues(stats, 1, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); in testRecordGapBuckets()
180 assertValues(stats, 2, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); in testRecordGapBuckets()
186 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordOverlapBuckets()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java103 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; field in QuotaControllerTest
172 24 * HOUR_IN_MILLIS); in setUp()
175 24 * HOUR_IN_MILLIS); in setUp()
178 24 * HOUR_IN_MILLIS); in setUp()
344 now - (3 * HOUR_IN_MILLIS + 10 * MINUTE_IN_MILLIS), 9 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked()
347 now - (24 * HOUR_IN_MILLIS + 2 * MINUTE_IN_MILLIS), 7 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked()
350 now - (25 * HOUR_IN_MILLIS), 5 * MINUTE_IN_MILLIS, 4); in testDeleteObsoleteSessionsLocked()
372 createTimingSession(now - (6 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5)); in testOnAppRemovedLocked()
375 now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 6 * MINUTE_IN_MILLIS, 5)); in testOnAppRemovedLocked()
377 createTimingSession(now - (HOUR_IN_MILLIS), MINUTE_IN_MILLIS, 1)); in testOnAppRemovedLocked()
[all …]
DTimeControllerTest.java68 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; field in TimeControllerTest
172 createJob().setMinimumLatency(HOUR_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayInOrder()
197 createJob().setMinimumLatency(HOUR_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
235 createJob().setMinimumLatency(HOUR_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
245 .set(anyInt(), eq(now + HOUR_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), any(), in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
262 createJob().setMinimumLatency(HOUR_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DelayReverseOrder_SomeNotReady()
279 .set(anyInt(), eq(now + HOUR_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), any(), in testMaybeStartTrackingJobLocked_DelayReverseOrder_SomeNotReady()
302 createJob().setOverrideDeadline(HOUR_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DeadlineInOrder()
327 createJob().setOverrideDeadline(HOUR_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DeadlineInOrder_SomeNotReady()
366 createJob().setOverrideDeadline(HOUR_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DeadlineReverseOrder()
[all …]
DStateControllerTest.java60 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; field in StateControllerTest
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java42 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
292 touch("file1", HOUR_IN_MILLIS); in testDeleteOlderTypical()
293 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
294 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
295 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
296 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
303 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture()
304 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture()
309 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture()
310 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DChartDataLoader.java24 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
110 data.detailDefault = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
111 data.detailForeground = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
112 data.detail = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java51 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
276 incrementCurrentTime(HOUR_IN_MILLIS);
319 incrementCurrentTime(HOUR_IN_MILLIS);
380 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS);
388 incrementCurrentTime(2 * HOUR_IN_MILLIS);
389 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS);
398 assertEquals(HOUR_IN_MILLIS, history.getBucketDuration());
428 incrementCurrentTime(HOUR_IN_MILLIS);
449 incrementCurrentTime(HOUR_IN_MILLIS);
464 incrementCurrentTime(HOUR_IN_MILLIS);
[all …]
DNetworkStatsCollectionTest.java27 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
197 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); in testStartEndAtomicBuckets()
207 assertEquals(2 * HOUR_IN_MILLIS, collection.getEndMillis()); in testStartEndAtomicBuckets()
212 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); in testAccessLevels()
343 history = getHistory(collection, plan, TIME_B - HOUR_IN_MILLIS, in testAugmentPlan()
344 TIME_B + HOUR_IN_MILLIS); i = 0; in testAugmentPlan()
398 history = getHistory(collection, plan, TIME_B - HOUR_IN_MILLIS, in testAugmentPlan()
399 TIME_B + HOUR_IN_MILLIS); i = 0; in testAugmentPlan()
452 history = getHistory(collection, plan, TIME_B - HOUR_IN_MILLIS, in testAugmentPlan()
453 TIME_B + HOUR_IN_MILLIS); i = 0; in testAugmentPlan()
[all …]
/frameworks/base/core/java/android/widget/
DDateTimeView.java20 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
260 } else if (duration < HOUR_IN_MILLIS) {
269 count = (int)(duration / HOUR_IN_MILLIS);
275 millisIncrease = HOUR_IN_MILLIS;
367 } else if (duration < HOUR_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal()
377 count = (int)(duration / HOUR_IN_MILLIS); in onInitializeAccessibilityNodeInfoInternal()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java65 + 4 * DateUtils.HOUR_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly()
171 final double testMillis = 2 * DateUtils.HOUR_IN_MILLIS; in testFormatRelativeTime_TwoHours_withSeconds()
180 final double testMillis = 47 * DateUtils.HOUR_IN_MILLIS; in testFormatRelativeTime_LessThanTwoDays_withSeconds()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiPowerMetrics.java56 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
68 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DModemPowerMetrics.java59 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
105 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
DMetricsCollector.java19 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
65 DBG ? 10L * SECOND_IN_MILLIS : 23L * HOUR_IN_MILLIS;
/frameworks/base/core/java/android/text/format/
DDateUtils.java58 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; field in DateUtils
59 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24;
407 if (millis >= HOUR_IN_MILLIS) { in formatDuration()
408 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); in formatDuration()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java20 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
237 mBasePath, PREFIX, HOUR_IN_MILLIS, YEAR_IN_MILLIS); in testQueryMatch()
334 mBasePath, PREFIX, HOUR_IN_MILLIS, DAY_IN_MILLIS); in testFuzz()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneInfo.java137 cacheKey = (int) (gmtOffset + 36 * DateUtils.HOUR_IN_MILLIS); in getGmtDisplayName()
139 cacheKey = (int) (gmtOffset - 36 * DateUtils.HOUR_IN_MILLIS); in getGmtDisplayName()
DTimeZonePickerUtils.java131 sb.append(p / DateUtils.HOUR_IN_MILLIS); // Hour in appendGmtOffset()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DTokenBucketTest.java59 drain(new TokenBucket((int) DateUtils.HOUR_IN_MILLIS, 10), 10); in testInitialCapacity()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiPowerMetricsTest.java122 / ((double) DateUtils.HOUR_IN_MILLIS); in testBuildProto()
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java439 stats.getEnergyConsumedMaMs() / ((double) DateUtils.HOUR_IN_MILLIS)).append( in dumpGnssMetricsAsText()
557 stats.getEnergyConsumedMaMs() / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java69 private static final long TEMPERATURE_LOGGING_INTERVAL = DateUtils.HOUR_IN_MILLIS;
71 static final long THREE_HOURS_IN_MILLIS = DateUtils.HOUR_IN_MILLIS * 3;
/frameworks/base/services/net/java/android/net/
DConnectivityModuleConnector.java66 private static final long DEFAULT_MIN_CRASH_INTERVAL_MS = 6 * DateUtils.HOUR_IN_MILLIS;
/frameworks/base/services/people/java/com/android/server/people/data/
DEventHistoryImpl.java49 private static final long MAX_EVENTS_AGE = 4L * DateUtils.HOUR_IN_MILLIS;

12