/libcore/libart/src/main/java/java/lang/ |
D | Thread.java | 214 public Thread(Runnable runnable) { in Thread() argument 215 create(null, runnable, null, 0); in Thread() 232 public Thread(Runnable runnable, String threadName) { in Thread() argument 237 create(null, runnable, threadName, 0); in Thread() 276 public Thread(ThreadGroup group, Runnable runnable) { in Thread() argument 277 create(group, runnable, null, 0); in Thread() 296 public Thread(ThreadGroup group, Runnable runnable, String threadName) { in Thread() argument 301 create(group, runnable, threadName, 0); in Thread() 346 public Thread(ThreadGroup group, Runnable runnable, String threadName, long stackSize) { in Thread() argument 350 create(group, runnable, threadName, stackSize); in Thread() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ForkJoinTask.java | 1350 final Runnable runnable; field in ForkJoinTask.AdaptedRunnable 1352 AdaptedRunnable(Runnable runnable, T result) { in AdaptedRunnable() argument 1353 if (runnable == null) throw new NullPointerException(); in AdaptedRunnable() 1354 this.runnable = runnable; in AdaptedRunnable() 1359 public final boolean exec() { runnable.run(); return true; } in exec() 1369 final Runnable runnable; field in ForkJoinTask.AdaptedRunnableAction 1370 AdaptedRunnableAction(Runnable runnable) { in AdaptedRunnableAction() argument 1371 if (runnable == null) throw new NullPointerException(); in AdaptedRunnableAction() 1372 this.runnable = runnable; in AdaptedRunnableAction() 1376 public final boolean exec() { runnable.run(); return true; } in exec() [all …]
|
D | FutureTask.java | 122 public FutureTask(Runnable runnable, V result) { in FutureTask() argument 123 this.callable = Executors.callable(runnable, result); in FutureTask()
|
D | AbstractExecutorService.java | 56 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument 57 return new FutureTask<T>(runnable, value); in newTaskFor()
|
D | ScheduledThreadPoolExecutor.java | 371 Runnable runnable, RunnableScheduledFuture<V> task) { in decorateTask() argument
|
D | ForkJoinPool.java | 3186 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument 3187 return new ForkJoinTask.AdaptedRunnable<T>(runnable, value); in newTaskFor()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLEnginePair.java | 152 Runnable runnable = engine.getDelegatedTask(); in handshakeCompleted() local 153 if (runnable == null) { in handshakeCompleted() 156 runnable.run(); in handshakeCompleted()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 92 private void runLater(Runnable runnable, int delayMillis) { in runLater() argument 94 executor.schedule(runnable, delayMillis, TimeUnit.MILLISECONDS); in runLater()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | FutureTaskTest.java | 163 PublicFutureTask(Runnable runnable) { in PublicFutureTask() argument 164 this(runnable, seven); in PublicFutureTask() 166 PublicFutureTask(Runnable runnable, Object result) { in PublicFutureTask() argument 167 this(runnable, result, new AtomicInteger(0)); in PublicFutureTask() 169 private PublicFutureTask(final Runnable runnable, Object result, in PublicFutureTask() argument 174 runnable.run(); in PublicFutureTask()
|
D | JSR166TestCase.java | 635 Thread newStartedThread(Runnable runnable) { in newStartedThread() argument 636 Thread t = new Thread(runnable); in newStartedThread()
|
/libcore/support/src/test/java/tests/http/ |
D | MockWebServer.java | 490 private static Runnable namedRunnable(final String name, final Runnable runnable) { in namedRunnable() argument 496 runnable.run(); in namedRunnable()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileIOInterruptTest.java | 679 private static Thread createAndStartThread(String name, Runnable runnable) { in createAndStartThread() argument 680 Thread t = new Thread(runnable, name); in createAndStartThread()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | ServerSocketTest.java | 189 Runnable runnable = new Runnable() { in test_accept() local 199 Thread thread = new Thread(runnable, "ServerSocket.accept"); in test_accept()
|
D | SocketTest.java | 808 Runnable runnable = new Runnable() { in test_getOutputStream() local 822 Thread thread = new Thread(runnable, "Socket.getOutputStream"); in test_getOutputStream()
|