/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/ |
D | CountQuotaTrackerTest.java | 76 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/core/tests/coretests/src/android/text/format/ |
D | RelativeDateTimeFormatterTest.java | 25 import static android.text.format.RelativeDateTimeFormatter.HOUR_IN_MILLIS; 83 final long TWO_HOURS_IN_MS = 2 * HOUR_IN_MILLIS; in test_getRelativeTimeSpanStringCTS() 181 test_getRelativeTimeSpanString_helper(0 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "0 hours ago", in test_getRelativeTimeSpanString() 183 test_getRelativeTimeSpanString_helper(1 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "1 hour ago", in test_getRelativeTimeSpanString() 185 test_getRelativeTimeSpanString_helper(2 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "2 hours ago", in test_getRelativeTimeSpanString() 187 test_getRelativeTimeSpanString_helper(5 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "5 hours ago", in test_getRelativeTimeSpanString() 189 test_getRelativeTimeSpanString_helper(20 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "20 hours ago", in test_getRelativeTimeSpanString() 193 test_getRelativeTimeSpanString_helper(20 * HOUR_IN_MILLIS, DAY_IN_MILLIS, "Yesterday", in test_getRelativeTimeSpanString() 195 test_getRelativeTimeSpanString_helper(24 * HOUR_IN_MILLIS, DAY_IN_MILLIS, "Yesterday", in test_getRelativeTimeSpanString() 216 test_getRelativeTimeSpanString_helper(30 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, "Yesterday", in test_getRelativeTimeSpanString() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobSchedulerServiceTest.java | 20 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 264 createJobInfo().setPeriodic(HOUR_IN_MILLIS)); in testGetRescheduleJobForPeriodic_insideWindow() 265 final long nextWindowStartTime = now + HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_insideWindow() 266 final long nextWindowEndTime = now + 2 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_insideWindow() 334 createJobInfo().setPeriodic(HOUR_IN_MILLIS)); in testGetRescheduleJobForPeriodic_closeToEndOfWindow() 336 nextWindowStartTime = now + HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_closeToEndOfWindow() 337 nextWindowEndTime = now + 2 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_closeToEndOfWindow() 364 createJobInfo().setPeriodic(6 * HOUR_IN_MILLIS)); in testGetRescheduleJobForPeriodic_closeToEndOfWindow() 366 nextWindowStartTime = now + 6 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_closeToEndOfWindow() 367 nextWindowEndTime = now + 12 * HOUR_IN_MILLIS; in testGetRescheduleJobForPeriodic_closeToEndOfWindow() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 122 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; field in QuotaControllerTest 218 24 * HOUR_IN_MILLIS); in setUp() 221 24 * HOUR_IN_MILLIS); in setUp() 224 24 * HOUR_IN_MILLIS); in setUp() 463 now - (3 * HOUR_IN_MILLIS + 10 * MINUTE_IN_MILLIS), 9 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked() 466 now - (24 * HOUR_IN_MILLIS + 2 * MINUTE_IN_MILLIS), 7 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked() 469 now - (25 * HOUR_IN_MILLIS), 5 * MINUTE_IN_MILLIS, 4); in testDeleteObsoleteSessionsLocked() 500 createTimingSession(now - (6 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false); in testOnAppRemovedLocked() 503 now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 6 * MINUTE_IN_MILLIS, 5), in testOnAppRemovedLocked() 506 createTimingSession(now - (HOUR_IN_MILLIS), MINUTE_IN_MILLIS, 1), false); in testOnAppRemovedLocked() [all …]
|
D | TimeControllerTest.java | 69 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; field in TimeControllerTest 171 createJob().setMinimumLatency(HOUR_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayInOrder() 196 createJob().setMinimumLatency(HOUR_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady() 234 createJob().setMinimumLatency(HOUR_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() 244 .set(anyInt(), eq(now + HOUR_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), any(), in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() 261 createJob().setMinimumLatency(HOUR_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DelayReverseOrder_SomeNotReady() 278 .set(anyInt(), eq(now + HOUR_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), any(), in testMaybeStartTrackingJobLocked_DelayReverseOrder_SomeNotReady() 301 createJob().setOverrideDeadline(HOUR_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DeadlineInOrder() 326 createJob().setOverrideDeadline(HOUR_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DeadlineInOrder_SomeNotReady() 365 createJob().setOverrideDeadline(HOUR_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DeadlineReverseOrder() [all …]
|
D | StateControllerTest.java | 60 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; field in StateControllerTest
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 43 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 317 touch("file1", HOUR_IN_MILLIS); in testDeleteOlderTypical() 318 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 319 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 320 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 321 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 328 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture() 329 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture() 334 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture() 335 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | ChartDataLoader.java | 24 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | StringUtilTest.java | 65 + 4 * DateUtils.HOUR_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly() 75 + 4 * DateUtils.HOUR_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_TimeMoreThanOneDayAndCollapseTimeUnit_ShowCorrectly() 181 final double testMillis = 2 * DateUtils.HOUR_IN_MILLIS; in testFormatRelativeTime_TwoHours_withSeconds() 190 final double testMillis = 47 * DateUtils.HOUR_IN_MILLIS; in testFormatRelativeTime_LessThanTwoDays_withSeconds()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 32 private static final long HOUR_IN_MILLIS = 60 * 60 * 1000; field in Time 33 private static final long DAY_IN_MILLIS = 24 * HOUR_IN_MILLIS; 225 return isInDst() ? (ms + HOUR_IN_MILLIS) : (ms - HOUR_IN_MILLIS); in getDstAdjustedMillis() 227 return isInDst() ? (ms - HOUR_IN_MILLIS) : (ms + HOUR_IN_MILLIS); in getDstAdjustedMillis()
|
/frameworks/base/core/java/android/text/format/ |
D | RelativeDateTimeFormatter.java | 49 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; field in RelativeDateTimeFormatter 50 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; 151 } else if (duration < HOUR_IN_MILLIS && minResolution < HOUR_IN_MILLIS) { in getRelativeTimeSpanString() 158 count = (int) (duration / HOUR_IN_MILLIS); in getRelativeTimeSpanString()
|
D | DateUtils.java | 56 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; field in DateUtils 57 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; 418 if (millis >= HOUR_IN_MILLIS) { in formatDuration() 419 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); in formatDuration()
|
/frameworks/base/core/java/android/widget/ |
D | DateTimeView.java | 20 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 261 } else if (duration < HOUR_IN_MILLIS) { 270 count = (int)(duration / HOUR_IN_MILLIS); 276 millisIncrease = HOUR_IN_MILLIS; 368 } else if (duration < HOUR_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal() 378 count = (int)(duration / HOUR_IN_MILLIS); in onInitializeAccessibilityNodeInfoInternal()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | ModemPowerMetrics.java | 59 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto() 105 / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
|
D | MetricsCollector.java | 19 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 84 DBG ? 10L * SECOND_IN_MILLIS : 23L * HOUR_IN_MILLIS;
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FileRotatorTest.java | 20 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 234 mBasePath, PREFIX, HOUR_IN_MILLIS, YEAR_IN_MILLIS); in testQueryMatch() 331 mBasePath, PREFIX, HOUR_IN_MILLIS, DAY_IN_MILLIS); in testFuzz()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneInfo.java | 137 cacheKey = (int) (gmtOffset + 36 * DateUtils.HOUR_IN_MILLIS); in getGmtDisplayName() 139 cacheKey = (int) (gmtOffset - 36 * DateUtils.HOUR_IN_MILLIS); in getGmtDisplayName()
|
D | TimeZonePickerUtils.java | 131 sb.append(p / DateUtils.HOUR_IN_MILLIS); // Hour in appendGmtOffset()
|
D | TimeZoneData.java | 295 int index = OFFSET_ARRAY_OFFSET + (int) (offsetMillis / DateUtils.HOUR_IN_MILLIS); in indexByOffsets()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | TokenBucketTest.java | 59 drain(new TokenBucket((int) DateUtils.HOUR_IN_MILLIS, 10), 10); in testInitialCapacity()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssMetrics.java | 406 stats.getEnergyConsumedMaMs() / ((double) DateUtils.HOUR_IN_MILLIS)).append( in dumpGnssMetricsAsText() 525 stats.getEnergyConsumedMaMs() / ((double) DateUtils.HOUR_IN_MILLIS); in buildProto()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 69 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/ |
D | ConnectivityModuleConnector.java | 66 private static final long DEFAULT_MIN_CRASH_INTERVAL_MS = 6 * DateUtils.HOUR_IN_MILLIS;
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | QuotaController.java | 19 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 3112 4 * HOUR_IN_MILLIS; 3119 (int) (60.0 * DEFAULT_WINDOW_SIZE_WORKING_MS / HOUR_IN_MILLIS); 3121 (int) (25.0 * DEFAULT_WINDOW_SIZE_FREQUENT_MS / HOUR_IN_MILLIS); 3123 (int) (2.0 * DEFAULT_WINDOW_SIZE_RARE_MS / HOUR_IN_MILLIS); 3144 private static final long DEFAULT_EJ_WINDOW_SIZE_MS = 24 * HOUR_IN_MILLIS; 3594 mEJGracePeriodTempAllowlistMs = Math.min(HOUR_IN_MILLIS, 3602 mEJGracePeriodTopAppMs = Math.min(HOUR_IN_MILLIS, 3777 long newWindowSizeMs = Math.max(HOUR_IN_MILLIS,
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | EventHistoryImpl.java | 49 private static final long MAX_EVENTS_AGE = 4L * DateUtils.HOUR_IN_MILLIS;
|