Home
last modified time | relevance | path

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

/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()
DScheduledThreadPoolExecutor.java408 Runnable runnable, RunnableScheduledFuture<V> task) { in decorateTask() argument
DForkJoinPool.java3454 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument
3455 return new ForkJoinTask.AdaptedRunnable<T>(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.java179 private static void assertThrowsIllegalArgumentException(Runnable runnable) { in assertThrowsIllegalArgumentException() argument
181 runnable.run(); in assertThrowsIllegalArgumentException()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java123 private void runLater(Runnable runnable, int delayMillis) { in runLater() argument
125 executor.schedule(runnable, delayMillis, TimeUnit.MILLISECONDS); in runLater()
/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/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()
/libcore/luni/src/test/java/libcore/java/util/
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()
DLocaleTest.java1701 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument
1703 runnable.run(); in assertThrowsNpe()