Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorsTest.java124 ExecutorService e = Executors.newFixedThreadPool(2); in testNewFixedThreadPool1()
135 ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory()); in testNewFixedThreadPool2()
147 ExecutorService e = Executors.newFixedThreadPool(2, null); in testNewFixedThreadPool3()
157 ExecutorService e = Executors.newFixedThreadPool(0); in testNewFixedThreadPool4()
166 … ExecutorService e = Executors.unconfigurableExecutorService(Executors.newFixedThreadPool(2)); in testUnconfigurableExecutorService()
280 Executors.newFixedThreadPool(2), in testTimedCallable()
DSynchronousQueueTest.java477 ExecutorService executor = Executors.newFixedThreadPool(2);
505 ExecutorService executor = Executors.newFixedThreadPool(2);
DLinkedBlockingQueueTest.java730 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
755 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DArrayBlockingQueueTest.java796 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
822 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DLinkedTransferQueueTest.java601 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
625 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DPriorityBlockingQueueTest.java632 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DDelayQueueTest.java671 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DFutureTaskTest.java822 final ExecutorService pool = Executors.newFixedThreadPool(10); in testGet_NegativeInfinityTimeout()
DLinkedBlockingDequeTest.java1678 ExecutorService executor = Executors.newFixedThreadPool(2);
1703 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.java61 public static ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() method in Executors
124 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() method in Executors
/libcore/tzdata/update_test_app/src/libcore/tzdata/update_test_app/installupdatetestapp/
DMainActivity.java69 executor = Executors.newFixedThreadPool(1); in onCreate()
/libcore/luni/src/test/java/libcore/java/security/
DMessageDigestTest.java250 ExecutorService es = Executors.newFixedThreadPool(THREAD_COUNT); in testMessageDigest_MultipleThreads_Misuse()
DSignatureTest.java1683 ExecutorService es = Executors.newFixedThreadPool(THREAD_COUNT); in testSignature_MultipleThreads_Misuse()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1659 ExecutorService executorService = Executors.newFixedThreadPool(2); in captureTlsHandshakeFirstTransmittedChunkBytes()
1763 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success()
1801 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_sendsNoTlsFallbackScsv_Fallback_Success()
1844 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_sendsTlsFallbackScsv_InappropriateFallback_Failure()
1893 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_ClientGetsAlertDuringHandshake_HasGoodExceptionMessage()
1944 ExecutorService executor = Executors.newFixedThreadPool(2); in test_SSLSocket_ServerGetsAlertDuringHandshake_HasGoodExceptionMessage()