Home
last modified time | relevance | path

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

1234567

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackChangedListenerTest.java57 import java.util.concurrent.CountDownLatch;
113 final CountDownLatch latch = new CountDownLatch(1); in testTaskDescriptionChanged()
146 final CountDownLatch latch = new CountDownLatch(1); in testActivityRequestedOrientationChanged()
173 final CountDownLatch taskCreatedLaunchLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
174 final CountDownLatch taskMovedToFrontLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
175 final CountDownLatch taskRemovedLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
176 final CountDownLatch taskRemovalStartedLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
177 final CountDownLatch onDetachedFromWindowLatch = new CountDownLatch(1); in testTaskChangeCallBacks()
244 final CountDownLatch activityViewReadyLatch = new CountDownLatch(1); in testTaskOnSingleTaskDisplayDrawn()
245 final CountDownLatch singleTaskDisplayDrawnLatch = new CountDownLatch(1); in testTaskOnSingleTaskDisplayDrawn()
[all …]
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java43 import java.util.concurrent.CountDownLatch;
106 final CountDownLatch latch = new CountDownLatch(1); in createAndStartUser()
141 final CountDownLatch latch = new CountDownLatch(1); in switchUser_stopped()
180 final CountDownLatch latch = new CountDownLatch(1); in stopUser()
200 final CountDownLatch latch = new CountDownLatch(1); in lockedBootCompleted()
220 final CountDownLatch latch = new CountDownLatch(1); in managedProfileUnlock()
241 final CountDownLatch latch1 = new CountDownLatch(1); in managedProfileUnlock_stopped()
248 final CountDownLatch latch2 = new CountDownLatch(1); in managedProfileUnlock_stopped()
269 final CountDownLatch latch = new CountDownLatch(1); in ephemeralUserStopped()
279 final CountDownLatch switchLatch = new CountDownLatch(1); in ephemeralUserStopped()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java42 import java.util.concurrent.CountDownLatch;
67 final CountDownLatch connectionLatch = new CountDownLatch(1); in setUp()
82 final CountDownLatch latch = new CountDownLatch(1); in unlockUser()
132 final CountDownLatch updateLatch = new CountDownLatch(1); in testRegisterContentObserver()
150 final CountDownLatch notifyLatch = new CountDownLatch(1); in testNotifyChange()
163 private final CountDownLatch mLatch;
165 public CrossUserContentServiceConnection(CountDownLatch latch) { in CrossUserContentServiceConnection()
185 private final CountDownLatch mLatch;
189 public TestContentObserver(CountDownLatch latch, Uri exptectedUri, int expectedUserId) { in TestContentObserver()
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java26 import java.util.concurrent.CountDownLatch;
53 CountDownLatch countDownLatch = new CountDownLatch(1); in testImageDispose()
70 CountDownLatch cd = new CountDownLatch(1); in testImageDisposeFromFunction()
96 final CountDownLatch countDownLatch1 = new CountDownLatch(1); in testImageDisposedAndRecycled()
113 final CountDownLatch countDownLatch2 = new CountDownLatch(1); in testImageDisposedAndRecycled()
142 CountDownLatch countDownLatch = new CountDownLatch(1); in testBufferedImageReleased()
205 final CountDownLatch cd1 = new CountDownLatch(1); in testImageMultipleCopies()
241 final CountDownLatch cd1 = new CountDownLatch(1); in testPoolDispose()
270 , int type, CountDownLatch cd) { in createImageAndReturnBufferedImage()
/frameworks/base/core/tests/coretests/src/android/transition/
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);
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);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DImageWallpaperTest.java28 import java.util.concurrent.CountDownLatch;
34 private CountDownLatch mEventCountdown;
35 private CountDownLatch mAmbientEventCountdown;
40 mEventCountdown = new CountDownLatch(1); in setUp()
41 mAmbientEventCountdown = new CountDownLatch(2); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DAppCompactorTest.java44 import java.util.concurrent.CountDownLatch;
62 private CountDownLatch mCountDown;
208 mCountDown = new CountDownLatch(1); in useCompaction_listensToDeviceConfigChanges()
218 mCountDown = new CountDownLatch(1); in useCompaction_listensToDeviceConfigChanges()
232 mCountDown = new CountDownLatch(1); in useCompaction_listensToDeviceConfigChangesBadValues()
250 mCountDown = new CountDownLatch(2); in compactAction_listensToDeviceConfigChanges()
272 mCountDown = new CountDownLatch(2); in compactAction_listensToDeviceConfigChangesBadValues()
285 mCountDown = new CountDownLatch(2); in compactAction_listensToDeviceConfigChangesBadValues()
303 mCountDown = new CountDownLatch(6); in compactThrottle_listensToDeviceConfigChanges()
345 mCountDown = new CountDownLatch(1); in compactThrottle_listensToDeviceConfigChangesBadValues()
[all …]
/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()
DTestVrActivity.java22 import java.util.concurrent.CountDownLatch;
29 private CountDownLatch mLatch;
34 mLatch = new CountDownLatch(1); in onCreate()
/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()
548 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionSuccessWithoutPasswordForwarding()
579 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionSuccessWithPasswordForwarding()
619 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionReturnWithInvalidIntent()
648 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionReturnWithValidIntent()
679 final CountDownLatch latch = new CountDownLatch(1); in testStartAddAccountSessionError()
734 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionSuccessWithoutPasswordForwarding()
764 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionSuccessWithPasswordForwarding()
803 final CountDownLatch latch = new CountDownLatch(1); in testStartUpdateCredentialsSessionReturnWithInvalidIntent()
[all …]
/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()
DKernelCpuThreadReaderEndToEndTest.java40 import java.util.concurrent.CountDownLatch;
110 final CountDownLatch workFinishedLatch = new CountDownLatch(numSamples); in getAverageWorkTime()
113 final CountDownLatch threadFinishedLatch = new CountDownLatch(1); in getAverageWorkTime()
205 CountDownLatch workFinishedLatch,
206 CountDownLatch threadFinishedLatch) {
DKernelCpuProcStringReaderTest.java47 import java.util.concurrent.CountDownLatch;
253 final CountDownLatch ready = new CountDownLatch(10); in testConcurrent()
254 final CountDownLatch start = new CountDownLatch(1); in testConcurrent()
255 final CountDownLatch modify = new CountDownLatch(1); in testConcurrent()
256 final CountDownLatch done = new CountDownLatch(10); in testConcurrent()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DRootScanner.java26 import java.util.concurrent.CountDownLatch;
81 synchronized CountDownLatch resume() { in resume()
121 final CountDownLatch mStopped = new CountDownLatch(1);
126 final CountDownLatch mFirstScanCompleted = new CountDownLatch(1);
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceActivity.java18 import java.util.concurrent.CountDownLatch;
41 final CountDownLatch latch = new CountDownLatch(1); in attachSurfaceView()
64 final CountDownLatch latch = new CountDownLatch(1); in attachOpenGLView()
/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/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java19 import java.util.concurrent.CountDownLatch;
58 CountDownLatch latch = new CountDownLatch(1); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
79 CountDownLatch latch = new CountDownLatch(2); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkRecommendationProviderTest.java38 import java.util.concurrent.CountDownLatch;
51 private CountDownLatch mScoreRequestLatch;
59 mScoreRequestLatch = new CountDownLatch(1); in setUp()
108 private final CountDownLatch mScoreRequestLatch;
111 NetworkRecProvider(Context context, Executor executor, CountDownLatch networkRequestLatch) { in NetworkRecProvider()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerServiceShellCommand.java29 import java.util.concurrent.CountDownLatch;
185 final CountDownLatch latch = new CountDownLatch(1); in requestDestroy()
201 final CountDownLatch latch = new CountDownLatch(1); in requestList()
225 private int requestSessionCommon(PrintWriter pw, CountDownLatch latch, in requestSessionCommon()
231 private int waitForLatch(PrintWriter pw, CountDownLatch latch) { in waitForLatch()
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DCountDownResultReceiver.java22 import java.util.concurrent.CountDownLatch;
25 private CountDownLatch mCountDownLatch;
27 public CountDownResultReceiver(CountDownLatch countDownLatch) { in CountDownResultReceiver()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java34 import java.util.concurrent.CountDownLatch;
70 final CountDownLatch countDownLatch = new CountDownLatch(1); in startTargetPackage()
114 final CountDownLatch countDownLatch = new CountDownLatch(1); in bindAndWaitForConnectedService()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceShellCommand.java34 import java.util.concurrent.CountDownLatch;
246 final CountDownLatch latch = new CountDownLatch(1); in getFieldClassificationScore()
351 final CountDownLatch latch = new CountDownLatch(1); in requestDestroy()
367 final CountDownLatch latch = new CountDownLatch(1); in requestList()
391 private int requestSessionCommon(PrintWriter pw, CountDownLatch latch, in requestSessionCommon()
397 private int waitForLatch(PrintWriter pw, CountDownLatch latch) { in waitForLatch()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCastControllerImplTest.java29 import java.util.concurrent.CountDownLatch;
88 CountDownLatch startThreadsLatch = new CountDownLatch(1); in testAddCallbackRemoveCallback_concurrently()
89 CountDownLatch threadsDone = new CountDownLatch(numThreads); in testAddCallbackRemoveCallback_concurrently()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java86 import java.util.concurrent.CountDownLatch;
160 private CountDownLatch mAccessPointsChangedLatch;
161 private CountDownLatch mRequestScoresLatch;
370 CountDownLatch latch = new CountDownLatch(1); in startTracking()
435 CountDownLatch workerLatch = new CountDownLatch(1); in waitForHandlersToProcessCurrentlyEnqueuedMessages()
473 CountDownLatch latch = new CountDownLatch(1); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache()
529 mRequestScoresLatch = new CountDownLatch(1); in startTrackingAfterStopTracking_shouldRequestNewScores()
667 mRequestScoresLatch = new CountDownLatch(1); in scoresShouldBeRequestedForNewScanResultOnly()
687 mRequestScoresLatch = new CountDownLatch(1); in scoresShouldBeRequestedForNewScanResultOnly()
755 mAccessPointsChangedLatch = new CountDownLatch(1); in rssiChangeBroadcastShouldUpdateConnectedAp()
[all …]

1234567