Home
last modified time | relevance | path

Searched refs:runnable (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinTask.java1369 final Runnable runnable; field in ForkJoinTask.AdaptedRunnable
1371 AdaptedRunnable(Runnable runnable, T result) { in AdaptedRunnable() argument
1372 if (runnable == null) throw new NullPointerException(); in AdaptedRunnable()
1373 this.runnable = runnable; in AdaptedRunnable()
1378 public final boolean exec() { runnable.run(); return true; } in exec()
1388 final Runnable runnable; field in ForkJoinTask.AdaptedRunnableAction
1389 AdaptedRunnableAction(Runnable runnable) { in AdaptedRunnableAction() argument
1390 if (runnable == null) throw new NullPointerException(); in AdaptedRunnableAction()
1391 this.runnable = runnable; in AdaptedRunnableAction()
1395 public final boolean exec() { runnable.run(); return true; } in exec()
[all …]
DAbstractExecutorService.java92 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument
93 return new FutureTask<T>(runnable, value); in newTaskFor()
DFutureTask.java152 public FutureTask(Runnable runnable, V result) { in FutureTask() argument
153 this.callable = Executors.callable(runnable, result); in FutureTask()
DCompletableFuture.java1870 public static CompletableFuture<Void> runAsync(Runnable runnable) { in runAsync() argument
1871 return asyncRunStage(ASYNC_POOL, runnable); in runAsync()
1884 public static CompletableFuture<Void> runAsync(Runnable runnable, in runAsync() argument
1886 return asyncRunStage(screenExecutor(executor), runnable); in runAsync()
DScheduledThreadPoolExecutor.java408 Runnable runnable, RunnableScheduledFuture<V> task) { in decorateTask() argument
/libcore/luni/src/test/java/libcore/java/util/
DSetOfTest.java169 private static void npe(boolean expectedToThrowNpe, Runnable runnable) { in npe() argument
171 assertThrowsNpe(runnable); in npe()
173 runnable.run(); // should not throw in npe()
214 private static boolean throwsUoe(Runnable runnable) { in throwsUoe() argument
216 runnable.run(); in throwsUoe()
223 private static void assertThrowsIae(Runnable runnable) { in assertThrowsIae() argument
225 runnable.run(); in assertThrowsIae()
231 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument
233 runnable.run(); in assertThrowsNpe()
DListOfTest.java160 private static void npe(boolean expectedToThrowNpe, Runnable runnable) { in npe() argument
162 assertThrowsNpe(runnable); in npe()
164 runnable.run(); // should not throw in npe()
216 private static void assertThrowsUoe(Runnable runnable) { in assertThrowsUoe() argument
218 runnable.run(); in assertThrowsUoe()
224 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument
226 runnable.run(); in assertThrowsNpe()
DMapOfTest.java294 private static void assertThrowsIae(Runnable runnable) { in assertThrowsIae() argument
296 runnable.run(); in assertThrowsIae()
302 private static void assertThrowsUoe(Runnable runnable) { in assertThrowsUoe() argument
304 runnable.run(); in assertThrowsUoe()
310 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument
312 runnable.run(); in assertThrowsNpe()
DObjectsTest.java263 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument
265 runnable.run(); in assertThrowsNpe()
DCollectionsTest.java1634 private static void assertThrowsUoe(Runnable runnable) { in assertThrowsUoe() argument
1636 runnable.run(); in assertThrowsUoe()
1642 private static void assertThrowsCce(Runnable runnable) { in assertThrowsCce() argument
1644 runnable.run(); in assertThrowsCce()
DBase64Test.java1125 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument
1127 runnable.run(); in assertThrowsNpe()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DAbstractExecutorServiceTest.java66 public <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument
67 return super.newTaskFor(runnable, value); in newTaskFor()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLEnginePair.java174 Runnable runnable = engine.getDelegatedTask(); in handshakeCompleted() local
175 if (runnable == null) { in handshakeCompleted()
178 runnable.run(); in handshakeCompleted()
/libcore/luni/src/test/java/libcore/libcore/util/
DNativeAllocationRegistryTest.java221 private static void assertThrowsIllegalArgumentException(Runnable runnable) { in assertThrowsIllegalArgumentException() argument
223 runnable.run(); in assertThrowsIllegalArgumentException()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java145 private void runLater(Runnable runnable, long delayMillis) { in runLater() argument
147 executor.schedule(runnable, delayMillis, TimeUnit.MILLISECONDS); in runLater()
/libcore/luni/src/test/java/libcore/libcore/content/type/
DMimeMapTest.java378 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument
380 runnable.run(); in assertThrowsNpe()
386 private static void assertThrowsIae(Runnable runnable) { in assertThrowsIae() argument
388 runnable.run(); in assertThrowsIae()
/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java181 PublicFutureTask(Runnable runnable) { in PublicFutureTask() argument
182 this(runnable, seven); in PublicFutureTask()
184 PublicFutureTask(Runnable runnable, Object result) { in PublicFutureTask() argument
185 this(runnable, result, new AtomicInteger(0)); in PublicFutureTask()
187 private PublicFutureTask(final Runnable runnable, Object result, in PublicFutureTask() argument
192 runnable.run(); in PublicFutureTask()
DJSR166TestCase.java1320 Thread newStartedThread(Runnable runnable) {
1321 Thread t = new Thread(runnable);
/libcore/ojluni/src/test/java/util/concurrent/tck/
DFutureTaskTest.java204 PublicFutureTask(Runnable runnable) { in PublicFutureTask() argument
205 this(runnable, seven); in PublicFutureTask()
207 PublicFutureTask(Runnable runnable, Object result) { in PublicFutureTask() argument
208 this(runnable, result, new AtomicInteger(0)); in PublicFutureTask()
210 private PublicFutureTask(final Runnable runnable, Object result, in PublicFutureTask() argument
215 runnable.run(); in PublicFutureTask()
DJSR166TestCase.java1429 Thread newStartedThread(Runnable runnable) {
1430 Thread t = new Thread(runnable);
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DFutureTask.java47 public FutureTask(java.lang.Runnable runnable, V result) { in FutureTask() argument
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java687 private static Thread createAndStartThread(String name, Runnable runnable) { in createAndStartThread() argument
688 Thread t = new Thread(runnable, name); in createAndStartThread()
/libcore/ojluni/annotations/mmodule/java/util/concurrent/
DCompletableFuture.annotated.java50 …oncurrent.CompletableFuture<java.lang.Void> runAsync(java.lang.Runnable runnable) { throw new Runt… in runAsync() argument
52 …oncurrent.CompletableFuture<java.lang.Void> runAsync(java.lang.Runnable runnable, java.util.concur… in runAsync() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java204 Runnable runnable = new Runnable() { in test_accept() local
214 Thread thread = new Thread(runnable, "ServerSocket.accept"); in test_accept()
DSocketTest.java809 Runnable runnable = new Runnable() { in test_getOutputStream() local
823 Thread thread = new Thread(runnable, "Socket.getOutputStream"); in test_getOutputStream()

12