/frameworks/support/car/src/androidTest/java/androidx/car/moderator/ |
D | ContentRateLimiterTest.java | 23 import static java.util.concurrent.TimeUnit.SECONDS; 52 mElapsedTimeProvider.setElapsedTime(SECONDS.toMillis(1000)); in setUp() 56 SECONDS.toMillis(DELAY_UNTIL_REFILL_SECONDS), in setUp() 77 mElapsedTimeProvider.getElapsedRealtime() + SECONDS.toMillis(1)); in testTryAcquire_permitRefillDelayed() 81 + SECONDS.toMillis(DELAY_UNTIL_REFILL_SECONDS + 1)); in testTryAcquire_permitRefillDelayed() 90 + SECONDS.toMillis(DELAY_UNTIL_REFILL_SECONDS - 1)); in testTryAcquire_inFillDelayFringe_secondAcquireFree() 100 mElapsedTimeProvider.getElapsedRealtime() + SECONDS.toMillis(1)); in testTryAcquire_inFillDelayFringe_secondAcquireResetsFillDelay() 108 currentTimeMillis + SECONDS.toMillis(DELAY_UNTIL_REFILL_SECONDS - 1)); in testTryAcquire_inFillDelayFringe_secondAcquireResetsFillDelay() 113 currentTimeMillis + SECONDS.toMillis(DELAY_UNTIL_REFILL_SECONDS + 1)); in testTryAcquire_inFillDelayFringe_secondAcquireResetsFillDelay() 123 mElapsedTimeProvider.getElapsedRealtime() + SECONDS.toMillis(1)); [all …]
|
/frameworks/base/tools/preload2/src/com/android/preload/ |
D | DeviceUtils.java | 95 doShell(device, "am start -n " + name + " /." + activity, 30, TimeUnit.SECONDS); in doAMStart() 158 doShellReturnString(device, READ_PRELOADED_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 166 doShell(device, STOP_SHELL_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 168 doShell(device, REMOUNT_SYSTEM_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 170 doShell(device, DELETE_PRELOADED_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 172 doShell(device, DELETE_CACHE_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 181 doShell(device, UNSET_BOOTCOMPLETE_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 183 doShell(device, START_SHELL_CMD, 1, TimeUnit.SECONDS); in overwritePreloaded() 210 TimeUnit.SECONDS.convert(endDate.getTime() - startDate.getTime(), TimeUnit.MILLISECONDS); in waitForBootComplete()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 107 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in createAndStartUser() 140 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in stopUser() 162 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in lockedBootCompleted() 182 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileUnlock() 213 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped() 216 switchLatch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped() 231 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileStopped() 246 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in switchUser() 261 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in stopUser()
|
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/ |
D | LoaderManagerTest.java | 83 onCreateLoaderLatch.await(1, TimeUnit.SECONDS); in testDestroyFromOnCreateLoader() 107 onLoadFinishedLatch.await(1, TimeUnit.SECONDS); in testDestroyFromOnLoadFinished() 140 countDownLatch.await(1, TimeUnit.SECONDS); in testDestroyLoaderAfterDeliverData() 173 restartCountDownLatch.await(1, TimeUnit.SECONDS); in testRestartLoaderBeforeDeliverData() 188 initialCountDownLatch.await(1, TimeUnit.SECONDS); in testRestartLoaderAfterDeliverData() 202 restartCountDownLatch.await(1, TimeUnit.SECONDS); in testRestartLoaderAfterDeliverData() 219 initialCountDownLatch.await(1, TimeUnit.SECONDS); in testRestartLoaderMultiple() 239 restartCountDownLatch.await(1, TimeUnit.SECONDS); in testRestartLoaderMultiple()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ClockPreference.java | 28 private static final String SECONDS = "seconds"; field in ClockPreference 43 setEntryValues(new CharSequence[] { SECONDS, DEFAULT, DISABLED }); in ClockPreference() 75 setValue(SECONDS); in onTuningChanged() 86 Dependency.get(TunerService.class).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 in persistString()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderProxyCountingTest.java | 143 if (!bindLatch.await(BIND_SERVICE_TIMEOUT_SEC, TimeUnit.SECONDS)) { in bindService() 239 if (binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary() 246 if (!binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary() 275 if (!binderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testSetBinderProxyLimit() 305 if (!firstBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold() 321 if (secondBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold() 336 if (!secondBinderLimitLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold() 369 if (!binderDeathLatch.await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testKillBadBehavingApp()
|
/frameworks/support/app-toolkit/core-testing/src/main/java/androidx/arch/core/executor/ |
D | TaskExecutorWithFakeMainThread.java | 92 mMainThreadService.awaitTermination(timeoutInSeconds, TimeUnit.SECONDS); in shutdown() 93 mIOService.awaitTermination(timeoutInSeconds, TimeUnit.SECONDS); in shutdown() 128 if (!enterLatch.await(seconds, TimeUnit.SECONDS)) { in drainTasks() 133 if (!mainLatch.await(seconds, TimeUnit.SECONDS)) { in drainTasks()
|
/frameworks/base/services/robotests/src/com/android/server/location/ |
D | NtpTimeHelperTest.java | 68 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime() 79 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed() 87 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed() 96 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 127 assertTrue(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testWorkAccount() 148 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testWorkAccount() 155 assertTrue(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testCaCertLoader() 167 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader() 181 assertFalse(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testCaCertLoader()
|
/frameworks/support/app-toolkit/core-testing/src/androidTest/java/androidx/arch/core/executor/testing/ |
D | CountingTaskExecutorRuleTest.java | 106 assertThat(mOnIdleCount.tryAcquire(1, TimeUnit.SECONDS), is(true)); in assertBecomeIdle() 152 mRule.drainTasks(1, TimeUnit.SECONDS); in drainSuccess() 162 mStart.await(10, TimeUnit.SECONDS); in run() 170 mEnd.await(10, TimeUnit.SECONDS); in await()
|
/frameworks/support/loader/src/androidTest/java/androidx/loader/content/ |
D | ModernAsyncTaskTest.java | 73 if (!readyToCancel.await(5, TimeUnit.SECONDS)) { in testCancellationWithException() 78 if (!calledOnCancelled.await(5, TimeUnit.SECONDS)) { in testCancellationWithException() 127 if (!calledOnCancelled.await(5, TimeUnit.SECONDS)) { in testException()
|
/frameworks/base/tools/preload2/src/com/android/preload/actions/ |
D | RunMonkeyAction.java | 119 DeviceUtils.doShell(device, "force-stop " + packageName, 5, TimeUnit.SECONDS); in forceStop() 120 DeviceUtils.doShell(device, "kill " + packageName, 5, TimeUnit.SECONDS); in forceStop() 121 DeviceUtils.doShell(device, "kill `pid " + packageName + "`", 5, TimeUnit.SECONDS); in forceStop()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/ |
D | SystemAlarmDispatcherTest.java | 169 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testSchedule() 183 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testDelayMet_success() 208 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testDelayMet_withStop() 233 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testDelayMet_withStopWhenCancelled() 260 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testSchedule_withConstraints() 278 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testConstraintsChanged_withNoConstraints() 296 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testConstraintsChangedMarkedNotScheduled_withNoConstraints() 315 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testConstraintsChanged_withConstraint() 336 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testDelayMet_withUnMetConstraint() 370 mLatch.await(TEST_TIMEOUT, TimeUnit.SECONDS); in testDelayMet_withMetConstraint() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | AbstractCrossUserContentResolverTest.java | 74 if (!connectionLatch.await(TIMEOUT_SERVICE_CONNECTION_SEC, TimeUnit.SECONDS)) { in setUp() 97 if (!latch.await(TIMEOUT_USER_UNLOCK_SEC, TimeUnit.SECONDS)) { in unlockUser() 139 if (!updateLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testRegisterContentObserver() 156 if (!notifyLatch.await(TIMEOUT_CONTENT_CHANGE_SEC, TimeUnit.SECONDS)) { in testNotifyChange()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | ContextHubServiceTransaction.java | 103 return unit.convert(30L, TimeUnit.SECONDS); in getTimeout() 110 return unit.convert(5L, TimeUnit.SECONDS); in getTimeout()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | InvalidateAllTest.java | 34 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS)); in testRefreshViaInvalidateAll() 40 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS)); in testRefreshViaInvalidateAll()
|
/frameworks/support/testutils/src/main/java/androidx/testutils/ |
D | AppCompatActivityUtils.java | 86 assertTrue(RecreatedAppCompatActivity.sResumed.await(1, TimeUnit.SECONDS)); in recreateActivity() 87 assertTrue(RecreatedAppCompatActivity.sDestroyed.await(1, TimeUnit.SECONDS)); in recreateActivity()
|
D | FragmentActivityUtils.java | 83 assertTrue(RecreatedActivity.sResumed.await(1, TimeUnit.SECONDS)); in recreateActivity() 84 assertTrue(RecreatedActivity.sDestroyed.await(1, TimeUnit.SECONDS)); in recreateActivity()
|
/frameworks/support/app-toolkit/core-testing/src/test/java/androidx/arch/core/executor/testing/ |
D | InstantTaskExecutorRuleTest.java | 50 check.get(1, TimeUnit.SECONDS); in executeOnMain() 64 check.get(1, TimeUnit.SECONDS); in executeOnIO()
|
/frameworks/support/compat/src/androidTest/java/androidx/core/os/ |
D | HandlerCompatTest.java | 23 import static java.util.concurrent.TimeUnit.SECONDS; 89 assertTrue(latch.await(1, SECONDS)); in postDelayedWithToken()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/ |
D | WorkManagerImplLargeExecutorTest.java | 25 import static java.util.concurrent.TimeUnit.SECONDS; 106 MIN_POOL_SIZE, MAX_POOL_SIZE, KEEP_ALIVE_TIME, SECONDS, queue); in setUp() 175 latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSchedulerLimits()
|
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/ |
D | FirebaseJobConverter.java | 101 return (int) TimeUnit.SECONDS.convert(milliseconds, TimeUnit.MILLISECONDS); in convertMillisecondsToSeconds() 107 int initialBackoff = (int) TimeUnit.SECONDS in createRetryStrategy() 109 int maxBackoff = (int) TimeUnit.SECONDS in createRetryStrategy()
|
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 55 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived() 89 return get(5, TimeUnit.SECONDS); in get() 98 assertNotReceived(5, TimeUnit.SECONDS); in assertNotReceived()
|
/frameworks/support/lifecycle/livedata-core/src/test/java/androidx/lifecycle/ |
D | ThreadedLiveDataTest.java | 89 assertThat(latch.await(TIMEOUT_SECS, TimeUnit.SECONDS), is(true)); in testPostValue() 95 assertThat(finishTestLatch.await(TIMEOUT_SECS, TimeUnit.SECONDS), is(true)); in testPostValue()
|
/frameworks/support/compat/src/androidTest/java/androidx/core/app/ |
D | JobIntentServiceTest.java | 181 if (!sServiceWaitingLatch.await(10, TimeUnit.SECONDS)) { in ensureServiceWaiting() 195 if (!sServiceStoppedLatch.await(10, TimeUnit.SECONDS)) { in ensureServiceStopped() 225 if (!sServiceFinishedLatch.await(10, TimeUnit.SECONDS)) { in waitServiceFinish() 254 if (!sReadyToRunLatch.await(10, TimeUnit.SECONDS)) { in onCreate() 274 if (!sWaitCompleteLatch.await(10, TimeUnit.SECONDS)) { in onHandleWork()
|