Home
last modified time | relevance | path

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

12345678910>>...18

/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DUwbManagerTest.java97 import java.util.concurrent.CountDownLatch;
164 CountDownLatch countDownLatch = new CountDownLatch(1); in setUwbEnabledAndWaitForCompletion()
428 private final CountDownLatch mCountDownLatch;
433 AdfProvisionStateCallback(@NonNull CountDownLatch countDownLatch) { in AdfProvisionStateCallback()
453 CountDownLatch countDownLatch = new CountDownLatch(1); in testProvisionProfileAdfByScriptWithoutUwbPrivileged()
483 private final CountDownLatch mRspCountDownLatch;
484 private final CountDownLatch mNtfCountDownLatch;
491 @NonNull CountDownLatch rspCountDownLatch, in UwbVendorUciCallback()
492 @NonNull CountDownLatch ntfCountDownLatch) { in UwbVendorUciCallback()
518 new UwbVendorUciCallback(new CountDownLatch(1), new CountDownLatch(1)); in testRegisterVendorUciCallbackWithoutUwbPrivileged()
[all …]
/packages/modules/AdServices/adservices/tests/cts/endtoends/measurement/src/com/android/adservices/tests/cts/measurement/
DMeasurementManagerCtsTest.java60 import java.util.concurrent.CountDownLatch;
127 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_withNoServerSetupWithCallbackOsReceiver_noErrors()
139 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_withNoServerSetupWithCallbackCustomReceiver_noErrors()
154 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_withLocalhostUriNonDebuggableCallerWithOsReceiver_fails()
179 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_withLocalhostUriNonDebuggableCallerWithCustomReceiver_fails()
266 CountDownLatch countDownLatch = new CountDownLatch(1);
276 CountDownLatch countDownLatch = new CountDownLatch(1);
353 CountDownLatch countDownLatch = new CountDownLatch(1);
364 CountDownLatch countDownLatch = new CountDownLatch(1);
453 CountDownLatch countDownLatch = new CountDownLatch(1);
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DUpdateAdCounterHistogramWorkerTest.java68 import java.util.concurrent.CountDownLatch;
118 CountDownLatch callbackLatch = new CountDownLatch(1); in testWorkerUpdatesHistogramAndNotifiesSuccess()
151 CountDownLatch callbackLatch = new CountDownLatch(1); in testWorkerValidatesInvalidAdEventTypeAndNotifiesFailure()
187 CountDownLatch callbackLatch = new CountDownLatch(1); in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure()
214 CountDownLatch callbackLatch = new CountDownLatch(1); in testWorkerFilterFailureStopsAndNotifiesFailure()
232 CountDownLatch callbackLatch = new CountDownLatch(1); in testWorkerConsentFailureStopsAndNotifiesSuccess()
258 CountDownLatch callbackLatch = new CountDownLatch(1); in testWorkerInvalidArgumentFailureStopsAndNotifiesFailure()
286 CountDownLatch logCallbackErrorLatch = new CountDownLatch(1); in testWorkerSuccessWithCallbackErrorLogsUnknownError()
299 CountDownLatch callbackLatch = new CountDownLatch(1); in testWorkerSuccessWithCallbackErrorLogsUnknownError()
334 CountDownLatch logCallbackErrorLatch = new CountDownLatch(1); in testWorkerFailureWithCallbackErrorLogsUnknownError()
[all …]
DAdSelectionScriptEngineTest.java87 import java.util.concurrent.CountDownLatch;
335 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidSuccessfulCase()
380 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidWithAdCostSuccessfulCaseCpcBillingEnabled()
429 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidWithAdCostDoesNotAddAdCostCpcBillingDisabled()
478 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidWithOnlyOneAdCostSuccessfulCase()
531 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidWithCopierSuccessfulCase()
576 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidWithCopierWithAdCounterKeysSuccessfulCase()
613 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidV3SuccessfulCase()
674 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidV3WithCopierSuccessfulCase()
735 CountDownLatch loggerLatch = new CountDownLatch(1); in testGenerateBidV3WithCopierWithAdCounterKeysSuccessfulCase()
[all …]
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DCarAudioManagerTestUtils.java27 import java.util.concurrent.CountDownLatch;
40 private final CountDownLatch mGroupVolumeChangeLatch = new CountDownLatch(1);
41 private final CountDownLatch mGroupMuteChangeLatch = new CountDownLatch(1);
42 private final CountDownLatch mMasterMuteChangeLatch = new CountDownLatch(1);
83 private CountDownLatch mVolumeGroupEventLatch = new CountDownLatch(1);
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/
DMeasurementCompatibleManagerTest.java75 import java.util.concurrent.CountDownLatch;
129 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_callingApp_expectedAttributionSource()
172 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_adIdEnabled_register()
211 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_adIdZeroOut_register()
249 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_adIdDisabled_register()
288 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_adIdTimeOut_register()
366 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterSource_callingSdk_expectedAttributionSource()
388 final CountDownLatch anyCountDownLatch = new CountDownLatch(1); in testRegisterSource_executorAndCallbackCalled()
432 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterWebSource_callingApp_expectedAttributionSource()
459 CountDownLatch countDownLatch = new CountDownLatch(1); in testRegisterWebSource_callingSdk_expectedAttributionSource()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DConcurrentUtilsTest.java27 import java.util.concurrent.CountDownLatch;
68 CountDownLatch count = new CountDownLatch(2); in testWaitForCountDownNoInterruptNormal()
81 CountDownLatch count = new CountDownLatch(2); in testWaitForCountDownNoInterruptTimeout()
88 CountDownLatch count = new CountDownLatch(2); in testWaitForCountDownNoInterruptInterrupted()
98 CountDownLatch count = new CountDownLatch(1); in testDirectExecutor()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DHealthConnectServiceLogsTests.java66 import java.util.concurrent.CountDownLatch;
162 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectReadRecords()
190 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectReadRecordsError()
222 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectGetChangeLogTokenError()
258 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectGetChangeLogs()
281 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectGetChangeLogsError()
304 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectAggregatedData()
329 CountDownLatch latch = new CountDownLatch(1); in testHealthConnectAggregatedDataError()
361 CountDownLatch latch = new CountDownLatch(1); in getChangeLogToken()
388 CountDownLatch latch = new CountDownLatch(1); in updateRecords()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/
DJobServiceTest.java62 import java.util.concurrent.CountDownLatch;
147 CountDownLatch logOperationCalledLatch1 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_succeedThenSucceed()
165 CountDownLatch logOperationCalledLatch2 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_succeedThenSucceed()
198 CountDownLatch logOperationCalledLatch1 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
214 CountDownLatch logOperationCalledLatch2 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
247 CountDownLatch logOperationCalledLatch1 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_onStopWithRetryThenOnStopWithoutRetry()
270 CountDownLatch logOperationCalledLatch2 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_onStopWithRetryThenOnStopWithoutRetry()
303 CountDownLatch logOperationCalledLatch1 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_successThenHaltedByDevice()
320 CountDownLatch logOperationCalledLatch2 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_successThenHaltedByDevice()
332 CountDownLatch logOperationCalledLatch3 = createCountDownLatchWithMockedOperation(); in testJobExecutionLifeCycle_successThenHaltedByDevice()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/oem/
DCarOemProxyServiceHelperTest.java44 import java.util.concurrent.CountDownLatch;
140 CountDownLatch latch = new CountDownLatch(1); in testDoBinderCallWithDefaultValueAndDelayedWaitAndCrash()
170 CountDownLatch latch = new CountDownLatch( in testCircularCallSingleCaller()
172 CountDownLatch latchForReleasing = new CountDownLatch(1); in testCircularCallSingleCaller()
210 CountDownLatch latch = new CountDownLatch( in testCircularCallMultipleCaller()
212 CountDownLatch latchForReleasing = new CountDownLatch(1); in testCircularCallMultipleCaller()
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DTransportSipMessageValidatorTest.java57 import java.util.concurrent.CountDownLatch;
202 CountDownLatch l = new CountDownLatch(1); in testTransportClosingGracefullyNoPendingSessions()
224 CountDownLatch l = new CountDownLatch(1); in testTransportClosingGracefullyCloseCallIds()
254 CountDownLatch l = new CountDownLatch(1); in testTransportClosingGracefullyThenForceClose()
283 CountDownLatch l = new CountDownLatch(1); in testTransportClosingGracefullyTimeout()
311 CountDownLatch l = new CountDownLatch(1); in testTransportClosingGracefullyCleanup()
351 CountDownLatch l = new CountDownLatch(1); in setRegStateChangedNoPendingCallIds()
372 CountDownLatch l = new CountDownLatch(2); in setRegStateChangedPendingCallIdsMultipleCalls()
401 CountDownLatch l = new CountDownLatch(1); in setRegStateChangedPendingCallIdsTimeout()
424 CountDownLatch l = new CountDownLatch(1); in setRegStateChangedPendingCallIdsResolved()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DBackgroundFetchWorkerTest.java89 import java.util.concurrent.CountDownLatch;
292 CountDownLatch closeLoggerLatch = new CountDownLatch(1); in testRunBackgroundFetchThrowsTimeoutDuringUpdates()
323 CountDownLatch latchForExecutionLoggerClose = new CountDownLatch(1);
359 CountDownLatch latchForExecutionLoggerClose = new CountDownLatch(1);
396 CountDownLatch latchForExecutionLoggerClose = new CountDownLatch(1);
437 CountDownLatch latchForExecutionLoggerClose = new CountDownLatch(1);
459 CountDownLatch partialCompletionLatch = new CountDownLatch(numEligibleCustomAudiences / 4);
484 CountDownLatch latchForExecutionLoggerClose = new CountDownLatch(1);
488 CountDownLatch bgfWorkStoppedLatch = new CountDownLatch(1);
530 CountDownLatch partialCompletionLatch = new CountDownLatch(numEligibleCustomAudiences / 4);
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchHistoryManagerTest.java34 import java.util.concurrent.CountDownLatch;
42 private CountDownLatch mLatch ;
73 mLatch = new CountDownLatch(2); in testAddHistory()
96 mLatch = new CountDownLatch(2); in testDeleteHistory()
123 mLatch = new CountDownLatch(2); in testDeleteHistory()
132 mLatch = new CountDownLatch(2); in testGetHistoryList()
148 mLatch = new CountDownLatch(2); in testGetHistoryList()
152 mLatch = new CountDownLatch(2); in testGetHistoryList()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DIwlanNetworkStatusTrackerTest.java44 import java.util.concurrent.CountDownLatch;
79 CountDownLatch mLatch;
144 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_InvalidSubID()
150 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_InvalidSubID()
161 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_ValidSubID()
180 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_ValidSubID_DDS_over_nDDS()
198 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_VcnWithValidSubID()
232 mHandlers[0].mLatch = new CountDownLatch(1); in testHandleMessage_DisableCrossSim()
263 mHandlers[0].mLatch = new CountDownLatch(1); in testDefaultNetworkCallback()
306 mHandlers[0].mLatch = new CountDownLatch(1); in testDefaultNetworkCallback_onLost()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DAsyncRingtonePlayer.java36 import java.util.concurrent.CountDownLatch;
75 private final ArrayList<CountDownLatch> mPendingRingingLatches = new ArrayList<>();
121 if (isBtActive) mPendingRingingLatches.forEach(CountDownLatch::countDown); in updateBtActiveState()
131 private CountDownLatch prepareRingingReadyLatch(boolean isHfpDeviceConnected) { in prepareRingingReadyLatch()
132 CountDownLatch latch = new CountDownLatch(1); in prepareRingingReadyLatch()
150 private void removePendingRingingReadyLatch(CountDownLatch l) { in removePendingRingingReadyLatch()
161 mPendingRingingLatches.forEach(CountDownLatch::countDown); in clearPendingRingingLatches()
220 CountDownLatch ringingReadyLatch = (CountDownLatch) args.arg4;
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeTest.java63 import java.util.concurrent.CountDownLatch;
143 CountDownLatch latch = new CountDownLatch(1); in test_backgroundUsersStopedOnGarageModeCancel()
165 CountDownLatch latch = new CountDownLatch(1); in test_backgroundUsersStopedOnGarageModeCancel_beforeStartingBgUsers()
184 CountDownLatch latch = new CountDownLatch(1); in test_backgroundUsersStoppedOnGarageModeFinish()
202 CountDownLatch latch = mockCarUserServiceStartUsersCall(userToStartInBackground); in test_restartingGarageModeStorePreviouslyStartedUsers()
245 private void waitForHandlerThreadToFinish(CountDownLatch latch) throws Exception { in waitForHandlerThreadToFinish()
251 private CountDownLatch mockCarUserServiceStartUsersCall( in mockCarUserServiceStartUsersCall()
253 CountDownLatch latch = new CountDownLatch(1); in mockCarUserServiceStartUsersCall()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/
DKAnonCallerImplTest.java101 import java.util.concurrent.CountDownLatch;
226 CountDownLatch countdownLatch = new CountDownLatch(1); in test_signedJoinedSuccessfully_shouldUpdateKAnonMessageStatusInDB()
267 CountDownLatch countdownLatch = new CountDownLatch(1); in test_multipleBatches_shouldSignAndJoinMessages()
292 CountDownLatch countDownLatch = new CountDownLatch(1); in test_signSuccessfulButJoinUnsuccessful_shouldUpdateKAnonMessageStatusToSignedDB()
324 CountDownLatch countDownLatch = new CountDownLatch(1); in test_signUnsuccessfulVerifyTokenFails_shouldUpdateKAnonMessageStatusToFailedInDB()
348 CountDownLatch countDownLatch = new CountDownLatch(1); in signUnsuccessfulCannotRecoverTokens_shouldUpdateKAnonMessageStatusToFailedInDB()
372 CountDownLatch countDownLatch = new CountDownLatch(1); in actGenerateClientParamsFails_shouldNotUpdateKAnonMessageStatusInDB()
397 CountDownLatch countDownLatch = new CountDownLatch(1); in registerClientUnsuccessful_httpCallFails_shouldNotUpdateKAnonMessageStatusInDB()
458 CountDownLatch countdownLatch = new CountDownLatch(1); in test_signedJoinedSuccessfully_shouldCaptureImmediateSignJoinStats()
500 CountDownLatch countdownLatch = new CountDownLatch(1); in test_signedJoinedSuccessfully_loggingThrowsError_processDoesNotCrash()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestContentResolver.java26 import java.util.concurrent.CountDownLatch;
38 private CountDownLatch mReadySignal;
39 private CountDownLatch mNotificationSignal;
44 mReadySignal = new CountDownLatch(1); in TestContentResolver()
62 mNotificationSignal = new CountDownLatch(count); in waitForChanges()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DGetApplicationInfoTest.java46 import java.util.concurrent.CountDownLatch;
71 CountDownLatch latch = new CountDownLatch(1); in testEmptyApplicationInfo()
101 CountDownLatch latch = new CountDownLatch(1); in testEmptyApplicationInfo_no_perm()
118 CountDownLatch latch = new CountDownLatch(1); in testGetApplicationInfo()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/
DEvsHalWrapperImplUnitTest.java44 import java.util.concurrent.CountDownLatch;
100 CountDownLatch frameLatch = new CountDownLatch(NUMBER_EXPECTED_FRAMES); in testStartAndStopVideoStream()
101 CountDownLatch eventLatch = new CountDownLatch(1); in testStartAndStopVideoStream()
128 CountDownLatch latch = new CountDownLatch(1); in testDeathRecipient()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java27 import java.util.concurrent.CountDownLatch;
60 final CountDownLatch latch = new CountDownLatch(1); in testCursorIsNotNull()
90 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectCookies()
117 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectColumns()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/common/
DBlockingCallableWrapper.java23 import java.util.concurrent.CountDownLatch;
38 private final CountDownLatch mStartWorkLatch;
39 private final CountDownLatch mWorkCompletedLatch;
59 mStartWorkLatch = new CountDownLatch(waitBeforeStartingWork ? 1 : 0); in BlockingCallableWrapper()
60 mWorkCompletedLatch = new CountDownLatch(1); in BlockingCallableWrapper()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/
DOutcomeReceiverConverterTest.java28 import java.util.concurrent.CountDownLatch;
40 CountDownLatch resultLatch = new CountDownLatch(1); in testOutcomeReceiverConverter()
43 CountDownLatch errorLatch = new CountDownLatch(1); in testOutcomeReceiverConverter()
/packages/services/Telephony/tests/src/com/android/
DTelephonyTestBase.java37 import java.util.concurrent.CountDownLatch;
77 final CountDownLatch lock = new CountDownLatch(1); in waitForExecutorAction()
92 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerAction()
104 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerActionDelayed()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java62 import java.util.concurrent.CountDownLatch;
295 CountDownLatch latch = new CountDownLatch(1); in testLoadChildrenDocuments()
327 CountDownLatch latch = new CountDownLatch(1); in testCrossProfileDocuments_success()
355 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_failsWithQuietModeException()
376 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_failsWithNoPermissionException()
400 CountDownLatch latch = new CountDownLatch(1); in testLoadCrossProfileDoc_bothError_showNoPermissionException()
435 CountDownLatch latch1 = new CountDownLatch(1); in testCrossProfileDocuments_reloadSuccessAfterCrossProfileError()
450 CountDownLatch latch2 = new CountDownLatch(1); in testCrossProfileDocuments_reloadSuccessAfterCrossProfileError()
472 CountDownLatch latch = new CountDownLatch(1); in testLoadChildrenDocuments_failsWithNonRecentsAndEmptyStack()

12345678910>>...18