Home
last modified time | relevance | path

Searched refs:futureResult (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DSyncAppSearchBase.java41 final CompletableFuture<AppSearchResult<T>> futureResult = new CompletableFuture<>(); in executeAppSearchResultOperation() local
45 operation.accept(futureResult::complete); in executeAppSearchResultOperation()
50 AppSearchResult<T> result = futureResult.get(); in executeAppSearchResultOperation()
71 final CompletableFuture<AppSearchBatchResult<T, V>> futureResult = in executeAppSearchBatchResultOperation() local
81 futureResult.complete(value); in executeAppSearchBatchResultOperation()
86 futureResult.completeExceptionally(throwable); in executeAppSearchBatchResultOperation()
92 return futureResult.get(); in executeAppSearchBatchResultOperation()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DSyncCompletionWaiterTest.java100 final List<WorkInfo> futureResult = List.of( in testUniqueWorkStatusForPendingWork() local
104 future.set(futureResult); in testUniqueWorkStatusForPendingWork()
114 final List<WorkInfo> futureResult = List.of( in testUniqueWorkStatusForCompletedWork() local
119 future.set(futureResult); in testUniqueWorkStatusForCompletedWork()
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionImpl.java299 final SettableFuture<Optional<Uri>> futureResult = SettableFuture.create(); in saveAndFinish() local
313 futureResult.set(Optional.fromNullable(uri)); in saveAndFinish()
325 futureResult.set(Optional.fromNullable(mUri)); in saveAndFinish()
336 futureResult.setException(e); in saveAndFinish()
339 return futureResult; in saveAndFinish()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DJsFetcherTest.java396 ListenableFuture<T> futureResult = function.get(); in waitForFuture() local
397 futureResult.addListener(resultLatch::countDown, mLightweightExecutorService); in waitForFuture()
399 return futureResult.get(); in waitForFuture()
DAdOutcomeSelectorImplTest.java472 ListenableFuture<T> futureResult = function.get(); in waitForFuture() local
473 futureResult.addListener(resultLatch::countDown, mLightweightExecutorService); in waitForFuture()
475 return futureResult.get(); in waitForFuture()
DReportImpressionScriptEngineTest.java1315 AtomicReference<ListenableFuture<T>> futureResult = new AtomicReference<>();
1316 futureResult.set(function.get());
1317 futureResult.get().addListener(resultLatch::countDown, mExecutorService);
1319 return futureResult.get().get();
DAdSelectionScriptEngineTest.java1877 AtomicReference<ListenableFuture<T>> futureResult = new AtomicReference<>();
1878 futureResult.set(function.get());
1879 futureResult.get().addListener(resultLatch::countDown, EXECUTOR_SERVICE);
1881 return futureResult.get().get();
DAdsScoreGeneratorImplTest.java1998 ListenableFuture<T> futureResult = function.get(); in waitForFuture() local
1999 futureResult.addListener(resultLatch::countDown, mLightweightExecutorService); in waitForFuture()
2001 return futureResult.get(); in waitForFuture()
DAdBidGeneratorImplTest.java3250 ListenableFuture<T> futureResult = function.get(); in waitForFuture() local
3251 futureResult.addListener(resultLatch::countDown, mLightweightExecutorService); in waitForFuture()
3253 return futureResult.get(); in waitForFuture()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/
DJSScriptEngineTest.java1176 ListenableFuture<String> futureResult = in callJSEngine() local
1186 return futureResult.get(); in callJSEngine()
1199 ListenableFuture<String> futureResult = in callJSEngine() local
1210 return futureResult.get(); in callJSEngine()