Home
last modified time | relevance | path

Searched refs:ecs (Results 1 – 3 of 3) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorCompletionServiceTest.java34 ExecutorCompletionService ecs = new ExecutorCompletionService(null); in testConstructorNPE() local
45 ExecutorCompletionService ecs = new ExecutorCompletionService(e, null); in testConstructorNPE2() local
55 ExecutorCompletionService ecs = new ExecutorCompletionService(e); in testSubmitNPE() local
58 ecs.submit(c); in testSubmitNPE()
71 ExecutorCompletionService ecs = new ExecutorCompletionService(e); in testSubmitNPE2() local
74 ecs.submit(r, Boolean.TRUE); in testSubmitNPE2()
87 ExecutorCompletionService ecs = new ExecutorCompletionService(e); in testTake() local
90 ecs.submit(c); in testTake()
91 Future f = ecs.take(); in testTake()
103 ExecutorCompletionService ecs = new ExecutorCompletionService(e); in testTake2() local
[all …]
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java80 ExecutorCompletionService ecs = new ExecutorCompletionService(executor); in testSecureRandomThreadSafety() local
82 ecs.submit(new Callable<Void>() { in testSecureRandomThreadSafety()
93 ecs.take().get(); in testSecureRandomThreadSafety()
/libcore/luni/src/main/java/java/util/concurrent/
DAbstractExecutorService.java119 ExecutorCompletionService<T> ecs = in doInvokeAny() local
136 futures.add(ecs.submit(it.next())); in doInvokeAny()
141 Future<T> f = ecs.poll(); in doInvokeAny()
145 futures.add(ecs.submit(it.next())); in doInvokeAny()
151 f = ecs.poll(nanos, TimeUnit.NANOSECONDS); in doInvokeAny()
157 f = ecs.take(); in doInvokeAny()