/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | GamePerformanceActivity.java | 59 final CountDownLatch latch = new CountDownLatch(1); in attachSurfaceView() local 66 latch.countDown(); in attachSurfaceView() 69 latch.await(); in attachSurfaceView() 79 final CountDownLatch latch = new CountDownLatch(1); in attachOpenGLView() local 86 latch.countDown(); in attachOpenGLView() 89 latch.await(); in attachOpenGLView() 98 final CountDownLatch latch = new CountDownLatch(1); in attachControlView() local 105 latch.countDown(); in attachControlView() 108 latch.await(); in attachControlView()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | ShellExecutor.java | 47 final CountDownLatch latch = new CountDownLatch(1); in executeBlocking() local 50 latch.countDown(); in executeBlocking() 52 latch.await(waitTimeout, waitTimeUnit); in executeBlocking() 71 final CountDownLatch latch = new CountDownLatch(1); in executeBlockingForResult() local 74 latch.countDown(); in executeBlockingForResult() 77 latch.await(); in executeBlockingForResult()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 589 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionSuccessWithoutPasswordForwarding() local 590 Response response = new Response(latch, mMockAccountManagerResponse); in testStartAddAccountSessionSuccessWithoutPasswordForwarding() 600 waitForLatch(latch); in testStartAddAccountSessionSuccessWithoutPasswordForwarding() 620 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionSuccessWithPasswordForwarding() local 621 Response response = new Response(latch, mMockAccountManagerResponse); in testStartAddAccountSessionSuccessWithPasswordForwarding() 632 waitForLatch(latch); in testStartAddAccountSessionSuccessWithPasswordForwarding() 660 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionReturnWithInvalidIntent() local 661 Response response = new Response(latch, mMockAccountManagerResponse); in testStartAddAccountSessionReturnWithInvalidIntent() 672 waitForLatch(latch); in testStartAddAccountSessionReturnWithInvalidIntent() 689 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionReturnWithValidIntent() local [all …]
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillManagerServiceShellCommand.java | 252 final CountDownLatch latch = new CountDownLatch(1); in getFieldClassificationScore() local 260 latch.countDown(); in getFieldClassificationScore() 263 return waitForLatch(pw, latch); in getFieldClassificationScore() 353 CountDownLatch latch = new CountDownLatch(1); in getSavedPasswordCount() local 361 latch.countDown(); in getSavedPasswordCount() 365 waitForLatch(pw, latch); in getSavedPasswordCount() 376 final CountDownLatch latch = new CountDownLatch(1); in requestDestroy() local 380 latch.countDown(); in requestDestroy() 383 return requestSessionCommon(pw, latch, () -> mService.removeAllSessions(userId, receiver)); in requestDestroy() 392 final CountDownLatch latch = new CountDownLatch(1); in requestList() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | BackNavigationTest.java | 68 CountDownLatch latch = registerBackCallback(); in registerCallback_initialized() local 70 assertCallbackIsCalled(latch); in registerCallback_initialized() 76 CountDownLatch latch = registerBackCallback(); in registerCallback_created() local 79 assertCallbackIsCalled(latch); in registerCallback_created() 87 CountDownLatch latch = registerBackCallback(); in registerCallback_resumed() local 88 assertCallbackIsCalled(latch); in registerCallback_resumed() 91 private void assertCallbackIsCalled(CountDownLatch latch) { in assertCallbackIsCalled() argument 99 assertTrue(latch.await(500, TimeUnit.MILLISECONDS)); in assertCallbackIsCalled()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/ |
D | AndroidFutureTest.java | 54 CountDownLatch latch = new CountDownLatch(1); in testWhenComplete_AlreadyComplete() local 58 latch.countDown(); in testWhenComplete_AlreadyComplete() 60 latch.await(); in testWhenComplete_AlreadyComplete() 66 CountDownLatch latch = new CountDownLatch(1); in testWhenComplete_NotYetComplete() local 70 latch.countDown(); in testWhenComplete_NotYetComplete() 72 assertThat(latch.getCount()).isEqualTo(1); in testWhenComplete_NotYetComplete() 74 latch.await(); in testWhenComplete_NotYetComplete() 75 assertThat(latch.getCount()).isEqualTo(0); in testWhenComplete_NotYetComplete() 93 CountDownLatch latch = new CountDownLatch(1); in testCompleteExceptionally_Listener() local 97 latch.countDown(); in testCompleteExceptionally_Listener() [all …]
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureManagerServiceShellCommand.java | 185 final CountDownLatch latch = new CountDownLatch(1); in requestDestroy() local 189 latch.countDown(); in requestDestroy() 192 return requestSessionCommon(pw, latch, () -> mService.destroySessions(userId, receiver)); in requestDestroy() 201 final CountDownLatch latch = new CountDownLatch(1); in requestList() local 210 latch.countDown(); in requestList() 213 return requestSessionCommon(pw, latch, () -> mService.listSessions(userId, receiver)); in requestList() 225 private int requestSessionCommon(PrintWriter pw, CountDownLatch latch, in requestSessionCommon() argument 228 return waitForLatch(pw, latch); in requestSessionCommon() 231 private int waitForLatch(PrintWriter pw, CountDownLatch latch) { in waitForLatch() argument 233 final boolean received = latch.await(5, TimeUnit.SECONDS); in waitForLatch()
|
/frameworks/base/core/tests/coretests/src/android/transition/ |
D | FadeTransitionTest.java | 53 TransitionLatch latch = setVisibilityInTransition(fadeOut, R.id.square1, View.INVISIBLE); in testFadeOutAndIn() local 54 assertTrue(latch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 58 assertTrue(latch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 63 latch = setVisibilityInTransition(fadeIn, R.id.square1, View.VISIBLE); in testFadeOutAndIn() 64 assertTrue(latch.startLatch.await(400, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 70 assertTrue(latch.endLatch.await(800, TimeUnit.MILLISECONDS)); in testFadeOutAndIn() 176 TransitionLatch latch = new TransitionLatch(); in setVisibilityInTransition() local 177 transition.addListener(latch); in setVisibilityInTransition() 185 return latch; in setVisibilityInTransition() 192 final CountDownLatch latch = new CountDownLatch(2); in waitForAnimation() local [all …]
|
D | SlideTransitionTest.java | 58 TransitionLatch latch = setVisibilityInTransition(slideOut, R.id.square1, View.INVISIBLE); in testShortSlide() local 59 assertTrue(latch.startLatch.await(200, TimeUnit.MILLISECONDS)); in testShortSlide() 65 assertTrue(latch.endLatch.await(400, TimeUnit.MILLISECONDS)); in testShortSlide() 75 latch = setVisibilityInTransition(slideIn, R.id.square1, View.VISIBLE); in testShortSlide() 76 assertTrue(latch.startLatch.await(200, TimeUnit.MILLISECONDS)); in testShortSlide() 82 assertTrue(latch.endLatch.await(400, TimeUnit.MILLISECONDS)); in testShortSlide() 94 TransitionLatch latch = new TransitionLatch(); in setVisibilityInTransition() local 95 transition.addListener(latch); in setVisibilityInTransition() 103 return latch; in setVisibilityInTransition()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverySnapshotListenersStorageTest.java | 58 CountDownLatch latch = new CountDownLatch(1); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() local 63 latch.countDown(); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() 69 assertTrue(latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() 79 CountDownLatch latch = new CountDownLatch(2); in setSnapshotListener_doesNotRepeatedlyInvokeListener() local 83 latch.countDown(); in setSnapshotListener_doesNotRepeatedlyInvokeListener() 91 assertFalse(latch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | TextToSpeechTests.java | 191 final CountDownLatch latch = new CountDownLatch(1); in blockingCallSpeak() local 192 doCountDown(latch).when(mock).onSynthesizeText(Mockito.<SynthesisRequest>anyObject(), in blockingCallSpeak() 196 awaitCountDown(latch, 5, TimeUnit.SECONDS); in blockingCallSpeak() 204 final CountDownLatch latch = new CountDownLatch(1); in blockingInitAndVerify() local 205 doCountDown(latch).when(listener).onInit(errorCode); in blockingInitAndVerify() 210 awaitCountDown(latch, 5, TimeUnit.SECONDS); in blockingInitAndVerify() 222 public static CountDownBehaviour doCountDown(final CountDownLatch latch) { in doCountDown() argument 229 latch.countDown(); in doCountDown() 243 latch.countDown(); in doCountDown() 253 public static void awaitCountDown(CountDownLatch latch, long timeout, TimeUnit unit) [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskStackChangedListenerTest.java | 116 final CountDownLatch latch = new CountDownLatch(1); in testTaskStackChanged_afterFinish() local 120 latch.countDown(); in testTaskStackChanged_afterFinish() 125 waitForCallback(latch); in testTaskStackChanged_afterFinish() 131 final CountDownLatch latch = new CountDownLatch(1); in testTaskStackChanged_resumeWhilePausing() local 135 latch.countDown(); in testTaskStackChanged_resumeWhilePausing() 140 waitForCallback(latch); in testTaskStackChanged_resumeWhilePausing() 147 final CountDownLatch latch = new CountDownLatch(1); in testTaskDescriptionChanged() local 161 latch.countDown(); in testTaskDescriptionChanged() 170 waitForCallback(latch); in testTaskDescriptionChanged() 179 final CountDownLatch latch = new CountDownLatch(1); in testActivityRequestedOrientationChanged() local [all …]
|
/frameworks/base/services/core/java/com/android/server/location/settings/ |
D | SettingsStore.java | 133 CountDownLatch latch = new CountDownLatch(1); 134 BackgroundThread.getExecutor().execute(latch::countDown); 135 latch.await(); 140 CountDownLatch latch = new CountDownLatch(1); 143 latch.countDown(); 145 latch.await();
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | AbstractCrossUserContentResolverTest.java | 86 final CountDownLatch latch = new CountDownLatch(1); in unlockUser() local 92 latch.countDown(); in unlockUser() 101 if (!latch.await(TIMEOUT_USER_UNLOCK_SEC, TimeUnit.SECONDS)) { in unlockUser() 169 public CrossUserContentServiceConnection(CountDownLatch latch) { in CrossUserContentServiceConnection() argument 170 mLatch = latch; in CrossUserContentServiceConnection() 193 public TestContentObserver(CountDownLatch latch, Uri exptectedUri, int expectedUserId) { in TestContentObserver() argument 195 mLatch = latch; in TestContentObserver()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsFavoritingActivityTest.kt | 46 private var latch: CountDownLatch = CountDownLatch(1) variable in com.android.systemui.controls.management.ControlsFavoritingActivityTest 67 latch in create() 94 latch.await() // ensure activity is finished in testBackCallbackRegistrationAndUnregistration() 106 private val latch: CountDownLatch constant 122 latch.countDown() in onStop()
|
D | ControlsEditingActivityTest.kt | 46 private var latch: CountDownLatch = CountDownLatch(1) variable in com.android.systemui.controls.management.ControlsEditingActivityTest 67 latch in create() 94 latch.await() // ensure activity is finished in testBackCallbackRegistrationAndUnregistration() 106 private val latch: CountDownLatch constant in com.android.systemui.controls.management.ControlsEditingActivityTest.TestableControlsEditingActivity 115 latch.countDown() in onStop()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
D | PhysicsAnimatorTestUtils.kt | 80 val latch = CountDownLatch(1) in <lambda>() constant 83 latch.countDown() in <lambda>() 86 latch.await() in <lambda>() 129 val latch = CountDownLatch(animatingProperties.size) in <lambda>() constant 142 latch.countDown() in <lambda>() 147 latch.await(timeoutMs, TimeUnit.MILLISECONDS) in <lambda>() 185 val latch = CountDownLatch(1) in <lambda>() constant 193 latch.countDown() in <lambda>() 198 latch.await(timeoutMs, TimeUnit.MILLISECONDS) in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannableTest.java | 70 final CountDownLatch latch = new CountDownLatch(1); in testRemoveSpanWithIntermediateFlag() local 77 latch.countDown(); in testRemoveSpanWithIntermediateFlag() 87 assertEquals(1, latch.getCount()); in testRemoveSpanWithIntermediateFlag() 89 assertEquals(0, latch.getCount()); in testRemoveSpanWithIntermediateFlag()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 323 final CountDownLatch latch = new CountDownLatch(1); in lockedBootCompleted() local 324 registerUserSwitchObserver(null, latch, userId); in lockedBootCompleted() 329 waitForLatch("Failed to achieve onLockedBootComplete for user " + userId, latch); in lockedBootCompleted() 349 final CountDownLatch latch = new CountDownLatch(1); in ephemeralUserStopped() local 355 latch.countDown(); in ephemeralUserStopped() 365 waitForLatch("Failed to achieve ACTION_USER_STOPPED for user " + userId, latch); in ephemeralUserStopped() 670 final CountDownLatch latch = new CountDownLatch(1); in switchUserNoCheck() local 671 registerUserSwitchObserver(latch, null, userId); in switchUserNoCheck() 674 return latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in switchUserNoCheck() 682 final CountDownLatch latch = new CountDownLatch(1); in stopUser() local [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | MmTelFeatureCompatAdapter.java | 93 public ConfigListener(int capability, int tech, CountDownLatch latch) { in ConfigListener() argument 96 mLatch = latch; in ConfigListener() 298 CountDownLatch latch = new CountDownLatch(1); in queryCapabilityConfiguration() local 305 new ConfigListener(capConverted, regTech, latch) { in queryCapabilityConfiguration() 315 latch.await(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in queryCapabilityConfiguration() 332 CountDownLatch latch = new CountDownLatch(1); in changeEnabledCapabilities() local 339 new ConfigListener(capConverted, radioTechConverted, latch) { in changeEnabledCapabilities() 353 latch.await(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in changeEnabledCapabilities() 357 CountDownLatch latch = new CountDownLatch(1); in changeEnabledCapabilities() local 364 new ConfigListener(capConverted, radioTechConverted, latch) { in changeEnabledCapabilities() [all …]
|
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/ |
D | DumpTestUtils.java | 53 final CountDownLatch latch = new CountDownLatch(1); in dumpService() local 62 latch.countDown(); in dumpService() 65 latch.countDown(); in dumpService() 79 latch.await(timeoutMs, TimeUnit.MILLISECONDS)); in dumpService()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | SystemActionPerformerTest.java | 228 final CountDownLatch latch = new CountDownLatch(1); in testPerformSystemActionNewAction() local 230 TestBroadcastReceiver br = new TestBroadcastReceiver(latch); in testPerformSystemActionNewAction() 234 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testPerformSystemActionNewAction() 247 final CountDownLatch latch = new CountDownLatch(1); in testPerformSystemActionOverrideLegacyActionUsingLegacyActionId() local 250 TestBroadcastReceiver br = new TestBroadcastReceiver(latch); in testPerformSystemActionOverrideLegacyActionUsingLegacyActionId() 254 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testPerformSystemActionOverrideLegacyActionUsingLegacyActionId() 313 TestBroadcastReceiver(CountDownLatch latch) { in TestBroadcastReceiver() argument 314 mLatch = latch; in TestBroadcastReceiver()
|
/frameworks/base/services/backup/java/com/android/server/backup/params/ |
D | AdbParams.java | 30 public final AtomicBoolean latch; field in AdbParams 36 latch = new AtomicBoolean(false); in AdbParams()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewRootImplTest.java | 231 final CountDownLatch latch = new CountDownLatch(1); in requestScrollCapture_withoutContentRoot() local 235 latch.countDown(); in requestScrollCapture_withoutContentRoot() 239 if (latch.await(100, TimeUnit.MILLISECONDS)) { in requestScrollCapture_withoutContentRoot() 262 final CountDownLatch latch = new CountDownLatch(1); in requestScrollCapture_timeout() local 267 latch.countDown(); in requestScrollCapture_timeout() 271 if (!latch.await(2500, TimeUnit.MILLISECONDS)) { in requestScrollCapture_timeout() 282 CountDownLatch latch = new CountDownLatch(1); in whenTouchModeChanges_viewRootIsNotified() local 286 latch.countDown(); in whenTouchModeChanges_viewRootIsNotified() 293 assertThat(latch.await(1, TimeUnit.SECONDS)).isTrue(); in whenTouchModeChanges_viewRootIsNotified()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | HandlerThreadingDomain.java | 72 CountDownLatch latch = new CountDownLatch(1); in postAndWait() local 79 latch.countDown(); in postAndWait() 84 if (!latch.await(durationMillis, TimeUnit.MILLISECONDS)) { in postAndWait()
|