Home
last modified time | relevance | path

Searched refs:Executors (Results 1 – 25 of 49) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorsTest.java22 import java.util.concurrent.Executors;
46 final ExecutorService e = Executors.newCachedThreadPool(); in testNewCachedThreadPool1()
58 final ExecutorService e = Executors.newCachedThreadPool(new SimpleThreadFactory()); in testNewCachedThreadPool2()
71 ExecutorService e = Executors.newCachedThreadPool(null); in testNewCachedThreadPool3()
80 final ExecutorService e = Executors.newSingleThreadExecutor(); in testNewSingleThreadExecutor1()
92 final ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory()); in testNewSingleThreadExecutor2()
105 ExecutorService e = Executors.newSingleThreadExecutor(null); in testNewSingleThreadExecutor3()
114 final ExecutorService e = Executors.newSingleThreadExecutor(); in testCastNewSingleThreadExecutor()
127 final ExecutorService e = Executors.newFixedThreadPool(2); in testNewFixedThreadPool1()
139 final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory()); in testNewFixedThreadPool2()
[all …]
DExecutorCompletionServiceTest.java16 import java.util.concurrent.Executors;
54 ExecutorService e = Executors.newCachedThreadPool(); in testConstructorNPE2()
64 final ExecutorService e = Executors.newCachedThreadPool(); in testSubmitNPE()
79 final ExecutorService e = Executors.newCachedThreadPool(); in testSubmitNPE2()
94 final ExecutorService e = Executors.newCachedThreadPool(); in testTake()
108 final ExecutorService e = Executors.newCachedThreadPool(); in testTake2()
122 final ExecutorService e = Executors.newCachedThreadPool(); in testPoll1()
145 final ExecutorService e = Executors.newCachedThreadPool(); in testPoll2()
DCollection8Test.java16 import java.util.concurrent.Executors;
82 final ExecutorService pool = Executors.newCachedThreadPool(); in testForEachConcurrentStressTest()
DLongAccumulatorTest.java9 import java.util.concurrent.Executors;
127 final ExecutorService pool = Executors.newCachedThreadPool(); in testAccumulateAndGetMT()
DDoubleAccumulatorTest.java9 import java.util.concurrent.Executors;
127 final ExecutorService pool = Executors.newCachedThreadPool(); in testAccumulateAndGetMT()
DDoubleAdderTest.java10 import java.util.concurrent.Executors;
139 final ExecutorService pool = Executors.newCachedThreadPool(); in testAddAndSumMT()
DLongAdderTest.java10 import java.util.concurrent.Executors;
162 final ExecutorService pool = Executors.newCachedThreadPool(); in testAddAndSumMT()
DAbstractExecutorServiceTest.java24 import java.util.concurrent.Executors;
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()
587 tasks.add(Executors.callable(possiblyInterruptedRunnable(timeout),
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousChannelGroupTest.java26 import java.util.concurrent.Executors;
59 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()
DAsynchronousServerSocketChannelTest.java39 import java.util.concurrent.Executors;
233 provider.openAsynchronousChannelGroup(2, Executors.defaultThreadFactory()); in test_group()
366 provider.openAsynchronousChannelGroup(2, Executors.defaultThreadFactory()); in test_closeGuardSupport_group()
DServerSocketChannelTest.java43 import java.util.concurrent.Executors;
168 ExecutorService executor = Executors.newSingleThreadExecutor(); in bind_loopback()
/libcore/luni/src/test/java/libcore/java/nio/channels/spi/
DAsynchronousChannelProviderTest.java23 import java.util.concurrent.Executors;
36 assertNotNull(provider.openAsynchronousChannelGroup(Executors.newSingleThreadExecutor(), in test_open_methods()
/libcore/luni/src/test/java/libcore/sun/misc/
DUnsafeTest.java23 import java.util.concurrent.Executors;
42 Callable<Object> callable = Executors.callable(new Runnable() { in test_getUnsafeForbiddenWithSystemCaller()
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java24 import java.util.concurrent.Executors;
79 ExecutorService executor = Executors.newFixedThreadPool(threads); in testSecureRandomThreadSafety()
/libcore/luni/src/test/java/libcore/java/security/
DMessageDigestTest.java28 import java.util.concurrent.Executors;
37 ExecutorService es = Executors.newFixedThreadPool(THREAD_COUNT); in testMessageDigest_MultipleThreads_Misuse()
/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java121 ExecutorService executor = Executors.newCachedThreadPool(threadFactory); in createDefault()
129 ExecutorService executor = Executors.newFixedThreadPool(nThreads, factory); in create()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DExecutors.java41 public class Executors { class
43 private Executors() { in Executors() method in Executors
268 extends java.util.concurrent.Executors.DelegatedExecutorService
313 extends java.util.concurrent.Executors.DelegatedExecutorService {
382 extends java.util.concurrent.Executors.DefaultThreadFactory {
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java32 import java.util.concurrent.Executors;
85 ExecutorService executorService = Executors.newFixedThreadPool(2); in execAndGetOutput()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java21 import java.util.concurrent.Executors;
78 ExecutorService executor = Executors.newFixedThreadPool(2); in connect()
/libcore/luni/src/test/java/libcore/java/util/zip/
DDeflaterOutputStreamTest.java30 import java.util.concurrent.Executors;
76 ExecutorService executor = Executors.newSingleThreadExecutor(); in createInflaterStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DOutputStreamTesterTest.java42 import java.util.concurrent.Executors;
123 executor = Executors.newSingleThreadExecutor(); in create()
DWriterTesterTest.java41 import java.util.concurrent.Executors;
116 executor = Executors.newSingleThreadExecutor(); in create()
/libcore/ojluni/src/main/java/java/lang/
DUNIXProcess.java39 import java.util.concurrent.Executors;
121 return Executors.newCachedThreadPool
/libcore/luni/src/test/java/libcore/libcore/net/
DNetworkSecurityPolicyTest.java33 import java.util.concurrent.Executors;
279 executor = Executors.newSingleThreadExecutor(); in CapturingServerSocket()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java78 public class Executors { class
705 private Executors() {}

12