/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | AppCompactorTest.java | 211 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges() 221 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges() 235 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChangesBadValues() 257 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChanges() 277 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues() 290 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues() 322 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChanges() 349 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues() 367 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues() 384 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues() [all …]
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 109 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in createAndStartUser() 146 boolean success = latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in switchUser_stopped() 183 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in stopUser() 205 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in lockedBootCompleted() 225 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileUnlock() 244 latch1.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileUnlock_stopped() 253 latch2.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileUnlock_stopped() 284 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped() 287 switchLatch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped() 302 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in managedProfileStopped() [all …]
|
/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()
|
D | TestVrActivity.java | 53 result = mLatch.await(2L, TimeUnit.SECONDS); in waitForActivityStart()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ClockPreference.java | 29 private static final String SECONDS = "seconds"; field in ClockPreference 44 setEntryValues(new CharSequence[] { SECONDS, DEFAULT, DISABLED }); in ClockPreference() 76 setValue(SECONDS); in onTuningChanged() 87 Dependency.get(TunerService.class).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 in persistString()
|
/frameworks/base/services/robotests/src/com/android/server/location/ |
D | NtpTimeHelperTest.java | 64 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime() 77 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/layoutlib/bridge/tests/src/android/util/imagepool/ |
D | ImagePoolImplTest.java | 63 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDispose() 78 assertTrue(cd.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposeFromFunction() 105 assertTrue(countDownLatch1.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposedAndRecycled() 124 assertTrue(countDownLatch2.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testImageDisposedAndRecycled() 149 assertTrue(countDownLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testBufferedImageReleased() 217 cd1.await(TIMEOUT_SEC, TimeUnit.SECONDS); in testImageMultipleCopies() 250 cd1.await(TIMEOUT_SEC, TimeUnit.SECONDS); in testPoolDispose()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 128 assertTrue(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testWorkAccount() 149 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testWorkAccount() 156 assertTrue(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testCaCertLoader() 168 assertTrue(mStateChangedLatch.await(3, TimeUnit.SECONDS)); in testCaCertLoader() 182 assertFalse(mStateChangedLatch.await(1, TimeUnit.SECONDS)); in testCaCertLoader()
|
D | BlockingQueueIntentReceiver.java | 35 return mQueue.poll(10, TimeUnit.SECONDS); in waitForIntent() 39 return mQueue.poll(3, TimeUnit.SECONDS); in waitForIntentShortDelay()
|
D | CastControllerImplTest.java | 102 startThreadsLatch.await(10, TimeUnit.SECONDS); in testAddCallbackRemoveCallback_concurrently() 122 threadsDone.await(10, TimeUnit.SECONDS); in testAddCallbackRemoveCallback_concurrently()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/bluetooth/ |
D | BluetoothEventManagerIntegTest.java | 40 import static java.util.concurrent.TimeUnit.SECONDS; 106 assertTrue(broadcastLatch.await(LATCH_TIMEOUT, SECONDS)); in registerAdapterReceiver_ifIntentFromAnotherUser_broadcastIsReceived() 128 assertTrue(broadcastLatch.await(LATCH_TIMEOUT, SECONDS)); in registerProfileReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
|
/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()
|
D | GpsPsdsDownloader.java | 45 private static final int CONNECTION_TIMEOUT_MS = (int) TimeUnit.SECONDS.toMillis(30); 46 private static final int READ_TIMEOUT_MS = (int) TimeUnit.SECONDS.toMillis(60);
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | RenderTests.java | 361 renderAndVerify(params, "animated_vector.png", TimeUnit.SECONDS.toNanos(2)); in testVectorAnimation() 370 renderAndVerify(params, "animated_vector_1.png", TimeUnit.SECONDS.toNanos(3)); in testVectorAnimation() 404 renderAndVerify(params, "vector_drawable.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable() 444 renderAndVerify(params, "vector_drawable_91383.png", TimeUnit.SECONDS.toNanos(2)); in testVectorDrawable91383() 472 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableWithTintInImageView() 499 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableWithTintInItself() 533 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableHasMultipleLineInPathData() 571 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableGradient() 607 TimeUnit.SECONDS.toNanos(2)); in testVectorDrawableRadialGradient() 644 TimeUnit.SECONDS.toNanos(2)); in testGradientColors() [all …]
|
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/ |
D | LocalOverlayManager.java | 19 import static java.util.concurrent.TimeUnit.SECONDS; 58 task.get(TIMEOUT, SECONDS); in setEnabledAndWait()
|
/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/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserLifecycleStressTest.java | 82 TimeUnit.SECONDS.sleep(WAIT_BEFORE_STOP_USER_IN_SECOND); in stopManagedProfileStressTest() 107 countDownLatch.await(MAX_TIME_STOP_USER_IN_SECOND, TimeUnit.SECONDS); in stopUser()
|
D | SuspendPackagesTest.java | 146 intentQueue.offer(intent, 5, TimeUnit.SECONDS); in onReceive() 158 intent = intentQueue.poll(secondsToWait, TimeUnit.SECONDS); in pollForIntent() 216 assertTrue("Test receiver timed out ", receiverLatch.await(5, TimeUnit.SECONDS)); in requestAppAction() 419 assertFalse("Both callbacks were invoked", twoCallbackLatch.await(5, TimeUnit.SECONDS)); in testOnPackagesSuspendedNewAndOld() 421 assertTrue("No callback was invoked", twoCallbackLatch.await(2, TimeUnit.SECONDS)); in testOnPackagesSuspendedNewAndOld() 453 assertTrue("Callback not invoked", oneCallbackLatch.await(5, TimeUnit.SECONDS)); in testOnPackagesSuspendedOld() 588 assertTrue("AppOpsWatcher did not callback", latch.await(5, TimeUnit.SECONDS)); in assertOpBlockedOnSuspend()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverySnapshotListenersStorageTest.java | 69 assertTrue(latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() 91 assertFalse(latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 259 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBrightnessEvent() 269 assertEquals(mInjector.currentTimeMillis() - TimeUnit.SECONDS.toMillis(2), in testBrightnessEvent() 326 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testIgnoreAutomaticBrightnessChange() 363 mInjector.incrementTime(TimeUnit.SECONDS.toNanos(1)); in testLimitedBufferSize() 384 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents() 399 mInjector.currentTimeMillis() - i * TimeUnit.SECONDS.toMillis(1)); in testLimitedSensorEvents() 543 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testWriteThenRead() 546 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(3)); in testWriteThenRead() 590 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(1)); in testWritePrunesOldEvents() 702 mInjector.incrementTime(TimeUnit.SECONDS.toMillis(2)); in testBackgroundHandlerDelay() [all …]
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | ManualBenchmarkState.java | 58 private static final long WARMUP_DURATION_NS = TimeUnit.SECONDS.toNanos(5); 63 private static final long TARGET_TEST_DURATION_NS = TimeUnit.SECONDS.toNanos(16);
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceAnimationRunnerTest.java | 31 import static java.util.concurrent.TimeUnit.SECONDS; 101 mFinishCallbackLatch.await(1, SECONDS); in testAnimation() 180 mFinishCallbackLatch.await(1, SECONDS); in testDeferStartingAnimations()
|
D | AssistDataRequesterTest.java | 122 mGate.await(10, TimeUnit.SECONDS); in setUp() 134 mGate.await(10, TimeUnit.SECONDS); in setUp() 335 latch.await(2, TimeUnit.SECONDS); in waitForIdle() 370 mGate.await(10, TimeUnit.SECONDS); in onAssistRequestCompleted()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/ |
D | PhysicsAnimationLayoutTestCase.java | 122 animLatch.await(2, TimeUnit.SECONDS); in waitForPropertyAnimations() 129 layoutLatch.await(2, TimeUnit.SECONDS); in waitForLayoutMessageQueue() 319 latch.await(5, TimeUnit.SECONDS); in runOnMainThreadAndBlock()
|