Home
last modified time | relevance | path

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

123

/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.java125 private static final long SECOND_IN_MILLIS = 1000L; field in QuotaControllerTest
126 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS;
320 verify(foregroundUids, timeout(2 * SECOND_IN_MILLIS).times(1)) in setProcessState()
326 verify(foregroundUids, timeout(2 * SECOND_IN_MILLIS).times(1)) in setProcessState()
1100 advanceElapsedClock(54 * SECOND_IN_MILLIS); in testGetExecutionStatsLocked_CoalescingSessions()
1110 advanceElapsedClock(5 * SECOND_IN_MILLIS); in testGetExecutionStatsLocked_CoalescingSessions()
1158 5 * SECOND_IN_MILLIS); in testGetExecutionStatsLocked_CoalescingSessions()
1571 createTimingSession(now - (24 * HOUR_IN_MILLIS - 30 * SECOND_IN_MILLIS), in testGetTimeUntilQuotaConsumedLocked_BucketWindow()
1572 30 * SECOND_IN_MILLIS, 5), false); in testGetTimeUntilQuotaConsumedLocked_BucketWindow()
1586 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;
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java22 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
110 currentTime += SECOND_IN_MILLIS; in testCombine()
138 currentTime += DAY_IN_MILLIS + SECOND_IN_MILLIS; in testRotate()
161 currentTime += MINUTE_IN_MILLIS + SECOND_IN_MILLIS; in testDelete()
218 mBasePath, PREFIX, SECOND_IN_MILLIS, SECOND_IN_MILLIS); in testOtherFilesAndMalformed()
273 assertReadMatching(rotate, TEST_TIME + SECOND_IN_MILLIS, currentTime, FULL_SET); in testQueryMatch()
276 assertReadMatching(rotate, TEST_TIME + SECOND_IN_MILLIS, currentTime - SECOND_IN_MILLIS, in testQueryMatch()
281 assertReadMatching(rotate, TEST_TIME + DAY_IN_MILLIS + SECOND_IN_MILLIS, Long.MAX_VALUE, in testQueryMatch()
287 assertReadMatching(rotate, blueStart + SECOND_IN_MILLIS, blueEnd - SECOND_IN_MILLIS, BLUE); in testQueryMatch()
317 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()
127 final double testMillis = 40 * DateUtils.SECOND_IN_MILLIS; in testFormatRelativeTime_WithSeconds_ShowSeconds()
136 final double testMillis = 40 * DateUtils.SECOND_IN_MILLIS; in testFormatRelativeTime_NoSeconds_DoNotShowSeconds()
145 final double testMillis = 119 * DateUtils.SECOND_IN_MILLIS; in testFormatRelativeTime_LessThanTwoMinutes_withSeconds()
154 final double testMillis = 119 * DateUtils.SECOND_IN_MILLIS; in testFormatRelativeTime_LessThanTwoMinutes_NoSeconds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicy.java44 private static final long DEFAULT_PROX_SCREEN_OFF_DELAY_MS = 10 * DateUtils.SECOND_IN_MILLIS;
45 private static final long DEFAULT_PROX_COOLDOWN_TRIGGER_MS = 2 * DateUtils.SECOND_IN_MILLIS;
46 private static final long DEFAULT_PROX_COOLDOWN_PERIOD_MS = 5 * DateUtils.SECOND_IN_MILLIS;
47 private static final long DEFAULT_WALLPAPER_VISIBILITY_MS = 60 * DateUtils.SECOND_IN_MILLIS;
/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/tests/utiltests/src/android/util/
DTimeUtilsTest.java39 public static final long SECOND_IN_MILLIS = 1000; field in TimeUtilsTest
40 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60;
74 accum += 59 * SECOND_IN_MILLIS; in testFormatDuration()
/frameworks/base/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/
DRemoteWallpaperEffectsGenerationService.java41 private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 2 * DateUtils.SECOND_IN_MILLIS;
43 private static final long TIMEOUT_IDLE_BIND_MILLIS = 120 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/
DSeekBarObserver.kt131 DateUtils.formatElapsedTime(data.duration / DateUtils.SECOND_IN_MILLIS) in onChanged()
151 val elapsedTimeString = DateUtils.formatElapsedTime(it / DateUtils.SECOND_IN_MILLIS) in onChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java74 private static final long SECOND_IN_MILLIS = 1000L; field in CountQuotaTrackerTest
75 private static final long MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS;
753 advanceElapsedClock(10 * SECOND_IN_MILLIS); in testLogEvent_GlobalQuotaFree()
774 advanceElapsedClock(10 * SECOND_IN_MILLIS); in testLogEvent_GlobalQuotaNotFree()
793 advanceElapsedClock(10 * SECOND_IN_MILLIS); in testLogEvent_UptcQuotaFree()
814 advanceElapsedClock(10 * SECOND_IN_MILLIS); in testLogEvent_UptcQuotaNotFree()
834 verify(mQuotaChangeListener, timeout(3 * SECOND_IN_MILLIS).times(1)) in testTracking_OutOfQuota()
857 verify(mQuotaChangeListener, timeout(3 * SECOND_IN_MILLIS).times(0)) in testTracking_InQuota()
/frameworks/base/services/smartspace/java/com/android/server/smartspace/
DRemoteSmartspaceService.java38 private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 2 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/services/searchui/java/com/android/server/searchui/
DRemoteSearchUiService.java38 private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 2 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/services/appprediction/java/com/android/server/appprediction/
DRemoteAppPredictionService.java38 private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 2 * DateUtils.SECOND_IN_MILLIS;
/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.java54 public static final long SECOND_IN_MILLIS = 1000; field in DateUtils
55 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60;
425 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS); in formatDuration()
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DRemoteMusicRecognitionService.java44 private static final long TIMEOUT_IDLE_BIND_MILLIS = 40 * DateUtils.SECOND_IN_MILLIS;
/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/credentials/java/com/android/server/credentials/
DRemoteCredentialService.java64 private static final long TIMEOUT_REQUEST_MILLIS = 3 * DateUtils.SECOND_IN_MILLIS;
67 5 * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java129 private static final int TIMEOUT = (int) (5 * DateUtils.SECOND_IN_MILLIS);
295 sleep(SAFE_SCREENSHOT_DELAY * DateUtils.SECOND_IN_MILLIS); in testScreenshotFinishesAfterBugreport()
843 sleep(DateUtils.SECOND_IN_MILLIS); in waitForService()
919 Thread.sleep(DateUtils.SECOND_IN_MILLIS); in waitForScreenshotButtonEnabled()
DUiBot.java48 private static final long SHORT_UI_TIMEOUT_MS = (3 * DateUtils.SECOND_IN_MILLIS);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DImsStats.java31 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
70 private static final long MIN_REGISTRATION_DURATION_MILLIS = 1L * SECOND_IN_MILLIS;
/frameworks/base/services/people/java/com/android/server/people/data/
DAbstractProtoDiskReadWriter.java57 private static final long SHUTDOWN_DISK_WRITE_TIMEOUT = 5L * DateUtils.SECOND_IN_MILLIS;
/frameworks/base/services/autofill/java/com/android/server/autofill/
DRemoteFillService.java62 private static final long TIMEOUT_IDLE_BIND_MILLIS = 5 * DateUtils.SECOND_IN_MILLIS;
63 private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 5 * DateUtils.SECOND_IN_MILLIS;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DLocaleTracker.java20 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
110 private static final long CELL_INFO_MIN_DELAY_MS = 2 * SECOND_IN_MILLIS;

123