/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ForkJoinTask.java | 1369 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 …]
|
D | AbstractExecutorService.java | 92 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument 93 return new FutureTask<T>(runnable, value); in newTaskFor()
|
D | FutureTask.java | 152 public FutureTask(Runnable runnable, V result) { in FutureTask() argument 153 this.callable = Executors.callable(runnable, result); in FutureTask()
|
D | ScheduledThreadPoolExecutor.java | 408 Runnable runnable, RunnableScheduledFuture<V> task) { in decorateTask() argument
|
D | ForkJoinPool.java | 3454 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/ |
D | TestSSLEnginePair.java | 174 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/ |
D | NativeAllocationRegistryTest.java | 179 private static void assertThrowsIllegalArgumentException(Runnable runnable) { in assertThrowsIllegalArgumentException() argument 181 runnable.run(); in assertThrowsIllegalArgumentException()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 123 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/ |
D | FutureTaskTest.java | 181 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()
|
D | JSR166TestCase.java | 1320 Thread newStartedThread(Runnable runnable) { 1321 Thread t = new Thread(runnable);
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | FutureTask.java | 47 public FutureTask(java.lang.Runnable runnable, V result) { in FutureTask() argument
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileIOInterruptTest.java | 687 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/ |
D | CompletableFuture.annotated.java | 50 …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/ |
D | ServerSocketTest.java | 204 Runnable runnable = new Runnable() { in test_accept() local 214 Thread thread = new Thread(runnable, "ServerSocket.accept"); in test_accept()
|
D | SocketTest.java | 809 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/ |
D | CollectionsTest.java | 1634 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()
|
D | Base64Test.java | 1125 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument 1127 runnable.run(); in assertThrowsNpe()
|
D | LocaleTest.java | 1701 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument 1703 runnable.run(); in assertThrowsNpe()
|