Home
last modified time | relevance | path

Searched refs:futures (Results 1 – 25 of 125) sorted by relevance

12345

/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDialerFutures.java45 Iterable<? extends ListenableFuture<? extends T>> futures, in firstMatching() argument
48 return firstMatchingImpl(futures, predicate, defaultValue); in firstMatching()
52 Iterable<? extends ListenableFuture<? extends T>> futures, in firstMatchingImpl() argument
55 AggregateFuture<T> output = new AnyOfFuture<>(futures); in firstMatchingImpl()
57 final AtomicInteger pending = new AtomicInteger(output.futures.size()); in firstMatchingImpl()
58 for (final ListenableFuture<? extends T> future : output.futures) { in firstMatchingImpl()
94 ImmutableList<ListenableFuture<? extends T>> futures; field in DialerFutures.AggregateFuture
96 AggregateFuture(Iterable<? extends ListenableFuture<? extends T>> futures) { in AggregateFuture() argument
97 ImmutableList<ListenableFuture<? extends T>> futuresCopy = ImmutableList.copyOf(futures); in AggregateFuture()
101 this.futures = futuresCopy; in AggregateFuture()
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonelookup/composite/
DCompositePhoneLookup.java88 List<ListenableFuture<?>> futures = new ArrayList<>(); in lookup() local
94 futures.add(lookupFuture); in lookup()
96 ListenableFuture<PhoneLookupInfo> combinedFuture = combineSubMessageFutures(futures); in lookup()
112 List<ListenableFuture<?>> futures = new ArrayList<>(); in lookup() local
118 futures.add(lookupFuture); in lookup()
120 ListenableFuture<PhoneLookupInfo> combinedFuture = combineSubMessageFutures(futures); in lookup()
149 List<ListenableFuture<Boolean>> futures = new ArrayList<>(); in isDirty() local
152 futures.add(isDirtyFuture); in isDirty()
159 DialerFutures.firstMatching(futures, Preconditions::checkNotNull, false /* defaultValue */); in isDirty()
178 List<ListenableFuture<ImmutableMap<DialerPhoneNumber, ?>>> futures = new ArrayList<>(); in getMostRecentInfo()
[all …]
/packages/apps/Camera2/src/com/android/camera/async/
DFutures2.java91 ListenableFuture<?>[] futures = new ListenableFuture<?>[2];
93 futures[0] = f1;
94 futures[1] = f2;
99 ListenableFuture<List<Object>> result = Futures.<Object>allAsList(futures);
135 ListenableFuture<?>[] futures = new ListenableFuture<?>[3];
137 futures[0] = f1;
138 futures[1] = f2;
139 futures[2] = f3;
144 ListenableFuture<List<Object>> result = Futures.<Object>allAsList(futures);
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DSyncTrackerTests.java38 Collection<CompletableFuture<Object>> futures = syncTracker.pendingSyncFutures(); in testCreateSyncFuture() local
39 assertThat(futures.size()).isEqualTo(1); in testCreateSyncFuture()
48 Collection<CompletableFuture<Object>> futures = syncTracker.pendingSyncFutures(); in testMarkSyncAsComplete() local
49 assertThat(futures.size()).isEqualTo(0); in testMarkSyncAsComplete()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DStartForFutureActivity.kt42 futures.put(requestCode, future) in startActivityForFuture()
49 futures.remove(requestCode) in onActivityResult()
60 private val futures = LruCache<Int, CompletableFuture<Instrumentation.ActivityResult>>(10) constant
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DDevicePolicyControllerImpl.java264 List<ListenableFuture<Boolean>> futures = new ArrayList<>();
269 futures.add(policy.onCleared());
278 futures.add(policy.onUnlocked());
281 futures.add(policy.onLocked());
296 futures.add(policy.onProvisionInProgress());
299 futures.add(policy.onProvisioned());
302 futures.add(policy.onProvisionPaused());
305 futures.add(policy.onProvisionFailed());
313 return Futures.transform(Futures.allAsList(futures),
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dasync_subprocess_logger.py17 import concurrent.futures
61 self.executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
72 except concurrent.futures.TimeoutError:
/packages/modules/Bluetooth/system/blueberry/grpc/
Dblueberry_device_controller.py7 from concurrent import futures
27 futures.ThreadPoolExecutor(max_workers=FLAGS.threads),
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DSuspendToFutureAdapter.kt18 import androidx.concurrent.futures.CallbackToFutureAdapter in <lambda>()
19 import androidx.concurrent.futures.DirectExecutor in <lambda>()
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dmain.rs6 use futures::channel::mpsc;
7 use futures::executor::block_on;
8 use futures::stream::StreamExt;
/packages/modules/Uwb/generic_ranging/
DAndroid.bp37 "androidx.concurrent_concurrent-futures",
38 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DDebugReportSenderStrategyHttpImpl.java71 List<ListenableFuture<Void>> futures = in flush() local
79 return Futures.whenAllComplete(futures).call(() -> null, in flush()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DOpAsyncCallbackRunner.java27 import androidx.concurrent.futures.CallbackToFutureAdapter;
28 import androidx.concurrent.futures.CallbackToFutureAdapter.Completer;
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DTzS2PolygonsToTzS2CellUnions.java140 List<NamedFuture<Pair<String, File>>> futures = new ArrayList<>(); in execute() local
145 futures.add(namedFuture); in execute()
149 for (NamedFuture<Pair<String, File>> future : futures) { in execute()
DTzS2CellUnionsToTzS2Ranges.java138 List<NamedFuture<Pair<String, File>>> futures = new ArrayList<>(); in execute() local
143 futures.add(namedFuture); in execute()
147 for (NamedFuture<Pair<String, File>> future : futures) { in execute()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/connection/
DAndroid.bp26 "androidx.concurrent_concurrent-futures",
57 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/mdd/
DAndroid.bp26 "androidx.concurrent_concurrent-futures",
57 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/cts/appsetid/
DAndroid.bp28 "androidx.concurrent_concurrent-futures",
62 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/noperm/
DAndroid.bp29 "androidx.concurrent_concurrent-futures",
62 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/cts/adid/
DAndroid.bp28 "androidx.concurrent_concurrent-futures",
60 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/notallowed/
DAndroid.bp29 "androidx.concurrent_concurrent-futures",
62 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/cts/extdata/
DAndroid.bp28 "androidx.concurrent_concurrent-futures",
60 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/valid/
DAndroid.bp33 "androidx.concurrent_concurrent-futures",
70 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/appoptout/
DAndroid.bp33 "androidx.concurrent_concurrent-futures",
70 "androidx.concurrent_concurrent-futures",
/packages/modules/AdServices/adservices/tests/endtoends/
DAndroid.bp27 "androidx.concurrent_concurrent-futures",
58 "androidx.concurrent_concurrent-futures",

12345