Home
last modified time | relevance | path

Searched refs:SECOND_IN_MILLIS (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/text/format/
DRelativeDateTimeFormatterTest.java27 import static android.text.format.RelativeDateTimeFormatter.SECOND_IN_MILLIS;
65 getRelativeTimeSpanString(en_US, tz, baseTime - SECOND_IN_MILLIS, baseTime, in test_getRelativeTimeSpanStringCTS()
68 getRelativeTimeSpanString(en_US, tz, baseTime + SECOND_IN_MILLIS, baseTime, in test_getRelativeTimeSpanStringCTS()
136 test_getRelativeTimeSpanString_helper(0 * SECOND_IN_MILLIS, 0, "0 seconds ago", in test_getRelativeTimeSpanString()
144 test_getRelativeTimeSpanString_helper(0 * SECOND_IN_MILLIS, SECOND_IN_MILLIS, in test_getRelativeTimeSpanString()
147 test_getRelativeTimeSpanString_helper(1 * SECOND_IN_MILLIS, SECOND_IN_MILLIS, in test_getRelativeTimeSpanString()
150 test_getRelativeTimeSpanString_helper(2 * SECOND_IN_MILLIS, SECOND_IN_MILLIS, in test_getRelativeTimeSpanString()
153 test_getRelativeTimeSpanString_helper(25 * SECOND_IN_MILLIS, SECOND_IN_MILLIS, in test_getRelativeTimeSpanString()
156 test_getRelativeTimeSpanString_helper(75 * SECOND_IN_MILLIS, SECOND_IN_MILLIS, in test_getRelativeTimeSpanString()
159 test_getRelativeTimeSpanString_helper(5000 * SECOND_IN_MILLIS, SECOND_IN_MILLIS, in test_getRelativeTimeSpanString()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java98 private static final long SECOND_IN_MILLIS = 1000L; field in QuotaControllerTest
99 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS;
240 verify(foregroundUids, timeout(2 * SECOND_IN_MILLIS).times(1)) in setProcessState()
244 verify(foregroundUids, timeout(2 * SECOND_IN_MILLIS).times(1)).delete(eq(uid)); in setProcessState()
767 advanceElapsedClock(54 * SECOND_IN_MILLIS); in testGetExecutionStatsLocked_CoalescingSessions()
777 advanceElapsedClock(5 * SECOND_IN_MILLIS); in testGetExecutionStatsLocked_CoalescingSessions()
821 mQcConstants.TIMING_SESSION_COALESCING_DURATION_MS = 5 * SECOND_IN_MILLIS; in testGetExecutionStatsLocked_CoalescingSessions()
987 createTimingSession(now - (24 * HOUR_IN_MILLIS - 30 * SECOND_IN_MILLIS), in testGetTimeUntilQuotaConsumedLocked_BucketWindow()
988 30 * SECOND_IN_MILLIS, 5)); in testGetTimeUntilQuotaConsumedLocked_BucketWindow()
1001 assertEquals(30 * SECOND_IN_MILLIS, in testGetTimeUntilQuotaConsumedLocked_BucketWindow()
[all …]
DStateControllerTest.java58 private static final long SECOND_IN_MILLIS = 1000L; field in StateControllerTest
59 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS;
DTimeControllerTest.java66 private static final long SECOND_IN_MILLIS = 1000L; field in TimeControllerTest
67 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS;
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java22 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
105 currentTime += SECOND_IN_MILLIS; in testCombine()
132 currentTime += DAY_IN_MILLIS + SECOND_IN_MILLIS; in testRotate()
154 currentTime += MINUTE_IN_MILLIS + SECOND_IN_MILLIS; in testDelete()
209 mBasePath, PREFIX, SECOND_IN_MILLIS, SECOND_IN_MILLIS); in testOtherFilesAndMalformed()
263 assertReadMatching(rotate, TEST_TIME + SECOND_IN_MILLIS, currentTime, FULL_SET); in testQueryMatch()
266 assertReadMatching(rotate, TEST_TIME + SECOND_IN_MILLIS, currentTime - SECOND_IN_MILLIS, in testQueryMatch()
271 assertReadMatching(rotate, TEST_TIME + DAY_IN_MILLIS + SECOND_IN_MILLIS, Long.MAX_VALUE, in testQueryMatch()
277 assertReadMatching(rotate, blueStart + SECOND_IN_MILLIS, blueEnd - SECOND_IN_MILLIS, BLUE); in testQueryMatch()
306 currentTime += SECOND_IN_MILLIS; in testClockRollingBackwards()
[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()
117 final double testMillis = 40 * DateUtils.SECOND_IN_MILLIS; in testFormatRelativeTime_WithSeconds_ShowSeconds()
126 final double testMillis = 40 * DateUtils.SECOND_IN_MILLIS; in testFormatRelativeTime_NoSeconds_DoNotShowSeconds()
135 final double testMillis = 119 * DateUtils.SECOND_IN_MILLIS; in testFormatRelativeTime_LessThanTwoMinutes_withSeconds()
144 final double testMillis = 119 * DateUtils.SECOND_IN_MILLIS; in testFormatRelativeTime_LessThanTwoMinutes_NoSeconds()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DMetricsCollector.java21 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
51 DBG ? 10L * SECOND_IN_MILLIS : 23L * HOUR_IN_MILLIS;
62 DBG ? 2L * SECOND_IN_MILLIS : 5L * MINUTE_IN_MILLIS;
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicy.java40 private static final long DEFAULT_PROX_SCREEN_OFF_DELAY_MS = 10 * DateUtils.SECOND_IN_MILLIS;
41 private static final long DEFAULT_PROX_COOLDOWN_TRIGGER_MS = 2 * DateUtils.SECOND_IN_MILLIS;
42 private static final long DEFAULT_PROX_COOLDOWN_PERIOD_MS = 5 * DateUtils.SECOND_IN_MILLIS;
43 private static final long DEFAULT_WALLPAPER_VISIBILITY_MS = 60 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java32 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
84 assertEquals(15 * SECOND_IN_MILLIS, history.getBucketDuration()); in testReadOriginalVersion()
109 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, in testRecordSingleBucket()
113 assertValues(stats, 0, SECOND_IN_MILLIS, 1024L, 10L, 2048L, 20L, 2L); in testRecordSingleBucket()
160 stats.recordData(firstStart, firstStart + SECOND_IN_MILLIS, in testRecordGapBuckets()
162 stats.recordData(lastStart, lastStart + SECOND_IN_MILLIS, in testRecordGapBuckets()
167 assertValues(stats, 0, SECOND_IN_MILLIS, 128L, 2L, 256L, 4L, 1L); in testRecordGapBuckets()
168 assertValues(stats, 1, SECOND_IN_MILLIS, 64L, 1L, 512L, 8L, 2L); in testRecordGapBuckets()
178 assertValues(stats, 0, SECOND_IN_MILLIS, 128L, 2L, 256L, 4L, 1L); in testRecordGapBuckets()
181 assertValues(stats, 3, SECOND_IN_MILLIS, 64L, 1L, 512L, 8L, 2L); in testRecordGapBuckets()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicyTest.java65 assertThat(policy.proxScreenOffDelayMs).isEqualTo(10 * DateUtils.SECOND_IN_MILLIS); in testPolicy_valueNull_containsDefaultValue()
66 assertThat(policy.proxCooldownTriggerMs).isEqualTo(2 * DateUtils.SECOND_IN_MILLIS); in testPolicy_valueNull_containsDefaultValue()
67 assertThat(policy.proxCooldownPeriodMs).isEqualTo(5 * DateUtils.SECOND_IN_MILLIS); in testPolicy_valueNull_containsDefaultValue()
/frameworks/base/core/java/android/text/format/
DRelativeDateTimeFormatter.java47 public static final long SECOND_IN_MILLIS = 1000; field in RelativeDateTimeFormatter
48 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60;
149 count = (int) (duration / SECOND_IN_MILLIS); in getRelativeTimeSpanString()
DDateUtils.java50 public static final long SECOND_IN_MILLIS = 1000; field in DateUtils
51 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60;
421 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS); in formatDuration()
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DRemoteContentSuggestionsService.java44 private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 2 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/services/core/java/com/android/server/
DRescueParty.java80 static final long BOOT_TRIGGER_WINDOW_MILLIS = 600 * DateUtils.SECOND_IN_MILLIS;
82 static final long PERSISTENT_APP_CRASH_TRIGGER_WINDOW_MILLIS = 30 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/services/autofill/java/com/android/server/autofill/
DRemoteFillService.java49 private static final long TIMEOUT_IDLE_BIND_MILLIS = 5 * DateUtils.SECOND_IN_MILLIS;
50 private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 5 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/core/java/android/net/
DNetworkStatsHistory.java30 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
663 pw.println(bucketDuration / SECOND_IN_MILLIS); in dump()
672 pw.print("st="); pw.print(bucketStart[i] / SECOND_IN_MILLIS); in dump()
686 pw.print(bucketDuration / SECOND_IN_MILLIS); in dumpCheckin()
691 pw.print(bucketStart[i] / SECOND_IN_MILLIS); pw.print(','); in dumpCheckin()
/frameworks/base/services/appprediction/java/com/android/server/appprediction/
DRemoteAppPredictionService.java43 private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 2 * DateUtils.SECOND_IN_MILLIS;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DLocaleTracker.java20 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
107 private static final long CELL_INFO_MIN_DELAY_MS = 2 * SECOND_IN_MILLIS;
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java119 private static final int TIMEOUT = (int) (5 * DateUtils.SECOND_IN_MILLIS);
310 sleep(SAFE_SCREENSHOT_DELAY * DateUtils.SECOND_IN_MILLIS); in testScreenshotFinishesAfterBugreport()
955 sleep(DateUtils.SECOND_IN_MILLIS); in waitForService()
1042 Thread.sleep(DateUtils.SECOND_IN_MILLIS); in waitForScreenshotButtonEnabled()
/frameworks/base/core/java/android/widget/
DChronometer.java359 int duration = (int) (ms / DateUtils.SECOND_IN_MILLIS); in formatDuration()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java65 private static final int CONNECT_LATENCY_FILL_RATE = 15 * (int) DateUtils.SECOND_IN_MILLIS;
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java60 private static final long TEMPERATURE_INTERVAL = 30 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQuickStatusBarHeader.java88 private static final long AUTO_FADE_OUT_DELAY_MS = DateUtils.SECOND_IN_MILLIS * 6;
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java77 private static final long DELAY_IN_MILLIS = 30 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java340 final long estimatedMillis = ((estimatedBytes * DateUtils.SECOND_IN_MILLIS) in isInsane()

12