/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 | CompletableFuture.java | 1870 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()
|
D | ScheduledThreadPoolExecutor.java | 408 Runnable runnable, RunnableScheduledFuture<V> task) { in decorateTask() argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SetOfTest.java | 169 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()
|
D | ListOfTest.java | 160 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()
|
D | MapOfTest.java | 294 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()
|
D | ObjectsTest.java | 263 private static void assertThrowsNpe(Runnable runnable) { in assertThrowsNpe() argument 265 runnable.run(); in assertThrowsNpe()
|
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()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | AbstractExecutorServiceTest.java | 66 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/ |
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 | 221 private static void assertThrowsIllegalArgumentException(Runnable runnable) { in assertThrowsIllegalArgumentException() argument 223 runnable.run(); in assertThrowsIllegalArgumentException()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 145 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/ |
D | MimeMapTest.java | 378 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/ |
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/src/test/java/util/concurrent/tck/ |
D | FutureTaskTest.java | 204 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()
|
D | JSR166TestCase.java | 1429 Thread newStartedThread(Runnable runnable) { 1430 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()
|