Home
last modified time | relevance | path

Searched refs:resultLatch (Results 1 – 16 of 16) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceServiceEndToEndTest.java664 CountDownLatch resultLatch = new CountDownLatch(1); in testFetchAndJoinCustomAudience_overridesJoinCustomAudience() local
666 new FetchCustomAudienceImplTest.FetchCustomAudienceTestCallback(resultLatch); in testFetchAndJoinCustomAudience_overridesJoinCustomAudience()
668 resultLatch.await(); in testFetchAndJoinCustomAudience_overridesJoinCustomAudience()
713 CountDownLatch resultLatch = new CountDownLatch(1); in testFetchAndJoinCustomAudienceAppInstallDisabled() local
715 new FetchCustomAudienceImplTest.FetchCustomAudienceTestCallback(resultLatch); in testFetchAndJoinCustomAudienceAppInstallDisabled()
717 resultLatch.await(); in testFetchAndJoinCustomAudienceAppInstallDisabled()
763 CountDownLatch resultLatch = new CountDownLatch(1); in testFetchAndJoinCustomAudienceFrequencyCapDisabled() local
765 new FetchCustomAudienceImplTest.FetchCustomAudienceTestCallback(resultLatch); in testFetchAndJoinCustomAudienceFrequencyCapDisabled()
767 resultLatch.await(); in testFetchAndJoinCustomAudienceFrequencyCapDisabled()
820 CountDownLatch resultLatch = new CountDownLatch(1); in testFetchAndJoinCustomAudience_overridesJoinCustomAudienceWithAuctionServerReqeustFlagsEnabled() local
[all …]
DFetchCustomAudienceImplTest.java1079 CountDownLatch resultLatch = new CountDownLatch(1); in testImpl_runNormally_withDevOptionsEnabled() local
1080 FetchCustomAudienceTestCallback callback = new FetchCustomAudienceTestCallback(resultLatch); in testImpl_runNormally_withDevOptionsEnabled()
1085 resultLatch.await(); in testImpl_runNormally_withDevOptionsEnabled()
1383 CountDownLatch resultLatch = new CountDownLatch(1); in callFetchCustomAudience() local
1384 FetchCustomAudienceTestCallback callback = new FetchCustomAudienceTestCallback(resultLatch); in callFetchCustomAudience()
1387 resultLatch.await(); in callFetchCustomAudience()
1393 CountDownLatch resultLatch = new CountDownLatch(numCountDown); in callFetchCustomAudienceWithErrorCallback() local
1396 resultLatch.countDown(); in callFetchCustomAudienceWithErrorCallback()
1403 new FetchCustomAudienceTestThrowingCallback(resultLatch); in callFetchCustomAudienceWithErrorCallback()
1406 resultLatch.await(); in callFetchCustomAudienceWithErrorCallback()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/
DOutcomeReceiverConverterTest.java40 CountDownLatch resultLatch = new CountDownLatch(1); in testOutcomeReceiverConverter() local
50 resultLatch.countDown(); in testOutcomeReceiverConverter()
63 expect.withMessage("result callback").that(resultLatch.getCount()).isEqualTo(0); in testOutcomeReceiverConverter()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/
DJSScriptEngineTest.java1175 CountDownLatch resultLatch = new CountDownLatch(1); in callJSEngine() local
1182 resultLatch, in callJSEngine()
1185 resultLatch.await(); in callJSEngine()
1198 CountDownLatch resultLatch = new CountDownLatch(1); in callJSEngine() local
1206 resultLatch, in callJSEngine()
1209 resultLatch.await(); in callJSEngine()
1217 @NonNull CountDownLatch resultLatch, in callJSEngineAsync() argument
1225 resultLatch, in callJSEngineAsync()
1235 @NonNull CountDownLatch resultLatch, in callJSEngineAsync() argument
1239 Objects.requireNonNull(resultLatch); in callJSEngineAsync()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DReportEventDisabledImplTest.java86 CountDownLatch resultLatch = new CountDownLatch(1); in testReportEventDisabledImplFailsWhenCalled() local
87 ReportEventTestCallback callback = new ReportEventTestCallback(resultLatch); in testReportEventDisabledImplFailsWhenCalled()
89 resultLatch.await(); in testReportEventDisabledImplFailsWhenCalled()
DAdSelectionServiceImplTest.java10149 CountDownLatch resultLatch = new CountDownLatch(1); in testUpdateAdCounterHistogramNullCallbackThrows() local
10152 resultLatch.countDown(); in testUpdateAdCounterHistogramNullCallbackThrows()
10164 resultLatch.await(5, TimeUnit.SECONDS)); in testUpdateAdCounterHistogramNullCallbackThrows()
10199 CountDownLatch resultLatch = new CountDownLatch(1); in testReportEvent_nullCallback_throws() local
10202 resultLatch.countDown(); in testReportEvent_nullCallback_throws()
10214 resultLatch.await(5, TimeUnit.SECONDS)); in testReportEvent_nullCallback_throws()
10257 CountDownLatch resultLatch = new CountDownLatch(2); in testReportEvent_callbackErrorReported() local
10259 new ReportInteractionTestErrorCallback(resultLatch); in testReportEvent_callbackErrorReported()
10264 resultLatch.countDown(); in testReportEvent_callbackErrorReported()
10274 resultLatch.await(5, TimeUnit.SECONDS)); in testReportEvent_callbackErrorReported()
[all …]
DJsFetcherTest.java395 CountDownLatch resultLatch = new CountDownLatch(1); in waitForFuture() local
397 futureResult.addListener(resultLatch::countDown, mLightweightExecutorService); in waitForFuture()
398 resultLatch.await(); in waitForFuture()
DAdOutcomeSelectorImplTest.java471 CountDownLatch resultLatch = new CountDownLatch(1); in waitForFuture() local
473 futureResult.addListener(resultLatch::countDown, mLightweightExecutorService); in waitForFuture()
474 resultLatch.await(); in waitForFuture()
DReportEventImplTest.java1523 CountDownLatch resultLatch = new CountDownLatch(shouldCountLog ? 2 : 1); in callReportInteraction() local
1529 resultLatch.countDown(); in callReportInteraction()
1537 ReportInteractionTestCallback callback = new ReportInteractionTestCallback(resultLatch); in callReportInteraction()
1539 resultLatch.await(); in callReportInteraction()
DReportImpressionScriptEngineTest.java1314 CountDownLatch resultLatch = new CountDownLatch(1);
1317 futureResult.get().addListener(resultLatch::countDown, mExecutorService);
1318 resultLatch.await();
DReportAndRegisterEventE2ETest.java1181 CountDownLatch resultLatch = new CountDownLatch(1); in callReportEvent() local
1183 new ReportAndRegisterEventTestCallback(resultLatch); in callReportEvent()
1187 resultLatch.await(); in callReportEvent()
DAdSelectionScriptEngineTest.java1876 CountDownLatch resultLatch = new CountDownLatch(1);
1879 futureResult.get().addListener(resultLatch::countDown, EXECUTOR_SERVICE);
1880 resultLatch.await();
DAdsScoreGeneratorImplTest.java1997 CountDownLatch resultLatch = new CountDownLatch(1); in waitForFuture() local
1999 futureResult.addListener(resultLatch::countDown, mLightweightExecutorService); in waitForFuture()
2000 resultLatch.await(); in waitForFuture()
DAdBidGeneratorImplTest.java3249 CountDownLatch resultLatch = new CountDownLatch(1); in waitForFuture() local
3251 futureResult.addListener(resultLatch::countDown, mLightweightExecutorService); in waitForFuture()
3252 resultLatch.await(); in waitForFuture()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeE2ETest.java4814 CountDownLatch resultLatch = new CountDownLatch(1); in fetchAndJoinCustomAudienceAndAssertSuccess() local
4815 FetchCustomAudienceTestCallback callback = new FetchCustomAudienceTestCallback(resultLatch); in fetchAndJoinCustomAudienceAndAssertSuccess()
4817 resultLatch.await(); in fetchAndJoinCustomAudienceAndAssertSuccess()
5017 CountDownLatch resultLatch = new CountDownLatch(1); in callAddAdSelectionOverride() local
5018 AdSelectionOverrideTestCallback callback = new AdSelectionOverrideTestCallback(resultLatch); in callAddAdSelectionOverride()
5026 resultLatch.await(); in callAddAdSelectionOverride()
5039 CountDownLatch resultLatch = new CountDownLatch(1); in callAddCustomAudienceOverride() local
5041 new CustomAudienceOverrideTestCallback(resultLatch); in callAddCustomAudienceOverride()
5051 resultLatch.await(); in callAddCustomAudienceOverride()
5059 CountDownLatch resultLatch = new CountDownLatch(1); in callReportImpression() local
[all …]
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java3939 CountDownLatch resultLatch = new CountDownLatch(1);
3948 resultLatch.countDown();
3957 resultLatch.countDown();
3965 resultLatch.countDown();
3980 resultLatch.countDown();
3991 resultLatch.await(10, TimeUnit.SECONDS); // seconds