Home
last modified time | relevance | path

Searched refs:submit (Results 1 – 25 of 28) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorCompletionServiceTest.java58 ecs.submit(c); in testSubmitNPE()
74 ecs.submit(r, Boolean.TRUE); in testSubmitNPE2()
90 ecs.submit(c); in testTake()
106 Future f1 = ecs.submit(c); in testTake2()
123 ecs.submit(c); in testPoll1()
148 ecs.submit(c); in testPoll2()
178 Future f1 = ecs.submit(c); in testNewTaskForCallable()
210 Future f1 = ecs.submit(r, null); in testNewTaskForRunnable()
DForkJoinPoolTest.java217 Future<String> future = p.submit(new StringTask()); in testGetPoolSize()
326 ForkJoinTask<Integer> f = p.submit(new FibTask(8)); in testSubmitForkJoinTask()
342 ForkJoinTask<Integer> f = p.submit(new FibTask(8)); in testSubmitAfterShutdown()
373 ForkJoinTask a = p.submit(awaiter(done)); in testPollSubmission()
374 ForkJoinTask b = p.submit(awaiter(done)); in testPollSubmission()
375 ForkJoinTask c = p.submit(awaiter(done)); in testPollSubmission()
392 ForkJoinTask a = p.submit(awaiter(done)); in testDrainTasksTo()
393 ForkJoinTask b = p.submit(awaiter(done)); in testDrainTasksTo()
394 ForkJoinTask c = p.submit(awaiter(done)); in testDrainTasksTo()
421 Future<?> future = e.submit(task); in testExecuteRunnable()
[all …]
DAbstractExecutorServiceTest.java49 Future<?> future = e.submit(task); in testExecuteRunnable()
62 Future<String> future = e.submit(new StringTask()); in testSubmitCallable()
72 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable()
82 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
94 Future future = e.submit(Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction()
115 Future future = e.submit(Executors.callable(new PrivilegedExceptionAction() { in testSubmitPrivilegedExceptionAction()
133 Future future = e.submit(Executors.callable(new PrivilegedExceptionAction() { in testSubmitFailedPrivilegedExceptionAction()
154 e.submit((Runnable) null); in testExecuteNullRunnable()
165 e.submit((Callable) null); in testSubmitNullCallable()
187 Future<Void> future = p.submit(awaiter); in testInterruptedSubmit()
[all …]
DThreadPoolExecutorTest.java1011 p.submit(task).get(); in testInterruptedSubmit()
1067 p.submit(task); in testSaturatedSubmitRunnable()
1096 p.submit(Executors.callable(task)); in testSaturatedSubmitCallable()
1398 Future<String> future = e.submit(new StringTask()); in testSubmitCallable()
1415 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable()
1432 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
DScheduledExecutorTest.java750 Future<String> future = e.submit(new StringTask()); in testSubmitCallable()
764 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable()
778 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
DScheduledExecutorSubclassTest.java799 Future<String> future = e.submit(new StringTask()); in testSubmitCallable()
813 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable()
827 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
DExecutorsTest.java271 Future future = executor.submit(sleeper); in testTimedCallable()
DThreadPoolExecutorSubclassTest.java1268 Future<String> future = e.submit(new StringTask()); in testSubmitCallable()
1282 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable()
1296 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutorService.java195 <T> Future<T> submit(Callable<T> task); in submit() method
209 <T> Future<T> submit(Runnable task, T result); in submit() method
222 Future<?> submit(Runnable task); in submit() method
DCompletionService.java44 Future<V> submit(Callable<V> task); in submit() method
60 Future<V> submit(Runnable task, V result); in submit() method
DAbstractExecutorService.java78 public Future<?> submit(Runnable task) { in submit() method in AbstractExecutorService
89 public <T> Future<T> submit(Runnable task, T result) { in submit() method in AbstractExecutorService
100 public <T> Future<T> submit(Callable<T> task) { in submit() method in AbstractExecutorService
136 futures.add(ecs.submit(it.next())); in doInvokeAny()
145 futures.add(ecs.submit(it.next())); in doInvokeAny()
DExecutors.java592 public Future<?> submit(Runnable task) {
593 return e.submit(task);
595 public <T> Future<T> submit(Callable<T> task) {
596 return e.submit(task);
598 public <T> Future<T> submit(Runnable task, T result) {
599 return e.submit(task, result);
DExecutorCompletionService.java149 public Future<V> submit(Callable<V> task) { in submit() method in ExecutorCompletionService
156 public Future<V> submit(Runnable task, V result) { in submit() method in ExecutorCompletionService
DScheduledThreadPoolExecutor.java601 public Future<?> submit(Runnable task) { in submit() method in ScheduledThreadPoolExecutor
609 public <T> Future<T> submit(Runnable task, T result) { in submit() method in ScheduledThreadPoolExecutor
617 public <T> Future<T> submit(Callable<T> task) { in submit() method in ScheduledThreadPoolExecutor
DForkJoinPool.java2533 public <T> ForkJoinTask<T> submit(ForkJoinTask<T> task) { in submit() method in ForkJoinPool
2545 public <T> ForkJoinTask<T> submit(Callable<T> task) { in submit() method in ForkJoinPool
2556 public <T> ForkJoinTask<T> submit(Runnable task, T result) { in submit() method in ForkJoinPool
2567 public ForkJoinTask<?> submit(Runnable task) { in submit() method in ForkJoinPool
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java87 Future<String> errFuture = executorService.submit( in execAndGetOutput()
89 Future<String> outFuture = executorService.submit( in execAndGetOutput()
128 executorService.submit(streamToStringCallable(process.getErrorStream())); in execAndCheckOutput()
130 executorService.submit(streamToStringCallable(process.getInputStream())); in execAndCheckOutput()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java320 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_startHandshake()
377 final Future<byte[]> future1 = executor.submit(new SSLServerSessionIdCallable(server1)); in test_SSLSocket_confirmSessionReuse()
390 final Future<byte[]> future2 = executor.submit(new SSLServerSessionIdCallable(server2)); in test_SSLSocket_confirmSessionReuse()
413 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_startHandshake_noKeyStore()
443 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_startHandshake_noClientCertificate()
463 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_HandshakeCompletedListener()
585 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_HandshakeCompletedListener_RuntimeException()
651 Future<IOException> future = executor.submit(new Callable<IOException>() { in test_SSLSocket_setUseClientMode()
705 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_untrustedServer()
735 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_clientAuth()
[all …]
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java80 Future s = executor.submit(new Callable<Void>() { in connect()
89 Future c = executor.submit(new Callable<Void>() { in connect()
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java82 ecs.submit(new Callable<Void>() { in testSecureRandomThreadSafety()
/libcore/luni/src/test/java/libcore/java/util/zip/
DDeflaterOutputStreamTest.java76 executor.submit(new Callable<Void>() { in createInflaterStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DOutputStreamTesterTest.java124 future = executor.submit(new Callable<byte[]>() { in create()
DWriterTesterTest.java117 future = executor.submit(new Callable<char[]>() { in create()
/libcore/luni/src/test/java/libcore/java/security/
DMessageDigestTest.java257 es.submit(new Callable<Void>() { in testMessageDigest_MultipleThreads_Misuse()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java180 Future<?> future = executor.submit(new Runnable() { in testAddAllIsAtomic()
/libcore/luni/src/test/java/libcore/java/net/
DSocketTest.java370 return executor.submit(new Callable<byte[]>() { in enqueue()

12