Home
last modified time | relevance | path

Searched refs:await (Results 1 – 25 of 243) sorted by relevance

12345678910

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java369 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/
DKeyCombinationTests.java164 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()
DSingleKeyGestureTests.java178 assertTrue(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testShortPress()
184 assertTrue(mLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testLongPress()
190 assertTrue(mVeryLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testVeryLongPress()
199 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress()
207 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress()
215 assertFalse(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testNonInteractive()
219 assertTrue(mLongPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testNonInteractive()
237 assertTrue(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testShortPress_Pressure()
259 assertTrue(mMultiPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress_Pressure()
264 assertTrue(mShortPressed.await(mWaitTimeout, TimeUnit.MILLISECONDS)); in testMultiPress_Pressure()
/frameworks/base/core/tests/coretests/src/android/transition/
DFadeTransitionTest.java54 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/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java214 assertTrue(removedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnRoutesRemovedAndAdded()
217 assertTrue(addedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnRoutesRemovedAndAdded()
252 assertTrue(removedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetRoutes_removedRoute_returnsCorrectRoutes()
259 assertTrue(addedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetRoutes_removedRoute_returnsCorrectRoutes()
346 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRouterOnSessionCreated()
372 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetRoutingSessions()
411 assertFalse(onSessionCreatedLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testTransfer_unknownRoute_fail()
412 assertTrue(onTransferFailedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransfer_unknownRoute_fail()
444 assertTrue(transferLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRouterRelease_managerGetRoutingSessions()
450 assertTrue(releaseLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRouterRelease_managerGetRoutingSessions()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/input/
DInputManagerServiceTests.kt121 countDownLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId()
129 countDownLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId()
150 countDownLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId()
156 countDownLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId()
172 countDownLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId_unsuccessfulUpdate()
181 countDownLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId_unsuccessfulUpdate()
200 firstRequestLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId_competingRequests()
203 firstRequestSyncLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId_competingRequests()
213 secondRequestLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId_competingRequests()
222 firstRequestLatch.await(100, TimeUnit.MILLISECONDS)) in testSetVirtualMousePointerDisplayId_competingRequests()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceSyncerTest.java57 finishedLatch.await(5, TimeUnit.SECONDS); in testSyncOne()
82 finishedLatch.await(5, TimeUnit.SECONDS); in testSyncMultiple()
123 finishedLatch1.await(5, TimeUnit.SECONDS); in testMultipleSyncSets()
129 finishedLatch2.await(5, TimeUnit.SECONDS); in testMultipleSyncSets()
152 finishedLatch2.await(1, TimeUnit.SECONDS); in testMergeSync()
159 finishedLatch1.await(5, TimeUnit.SECONDS); in testMergeSync()
162 finishedLatch2.await(5, TimeUnit.SECONDS); in testMergeSync()
182 finishedLatch1.await(5, TimeUnit.SECONDS); in testMergeSyncAlreadyComplete()
191 finishedLatch2.await(5, TimeUnit.SECONDS); in testMergeSyncAlreadyComplete()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCachedAppOptimizerTest.java314 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
324 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChanges()
342 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isFalse(); in useFreeze_doesNotListenToDeviceConfigChanges()
353 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useFreeze_doesNotListenToDeviceConfigChanges()
375 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in useCompaction_listensToDeviceConfigChangesBadValues()
412 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChanges()
432 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues()
445 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactAction_listensToDeviceConfigChangesBadValues()
483 assertThat(mCountDown.await(7, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChanges()
514 assertThat(mCountDown.await(5, TimeUnit.SECONDS)).isTrue(); in compactThrottle_listensToDeviceConfigChangesBadValues()
[all …]
/frameworks/base/tests/TrustTests/src/android/trust/test/
DUserUnlockRequestTest.kt57 await() in reportUserRequestedUnlock_propagatesToAgent()
66 await() in reportUserRequestedUnlock_propagatesToAgentWithDismissKeyguard()
76 await() in reportUserMayRequestUnlock_propagatesToAgent()
84 private fun await() = Thread.sleep(250) in await() method
DGrantAndRevokeTrustTest.kt81 await() in grantKeepsDeviceUnlocked_untilRevoked()
92 await() in grantDoesNotCallBack()
100 private fun await() = Thread.sleep(250) method
/frameworks/base/core/tests/coretests/src/android/os/
DBinderProxyCountingTest.java143 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()
DBinderDeathRecipientTest.java90 assertTrue("Request for binder timed out", resultLatch.await(5, TimeUnit.SECONDS)); in getNewRemoteBinder()
106 deathNotificationLatch.await(10, TimeUnit.SECONDS)); in binderDied_noArgs()
126 barrier.await(); in binderDied_iBinderArg()
140 barrier.await(10, TimeUnit.SECONDS); in binderDied_iBinderArg()
149 barrier.await(10, TimeUnit.SECONDS); in binderDied_iBinderArg()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DBatteryStatsServiceTest.java79 startLatch.await(); in testAwaitCompletion()
93 startLatch.await(); in testAwaitCompletion()
110 readyLatch.await(); in testAwaitCompletion()
115 testLatch.await(10 * 1000, TimeUnit.MILLISECONDS)); in testAwaitCompletion()
DActivityManagerTest.java177 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/tests/servicestests/src/com/android/server/backup/internal/
DBackupHandlerTest.java76 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/base/services/robotests/src/com/android/server/location/gnss/
DNtpTimeHelperTest.java86 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime()
102 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
112 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
121 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
/frameworks/libs/net/common/testutils/hostdevice/com/android/testutils/
DConcurrentUtils.kt28 fun CountDownLatch.await(timeoutMs: Long): Boolean = await(timeoutMs, TimeUnit.MILLISECONDS) method
/frameworks/base/core/java/android/hardware/
DSyncFence.java184 public boolean await(@NonNull Duration timeout) { in await() method in SyncFence
191 return await(timeoutNanos); in await()
203 return await(-1); in awaitForever()
206 private boolean await(long timeoutNanos) { in await() method in SyncFence
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/
DMyContentCaptureService.java136 await(mCreated, "not created"); in waitOnCreate()
151 await(mDestroyed, "not destroyed"); in waitOnDestroy()
172 private static void await(@NonNull CountDownLatch latch, @NonNull String fmt, in await() method in MyContentCaptureService.ServiceWatcher
175 final boolean called = latch.await(GENERIC_TIMEOUT_MS, TimeUnit.MILLISECONDS); in await()
/frameworks/native/libs/binder/rust/tests/
Dintegration.rs449 binder_tokio::get_interface::<dyn ITest>("this_service_does_not_exist").await.err(), in check_services_async()
453 … binder_tokio::get_interface::<dyn IATest<Tokio>>("this_service_does_not_exist").await.err(), in check_services_async()
459 binder_tokio::get_interface::<dyn ITest>("manager").await.err(), in check_services_async()
463 binder_tokio::get_interface::<dyn IATest<Tokio>>("manager").await.err(), in check_services_async()
515 … binder_tokio::get_interface(service_name).await.expect("Did not get manager binder service"); in trivial_client_async()
516 assert_eq!(test_client.test().await.unwrap(), "trivial_client_test"); in trivial_client_async()
533 … binder_tokio::wait_for_interface(service_name).await.expect("Did not get manager binder service"); in wait_for_trivial_client_async()
534 assert_eq!(test_client.test().await.unwrap(), "wait_for_trivial_client_test"); in wait_for_trivial_client_async()
565 … binder_tokio::get_interface(service_name).await.expect("Did not get manager binder service"); in get_selinux_context_async()
567 test_client.get_selinux_context().await.unwrap(), in get_selinux_context_async()
[all …]
/frameworks/native/libs/binder/rust/binder_tokio/
Dlib.rs46 }).await; in get_interface()
70 }).await; in wait_for_interface()
113 match handle.await { in spawn()
114 Ok(res) => after_spawn(res).await, in spawn()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidBpfMapReaderTest.java128 start.await(); in testConcurrent()
139 start.await(); in testConcurrent()
141 modify.await(); in testConcurrent()
151 assertTrue("Prep timed out", ready.await(100, TimeUnit.MILLISECONDS)); in testConcurrent()
159 assertTrue("Execution timed out", done.await(3, TimeUnit.SECONDS)); in testConcurrent()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkRecommendationProviderTest.java72 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/kotlin/
DSuspendUtilTests.kt38 { winner.await() }, in <lambda>()
43 assertThat(result.await()).isEqualTo(1) in <lambda>()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceActivity.java69 latch.await(); in attachSurfaceView()
89 latch.await(); in attachOpenGLView()
108 latch.await(); in attachControlView()

12345678910