Home
last modified time | relevance | path

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

123456

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java349 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_Accumulation()
357 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_Accumulation()
384 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_Accumulation()
392 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_Accumulation()
419 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageLimitObserver_Accumulation()
427 assertTrue(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageLimitObserver_Accumulation()
436 assertFalse(mLimitReachedLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_TimeoutOtherApp()
439 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testAppUsageObserver_TimeoutOtherApp()
448 assertFalse(mLimitReachedLatch.await(6_000L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_TimeoutOtherApp()
451 assertFalse(mLimitReachedLatch.await(100L, TimeUnit.MILLISECONDS)); in testUsageSessionObserver_TimeoutOtherApp()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DAppCompactorTest.java211 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/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 …]
DSlideTransitionTest.java59 assertTrue(latch.startLatch.await(200, TimeUnit.MILLISECONDS)); in testShortSlide()
65 assertTrue(latch.endLatch.await(400, TimeUnit.MILLISECONDS)); in testShortSlide()
76 assertTrue(latch.startLatch.await(200, TimeUnit.MILLISECONDS)); in testShortSlide()
82 assertTrue(latch.endLatch.await(400, TimeUnit.MILLISECONDS)); in testShortSlide()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java109 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/
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()
/frameworks/base/services/robotests/src/com/android/server/location/
DNtpTimeHelperTest.java64 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/
DImagePoolImplTest.java63 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/
DSecurityControllerTest.java128 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()
/frameworks/libs/net/common/hostdevice/com/android/testutils/
DConcurrentUtils.kt26 fun CountDownLatch.await(timeoutMs: Long): Boolean = await(timeoutMs, TimeUnit.MILLISECONDS) method
/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()
DKernelCpuProcStringReaderTest.java264 start.await(); in testConcurrent()
279 start.await(); in testConcurrent()
281 modify.await(); in testConcurrent()
295 assertTrue("Prep timed out", ready.await(100, TimeUnit.MILLISECONDS)); in testConcurrent()
309 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/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java74 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/backup/java/com/android/server/backup/restore/
DAdbRestoreFinishedLatch.java53 void await() { in await() method in AdbRestoreFinishedLatch
58 latched = mLatch.await(fullBackupAgentTimeoutMillis, TimeUnit.MILLISECONDS); in await()
/frameworks/libs/net/common/hostdevice/com/android/net/module/util/
DTrackRecord.kt122 } while (condition.await(deadline - System.currentTimeMillis())) in pollForIndexReadLocked()
247 private fun Condition.await(timeoutMs: Long) = this.await(timeoutMs, TimeUnit.MILLISECONDS) method
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java375 assertTrue("Latch timed out", latch.await(LATCH_TIMEOUT, TimeUnit.MILLISECONDS)); in startTracking()
438 workerLatch.await(LATCH_TIMEOUT, TimeUnit.MILLISECONDS)); in waitForHandlersToProcessCurrentlyEnqueuedMessages()
484 assertTrue("Latch timed out", latch.await(LATCH_TIMEOUT, TimeUnit.MILLISECONDS)); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache()
532 mRequestScoresLatch.await(LATCH_TIMEOUT, TimeUnit.MILLISECONDS)); in startTrackingAfterStopTracking_shouldRequestNewScores()
669 assertTrue(mRequestScoresLatch.await(LATCH_TIMEOUT, TimeUnit.MILLISECONDS)); in scoresShouldBeRequestedForNewScanResultOnly()
689 assertTrue(mRequestScoresLatch.await(LATCH_TIMEOUT, TimeUnit.MILLISECONDS)); in scoresShouldBeRequestedForNewScanResultOnly()
761 mAccessPointsChangedLatch.await(LATCH_TIMEOUT, TimeUnit.MILLISECONDS)); in rssiChangeBroadcastShouldUpdateConnectedAp()
831 lock.await(); in stopTrackingShouldRemoveAllPendingWork()
843 ready.await(); // Make sure we have entered the first message handler in stopTrackingShouldRemoveAllPendingWork()
848 assertTrue("Latch timed out", latch.await(LATCH_TIMEOUT, TimeUnit.MILLISECONDS)); in stopTrackingShouldRemoveAllPendingWork()
[all …]
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceActivity.java54 latch.await(); in attachSurfaceView()
77 latch.await(); in attachOpenGLView()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerIntegTest.java106 assertTrue(broadcastLatch.await(LATCH_TIMEOUT, SECONDS)); in registerAdapterReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
128 assertTrue(broadcastLatch.await(LATCH_TIMEOUT, SECONDS)); in registerProfileReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java69 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/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/
DPhysicsAnimationLayoutTest.java125 animLatch.await(1, TimeUnit.SECONDS); in testUpdateValueNotChained()
172 xLatch.await(); in testSetEndActions()
173 yLatch.await(1, TimeUnit.SECONDS); in testSetEndActions()
205 xLatch.await(); in testRemoveEndListeners()
215 xLatch.await(1, TimeUnit.SECONDS); in testRemoveEndListeners()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceAnimationRunnerTest.java101 mFinishCallbackLatch.await(1, SECONDS); in testAnimation()
180 mFinishCallbackLatch.await(1, SECONDS); in testDeferStartingAnimations()
201 latch.await(); in waitUntilNextFrame()
DAssistDataRequesterTest.java122 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/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java77 final boolean targetPackageIdleSuccess = countDownLatch.await(AWAIT_SERVICE_CONNECT_MS, in startTargetPackage()
131 final boolean connectedSuccess = countDownLatch.await(AWAIT_SERVICE_CONNECT_MS, in bindAndWaitForConnectedService()
/frameworks/base/core/tests/coretests/src/android/widget/
DAppWidgetHostViewTest.java97 mViewAddListener.addLatch.await(); in asyncInflation()
118 mViewAddListener.addLatch.await(); in asyncInflation_cancelled()

123456