Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousChannelGroupTest.java59 Executors.newFixedThreadPool(5), 1); in test_withCachedThreadPool()
66 AsynchronousChannelGroup.withCachedThreadPool(Executors.newFixedThreadPool(5), -1); in test_withCachedThreadPool()
74 Executors.newFixedThreadPool(5)); in test_withThreadPool()
86 Executors.newFixedThreadPool(5), 1); in test_shutdown()
117 Executors.newFixedThreadPool(5), 1); in test_shutdownNow()
138 ExecutorService executorService = Executors.newFixedThreadPool(5); in test_isTerminated()
157 Executors.newFixedThreadPool(5), 1); in test_awaitTermination()
/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorsTest.java127 final ExecutorService e = Executors.newFixedThreadPool(2); in testNewFixedThreadPool1()
139 final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory()); in testNewFixedThreadPool2()
152 ExecutorService e = Executors.newFixedThreadPool(2, null); in testNewFixedThreadPool3()
162 ExecutorService e = Executors.newFixedThreadPool(0); in testNewFixedThreadPool4()
171 …final ExecutorService e = Executors.unconfigurableExecutorService(Executors.newFixedThreadPool(2)); in testUnconfigurableExecutorService()
280 Executors.newFixedThreadPool(2), in testTimedCallable()
DSynchronousQueueTest.java481 final ExecutorService executor = Executors.newFixedThreadPool(2);
508 final ExecutorService executor = Executors.newFixedThreadPool(2);
DLinkedBlockingQueueTest.java731 final ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
755 final ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DArrayBlockingQueueTest.java797 final ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
822 final ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DLinkedTransferQueueTest.java604 final ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor()
630 final ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DPriorityBlockingQueueTest.java632 final ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DDelayQueueTest.java675 final ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
DFutureTaskTest.java822 final ExecutorService pool = Executors.newFixedThreadPool(10); in testGet_NegativeInfinityTimeout()
DLinkedBlockingDequeTest.java1685 final ExecutorService executor = Executors.newFixedThreadPool(2);
1709 final ExecutorService executor = Executors.newFixedThreadPool(2);
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java79 ExecutorService executor = Executors.newFixedThreadPool(threads); in testSecureRandomThreadSafety()
/libcore/luni/src/test/java/libcore/java/security/
DMessageDigestTest.java37 ExecutorService es = Executors.newFixedThreadPool(THREAD_COUNT); in testMessageDigest_MultipleThreads_Misuse()
/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java129 ExecutorService executor = Executors.newFixedThreadPool(nThreads, factory); in create()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java78 ExecutorService executor = Executors.newFixedThreadPool(2); in connect()
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java85 ExecutorService executorService = Executors.newFixedThreadPool(2); in execAndGetOutput()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java95 public static ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() method in Executors
158 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() method in Executors
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DExecutors.java47 public static java.util.concurrent.ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() method in Executors
59 public static java.util.concurrent.ExecutorService newFixedThreadPool( in newFixedThreadPool() method in Executors