Home
last modified time | relevance | path

Searched refs:CountDownLatch (Results 1 – 25 of 225) sorted by relevance

123456789

/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java74 import java.util.concurrent.CountDownLatch;
178 CountDownLatch removedLatch = new CountDownLatch(1); in testOnRoutesRemovedAndAdded()
179 CountDownLatch addedLatch = new CountDownLatch(1); in testOnRoutesRemovedAndAdded()
219 CountDownLatch addedLatch = new CountDownLatch(1); in testGetRoutes_removedRoute_returnsCorrectRoutes()
220 CountDownLatch removedLatch = new CountDownLatch(1); in testGetRoutes_removedRoute_returnsCorrectRoutes()
286 CountDownLatch latch = new CountDownLatch(1); in testRouterOnSessionCreated()
313 CountDownLatch latch = new CountDownLatch(1); in testGetRoutingSessions()
350 CountDownLatch onSessionCreatedLatch = new CountDownLatch(1); in testTransfer_unknownRoute_fail()
351 CountDownLatch onTransferFailedLatch = new CountDownLatch(1); in testTransfer_unknownRoute_fail()
378 CountDownLatch transferLatch = new CountDownLatch(1); in testRouterRelease_managerGetRoutingSessions()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackChangedListenerTest.java65 import java.util.concurrent.CountDownLatch;
125 final CountDownLatch latch = new CountDownLatch(1); in testTaskStackChanged_afterFinish()
140 final CountDownLatch latch = new CountDownLatch(1); in testTaskStackChanged_resumeWhilePausing()
156 final CountDownLatch latch = new CountDownLatch(1); in testTaskDescriptionChanged()
189 final CountDownLatch latch = new CountDownLatch(1); in testActivityRequestedOrientationChanged()
215 final CountDownLatch taskCreatedLaunchLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
216 final CountDownLatch taskMovedToFrontLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
217 final CountDownLatch taskRemovedLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
218 final CountDownLatch taskRemovalStartedLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
219 final CountDownLatch onDetachedFromWindowLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java43 import java.util.concurrent.CountDownLatch;
68 final CountDownLatch connectionLatch = new CountDownLatch(1); in setUp()
83 final CountDownLatch latch = new CountDownLatch(1); in unlockUser()
133 final CountDownLatch updateLatch = new CountDownLatch(1); in testRegisterContentObserver()
151 final CountDownLatch notifyLatch = new CountDownLatch(1); in testNotifyChange()
164 private final CountDownLatch mLatch;
166 public CrossUserContentServiceConnection(CountDownLatch latch) { in CrossUserContentServiceConnection()
186 private final CountDownLatch mLatch;
190 public TestContentObserver(CountDownLatch latch, Uri exptectedUri, int expectedUserId) { in TestContentObserver()
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java27 import java.util.concurrent.CountDownLatch;
54 CountDownLatch countDownLatch = new CountDownLatch(1); in testImageDispose()
71 CountDownLatch cd = new CountDownLatch(1); in testImageDisposeFromFunction()
97 final CountDownLatch countDownLatch1 = new CountDownLatch(1); in testImageDisposedAndRecycled()
114 final CountDownLatch countDownLatch2 = new CountDownLatch(1); in testImageDisposedAndRecycled()
143 CountDownLatch countDownLatch = new CountDownLatch(1); in testBufferedImageReleased()
206 final CountDownLatch cd1 = new CountDownLatch(1); in testImageMultipleCopies()
243 final CountDownLatch cd1 = new CountDownLatch(1); in testPoolDispose()
272 , int type, CountDownLatch cd) { in createImageAndReturnBufferedImage()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java61 import java.util.concurrent.CountDownLatch;
161 final CountDownLatch latch = new CountDownLatch(1); in createAndStartUser()
182 final CountDownLatch latch = new CountDownLatch(1); in startUser()
238 final CountDownLatch latch = new CountDownLatch(1); in switchUser_stopped()
276 final CountDownLatch latch = new CountDownLatch(1); in stopUser()
296 final CountDownLatch latch = new CountDownLatch(1); in lockedBootCompleted()
317 final CountDownLatch latch = new CountDownLatch(1); in ephemeralUserStopped()
327 final CountDownLatch switchLatch = new CountDownLatch(1); in ephemeralUserStopped()
614 final CountDownLatch latch = new CountDownLatch(1); in switchUserNoCheck()
626 final CountDownLatch latch = new CountDownLatch(1); in stopUser()
[all …]
/frameworks/base/core/tests/coretests/src/android/transition/
DSlideTransitionTest.java31 import java.util.concurrent.CountDownLatch;
107 public CountDownLatch startLatch = new CountDownLatch(1);
108 public CountDownLatch endLatch = new CountDownLatch(1);
109 public CountDownLatch cancelLatch = new CountDownLatch(1);
110 public CountDownLatch pauseLatch = new CountDownLatch(1);
111 public CountDownLatch resumeLatch = new CountDownLatch(1);
DFadeTransitionTest.java35 import java.util.concurrent.CountDownLatch;
139 final CountDownLatch disappearCalled = new CountDownLatch(1); in testSnapshotView()
192 final CountDownLatch latch = new CountDownLatch(2); in waitForAnimation()
206 public CountDownLatch startLatch = new CountDownLatch(1);
207 public CountDownLatch endLatch = new CountDownLatch(1);
208 public CountDownLatch cancelLatch = new CountDownLatch(1);
209 public CountDownLatch pauseLatch = new CountDownLatch(1);
210 public CountDownLatch resumeLatch = new CountDownLatch(1);
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DSingleKeyGestureTests.java41 import java.util.concurrent.CountDownLatch;
55 private CountDownLatch mShortPressed = new CountDownLatch(1);
56 private CountDownLatch mLongPressed = new CountDownLatch(1);
57 private CountDownLatch mVeryLongPressed = new CountDownLatch(1);
58 private CountDownLatch mMultiPressed = new CountDownLatch(1);
/frameworks/base/core/java/com/android/internal/inputmethod/
DCancellationGroup.java26 import java.util.concurrent.CountDownLatch;
43 private ArrayList<CountDownLatch> mLatchList = null;
49 boolean registerLatch(@NonNull CountDownLatch latch) { in registerLatch()
65 void unregisterLatch(@NonNull CountDownLatch latch) { in unregisterLatch()
84 mLatchList.forEach(CountDownLatch::countDown); in cancelAll()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DBatteryStatsServiceTest.java37 import java.util.concurrent.CountDownLatch;
65 final CountDownLatch readyLatch = new CountDownLatch(2); in testAwaitCompletion()
66 final CountDownLatch startLatch = new CountDownLatch(1); in testAwaitCompletion()
67 final CountDownLatch testLatch = new CountDownLatch(1); in testAwaitCompletion()
DActivityManagerTest.java71 import java.util.concurrent.CountDownLatch;
169 CountDownLatch latch = new CountDownLatch(1); in runOnce()
182 latch = new CountDownLatch(1); in runOnce()
240 private CountDownLatch mLatch;
242 MyServiceConnection(CountDownLatch latch) { in MyServiceConnection()
271 final CountDownLatch[] latchHolder = new CountDownLatch[1]; in testFgsProcStatsTracker()
275 final CountDownLatch dboxLatch = new CountDownLatch(1); in testFgsProcStatsTracker()
311 latchHolder[0] = new CountDownLatch(1); in testFgsProcStatsTracker()
319 latchHolder[0] = new CountDownLatch(1); in testFgsProcStatsTracker()
325 latchHolder[0] = new CountDownLatch(1); in testFgsProcStatsTracker()
[all …]
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceActivity.java18 import java.util.concurrent.CountDownLatch;
59 final CountDownLatch latch = new CountDownLatch(1); in attachSurfaceView()
79 final CountDownLatch latch = new CountDownLatch(1); in attachOpenGLView()
98 final CountDownLatch latch = new CountDownLatch(1); in attachControlView()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DShellExecutor.java20 import java.util.concurrent.CountDownLatch;
47 final CountDownLatch latch = new CountDownLatch(1); in executeBlocking()
71 final CountDownLatch latch = new CountDownLatch(1); in executeBlockingForResult()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DCachedAppOptimizerTest.java62 import java.util.concurrent.CountDownLatch;
82 private CountDownLatch mCountDown;
311 mCountDown = new CountDownLatch(1); in useCompaction_listensToDeviceConfigChanges()
321 mCountDown = new CountDownLatch(1); in useCompaction_listensToDeviceConfigChanges()
339 mCountDown = new CountDownLatch(1); in useFreeze_doesNotListenToDeviceConfigChanges()
350 mCountDown = new CountDownLatch(1); in useFreeze_doesNotListenToDeviceConfigChanges()
372 mCountDown = new CountDownLatch(1); in useCompaction_listensToDeviceConfigChangesBadValues()
405 mCountDown = new CountDownLatch(2); in compactAction_listensToDeviceConfigChanges()
427 mCountDown = new CountDownLatch(2); in compactAction_listensToDeviceConfigChangesBadValues()
440 mCountDown = new CountDownLatch(2); in compactAction_listensToDeviceConfigChangesBadValues()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGcUtils.java21 import java.util.concurrent.CountDownLatch;
39 final CountDownLatch fence = new CountDownLatch(1); in runGcAndFinalizersSync()
57 private static void createFinalizationObserver(CountDownLatch fence) { in createFinalizationObserver()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderProxyCountingTest.java42 import java.util.concurrent.CountDownLatch;
125 final CountDownLatch bindLatch = new CountDownLatch(1); in bindService()
171 private CountDownLatch createBinderLimitLatch() throws RemoteException { in createBinderLimitLatch()
172 final CountDownLatch latch = new CountDownLatch(1); in createBinderLimitLatch()
234 final CountDownLatch binderLimitLatch = createBinderLimitLatch(); in testBinderProxyLimitBoundary()
270 final CountDownLatch binderLimitLatch = createBinderLimitLatch(); in testSetBinderProxyLimit()
301 final CountDownLatch firstBinderLimitLatch = createBinderLimitLatch(); in testRearmCallbackThreshold()
317 final CountDownLatch secondBinderLimitLatch = createBinderLimitLatch(); in testRearmCallbackThreshold()
349 final CountDownLatch binderDeathLatch = new CountDownLatch(1); in testKillBadBehavingApp()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java40 import java.util.concurrent.CountDownLatch;
60 private static final ArrayMap<Integer, CountDownLatch> sCommandLatches =
61 new ArrayMap<Integer, CountDownLatch>();
83 final CountDownLatch countDownLatch = new CountDownLatch(1); in startTargetPackage()
127 final CountDownLatch countDownLatch = new CountDownLatch(1); in bindAndWaitForConnectedService()
169 Pair<Integer, CountDownLatch> pair = obtainLatch(); in startStubPackage()
237 private static Pair<Integer, CountDownLatch> obtainLatch() { in obtainLatch()
238 CountDownLatch latch = new CountDownLatch(1); in obtainLatch()
249 CountDownLatch latch = sCommandLatches.get(seq); in releaseLatch()
262 Pair<Integer, CountDownLatch> pair = null; in sendCommand()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/
DBinderCacheManagerTest.java41 import java.util.concurrent.CountDownLatch;
71 CountDownLatch l = new CountDownLatch(1); in testAddListenerAndDie()
87 CountDownLatch l = new CountDownLatch(1); in testListenerNotCalledAfterRemoved()
102 CountDownLatch l = new CountDownLatch(1); in testAddListenerAlreadyDead()
/frameworks/base/services/core/java/com/android/server/locksettings/
DResumeOnRebootServiceProvider.java46 import java.util.concurrent.CountDownLatch;
141 CountDownLatch connectionLatch = new CountDownLatch(1); in bindToService()
176 CountDownLatch binderLatch = new CountDownLatch(1); in wrapBlob()
196 CountDownLatch binderLatch = new CountDownLatch(1); in unwrap()
223 private void waitForLatch(CountDownLatch latch, String reason, long timeOut) in waitForLatch()
239 private final CountDownLatch mResultLatch;
242 private ResumeOnRebootServiceCallback(CountDownLatch resultLatch) { in ResumeOnRebootServiceCallback()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java85 import java.util.concurrent.CountDownLatch;
174 CountDownLatch cdl = new CountDownLatch(1); in tearDown()
562 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionSuccessWithoutPasswordForwarding()
593 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionSuccessWithPasswordForwarding()
633 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionReturnWithInvalidIntent()
662 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionReturnWithValidIntent()
693 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionError()
748 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionSuccessWithoutPasswordForwarding()
778 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionSuccessWithPasswordForwarding()
817 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionReturnWithInvalidIntent()
[all …]
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DMainActivity.kt34 import java.util.concurrent.CountDownLatch
43 private var mCountDownLatch: CountDownLatch? = null
59 fun addSurfaceView(size: Point): CountDownLatch { in addSurfaceView()
61 val surfaceReadyLatch = CountDownLatch(1) in addSurfaceView()
70 fun resizeSurfaceView(size: Point): CountDownLatch { in resizeSurfaceView()
71 mCountDownLatch = CountDownLatch(1) in resizeSurfaceView()
97 surfaceReadyLatch: CountDownLatch in createSurfaceView()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidBpfMapReaderTest.java45 import java.util.concurrent.CountDownLatch;
119 final CountDownLatch ready = new CountDownLatch(10); in testConcurrent()
120 final CountDownLatch start = new CountDownLatch(1); in testConcurrent()
121 final CountDownLatch modify = new CountDownLatch(1); in testConcurrent()
122 final CountDownLatch done = new CountDownLatch(10); in testConcurrent()
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
DAndroidFutureTest.java30 import java.util.concurrent.CountDownLatch;
53 CountDownLatch latch = new CountDownLatch(1); in testWhenComplete_AlreadyComplete()
65 CountDownLatch latch = new CountDownLatch(1); in testWhenComplete_NotYetComplete()
92 CountDownLatch latch = new CountDownLatch(1); in testCompleteExceptionally_Listener()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerIntegTest.java42 import java.util.concurrent.CountDownLatch;
95 final CountDownLatch broadcastLatch = new CountDownLatch(1); in registerAdapterReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
117 final CountDownLatch broadcastLatch = new CountDownLatch(1); in registerProfileReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DInputStageBenchmark.java46 import java.util.concurrent.CountDownLatch;
74 private CountDownLatch mWaitForReceiveInput;
131 private CountDownLatch showSoftKeyboard(View view) { in showSoftKeyboard()
132 final CountDownLatch waitForIme = new CountDownLatch(1); in showSoftKeyboard()
153 final CountDownLatch[] waitForIme = new CountDownLatch[1]; in setUp()
182 mWaitForReceiveInput = new CountDownLatch(1); in injectInputEvent()

123456789