Home
last modified time | relevance | path

Searched refs:countDown (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/
DCallbackUtils.kt44 pending.countDown() in onAssociationPending()
49 created.countDown() in onAssociationCreated()
54 pending.countDown() in onFailure()
55 created.countDown() in onFailure()
89 completed.countDown() in onResult()
94 completed.countDown() in onError()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceSyncGroupTest.java66 syncGroup.addSyncCompleteCallback(mExecutor, finishedLatch::countDown); in testSyncOne()
81 syncGroup.addSyncCompleteCallback(mExecutor, finishedLatch::countDown); in testSyncMultiple()
124 syncGroup1.addSyncCompleteCallback(mExecutor, finishedLatch1::countDown); in testMultipleSyncGroups()
125 syncGroup2.addSyncCompleteCallback(mExecutor, finishedLatch2::countDown); in testMultipleSyncGroups()
154 syncGroup1.addSyncCompleteCallback(mExecutor, finishedLatch1::countDown); in testAddSyncGroup()
155 syncGroup2.addSyncCompleteCallback(mExecutor, finishedLatch2::countDown); in testAddSyncGroup()
190 syncGroup1.addSyncCompleteCallback(mExecutor, finishedLatch1::countDown); in testAddSyncAlreadyComplete()
191 syncGroup2.addSyncCompleteCallback(mExecutor, finishedLatch2::countDown); in testAddSyncAlreadyComplete()
222 syncGroup1.addSyncCompleteCallback(mExecutor, finishedLatch1::countDown); in testAddSyncAlreadyInASync_NewSyncReadyFirst()
223 syncGroup2.addSyncCompleteCallback(mExecutor, finishedLatch2::countDown); in testAddSyncAlreadyInASync_NewSyncReadyFirst()
[all …]
DTaskStackChangedListenerTest.java144 latch.countDown(); in testTaskStackChanged_afterFinish()
159 latch.countDown(); in testTaskStackChanged_resumeWhilePausing()
185 latch.countDown(); in testTaskDescriptionChanged()
210 latch.countDown(); in testActivityRequestedOrientationChanged()
241 taskCreatedLaunchLatch.countDown(); in testTaskChangeCallBacks()
248 taskMovedToFrontLatch.countDown(); in testTaskChangeCallBacks()
254 taskRemovalStartedLatch.countDown(); in testTaskChangeCallBacks()
261 taskRemovedLatch.countDown(); in testTaskChangeCallBacks()
341 mDisplayChangedLatch.countDown(); in onTaskDisplayChanged()
530 mOnAttachedToWindowCountDownLatch.countDown(); in onAttachedToWindow()
[all …]
DScreenshotTests.java129 .addTransactionCommittedListener(Runnable::run, countDownLatch::countDown) in testScreenshotSecureLayers()
151 screenshotComplete.countDown(); in testScreenshotSecureLayers()
209 .addTransactionCommittedListener(Runnable::run, countDownLatch::countDown) in testCaptureDisplay()
228 screenshotComplete.countDown(); in testCaptureDisplay()
281 mAttachedLatch.countDown(); in onAttachedToWindow()
293 countDownLatch.countDown(); in addChildSc()
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerTest.java92 mSurfaceCreationCountDown.countDown(); in setUp()
153 mTestCompleteSignal.countDown(); in testCreateChoreographer()
190 mTestCompleteSignal.countDown(); in testCreateChoreographer()
219 mTestCompleteSignal.countDown(); in testCopySurfaceControl()
228 mTestCompleteSignal.countDown(); in testCopySurfaceControl()
245 mTestCompleteSignal.countDown(); in testMirrorSurfaceControl()
260 mTestCompleteSignal.countDown(); in testMirrorSurfaceControl()
275 frameTimeNanos -> mTestCompleteSignal.countDown()); in testPostFrameCallback()
284 copyChoreographer.postFrameCallback(frameTimeNanos -> mNoCallbackSignal.countDown()); in testPostFrameCallback()
300 callback -> mTestCompleteSignal.countDown(), in testPostFrameCallbackDelayed()
[all …]
/frameworks/av/media/libaaudio/tests/
Dtest_disconnect_race.cpp124 int countDown = 10 * 1000 / kPollSleepMillis; in waitForCallbackToStart() local
125 while (!mCallbackStarted && countDown > 0) { in waitForCallbackToStart()
126 if ((countDown % 5) == 0) { in waitForCallbackToStart()
127 printf("===== Please PLUG or UNPLUG headphones! ======= %d\n", countDown); in waitForCallbackToStart()
130 countDown--; in waitForCallbackToStart()
132 MY_ASSERT_TRUE(countDown > 0); in waitForCallbackToStart()
Dtest_full_queue.cpp103 int countDown = 2 * sleepMillis * sampleRate / (kNumFrames * 1000); in checkFullQueue() local
113 countDown--; in checkFullQueue()
115 && (countDown > 0) in checkFullQueue()
118 EXPECT_GT(countDown, 0); in checkFullQueue()
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java197 addedLatch.countDown(); in testOnRoutesUpdated()
201 changedLatch.countDown(); in testOnRoutesUpdated()
204 removedLatch.countDown(); in testOnRoutesUpdated()
275 addedLatch.countDown(); in testGetRoutes_removedRoute_returnsCorrectRoutes()
280 removedLatch.countDown(); in testGetRoutes_removedRoute_returnsCorrectRoutes()
381 latch.countDown(); in testRouterOnSessionCreated()
410 latch.countDown(); in testGetRoutingSessions()
445 onSessionCreatedLatch.countDown(); in testTransfer_unknownRoute_fail()
449 onTransferFailedLatch.countDown(); in testTransfer_unknownRoute_fail()
484 transferLatch.countDown(); in testRouterRelease_managerGetRoutingSessions()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/view/
DInputStageBenchmark.java86 mWaitForReceiveInput.countDown(); in dispatchKeyEventPreIme()
93 mWaitForReceiveInput.countDown(); in dispatchTouchEvent()
99 mWaitForReceiveInput.countDown(); in dispatchKeyEvent()
113 mWaitForReceiveInput.countDown(); in dispatchKeyEventPreIme()
120 mWaitForReceiveInput.countDown(); in dispatchTouchEvent()
126 mWaitForReceiveInput.countDown(); in dispatchKeyEvent()
135 waitForIme.countDown(); in showSoftKeyboard()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DFullscreenMagnificationControllerTest.java125 Runnable::run, transactionCommittedLatch::countDown); in enableFullscreenMagnification_visibleBorder()
129 animationEndLatch.countDown(); in enableFullscreenMagnification_visibleBorder()
155 Runnable::run, transactionCommittedLatch::countDown); in disableFullscreenMagnification_reverseAnimationAndReleaseScvh()
160 disableAnimationEndLatch.countDown(); in disableFullscreenMagnification_reverseAnimationAndReleaseScvh()
162 enableAnimationEndLatch.countDown(); in disableFullscreenMagnification_reverseAnimationAndReleaseScvh()
199 Runnable::run, transactionCommittedLatch::countDown); in onFullscreenMagnificationActivationChangeTrue_deactivating_reverseAnimator()
203 animationEndLatch.countDown(); in onFullscreenMagnificationActivationChangeTrue_deactivating_reverseAnimator()
226 Runnable::run, transactionCommittedLatch::countDown); in onScreenSizeChanged_activated_borderChangedToExpectedSize()
230 animationEndLatch.countDown(); in onScreenSizeChanged_activated_borderChangedToExpectedSize()
/frameworks/base/services/tests/InputMethodSystemServerTests/test-apps/SimpleTestIme/src/com/android/apps/inputmethod/simpleime/ims/
DInputMethodServiceWrapper.java66 mCountDownLatchForTesting.countDown(); in onStartInputView()
83 mCountDownLatchForTesting.countDown(); in onFinishInputView()
99 mCountDownLatchForTesting.countDown(); in onConfigurationChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DBatteryStatsServiceTest.java81 readyLatch.countDown(); in testAwaitCompletion()
95 readyLatch.countDown(); in testAwaitCompletion()
110 testLatch.countDown(); in testAwaitCompletion()
115 startLatch.countDown(); in testAwaitCompletion()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/
DBackProgressAnimatorTest.java101 () -> mProgressAnimator.onBackCancelled(finishCallbackCalled::countDown)); in testBackCancelled()
120 () -> mProgressAnimator.onBackInvoked(finishCallbackCalled::countDown)); in testBackInvoked()
140 () -> mProgressAnimator.onBackCancelled(cancelCallbackCalled::countDown)); in testResetCallsCancelCallbackImmediately()
167 () -> mProgressAnimator.onBackCancelled(finishCallbackCalled::countDown)); in testCancelFinishCallbackNotInvokedWhenRemoved()
183 mTargetProgressCalled.countDown(); in onGestureProgress()
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DSingleKeyGestureTests.java116 mShortPressed.countDown(); in initSingleKeyGestureRules()
125 mLongPressed.countDown(); in initSingleKeyGestureRules()
130 mVeryLongPressed.countDown(); in initSingleKeyGestureRules()
138 mMultiPressed.countDown(); in initSingleKeyGestureRules()
166 mShortPressed.countDown(); in initSingleKeyGestureRules()
174 mMultiPressed.countDown(); in initSingleKeyGestureRules()
186 mLongPressed.countDown(); in initSingleKeyGestureRules()
402 mShortPressed.countDown(); in testAddRemove()
DKeyCombinationManagerTests.java75 mAction1Triggered.countDown(); in initKeyCombinationRules()
94 mAction2Triggered.countDown(); in initKeyCombinationRules()
113 mAction3Triggered.countDown(); in initKeyCombinationRules()
239 mAction1Triggered.countDown(); in testAddRemove()
/frameworks/base/core/tests/coretests/src/android/transition/
DFadeTransitionTest.java153 disappearCalled.countDown(); in testSnapshotView()
196 latch.countDown(); in waitForAnimation()
214 startLatch.countDown(); in onTransitionStart()
219 endLatch.countDown(); in onTransitionEnd()
225 cancelLatch.countDown(); in onTransitionCancel()
230 pauseLatch.countDown(); in onTransitionPause()
235 resumeLatch.countDown(); in onTransitionResume()
DSlideTransitionTest.java115 startLatch.countDown(); in onTransitionStart()
120 endLatch.countDown(); in onTransitionEnd()
126 cancelLatch.countDown(); in onTransitionCancel()
131 pauseLatch.countDown(); in onTransitionPause()
136 resumeLatch.countDown(); in onTransitionResume()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidBpfMapReaderTest.java134 ready.countDown(); in testConcurrent()
141 done.countDown(); in testConcurrent()
145 ready.countDown(); in testConcurrent()
154 done.countDown(); in testConcurrent()
160 start.countDown(); in testConcurrent()
164 modify.countDown(); in testConcurrent()
DKernelCpuProcStringReaderTest.java269 ready.countDown(); in testConcurrent()
280 done.countDown(); in testConcurrent()
284 ready.countDown(); in testConcurrent()
297 done.countDown(); in testConcurrent()
303 start.countDown(); in testConcurrent()
312 modify.countDown(); in testConcurrent()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/
DBinderCacheManagerTest.java72 assertEquals(mInterface, mBinderCache.listenOnBinder(l, l::countDown)); in testAddListenerAndDie()
78 assertNull(mBinderCache.listenOnBinder(l, l::countDown)); in testAddListenerAndDie()
88 assertEquals(mInterface, mBinderCache.listenOnBinder(l, l::countDown)); in testListenerNotCalledAfterRemoved()
103 assertNull(mBinderCache.listenOnBinder(l, l::countDown)); in testAddListenerAlreadyDead()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastLoopers.java80 latch.countDown(); in waitForIdle()
94 latch.countDown(); in waitForBarrier()
112 latch.countDown(); in waitForCondition()
/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/animation/
DPhysicsAnimatorTestUtils.kt80 latch.countDown() in <lambda>()
139 latch.countDown() in <lambda>()
190 latch.countDown() in <lambda>()
445 unblockLatch.countDown() in <lambda>()
454 unblockLatch.countDown() in <lambda>()
474 unblockLatch.countDown() in <lambda>()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceActivity.java66 latch.countDown(); in attachSurfaceView()
86 latch.countDown(); in attachOpenGLView()
105 latch.countDown(); in attachControlView()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityTransitionDrawableTest.java96 activityAdded.countDown(); in onCreate()
107 startedLatch.countDown(); in onStart()
113 stoppedLatch.countDown(); in onStop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DShellExecutor.java50 latch.countDown(); in executeBlocking()
74 latch.countDown(); in executeBlockingForResult()

12345678910>>...13