/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 369 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_Accumulation() 377 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_Accumulation() 404 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_Accumulation() 412 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_Accumulation() 439 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageLimitObserver_Accumulation() 447 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageLimitObserver_Accumulation() 456 assertFalse(mLimitReachedLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_TimeoutOtherApp() 459 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_TimeoutOtherApp() 468 assertFalse(mLimitReachedLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_TimeoutOtherApp() 471 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_TimeoutOtherApp() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | KeyCombinationManagerTests.java | 164 assertTrue(mAction1Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testTriggerRule() 167 assertTrue(mAction2Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testTriggerRule() 170 assertTrue(mAction3Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testTriggerRule() 180 assertFalse(mAction1Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_NoRule() 181 assertFalse(mAction2Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_NoRule() 182 assertFalse(mAction3Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_NoRule() 193 assertFalse(mAction1Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_Interval() 205 assertFalse(mAction2Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_Condition() 215 assertFalse(mAction3Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testNotTrigger_EarlyRelease() 250 assertFalse(mAction1Triggered.await(SCHEDULE_TIME, TimeUnit.MILLISECONDS)); in testAddRemove() [all …]
|
D | SingleKeyGestureTests.java | 245 assertTrue(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testShortPress() 251 assertTrue(mLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testLongPress() 257 assertTrue(mVeryLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testVeryLongPress() 266 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress() 274 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress() 297 assertFalse(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testNonInteractive() 301 assertTrue(mLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testNonInteractive() 321 assertTrue(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testShortPress_Pressure() 345 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress_Pressure() 349 assertTrue(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress_Pressure() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceSyncGroupTest.java | 73 finishedLatch.await(5, TimeUnit.SECONDS); in testSyncOne() 99 finishedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testSyncMultiple() 137 finishedLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testMultipleSyncGroups() 143 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testMultipleSyncGroups() 169 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncGroup() 176 finishedLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncGroup() 179 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncGroup() 202 finishedLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncAlreadyComplete() 211 finishedLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncAlreadyComplete() 245 finishedLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddSyncAlreadyInASync_NewSyncReadyFirst() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderProxyCountingTest.java | 151 if (!bindLatch.await(BIND_SERVICE_TIMEOUT_SEC, TimeUnit.SECONDS)) { in bindService() 257 if (binderLatches[1].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary() 264 if (!binderLatches[1].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary() 270 if (binderLatches[0].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary() 277 if (!binderLatches[0].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testBinderProxyLimitBoundary() 308 if (!binderLatches[1].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testSetBinderProxyLimit() 314 if (!binderLatches[0].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testSetBinderProxyLimit() 347 if (!firstBinderLatches[1].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold() 353 if (!firstBinderLatches[0].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold() 370 if (secondBinderLatches[1].await(TOO_MANY_BINDERS_TIMEOUT_SEC, TimeUnit.SECONDS)) { in testRearmCallbackThreshold() [all …]
|
D | BinderDeathRecipientTest.java | 97 assertTrue("Request for binder timed out", resultLatch.await(5, TimeUnit.SECONDS)); in getNewRemoteBinder() 113 deathNotificationLatch.await(10, TimeUnit.SECONDS)); in binderDied_noArgs() 133 barrier.await(); in binderDied_iBinderArg() 147 barrier.await(10, TimeUnit.SECONDS); in binderDied_iBinderArg() 156 barrier.await(10, TimeUnit.SECONDS); in binderDied_iBinderArg()
|
D | TestLooperManagerTest.java | 72 assertFalse(latch.await(100, TimeUnit.MILLISECONDS)); in doTest() 79 assertFalse(latch.await(100, TimeUnit.MILLISECONDS)); in doTest() 86 assertTrue(latch.await(100, TimeUnit.MILLISECONDS)); in doTest()
|
/frameworks/base/core/tests/coretests/src/android/transition/ |
D | FadeTransitionTest.java | 54 assertTrue(latch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 58 assertTrue(latch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 64 assertTrue(latch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 70 assertTrue(latch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 82 assertTrue(outLatch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutInterrupt() 89 assertTrue(inLatch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutInterrupt() 97 assertTrue(inLatch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeOutInterrupt() 115 assertTrue(inLatch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeInInterrupt() 122 assertTrue(outLatch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeInInterrupt() 130 assertTrue(outLatch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeInInterrupt() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/ |
D | BackProgressAnimatorTest.java | 81 mTargetProgressCalled.await(1, TimeUnit.SECONDS); in testBackProgressed() 93 mTargetProgressCalled.await(1, TimeUnit.SECONDS); in testBackCancelled() 102 finishCallbackCalled.await(1, TimeUnit.SECONDS); in testBackCancelled() 103 mTargetProgressCalled.await(1, TimeUnit.SECONDS); in testBackCancelled() 114 mTargetProgressCalled.await(1, TimeUnit.SECONDS); in testBackInvoked() 122 finishCallbackCalled.await(1, TimeUnit.SECONDS)); in testBackInvoked() 131 mTargetProgressCalled.await(1, TimeUnit.SECONDS); in testResetCallsCancelCallbackImmediately() 161 mTargetProgressCalled.await(1, TimeUnit.SECONDS); in testCancelFinishCallbackNotInvokedWhenRemoved()
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | MediaRouter2ManagerTest.java | 211 .that(addedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testOnRoutesUpdated() 220 .that(changedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testOnRoutesUpdated() 228 .that(removedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testOnRoutesUpdated() 295 assertThat(removedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testGetRoutes_removedRoute_returnsCorrectRoutes() 302 assertThat(addedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testGetRoutes_removedRoute_returnsCorrectRoutes() 392 assertThat(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testRouterOnSessionCreated() 420 assertThat(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testGetRoutingSessions() 463 assertThat(onSessionCreatedLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)).isFalse(); in testTransfer_unknownRoute_fail() 464 assertThat(onTransferFailedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testTransfer_unknownRoute_fail() 501 assertThat(transferLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testRouterRelease_managerGetRoutingSessions() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | CachedAppOptimizerTest.java | 287 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges() 297 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges() 315 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isFalse(); in useFreeze_doesNotListenToDeviceConfigChanges() 326 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useFreeze_doesNotListenToDeviceConfigChanges() 348 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChangesBadValues() 399 assertThat(mCountDown.await(7, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChanges() 426 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues() 440 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues() 453 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues() 466 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues() [all …]
|
/frameworks/base/tests/TrustTests/src/android/trust/test/ |
D | GrantAndRevokeTrustTest.kt | 88 await() in grantKeepsDeviceUnlocked_untilRevoked() 110 await() in grantCannotActivelyUnlockDevice() 118 await() in grantCannotActivelyUnlockDevice() 136 await() in grantCouldCauseWrongDeviceLockedStateDueToBug() 144 await() in grantDoesNotCallBack() 152 private fun await() = Thread.sleep(250) method
|
D | UserUnlockRequestTest.kt | 57 await() in reportUserRequestedUnlock_propagatesToAgent() 66 await() in reportUserRequestedUnlock_propagatesToAgentWithDismissKeyguard() 76 await() in reportUserMayRequestUnlock_propagatesToAgent() 86 await() in reportUserMayRequestUnlock_differentUserId_doesNotPropagateToAgent() 94 private fun await() = Thread.sleep(250) in await() method
|
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/ |
D | AnrTimerTest.java | 100 boolean await(long timeout) throws InterruptedException { in await() method in AnrTimerTest.Helper 102 return mLatch.await(timeout, TimeUnit.MILLISECONDS); in await() 191 assertThat(helper.await(5000)).isTrue(); in testSimpleTimeout() 208 assertThat(helper.await(10)).isFalse(); in testTimerRestart() 211 assertThat(helper.await(5000)).isTrue(); in testTimerRestart() 228 assertThat(helper.await(5000)).isTrue(); in testTimerZero() 250 assertThat(helper.await(5000)).isTrue(); in testMultipleTimers() 276 assertThat(helper.await(5000)).isTrue(); in testMultipleServices() 299 assertThat(helper.await(10)).isFalse(); in testCancelTimer() 302 assertThat(helper.await(5000)).isTrue(); in testCancelTimer()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | FullscreenMagnificationControllerTest.java | 137 .that(transactionCommittedLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS)) in enableFullscreenMagnification_visibleBorder() 140 .that(animationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in enableFullscreenMagnification_visibleBorder() 171 .that(transactionCommittedLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS)) in disableFullscreenMagnification_reverseAnimationAndReleaseScvh() 174 .that(enableAnimationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in disableFullscreenMagnification_reverseAnimationAndReleaseScvh() 184 .that(disableAnimationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in disableFullscreenMagnification_reverseAnimationAndReleaseScvh() 212 .that(transactionCommittedLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS)) in onFullscreenMagnificationActivationChangeTrue_deactivating_reverseAnimator() 215 .that(animationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in onFullscreenMagnificationActivationChangeTrue_deactivating_reverseAnimator() 238 .that(transactionCommittedLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS)) in onScreenSizeChanged_activated_borderChangedToExpectedSize() 241 .that(animationEndLatch.await(ANIMATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in onScreenSizeChanged_activated_borderChangedToExpectedSize()
|
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
D | MyContentCaptureService.java | 141 await(mCreated, "not created"); in waitOnCreate() 156 await(mDestroyed, "not destroyed"); in waitOnDestroy() 161 await(mSessionPaused, "no Paused"); in waitSessionPaused() 182 private static void await(@NonNull CountDownLatch latch, @NonNull String fmt, in await() method in MyContentCaptureService.ServiceWatcher 185 final boolean called = latch.await(GENERIC_TIMEOUT_MS, TimeUnit.MILLISECONDS); in await()
|
/frameworks/native/libs/binder/rust/tests/ |
D | integration.rs | 455 binder_tokio::get_interface::<dyn ITest>("this_service_does_not_exist").await.err(), in check_get_service_async() 460 .await in check_get_service_async() 467 binder_tokio::get_interface::<dyn ITest>("manager").await.err(), in check_get_service_async() 471 binder_tokio::get_interface::<dyn IATest<Tokio>>("manager").await.err(), in check_get_service_async() 511 binder_tokio::check_interface::<dyn ITest>("this_service_does_not_exist").await.err(), in check_check_service_async() 516 .await in check_check_service_async() 523 binder_tokio::check_interface::<dyn ITest>("manager").await.err(), in check_check_service_async() 527 binder_tokio::check_interface::<dyn IATest<Tokio>>("manager").await.err(), in check_check_service_async() 579 .await in trivial_client_async() 581 assert_eq!(test_client.test().await.unwrap(), "trivial_client_test"); in trivial_client_async() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/internal/ |
D | BackupHandlerTest.java | 76 mCountDownLatch.await(MESSAGE_TIMEOUT_MINUTES, TimeUnit.MINUTES); in testSendMessage_propagatesExceptions() 85 mCountDownLatch.await(MESSAGE_TIMEOUT_MINUTES, TimeUnit.MINUTES); in testPost_propagatesExceptions() 94 mCountDownLatch.await(MESSAGE_TIMEOUT_MINUTES, TimeUnit.MINUTES); in testSendMessage_stopping_doesntPropagateExceptions() 103 mCountDownLatch.await(MESSAGE_TIMEOUT_MINUTES, TimeUnit.MINUTES); in testPost_stopping_doesntPropagateExceptions()
|
/frameworks/native/libs/binder/rust/binder_tokio/ |
D | lib.rs | 47 let res = tokio::task::spawn_blocking(move || binder::get_interface::<T>(&name)).await; in get_interface() 73 let res = tokio::task::spawn_blocking(move || binder::check_interface::<T>(&name)).await; in check_interface() 97 let res = tokio::task::spawn_blocking(move || binder::wait_for_interface::<T>(&name)).await; in wait_for_interface() 145 match handle.await { in spawn() 146 Ok(res) => after_spawn(res).await, in spawn()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | BatteryStatsServiceTest.java | 83 startLatch.await(); in testAwaitCompletion() 97 startLatch.await(); in testAwaitCompletion() 114 readyLatch.await(); in testAwaitCompletion() 119 testLatch.await(10 * 1000, TimeUnit.MILLISECONDS)); in testAwaitCompletion()
|
D | ActivityManagerTest.java | 177 latch.await(AWAIT_TIMEOUT, TimeUnit.MILLISECONDS)); in runOnce() 190 latch.await(AWAIT_TIMEOUT, TimeUnit.MILLISECONDS)); in runOnce() 318 assertTrue("Timed out to get the remote messenger", latchHolder[0].await( in testFgsProcStatsTracker() 324 assertTrue("Timed out to wait for stop fg", latchHolder[0].await( in testFgsProcStatsTracker() 330 assertTrue("Timed out to wait for start fg", latchHolder[0].await( in testFgsProcStatsTracker() 336 assertTrue("Timed out to wait for stop fg", latchHolder[0].await( in testFgsProcStatsTracker() 338 assertFalse("There shouldn't be negative values", dboxLatch.await( in testFgsProcStatsTracker() 407 latch.await(AWAIT_TIMEOUT, TimeUnit.MILLISECONDS)); in testAppFreezerWithAllowOomAdj() 438 assertTrue("Timed out to bind to " + TEST_APP2, latchHolder[0].await( in testAppFreezerWithAllowOomAdj() 578 assertTrue("Timed out to get the remote messenger", latchHolder[0].await( in testKillAppIfBgRestrictedCachedIdle() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/location/gnss/ |
D | NtpNetworkTimeHelperTest.java | 88 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in demandUtcTimeInjection_cachedAgeLow_injectTime() 104 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed() 114 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed() 123 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
|
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/ |
D | CallbackUtils.kt | 59 if (!pending.await(CALLBACK_TIMEOUT_SEC, SECONDS)) { in waitForPendingIntent() 71 if (!created.await(CALLBACK_TIMEOUT_SEC, SECONDS)) { in waitForAssociation() 98 if (!completed.await(CALLBACK_TIMEOUT_SEC, SECONDS)) { in waitForCompletion()
|
/frameworks/base/core/java/android/hardware/ |
D | SyncFence.java | 212 public boolean await(@NonNull Duration timeout) { in await() method in SyncFence 219 return await(timeoutNanos); in await() 231 return await(-1); in awaitForever() 234 private boolean await(long timeoutNanos) { in await() method in SyncFence
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkRecommendationProviderTest.java | 72 mScoreRequestLatch.await(200, TimeUnit.MILLISECONDS); in testScoreRequestReceived() 82 assertFalse(mScoreRequestLatch.await(200, TimeUnit.MILLISECONDS)); in testScoreRequest_nullInput() 90 assertFalse(mScoreRequestLatch.await(200, TimeUnit.MILLISECONDS)); in testScoreRequest_emptyInput()
|