Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/com/google/coretests/
DCoreTestResult.java122 CoreTestRunnable runnable = new CoreTestRunnable( in runProtected() local
126 Thread thread = new Thread(runnable); in runProtected()
135 runnable.stop(); in runProtected()
148 runnable.run(); in runProtected()
/libcore/luni/src/main/java/org/apache/xml/utils/
DThreadControllerWrapper.java33 public static Thread runThread(Runnable runnable, int priority) in runThread() argument
35 return m_tpool.run(runnable, priority); in runThread()
/libcore/luni/src/main/java/java/lang/
DThread.java220 public Thread(Runnable runnable) { in Thread() argument
221 create(null, runnable, null, 0); in Thread()
238 public Thread(Runnable runnable, String threadName) { in Thread() argument
243 create(null, runnable, threadName, 0); in Thread()
287 public Thread(ThreadGroup group, Runnable runnable) { in Thread() argument
288 create(group, runnable, null, 0); in Thread()
312 public Thread(ThreadGroup group, Runnable runnable, String threadName) { in Thread() argument
317 create(group, runnable, threadName, 0); in Thread()
372 public Thread(ThreadGroup group, Runnable runnable, String threadName, long stackSize) { in Thread() argument
376 create(group, runnable, threadName, stackSize); in Thread()
[all …]
/libcore/luni/src/test/java/tests/api/java/util/concurrent/
DScheduledExecutorTest.java27 TrackedShortRunnable runnable =new TrackedShortRunnable(); in testExecute() local
29 p1.execute(runnable); in testExecute()
30 assertFalse(runnable.done); in testExecute()
34 assertTrue(runnable.done); in testExecute()
59 TrackedShortRunnable runnable = new TrackedShortRunnable(); in testSchedule3() local
61 p1.schedule(runnable, SMALL_DELAY_MS, MILLISECONDS); in testSchedule3()
63 assertFalse(runnable.done); in testSchedule3()
65 assertTrue(runnable.done); in testSchedule3()
74 TrackedShortRunnable runnable = new TrackedShortRunnable(); in testSchedule4() local
76 …ScheduledFuture h = p1.scheduleAtFixedRate(runnable, SHORT_DELAY_MS, SHORT_DELAY_MS, MILLISECONDS); in testSchedule4()
[all …]
DScheduledExecutorSubclassTest.java80 TrackedShortRunnable runnable =new TrackedShortRunnable(); in testExecute() local
82 p1.execute(runnable); in testExecute()
83 assertFalse(runnable.done); in testExecute()
87 assertTrue(runnable.done); in testExecute()
112 TrackedShortRunnable runnable = new TrackedShortRunnable(); in testSchedule3() local
114 p1.schedule(runnable, SMALL_DELAY_MS, MILLISECONDS); in testSchedule3()
116 assertFalse(runnable.done); in testSchedule3()
118 assertTrue(runnable.done); in testSchedule3()
127 TrackedShortRunnable runnable = new TrackedShortRunnable(); in testSchedule4() local
129 …ScheduledFuture h = p1.scheduleAtFixedRate(runnable, SHORT_DELAY_MS, SHORT_DELAY_MS, MILLISECONDS); in testSchedule4()
[all …]
DJSR166TestCase.java493 Thread newStartedThread(Runnable runnable) { in newStartedThread() argument
494 Thread t = new Thread(runnable); in newStartedThread()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLEnginePair.java133 Runnable runnable = engine.getDelegatedTask(); in handshakeCompleted() local
134 if (runnable == null) { in handshakeCompleted()
137 runnable.run(); in handshakeCompleted()
/libcore/luni/src/main/java/java/util/concurrent/
DFutureTask.java63 public FutureTask(Runnable runnable, V result) { in FutureTask() argument
64 sync = new Sync(Executors.callable(runnable, result)); in FutureTask()
DAbstractExecutorService.java60 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument
61 return new FutureTask<T>(runnable, value); in newTaskFor()
DScheduledThreadPoolExecutor.java369 Runnable runnable, RunnableScheduledFuture<V> task) { in decorateTask() argument
/libcore/luni/src/main/java/org/apache/xalan/transformer/
DTransformerImpl.java2951 public static void runTransformThread(Runnable runnable) in runTransformThread() argument
2953 ThreadControllerWrapper.runThread(runnable, -1); in runTransformThread()
/libcore/luni/src/test/java/libcore/java/net/
DOldDatagramSocketTest.java911 Runnable runnable = new Runnable() { in test_receiveLjava_net_DatagramPacket() local
922 Thread thread = new Thread(runnable, "DatagramSocket.receive1"); in test_receiveLjava_net_DatagramPacket()
/libcore/luni/src/test/java/tests/SQLite/
DDatabaseTest.java2024 public void registerException(Runnable runnable, Exception e) {