Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/text/format/
DRelativeDateTimeFormatterTest.java26 import static android.text.format.RelativeDateTimeFormatter.MINUTE_IN_MILLIS;
66 MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
69 MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
72 getRelativeTimeSpanString(en_US, tz, 0, MINUTE_IN_MILLIS, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
74 getRelativeTimeSpanString(en_US, tz, MINUTE_IN_MILLIS, 0, MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
77 getRelativeTimeSpanString(en_US, tz, baseTime - 42 * MINUTE_IN_MILLIS, baseTime, in test_getRelativeTimeSpanStringCTS()
78 MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
80 getRelativeTimeSpanString(en_US, tz, baseTime + 42 * MINUTE_IN_MILLIS, baseTime, in test_getRelativeTimeSpanStringCTS()
81 MINUTE_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
86 MINUTE_IN_MILLIS, FORMAT_NUMERIC_DATE)); in test_getRelativeTimeSpanStringCTS()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java21 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/
DQuotaControllerTest.java99 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 …]
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;
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 …]
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/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/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.java29 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
118 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyNetwork()
146 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUid()
174 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUidTags()
203 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets()
204 90 * MINUTE_IN_MILLIS, entry); in testStartEndAtomicBuckets()
225 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels()
231 60 * MINUTE_IN_MILLIS, entry); in testAccessLevels()
236 60 * MINUTE_IN_MILLIS, entry); in testAccessLevels()
241 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()
DNetworkStatsServiceTest.java53 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
424 expectSettings(0L, 30 * MINUTE_IN_MILLIS, WEEK_IN_MILLIS);
432 assertEquals(30 * MINUTE_IN_MILLIS, history.getBucketDuration());
643 incrementCurrentTime(MINUTE_IN_MILLIS);
656 incrementCurrentTime(MINUTE_IN_MILLIS);
676 incrementCurrentTime(MINUTE_IN_MILLIS);
1247 incrementCurrentTime(MINUTE_IN_MILLIS);
1269 incrementCurrentTime(MINUTE_IN_MILLIS);
1291 incrementCurrentTime(MINUTE_IN_MILLIS);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DMetricsCollector.java20 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
62 DBG ? 2L * SECOND_IN_MILLIS : 5L * MINUTE_IN_MILLIS;
/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/
DRelativeDateTimeFormatter.java48 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; field in RelativeDateTimeFormatter
49 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60;
148 if (duration < MINUTE_IN_MILLIS && minResolution < MINUTE_IN_MILLIS) { in getRelativeTimeSpanString()
152 count = (int) (duration / MINUTE_IN_MILLIS); in getRelativeTimeSpanString()
DDateUtils.java51 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; field in DateUtils
52 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60;
275 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS); in getRelativeTimeSpanString()
417 } else if (millis >= MINUTE_IN_MILLIS) { in formatDuration()
418 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.java84 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/base/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java387 + stats.getLoggingDurationMs() / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n"); in dumpGnssMetricsAsText()
392 " dB-Hz (min): ").append(t[1] / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n"); in dumpGnssMetricsAsText()
395 " dB-Hz (min): ").append(t[0] / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n"); in dumpGnssMetricsAsText()
/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/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java61 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/services/devicepolicy/java/com/android/server/devicepolicy/
DRemoteBugreportUtils.java51 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()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DQuotaController.java20 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 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()

12