Home
last modified time | relevance | path

Searched refs:newFixedThreadPool (Results 1 – 15 of 15) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorsTest.java101 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()
134 ExecutorService e = Executors.newFixedThreadPool(0); in testNewFixedThreadPool4()
143 … ExecutorService e = Executors.unconfigurableExecutorService(Executors.newFixedThreadPool(2)); in testUnconfigurableExecutorService()
257 Executors.newFixedThreadPool(2), in testTimedCallable()
DSynchronousQueueTest.java457 ExecutorService executor = Executors.newFixedThreadPool(2);
485 ExecutorService executor = Executors.newFixedThreadPool(2);
DLinkedBlockingQueueTest.java688 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
713 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DArrayBlockingQueueTest.java754 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
780 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DLinkedTransferQueueTest.java569 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
593 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DPriorityBlockingQueueTest.java602 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DDelayQueueTest.java641 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DLinkedBlockingDequeTest.java1633 ExecutorService executor = Executors.newFixedThreadPool(2);
1658 ExecutorService executor = Executors.newFixedThreadPool(2);
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java85 ExecutorService executorService = Executors.newFixedThreadPool(2); in execAndGetOutput()
125 ExecutorService executorService = Executors.newFixedThreadPool(2); in execAndCheckOutput()
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java79 ExecutorService executor = Executors.newFixedThreadPool(threads); in testSecureRandomThreadSafety()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java79 ExecutorService executor = Executors.newFixedThreadPool(2); in connect()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java60 public static ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() method in Executors
123 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() method in Executors
/libcore/luni/src/test/java/libcore/java/security/
DMessageDigestTest.java250 ExecutorService es = Executors.newFixedThreadPool(THREAD_COUNT); in testMessageDigest_MultipleThreads_Misuse()
DSignatureTest.java1624 ExecutorService es = Executors.newFixedThreadPool(THREAD_COUNT); in testSignature_MultipleThreads_Misuse()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1475 ExecutorService executorService = Executors.newFixedThreadPool(2); in test_SSLSocket_ClientHello_size()
1609 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success()
1647 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_sendsNoTlsFallbackScsv_Fallback_Success()
1685 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_sendsTlsFallbackScsv_InappropriateFallback_Failure()
1736 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_ClientGetsAlertDuringHandshake_HasGoodExceptionMessage()
1787 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_ServerGetsAlertDuringHandshake_HasGoodExceptionMessage()