Home
last modified time | relevance | path

Searched refs:MINUTE_IN_MILLIS (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java102 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS; field in QuotaControllerTest
103 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS;
340 now - 10 * MINUTE_IN_MILLIS, 9 * MINUTE_IN_MILLIS, 3); in testDeleteObsoleteSessionsLocked()
342 now - (70 * MINUTE_IN_MILLIS), 9 * MINUTE_IN_MILLIS, 1); in testDeleteObsoleteSessionsLocked()
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.java67 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;
174 createJob().setMinimumLatency(30 * MINUTE_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayInOrder()
176 createJob().setMinimumLatency(5 * MINUTE_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayInOrder()
182 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in runTestMaybeStartTrackingJobLocked_DelayInOrder()
199 createJob().setMinimumLatency(30 * MINUTE_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
201 createJob().setMinimumLatency(5 * MINUTE_IN_MILLIS)); in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
214 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
237 createJob().setMinimumLatency(30 * MINUTE_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
239 createJob().setMinimumLatency(5 * MINUTE_IN_MILLIS)); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
[all …]
DStateControllerTest.java59 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/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
187 createJobInfo().setPeriodic(15 * MINUTE_IN_MILLIS)); in testGetRescheduleJobForPeriodic_minPeriod()
188 final long nextWindowStartTime = now + 15 * MINUTE_IN_MILLIS; in testGetRescheduleJobForPeriodic_minPeriod()
189 final long nextWindowEndTime = now + 30 * MINUTE_IN_MILLIS; in testGetRescheduleJobForPeriodic_minPeriod()
245 advanceElapsedClock(10 * MINUTE_IN_MILLIS); // now + 10 minutes in testGetRescheduleJobForPeriodic_insideWindow()
251 advanceElapsedClock(20 * MINUTE_IN_MILLIS); // now + 30 minutes in testGetRescheduleJobForPeriodic_insideWindow()
257 advanceElapsedClock(25 * MINUTE_IN_MILLIS); // now + 55 minutes in testGetRescheduleJobForPeriodic_insideWindow()
261 assertEquals(nextWindowStartTime + 5 * MINUTE_IN_MILLIS, in testGetRescheduleJobForPeriodic_insideWindow()
265 advanceElapsedClock(4 * MINUTE_IN_MILLIS); // now + 59 minutes in testGetRescheduleJobForPeriodic_insideWindow()
269 assertEquals(nextWindowStartTime + 9 * MINUTE_IN_MILLIS, in testGetRescheduleJobForPeriodic_insideWindow()
[all …]
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java31 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/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java75 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS; field in CountQuotaTrackerTest
76 private static final long HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS;
258 now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS)); in testAppRemoval()
262 expected1.addLast(now - 10 * MINUTE_IN_MILLIS); in testAppRemoval()
264 expected2.addLast(now - 70 * MINUTE_IN_MILLIS); in testAppRemoval()
265 logEventAt(TEST_USER_ID, "com.android.test.stay", "tag1", now - 10 * MINUTE_IN_MILLIS); in testAppRemoval()
266 logEventAt(TEST_USER_ID, "com.android.test.stay", "tag2", now - 70 * MINUTE_IN_MILLIS); in testAppRemoval()
289 now - (2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS)); in testUserRemoval()
293 expected.addLast(now - (70 * MINUTE_IN_MILLIS)); in testUserRemoval()
294 expected.addLast(now - (10 * MINUTE_IN_MILLIS)); in testUserRemoval()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java46 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/
DNetworkStatsCollectionTest.java28 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 …]
DNetworkStatsObserversTest.java29 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
303 xtSnapshot = new NetworkStats(TEST_START + MINUTE_IN_MILLIS, 1 /* initialSize */) in testUpdateStats_deviceAccess_notifies()
335 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_defaultAccess_notifiesSameUid()
368 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify()
400 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_userAccess_usageSameUser_notifies()
433 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DConversationStoreTest.java198 3L * DateUtils.MINUTE_IN_MILLIS); in testDataPersistenceAndRestoration()
205 mMockScheduledExecutorService.fastForwardTime(3L * DateUtils.MINUTE_IN_MILLIS); in testDataPersistenceAndRestoration()
229 mMockScheduledExecutorService.fastForwardTime(3L * DateUtils.MINUTE_IN_MILLIS); in testDelayedDiskWrites()
235 mMockScheduledExecutorService.fastForwardTime(DateUtils.MINUTE_IN_MILLIS); in testDelayedDiskWrites()
244 mMockScheduledExecutorService.fastForwardTime(3L * DateUtils.MINUTE_IN_MILLIS); in testDelayedDiskWrites()
248 mMockScheduledExecutorService.fastForwardTime(3L * DateUtils.MINUTE_IN_MILLIS); in testDelayedDiskWrites()
/frameworks/base/core/java/android/widget/
DDateTimeView.java21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
256 if (duration < MINUTE_IN_MILLIS) {
258 mUpdateTimeMillis = mTimeMillis + MINUTE_IN_MILLIS + 1;
261 count = (int)(duration / MINUTE_IN_MILLIS);
267 millisIncrease = MINUTE_IN_MILLIS;
365 if (duration < MINUTE_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal()
368 count = (int)(duration / MINUTE_IN_MILLIS); in onInitializeAccessibilityNodeInfoInternal()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java21 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/
DDateUtils.java57 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; field in DateUtils
58 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60;
268 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS); in getRelativeTimeSpanString()
410 } else if (millis >= MINUTE_IN_MILLIS) { in formatDuration()
411 final int minutes = (int) ((millis + 30000) / MINUTE_IN_MILLIS); in formatDuration()
/frameworks/base/services/core/java/com/android/server/notification/
DCountdownConditionProvider.java126 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS); in onSubscribe()
171 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS); in tryParseDescription()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DLocaleTracker.java19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
111 private static final long CELL_INFO_MAX_DELAY_MS = 10 * MINUTE_IN_MILLIS;
115 private static final long CELL_INFO_PERIODIC_POLLING_DELAY_MS = 10 * MINUTE_IN_MILLIS;
122 private static final long SERVICE_OPERATOR_LOST_DELAY_MS = 10 * MINUTE_IN_MILLIS;
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DGarbageMonitor.java99 15 * DateUtils.MINUTE_IN_MILLIS; // 15 min
100 private static final long HEAP_TRACK_INTERVAL = 1 * DateUtils.MINUTE_IN_MILLIS; // 1 min
264 (float) GARBAGE_INSPECTION_INTERVAL / DateUtils.MINUTE_IN_MILLIS)); in dump()
265 final float htiMins = HEAP_TRACK_INTERVAL / DateUtils.MINUTE_IN_MILLIS; in dump()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneInfo.java130 final long nowMinute = System.currentTimeMillis() / DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName()
131 final long now = nowMinute * DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName()
DTimeZonePickerUtils.java133 final int min = (p / (int) DateUtils.MINUTE_IN_MILLIS) % 60; in appendGmtOffset()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DMetricsCollector.java20 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
76 DBG ? 2L * SECOND_IN_MILLIS : 5L * MINUTE_IN_MILLIS;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java20 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
438 private static final long MAX_PERIOD_MS = 24 * 60 * MINUTE_IN_MILLIS;
1121 if (nextCleanupElapsed - mNextCleanupTimeElapsed <= 10 * MINUTE_IN_MILLIS) { in maybeScheduleCleanupAlarmLocked()
1124 nextCleanupElapsed += 10 * MINUTE_IN_MILLIS; in maybeScheduleCleanupAlarmLocked()
1323 inQuotaTimeElapsed = nowElapsed + 5 * MINUTE_IN_MILLIS; in maybeScheduleStartAlarmLocked()
1947 || nextTriggerTimeElapsed < mTriggerTimeElapsed - 3 * MINUTE_IN_MILLIS in setNextAlarmLocked()
2078 MINUTE_IN_MILLIS;
2100 private static final long DEFAULT_MIN_QUOTA_CHECK_DELAY_MS = MINUTE_IN_MILLIS;
2249 private static final long MIN_MAX_EXECUTION_TIME_MS = 60 * MINUTE_IN_MILLIS;
2349 Math.max(MINUTE_IN_MILLIS, ALLOWED_TIME_PER_PERIOD_MS)); in updateConstants()
[all …]
/frameworks/base/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java425 stats.getLoggingDurationMs() / ((double) DateUtils.MINUTE_IN_MILLIS)).append( in dumpGnssMetricsAsText()
432 t[1] / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n"); in dumpGnssMetricsAsText()
436 t[0] / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n"); in dumpGnssMetricsAsText()
/frameworks/base/services/core/java/com/android/server/utils/quota/
DQuotaTracker.java19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
150 static final long MAX_WINDOW_SIZE_MS = 30 * 24 * 60 * MINUTE_IN_MILLIS; // 1 month
547 || nextTriggerTimeElapsed < mTriggerTimeElapsed - 3 * MINUTE_IN_MILLIS in setNextAlarmLocked()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java62 private static final long TIME_FOREGROUND_ACTIVITY = 100 * DateUtils.MINUTE_IN_MILLIS * 1000;
63 private static final long TIME_STATE_FOREGROUND_MS = 10 * DateUtils.MINUTE_IN_MILLIS;
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DRemoteBugreportUtils.java55 static final long REMOTE_BUGREPORT_TIMEOUT_MILLIS = 10 * DateUtils.MINUTE_IN_MILLIS;
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DTokenBucketTest.java58 drain(new TokenBucket((int) DateUtils.MINUTE_IN_MILLIS, 50), 50); in testInitialCapacity()

123