/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ExecutorCompletionServiceTest.java | 69 ecs.submit(c); in testSubmitNPE() 84 ecs.submit(r, Boolean.TRUE); in testSubmitNPE2() 98 ecs.submit(c); in testTake() 112 Future f1 = ecs.submit(c); in testTake2() 127 ecs.submit(c); in testPoll1() 150 ecs.submit(c); in testPoll2() 179 Future f1 = ecs.submit(c); in testNewTaskForCallable() 210 Future f1 = ecs.submit(r, null); in testNewTaskForRunnable()
|
D | ForkJoinPoolTest.java | 232 Future<?> future = p.submit(task); in testGetPoolSize() 347 ForkJoinTask<Integer> f = p.submit(new FibTask(8)); 361 ForkJoinTask<Integer> f = p.submit(new FibTask(8)); 390 ForkJoinTask a = p.submit(awaiter(done)); 391 ForkJoinTask b = p.submit(awaiter(done)); 392 ForkJoinTask c = p.submit(awaiter(done)); 407 ForkJoinTask a = p.submit(awaiter(done)); 408 ForkJoinTask b = p.submit(awaiter(done)); 409 ForkJoinTask c = p.submit(awaiter(done)); 430 Future<?> future = e.submit(new CheckedRunnable() { in testExecuteRunnable() [all …]
|
D | AbstractExecutorServiceTest.java | 70 Future<?> future = e.submit(new CheckedRunnable() { in testExecuteRunnable() 86 Future<String> future = e.submit(new StringTask()); in testSubmitCallable() 96 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable() 106 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2() 118 Future future = e.submit(Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction() 139 Future future = e.submit(Executors.callable(new PrivilegedExceptionAction() { in testSubmitPrivilegedExceptionAction() 157 Future future = e.submit(Executors.callable(new PrivilegedExceptionAction() { in testSubmitFailedPrivilegedExceptionAction() 178 e.submit((Runnable) null); in testExecuteNullRunnable() 189 e.submit((Callable) null); in testSubmitNullCallable() 211 Future<Void> future = p.submit(awaiter); in testInterruptedSubmit() [all …]
|
D | Collection8Test.java | 95 f1 = pool.submit(checkElt); in testForEachConcurrentStressTest() 96 f2 = pool.submit(addRemove); in testForEachConcurrentStressTest()
|
D | ThreadPoolExecutorTest.java | 1045 p.submit(task).get(); in testInterruptedSubmit() 1095 p.submit(task); in testSaturatedSubmitRunnable() 1121 p.submit(Executors.callable(task)); in testSaturatedSubmitCallable() 1443 Future<String> future = e.submit(new StringTask()); in testSubmitCallable() 1458 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable() 1473 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2() 2057 futures.add(e.submit(r));
|
D | ScheduledExecutorTest.java | 779 blockers.add(p.submit(task)); in testShutdown_cancellation() 835 Future<String> future = e.submit(new StringTask()); in testSubmitCallable() 847 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable() 859 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2() 1255 p.submit(immediate);
|
D | ScheduledExecutorSubclassTest.java | 830 blockers.add(p.submit(task)); in testShutdown_cancellation() 886 Future<String> future = e.submit(new StringTask()); in testSubmitCallable() 898 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable() 910 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2()
|
D | ThreadPoolExecutorSubclassTest.java | 1436 Future<String> future = e.submit(new StringTask()); in testSubmitCallable() 1451 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable() 1466 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2() 2021 futures.add(e.submit(r));
|
D | ExecutorsTest.java | 293 Future future = executor.submit(sleeper); in testTimedCallable()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ExecutorService.java | 197 <T> Future<T> submit(Callable<T> task); in submit() method 212 <T> Future<T> submit(Runnable task, T result); in submit() method 225 Future<?> submit(Runnable task); in submit() method
|
D | CompletionService.java | 44 Future<V> submit(Callable<V> task); in submit() method 60 Future<V> submit(Runnable task, V result); in submit() method
|
D | AbstractExecutorService.java | 86 public Future<?> submit(Runnable task) { in submit() method in AbstractExecutorService 97 public <T> Future<T> submit(Runnable task, T result) { in submit() method in AbstractExecutorService 108 public <T> Future<T> submit(Callable<T> task) { in submit() method in AbstractExecutorService 144 futures.add(ecs.submit(it.next())); in doInvokeAny() 153 futures.add(ecs.submit(it.next())); in doInvokeAny()
|
D | Executors.java | 600 public Future<?> submit(Runnable task) { 601 return e.submit(task); 603 public <T> Future<T> submit(Callable<T> task) { 604 return e.submit(task); 606 public <T> Future<T> submit(Runnable task, T result) { 607 return e.submit(task, result);
|
D | ExecutorCompletionService.java | 151 public Future<V> submit(Callable<V> task) { in submit() method in ExecutorCompletionService 158 public Future<V> submit(Runnable task, V result) { in submit() method in ExecutorCompletionService
|
D | ScheduledThreadPoolExecutor.java | 634 public Future<?> submit(Runnable task) { in submit() method in ScheduledThreadPoolExecutor 642 public <T> Future<T> submit(Runnable task, T result) { in submit() method in ScheduledThreadPoolExecutor 650 public <T> Future<T> submit(Callable<T> task) { in submit() method in ScheduledThreadPoolExecutor
|
D | ForkJoinPool.java | 2761 public <T> ForkJoinTask<T> submit(ForkJoinTask<T> task) { in submit() method in ForkJoinPool 2770 public <T> ForkJoinTask<T> submit(Callable<T> task) { in submit() method in ForkJoinPool 2779 public <T> ForkJoinTask<T> submit(Runnable task, T result) { in submit() method in ForkJoinPool 2788 public ForkJoinTask<?> submit(Runnable task) { in submit() method in ForkJoinPool
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Exec.java | 87 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/ |
D | SSLSocketTest.java | 350 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_startHandshake() 408 final Future<byte[]> future1 = executor.submit(new SSLServerSessionIdCallable(server1)); in test_SSLSocket_confirmSessionReuse() 421 final Future<byte[]> future2 = executor.submit(new SSLServerSessionIdCallable(server2)); in test_SSLSocket_confirmSessionReuse() 445 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_NoEnabledCipherSuites_Failure() 475 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_startHandshake_noKeyStore() 505 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_startHandshake_noClientCertificate() 525 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_HandshakeCompletedListener() 648 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_HandshakeCompletedListener_RuntimeException() 714 Future<IOException> future = executor.submit(new Callable<IOException>() { in test_SSLSocket_setUseClientMode() 768 Future<Void> future = executor.submit(new Callable<Void>() { in test_SSLSocket_untrustedServer() [all …]
|
D | SSLEngineTest.java | 821 Future<Void> client = executor.submit(new Callable<Void>() { 833 Future<Void> server = executor.submit(new Callable<Void>() {
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLSocketPair.java | 80 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/ |
D | SecureRandomTest.java | 82 ecs.submit(new Callable<Void>() { in testSecureRandomThreadSafety()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 76 executor.submit(new Callable<Void>() { in createInflaterStream()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | OutputStreamTesterTest.java | 124 future = executor.submit(new Callable<byte[]>() { in create()
|
D | WriterTesterTest.java | 117 future = executor.submit(new Callable<char[]>() { in create()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | MessageDigestTest.java | 262 es.submit(new Callable<Void>() { in testMessageDigest_MultipleThreads_Misuse()
|