Home
last modified time | relevance | path

Searched refs:executor (Results 1 – 25 of 48) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/invoker/tracing/
DTracePropagatingExecutorServiceTest.java39 private final TracePropagatingExecutorService executor = newTestExecutorService(); field in TracePropagatingExecutorServiceTest
57 MoreExecutors.shutdownAndAwaitTermination(executor, Duration.ofSeconds(5)); in tearDown()
64 Future<ActiveTrace> f = executor.submit(new TraceCaptureTask()); in noTracePropagatesToTask()
73 Future<ActiveTrace> f = executor.submit(new TraceCaptureTask()); in activeTracePropagatesToTask()
84 executor.submit( in activeTracePropagatesToSubTask()
86 return executor.submit(subTask).get(); in activeTracePropagatesToSubTask()
97 executor.submit( in callerActiveTraceRestored()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/compress/
DExecutorCompressor.java37 private final Executor executor; field in ExecutorCompressor
43 public ExecutorCompressor(@Nonnull Executor executor) { in ExecutorCompressor() argument
44 this.executor = executor; in ExecutorCompressor()
52 executor.execute(() -> { in compress()
DBestAndDefaultDeflateExecutorCompressor.java61 public BestAndDefaultDeflateExecutorCompressor(@Nonnull Executor executor, in BestAndDefaultDeflateExecutorCompressor() argument
63 super(executor); in BestAndDefaultDeflateExecutorCompressor()
69 new DeflateExecutionCompressor(executor, tracker, Deflater.DEFAULT_COMPRESSION); in BestAndDefaultDeflateExecutorCompressor()
71 new DeflateExecutionCompressor(executor, tracker, Deflater.BEST_COMPRESSION); in BestAndDefaultDeflateExecutorCompressor()
DDeflateExecutionCompressor.java54 @Nonnull Executor executor, in DeflateExecutionCompressor()
57 super(executor); in DeflateExecutionCompressor()
/tools/test/connectivity/acts/framework/acts/libs/utils/
Dmultithread.py45 executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
47 future_object = executor.submit(task_wrapper, task)
66 executor = concurrent.futures.ThreadPoolExecutor(
70 results = list(executor.map(task_wrapper, tasks))
74 executor.shutdown()
/tools/tradefederation/core/src/com/android/tradefed/util/executor/
DParallelDeviceExecutor.java16 package com.android.tradefed.util.executor;
73 ExecutorService executor = in invokeAll() local
79 ? executor.invokeAll(callableTasks) in invokeAll()
80 : executor.invokeAll(callableTasks, timeout, unit); in invokeAll()
94 executor.shutdownNow(); in invokeAll()
/tools/asuite/
Dpreupload_hook_script.py50 with concurrent.futures.ThreadPoolExecutor(max_workers=cpu_count) as executor:
51 completed_processes = executor.map(
111 with concurrent.futures.ThreadPoolExecutor(max_workers=cpu_count) as executor:
112 need_reformat = executor.map(
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/logger/
DInvocationLocalTest.java102 ExecutorService executor = in invocation() local
105 executor.submit( in invocation()
113 executor.shutdown(); in invocation()
/tools/tradefederation/core/src/com/android/tradefed/util/
DRemoteZip.java26 import com.android.tradefed.util.executor.ParallelDeviceExecutor;
228 ParallelDeviceExecutor<Long> executor = in downloadFiles() local
272 List<Long> downloadSizes = executor.invokeAll(callableTasks, 0L, TimeUnit.MINUTES); in downloadFiles()
293 if (executor.hasErrors()) { in downloadFiles()
294 List<Throwable> errors = executor.getErrors(); in downloadFiles()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java80 RunnablesExecutor executor, in V3SchemeSigner() argument
88 mExecutor = executor; in V3SchemeSigner()
160 RunnablesExecutor executor, in generateApkSignatureSchemeV3Block() argument
167 .setRunnablesExecutor(executor) in generateApkSignatureSchemeV3Block()
453 public Builder setRunnablesExecutor(RunnablesExecutor executor) { in setRunnablesExecutor() argument
454 mExecutor = executor; in setRunnablesExecutor()
DV3SchemeVerifier.java87 RunnablesExecutor executor, in V3SchemeVerifier() argument
97 mExecutor = executor; in V3SchemeVerifier()
133 RunnablesExecutor executor, in verify() argument
140 .setRunnablesExecutor(executor) in verify()
667 public Builder setRunnablesExecutor(RunnablesExecutor executor) { in setRunnablesExecutor() argument
668 mExecutor = executor; in setRunnablesExecutor()
/tools/acloud/internal/lib/
Dbase_cloud_client.py283 executor = utils.BatchHttpRequestExecutor(
292 executor.Execute()
293 return executor.GetResults()
/tools/tradefederation/core/src/com/android/tradefed/monitoring/
DLabResourceDeviceMonitor.java147 .executor( in run()
208 private void awaitTerminateExecutor(ExecutorService executor) { in awaitTerminateExecutor() argument
209 if (executor == null) { in awaitTerminateExecutor()
212 executor.shutdownNow(); in awaitTerminateExecutor()
214 executor.awaitTermination(EXECUTOR_TERMINATE_TIMEOUT_SEC, TimeUnit.SECONDS); in awaitTerminateExecutor()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java147 generateApkSignatureSchemeV2Block(RunnablesExecutor executor, in generateApkSignatureSchemeV2Block() argument
155 return generateApkSignatureSchemeV2Block(executor, beforeCentralDir, centralDir, eocd, in generateApkSignatureSchemeV2Block()
161 RunnablesExecutor executor, in generateApkSignatureSchemeV2Block() argument
172 executor, beforeCentralDir, centralDir, eocd, signerConfigs); in generateApkSignatureSchemeV2Block()
DV2SchemeVerifier.java90 RunnablesExecutor executor, in verify() argument
112 verify(executor, in verify()
135 RunnablesExecutor executor, in verify() argument
159 executor, beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
DBtMultiprofileBaseTest.py116 executor = ThreadPoolExecutor(2)
117 throughput = executor.submit(self.measure_rfcomm_throughput, 100)
118 executor.submit(self.setup_iperf_and_run_throughput, )
Dble_performance_test_utils.py228 executor = ThreadPoolExecutor(2)
229 ble_throughput = executor.submit(run_ble_throughput, client_ad,
231 ble_rssi = executor.submit(read_ble_rssi, server_ad, gatt_server,
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/sync/
DIncrementalImageFuncTest.java34 import com.android.tradefed.util.executor.ParallelDeviceExecutor;
164 ParallelDeviceExecutor<Boolean> executor = in testBlockCompareUpdate() local
166 executor.invokeAll(callableTasks, 0, TimeUnit.MINUTES); in testBlockCompareUpdate()
167 if (executor.hasErrors()) { in testBlockCompareUpdate()
168 throw executor.getErrors().get(0); in testBlockCompareUpdate()
/tools/test/connectivity/acts_tests/tests/google/ble/concurrency/
DConcurrentGattConnectTest.py240 executor = concurrent.futures.ThreadPoolExecutor(max_workers=10)
278 executor.submit(run_continuous_write_descriptor, *arguments_list)
280 executor.shutdown(wait=True)
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DNoisyDryRunTest.java45 import com.android.tradefed.util.executor.ParallelDeviceExecutor;
152 ParallelDeviceExecutor<Boolean> executor = in testCommandLines() local
166 executor.invokeAll(callableTasks, 0, TimeUnit.HOURS); in testCommandLines()
/tools/test/connectivity/acts/framework/acts/
Dutils.py378 with concurrent.futures.ThreadPoolExecutor(max_workers=30) as executor:
380 future_to_params = {executor.submit(func, *p): p for p in param_list}
1180 with ThreadPoolExecutor(max_workers=len(calls)) as executor:
1181 futures = [executor.submit(call) for call in calls]
1246 with ThreadPoolExecutor(max_workers=len(calls)) as executor:
1247 futures = [executor.submit(call_wrapper, call) for call in calls]
1865 with ThreadPoolExecutor() as executor:
1875 executor.submit(mdns_query, interface, address))
/tools/asuite/atest/integration_tests/
Datest_integration_test.py433 with concurrent.futures.ThreadPoolExecutor() as executor:
434 stdout_future = executor.submit(
437 stderr_future = executor.submit(
Dsplit_build_test_script.py388 ) as executor:
391 executor.submit(self.compress_file, file_path)
414 ) as executor:
416 executor.submit(self.decompress_file, file_path)
616 ) as executor:
628 return executor.submit(test.run)
/tools/tradefederation/core/src/com/android/tradefed/util/image/
DIncrementalImageUtil.java43 import com.android.tradefed.util.executor.ParallelDeviceExecutor;
810 ParallelDeviceExecutor<Boolean> executor = in run() local
812 executor.invokeAll(callableTasks, 0, TimeUnit.MINUTES); in run()
813 if (executor.hasErrors()) { in run()
816 executor.getErrors().get(0).getMessage(), in run()
817 executor.getErrors().get(0), in run()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java95 import com.android.tradefed.util.executor.ParallelDeviceExecutor;
413 ParallelDeviceExecutor<Boolean> executor = in runLabPreparersSetup() local
437 executor.invokeAll(callableTasks, timeout.toMillis(), TimeUnit.MILLISECONDS); in runLabPreparersSetup()
438 if (executor.hasErrors()) { in runLabPreparersSetup()
439 List<Throwable> errors = executor.getErrors(); in runLabPreparersSetup()
480 ParallelDeviceExecutor<Boolean> executor = in runPreparersSetup() local
503 executor.invokeAll(callableTasks, timeout.toMillis(), TimeUnit.MILLISECONDS); in runPreparersSetup()
504 if (executor.hasErrors()) { in runPreparersSetup()
505 List<Throwable> errors = executor.getErrors(); in runPreparersSetup()
690 ParallelDeviceExecutor<Void> executor = in runDevicePreInvocationSetup() local
[all …]

12