Home
last modified time | relevance | path

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

/libcore/libart/src/main/java/java/lang/
DThread.java214 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/
DForkJoinTask.java1350 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 …]
DFutureTask.java122 public FutureTask(Runnable runnable, V result) { in FutureTask() argument
123 this.callable = Executors.callable(runnable, result); in FutureTask()
DAbstractExecutorService.java56 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument
57 return new FutureTask<T>(runnable, value); in newTaskFor()
DScheduledThreadPoolExecutor.java371 Runnable runnable, RunnableScheduledFuture<V> task) { in decorateTask() argument
DForkJoinPool.java3186 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/
DTestSSLEnginePair.java152 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/
DReferenceQueueTest.java92 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/
DFutureTaskTest.java163 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()
DJSR166TestCase.java635 Thread newStartedThread(Runnable runnable) { in newStartedThread() argument
636 Thread t = new Thread(runnable); in newStartedThread()
/libcore/support/src/test/java/tests/http/
DMockWebServer.java490 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/
DFileIOInterruptTest.java679 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/
DServerSocketTest.java189 Runnable runnable = new Runnable() { in test_accept() local
199 Thread thread = new Thread(runnable, "ServerSocket.accept"); in test_accept()
DSocketTest.java808 Runnable runnable = new Runnable() { in test_getOutputStream() local
822 Thread thread = new Thread(runnable, "Socket.getOutputStream"); in test_getOutputStream()