/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ExecutorsTest.java | 23 ExecutorService e = Executors.newCachedThreadPool(); in testNewCachedThreadPool1() 34 ExecutorService e = Executors.newCachedThreadPool(new SimpleThreadFactory()); in testNewCachedThreadPool2() 46 ExecutorService e = Executors.newCachedThreadPool(null); in testNewCachedThreadPool3() 55 ExecutorService e = Executors.newSingleThreadExecutor(); in testNewSingleThreadExecutor1() 66 ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory()); in testNewSingleThreadExecutor2() 78 ExecutorService e = Executors.newSingleThreadExecutor(null); in testNewSingleThreadExecutor3() 87 ExecutorService e = Executors.newSingleThreadExecutor(); in testCastNewSingleThreadExecutor() 101 ExecutorService e = Executors.newFixedThreadPool(2); in testNewFixedThreadPool1() 112 ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory()); in testNewFixedThreadPool2() 124 ExecutorService e = Executors.newFixedThreadPool(2, null); in testNewFixedThreadPool3() [all …]
|
D | ExecutorCompletionServiceTest.java | 17 import java.util.concurrent.Executors; 44 ExecutorService e = Executors.newCachedThreadPool(); in testConstructorNPE2() 54 ExecutorService e = Executors.newCachedThreadPool(); in testSubmitNPE() 70 ExecutorService e = Executors.newCachedThreadPool(); in testSubmitNPE2() 86 ExecutorService e = Executors.newCachedThreadPool(); in testTake() 102 ExecutorService e = Executors.newCachedThreadPool(); in testTake2() 118 ExecutorService e = Executors.newCachedThreadPool(); in testPoll1() 143 ExecutorService e = Executors.newCachedThreadPool(); in testPoll2()
|
D | AbstractExecutorServiceTest.java | 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() 589 l.add(Executors.callable(possiblyInterruptedRunnable(2 * SHORT_DELAY_MS), TEST_STRING)); in testTimedInvokeAll6()
|
D | SynchronousQueueTest.java | 20 import java.util.concurrent.Executors; 457 ExecutorService executor = Executors.newFixedThreadPool(2); 485 ExecutorService executor = Executors.newFixedThreadPool(2);
|
D | ForkJoinPoolTest.java | 13 import java.util.concurrent.Executors; 481 final Callable callable = Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction() 502 Executors.callable(new PrivilegedExceptionAction() { in testSubmitPrivilegedExceptionAction() 523 Executors.callable(new PrivilegedExceptionAction() { in testSubmitFailedPrivilegedExceptionAction()
|
D | LinkedBlockingQueueTest.java | 21 import java.util.concurrent.Executors; 688 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor() 713 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | ArrayBlockingQueueTest.java | 21 import java.util.concurrent.Executors; 754 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor() 780 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | PriorityBlockingQueueTest.java | 22 import java.util.concurrent.Executors; 602 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | LinkedTransferQueueTest.java | 20 import java.util.concurrent.Executors; 569 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor() 593 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | DelayQueueTest.java | 20 import java.util.concurrent.Executors; 641 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
/libcore/luni/src/test/java/sun/misc/ |
D | UnsafeTest.java | 23 import java.util.concurrent.Executors; 40 Callable<Object> callable = Executors.callable(new Runnable() { in test_getUnsafeForbiddenWithSystemCaller()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Exec.java | 32 import java.util.concurrent.Executors; 85 ExecutorService executorService = Executors.newFixedThreadPool(2); in execAndGetOutput() 125 ExecutorService executorService = Executors.newFixedThreadPool(2); in execAndCheckOutput()
|
/libcore/luni/src/test/java/tests/security/ |
D | SecureRandomTest.java | 24 import java.util.concurrent.Executors; 79 ExecutorService executor = Executors.newFixedThreadPool(threads); in testSecureRandomThreadSafety()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLSocketPair.java | 22 import java.util.concurrent.Executors; 79 ExecutorService executor = Executors.newFixedThreadPool(2); in connect()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 40 import java.util.concurrent.Executors; 319 ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_startHandshake() 372 final ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_confirmSessionReuse() 412 ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_startHandshake_noKeyStore() 442 ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_startHandshake_noClientCertificate() 462 ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_HandshakeCompletedListener() 584 ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_HandshakeCompletedListener_RuntimeException() 650 ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_setUseClientMode() 704 ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_untrustedServer() 734 ExecutorService executor = Executors.newSingleThreadExecutor(); in test_SSLSocket_clientAuth() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 31 import java.util.concurrent.Executors; 72 ExecutorService executor = Executors.newSingleThreadExecutor(); in createInflaterStream()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | OutputStreamTesterTest.java | 42 import java.util.concurrent.Executors; 123 executor = Executors.newSingleThreadExecutor(); in create()
|
D | WriterTesterTest.java | 41 import java.util.concurrent.Executors; 116 executor = Executors.newSingleThreadExecutor(); in create()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | MessageDigestTest.java | 30 import java.util.concurrent.Executors; 250 ExecutorService es = Executors.newFixedThreadPool(THREAD_COUNT); in testMessageDigest_MultipleThreads_Misuse()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 28 import java.util.concurrent.Executors; 179 ExecutorService executor = Executors.newSingleThreadExecutor(); in testAddAllIsAtomic()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | Executors.java | 43 public class Executors { class 658 private Executors() {}
|
D | FutureTask.java | 123 this.callable = Executors.callable(runnable, result); in FutureTask()
|
D | ThreadPoolExecutor.java | 1166 Executors.defaultThreadFactory(), defaultHandler); in ThreadPoolExecutor() 1236 Executors.defaultThreadFactory(), handler); in ThreadPoolExecutor()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 35 import java.util.concurrent.Executors; 362 executor = Executors.newCachedThreadPool(); in MockServer()
|
/libcore/support/src/test/java/tests/http/ |
D | MockWebServer.java | 44 import java.util.concurrent.Executors; 177 executor = Executors.newCachedThreadPool(); in play()
|