/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobSchedulerServiceTest.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 173 createJobInfo().setPeriodic(15 * MINUTE_IN_MILLIS)); in testGetRescheduleJobForPeriodic_minPeriod() 174 final long nextWindowStartTime = now + 15 * MINUTE_IN_MILLIS; in testGetRescheduleJobForPeriodic_minPeriod() 175 final long nextWindowEndTime = now + 30 * MINUTE_IN_MILLIS; in testGetRescheduleJobForPeriodic_minPeriod() 231 advanceElapsedClock(10 * MINUTE_IN_MILLIS); // now + 10 minutes in testGetRescheduleJobForPeriodic_insideWindow() 237 advanceElapsedClock(20 * MINUTE_IN_MILLIS); // now + 30 minutes in testGetRescheduleJobForPeriodic_insideWindow() 243 advanceElapsedClock(25 * MINUTE_IN_MILLIS); // now + 55 minutes in testGetRescheduleJobForPeriodic_insideWindow() 247 assertEquals(nextWindowStartTime + 5 * MINUTE_IN_MILLIS, in testGetRescheduleJobForPeriodic_insideWindow() 251 advanceElapsedClock(4 * MINUTE_IN_MILLIS); // now + 59 minutes in testGetRescheduleJobForPeriodic_insideWindow() 255 assertEquals(nextWindowStartTime + 9 * MINUTE_IN_MILLIS, in testGetRescheduleJobForPeriodic_insideWindow() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 99 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS; field in QuotaControllerTest 100 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; 336 now - 10 * MINUTE_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3); in testDeleteObsoleteSessionsLocked() 338 now - (70 * MINUTE_IN_MILLIS), 9 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked() 340 now - (3 * HOUR_IN_MILLIS + 10 * MINUTE_IN_MILLIS), 9 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked() 343 now - (24 * HOUR_IN_MILLIS + 2 * MINUTE_IN_MILLIS), 7 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked() 346 now - (25 * HOUR_IN_MILLIS), 5 * MINUTE_IN_MILLIS, 4); in testDeleteObsoleteSessionsLocked() 368 createTimingSession(now - (6 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5)); in testOnAppRemovedLocked() 371 now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS), 6 * MINUTE_IN_MILLIS, 5)); in testOnAppRemovedLocked() 373 createTimingSession(now - (HOUR_IN_MILLIS), MINUTE_IN_MILLIS, 1)); in testOnAppRemovedLocked() [all …]
|
D | TimeControllerTest.java | 67 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS; field in TimeControllerTest 68 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS; 185 createJob().setMinimumLatency(30 * MINUTE_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayInOrder() 187 createJob().setMinimumLatency(5 * MINUTE_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayInOrder() 193 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in runTestMaybeStartTrackingJobLocked_DelayInOrder() 212 createJob().setMinimumLatency(30 * MINUTE_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady() 214 createJob().setMinimumLatency(5 * MINUTE_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady() 227 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady() 261 createJob().setMinimumLatency(30 * MINUTE_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() 263 createJob().setMinimumLatency(5 * MINUTE_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() [all …]
|
D | StateControllerTest.java | 59 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS; field in StateControllerTest 60 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS;
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 31 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 133 final long BUCKET_SIZE = 15 * MINUTE_IN_MILLIS; in testRecordTouchingBuckets() 138 final long recordStart = (TEST_START + BUCKET_SIZE) - MINUTE_IN_MILLIS; in testRecordTouchingBuckets() 139 final long recordEnd = (TEST_START + (BUCKET_SIZE * 2)) + (MINUTE_IN_MILLIS * 4); in testRecordTouchingBuckets() 145 assertValues(stats, 0, MINUTE_IN_MILLIS, 50L, 100L, 250L, 500L, 5L); in testRecordTouchingBuckets() 147 assertValues(stats, 1, 15 * MINUTE_IN_MILLIS, 750L, 1500L, 3750L, 7500L, 75L); in testRecordTouchingBuckets() 149 assertValues(stats, 2, 4 * MINUTE_IN_MILLIS, 200L, 400L, 1000L, 2000L, 20L); in testRecordTouchingBuckets() 231 stats1.recordData(TEST_START, TEST_START + MINUTE_IN_MILLIS * 60, 600L, 600L); in testRecordEntireOverlapVaryingBuckets() 233 final long TEST_START_2 = TEST_START + MINUTE_IN_MILLIS; in testRecordEntireOverlapVaryingBuckets() 234 final NetworkStatsHistory stats2 = new NetworkStatsHistory(MINUTE_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | StringUtilTest.java | 46 final double testMillis = 5 * DateUtils.MINUTE_IN_MILLIS + 30 * DateUtils.SECOND_IN_MILLIS; in testFormatElapsedTime_WithSeconds_ShowSeconds() 55 final double testMillis = 5 * DateUtils.MINUTE_IN_MILLIS + 30 * DateUtils.SECOND_IN_MILLIS; in testFormatElapsedTime_NoSeconds_DoNotShowSeconds() 65 + 4 * DateUtils.HOUR_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly() 74 final double testMillis = 2 * DateUtils.DAY_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_ZeroFieldsInTheMiddleDontShow() 101 final double testMillis = 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan() 153 final double testMillis = 2 * DateUtils.MINUTE_IN_MILLIS; in testFormatRelativeTime_TwoMinutes_withSeconds() 162 final double testMillis = 119 * DateUtils.MINUTE_IN_MILLIS; in testFormatRelativeTime_LessThanTwoHours_withSeconds()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 28 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 117 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyNetwork() 145 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUid() 173 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUidTags() 202 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets() 203 90 * MINUTE_IN_MILLIS, entry); in testStartEndAtomicBuckets() 224 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels() 230 60 * MINUTE_IN_MILLIS, entry); in testAccessLevels() 235 60 * MINUTE_IN_MILLIS, entry); in testAccessLevels() 240 60 * MINUTE_IN_MILLIS, entry); in testAccessLevels() [all …]
|
D | NetworkStatsObserversTest.java | 29 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 311 xtSnapshot = new NetworkStats(TEST_START + MINUTE_IN_MILLIS, 1 /* initialSize */) in testUpdateStats_deviceAccess_notifies() 345 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_defaultAccess_notifiesSameUid() 380 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 414 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_userAccess_usageSameUser_notifies() 449 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
|
/frameworks/base/core/java/android/widget/ |
D | DateTimeView.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 258 if (duration < MINUTE_IN_MILLIS) { 260 mUpdateTimeMillis = mTimeMillis + MINUTE_IN_MILLIS + 1; 263 count = (int)(duration / MINUTE_IN_MILLIS); 269 millisIncrease = MINUTE_IN_MILLIS; 370 if (duration < MINUTE_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal() 373 count = (int)(duration / MINUTE_IN_MILLIS); in onInitializeAccessibilityNodeInfoInternal()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FileRotatorTest.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 126 currentTime += MINUTE_IN_MILLIS; in testRotate() 146 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS); in testDelete() 154 currentTime += MINUTE_IN_MILLIS + SECOND_IN_MILLIS; in testDelete() 164 currentTime = TEST_TIME + DAY_IN_MILLIS + (2 * MINUTE_IN_MILLIS); in testDelete() 176 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS); in testThrowRestoresBackup()
|
/frameworks/base/core/java/android/text/format/ |
D | DateUtils.java | 54 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; field in DateUtils 55 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 261 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS); in getRelativeTimeSpanString() 403 } else if (millis >= MINUTE_IN_MILLIS) { in formatDuration() 404 final int minutes = (int) ((millis + 30000) / MINUTE_IN_MILLIS); in formatDuration()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | CountdownConditionProvider.java | 126 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS); in onSubscribe() 171 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS); in tryParseDescription()
|
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/ |
D | GnssMetrics.java | 264 + stats.getLoggingDurationMs() / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n"); in dumpGnssMetricsAsText() 269 " dB-Hz (min): ").append(t[1] / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n"); in dumpGnssMetricsAsText() 272 " dB-Hz (min): ").append(t[0] / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n"); in dumpGnssMetricsAsText()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | LocaleTracker.java | 19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 82 private static final long CELL_INFO_MAX_DELAY_MS = 10 * MINUTE_IN_MILLIS; 86 private static final long CELL_INFO_PERIODIC_POLLING_DELAY_MS = 10 * MINUTE_IN_MILLIS;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | GarbageMonitor.java | 84 15 * DateUtils.MINUTE_IN_MILLIS; // 15 min 85 private static final long HEAP_TRACK_INTERVAL = 1 * DateUtils.MINUTE_IN_MILLIS; // 1 min 252 (float) GARBAGE_INSPECTION_INTERVAL / DateUtils.MINUTE_IN_MILLIS)); in dump() 253 final float htiMins = HEAP_TRACK_INTERVAL / DateUtils.MINUTE_IN_MILLIS; in dump()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneInfo.java | 130 final long nowMinute = System.currentTimeMillis() / DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName() 131 final long now = nowMinute * DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName()
|
D | TimeZonePickerUtils.java | 133 final int min = (p / (int) DateUtils.MINUTE_IN_MILLIS) % 60; in appendGmtOffset()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | RemoteBugreportUtils.java | 51 static final long REMOTE_BUGREPORT_TIMEOUT_MILLIS = 10 * DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsHelperTest.java | 61 private static final long TIME_FOREGROUND_ACTIVITY = 100 * DateUtils.MINUTE_IN_MILLIS * 1000; 62 private static final long TIME_STATE_FOREGROUND_MS = 10 * DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | TokenBucketTest.java | 58 drain(new TokenBucket((int) DateUtils.MINUTE_IN_MILLIS, 50), 50); in testInitialCapacity()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | QuotaController.java | 20 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 526 private static final long MAX_PERIOD_MS = 24 * 60 * MINUTE_IN_MILLIS; 1219 if (nextCleanupElapsed - mNextCleanupTimeElapsed <= 10 * MINUTE_IN_MILLIS) { in maybeScheduleCleanupAlarmLocked() 1222 nextCleanupElapsed += 10 * MINUTE_IN_MILLIS; in maybeScheduleCleanupAlarmLocked() 1422 || inQuotaTimeElapsed < alarmListener.getTriggerTimeElapsed() - 3 * MINUTE_IN_MILLIS in maybeScheduleStartAlarmLocked() 2037 10 * MINUTE_IN_MILLIS; 2183 private static final long MIN_MAX_EXECUTION_TIME_MS = 60 * MINUTE_IN_MILLIS; 2275 Math.max(MINUTE_IN_MILLIS, ALLOWED_TIME_PER_PERIOD_MS)); in updateConstants() 2282 Math.min(5 * MINUTE_IN_MILLIS, IN_QUOTA_BUFFER_MS)); in updateConstants() 2377 long newSessionCoalescingDurationMs = Math.min(15 * MINUTE_IN_MILLIS, in updateConstants()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WakeupLock.java | 44 static final long MAX_LOCK_TIME_MILLIS = 10 * DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | WifiUtilsTest.java | 57 20 * DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | LingerMonitor.java | 57 public static final long DEFAULT_NOTIFICATION_RATE_LIMIT_MILLIS = DateUtils.MINUTE_IN_MILLIS;
|
D | IpConnectivityMetrics.java | 354 map.put(ApfProgramEvent.class, new TokenBucket((int)DateUtils.MINUTE_IN_MILLIS, 50)); in makeRateLimitingBuckets()
|