/libcore/luni/src/test/java/tests/api/java/util/concurrent/ |
D | ExecutorsTest.java | 27 ExecutorService e = Executors.newCachedThreadPool(); in testNewCachedThreadPool1() 38 ExecutorService e = Executors.newCachedThreadPool(new SimpleThreadFactory()); in testNewCachedThreadPool2() 50 ExecutorService e = Executors.newCachedThreadPool(null); in testNewCachedThreadPool3() 60 ExecutorService e = Executors.newSingleThreadExecutor(); in testNewSingleThreadExecutor1() 71 ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory()); in testNewSingleThreadExecutor2() 83 ExecutorService e = Executors.newSingleThreadExecutor(null); in testNewSingleThreadExecutor3() 92 ExecutorService e = Executors.newSingleThreadExecutor(); in testCastNewSingleThreadExecutor() 107 ExecutorService e = Executors.newFixedThreadPool(2); in testNewFixedThreadPool1() 118 ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory()); in testNewFixedThreadPool2() 130 ExecutorService e = Executors.newFixedThreadPool(2, null); in testNewFixedThreadPool3() [all …]
|
D | ExecutorCompletionServiceTest.java | 40 ExecutorService e = Executors.newCachedThreadPool(); in testConstructorNPE2() 50 ExecutorService e = Executors.newCachedThreadPool(); in testSubmitNPE() 66 ExecutorService e = Executors.newCachedThreadPool(); in testSubmitNPE2() 82 ExecutorService e = Executors.newCachedThreadPool(); in testTake() 98 ExecutorService e = Executors.newCachedThreadPool(); in testTake2() 114 ExecutorService e = Executors.newCachedThreadPool(); in testPoll1() 137 ExecutorService e = Executors.newCachedThreadPool(); in testPoll2()
|
D | AbstractExecutorServiceTest.java | 88 Future future = e.submit(Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction() 109 Future future = e.submit(Executors.callable(new PrivilegedExceptionAction() { in testSubmitPrivilegedExceptionAction() 127 Future future = e.submit(Executors.callable(new PrivilegedExceptionAction() { in testSubmitFailedPrivilegedExceptionAction() 647 l.add(Executors.callable(new MediumPossiblyInterruptedRunnable(), TEST_STRING)); in testTimedInvokeAll6()
|
D | SynchronousQueueTest.java | 564 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor() 587 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | ArrayBlockingQueueTest.java | 755 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor() 777 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | LinkedBlockingQueueTest.java | 754 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor() 776 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | LinkedBlockingDequeTest.java | 1506 ExecutorService executor = Executors.newFixedThreadPool(2); in testOfferInExecutor() 1528 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | DelayQueueTest.java | 740 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | PriorityBlockingQueueTest.java | 698 ExecutorService executor = Executors.newFixedThreadPool(2); in testPollInExecutor()
|
D | ScheduledExecutorTest.java | 992 l.add(Executors.callable(new MediumPossiblyInterruptedRunnable(), TEST_STRING));
|
D | ScheduledExecutorSubclassTest.java | 1041 l.add(Executors.callable(new MediumPossiblyInterruptedRunnable(), TEST_STRING));
|
D | ThreadPoolExecutorSubclassTest.java | 1504 l.add(Executors.callable(new MediumPossiblyInterruptedRunnable(), TEST_STRING)); in testTimedInvokeAll6()
|
D | ThreadPoolExecutorTest.java | 1375 l.add(Executors.callable(new MediumPossiblyInterruptedRunnable(), TEST_STRING)); in testTimedInvokeAll6()
|
/libcore/luni/src/test/java/sun/misc/ |
D | UnsafeTest.java | 22 import java.util.concurrent.Executors; 39 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/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLSocketPair.java | 21 import java.util.concurrent.Executors; 67 ExecutorService executor = Executors.newFixedThreadPool(2); in connect()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 29 import java.util.concurrent.Executors; 69 ExecutorService executor = Executors.newSingleThreadExecutor(); in createInflaterStream()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | FutureTask.java | 64 sync = new Sync(Executors.callable(runnable, result)); in FutureTask()
|
D | Executors.java | 44 public class Executors { class 682 private Executors() {}
|
D | ThreadPoolExecutor.java | 1142 Executors.defaultThreadFactory(), defaultHandler); in ThreadPoolExecutor() 1212 Executors.defaultThreadFactory(), handler); in ThreadPoolExecutor()
|
D | ScheduledThreadPoolExecutor.java | 608 return schedule(Executors.callable(task, result), in submit()
|
/libcore/support/src/test/java/tests/http/ |
D | MockWebServer.java | 42 import java.util.concurrent.Executors; 154 executor = Executors.newCachedThreadPool(); in play()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
D | HttpsURLConnectionTest.java | 42 import java.util.concurrent.Executors; 755 ExecutorService executorService = Executors.newFixedThreadPool(2); in doInteraction()
|
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/ |
D | NativeCryptoTest.java | 38 import java.util.concurrent.Executors; 557 ExecutorService executor = Executors.newSingleThreadExecutor(); in handshake()
|