Home
last modified time | relevance | path

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

/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/modules/Gki/
Ddownload_boot_prebuilt.py34 from concurrent import futures
108 with futures.ThreadPoolExecutor(max_workers=10) as pool:
121 futures.wait([f for ver, arch, f in fs])
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DTzS2PolygonsToTzS2CellUnions.java141 List<NamedFuture<Pair<String, File>>> futures = new ArrayList<>(); in execute() local
146 futures.add(namedFuture); in execute()
150 for (NamedFuture<Pair<String, File>> future : futures) { in execute()
DTzS2CellUnionsToTzS2Ranges.java139 List<NamedFuture<Pair<String, File>>> futures = new ArrayList<>(); in execute() local
144 futures.add(namedFuture); in execute()
148 for (NamedFuture<Pair<String, File>> future : futures) { in execute()
DGeoJsonTzToTzS2Polygons.java165 List<NamedFuture<TzS2Polygons>> futures = new ArrayList<>(features.size()); in execute() local
174 futures.add(namedFuture); in execute()
178 for (NamedFuture<TzS2Polygons> future : futures) { in execute()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpSession.java36 import androidx.concurrent.futures.CallbackToFutureAdapter;
37 import androidx.concurrent.futures.CallbackToFutureAdapter.Completer;
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/
DAndroid.bp29 "androidx.concurrent_concurrent-futures",
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp979 std::vector<std::unique_ptr<DnsTlsQueryMap::QueryFuture>> futures(UINT16_MAX + 1); in TEST() local
981 futures[i] = map.recordQuery(makeSlice(QUERY)); in TEST()
982 ASSERT_TRUE(futures[i]); // answers[i] should be nonnull. in TEST()
983 EXPECT_EQ(i, futures[i]->query.newId); in TEST()
995 auto result = futures[40000]->result.get(); in TEST()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java2847 final List<Future<CaptivePortalProbeResult>> futures = new ArrayList<>(); in sendMultiParallelHttpAndHttpsProbes() local
2859 futures.add(ecs.submit(() -> new HttpProbe(properties, proxy, url, in sendMultiParallelHttpAndHttpsProbes()
2864 futures.add(ecs.submit(() -> new HttpsProbe(properties, proxy, url, capportApiUrl) in sendMultiParallelHttpAndHttpsProbes()
2885 futures.forEach(future -> future.cancel(true)); in sendMultiParallelHttpAndHttpsProbes()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz
Dnl_wordlist.combined.gz1dictionary=main:nl,locale=nl,description=Nederlands,date=1414726258, ...
Dpt_BR_wordlist.combined.gz1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...
Dpl_wordlist.combined.gz1dictionary=main:pl,locale=pl,description=Polski,date=1414726264, ...
Dhr_wordlist.combined.gz
Dpt_PT_wordlist.combined.gz1dictionary=main:pt_pt,locale=pt_PT,description=Português (Portugal),date ...
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...