/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskStackChangedListenerTest.java | 57 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/ |
D | UserLifecycleTests.java | 43 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/ |
D | AbstractCrossUserContentResolverTest.java | 42 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/ |
D | ImagePoolImplTest.java | 26 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/ |
D | FadeTransitionTest.java | 35 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);
|
D | SlideTransitionTest.java | 31 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/ |
D | ImageWallpaperTest.java | 28 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/ |
D | AppCompactorTest.java | 44 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/ |
D | BinderProxyCountingTest.java | 42 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()
|
D | TestVrActivity.java | 22 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/ |
D | AccountManagerServiceTest.java | 85 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/ |
D | KernelCpuUidBpfMapReaderTest.java | 45 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()
|
D | KernelCpuThreadReaderEndToEndTest.java | 40 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) {
|
D | KernelCpuProcStringReaderTest.java | 47 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/ |
D | RootScanner.java | 26 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/ |
D | GamePerformanceActivity.java | 18 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/ |
D | BluetoothEventManagerIntegTest.java | 42 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/ |
D | RecoverySnapshotListenersStorageTest.java | 19 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/ |
D | NetworkRecommendationProviderTest.java | 38 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/ |
D | ContentCaptureManagerServiceShellCommand.java | 29 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/ |
D | CountDownResultReceiver.java | 22 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/ |
D | TargetPackageUtils.java | 34 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/ |
D | AutofillManagerServiceShellCommand.java | 34 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/ |
D | CastControllerImplTest.java | 29 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/ |
D | WifiTrackerTest.java | 86 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 …]
|