Home
last modified time | relevance | path

Searched refs:schedule (Results 1 – 11 of 11) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTest.java117 t.schedule(testTask, 200); in test_ConstructorZ()
136 t.schedule(testTask, 200); in test_Constructor()
155 t.schedule(testTask, 200); in test_ConstructorSZ()
185 t.schedule(testTask, 200); in test_ConstructorS()
211 t.schedule(testTask, 100, 200); in test_cancel()
219 t.schedule(testTask, 100, 500); in test_cancel()
231 t.schedule(testTask, 100, 500); in test_cancel()
248 t.schedule(testTask, 100, 100); in test_cancel()
287 t.schedule(tasks[i], delayTime[j++], 200); in test_purge()
318 t.schedule(testTask, d); in test_scheduleLjava_util_TimerTaskLjava_util_Date()
[all …]
DTimerTaskTest.java89 t.schedule(testTask, 500); in test_cancel()
96 t.schedule(testTask, 50); in test_cancel()
115 t.schedule(testTask, 500, 500); // should never run in test_cancel()
125 t.schedule(testTask, 50, 50); in test_cancel()
140 t.schedule(testTask, 5000); // Should never run in test_cancel()
154 t.schedule(testTask, 0); in test_cancel()
182 t.schedule(testTask, 100); in test_scheduledExecutionTime()
197 t.schedule(testTask, 100, 500); in test_scheduledExecutionTime()
240 t.schedule(testTask, 200); in test_run()
/libcore/luni/src/main/java/java/util/concurrent/
DScheduledExecutorService.java81 public ScheduledFuture<?> schedule(Runnable command, in schedule() method
97 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule() method
DExecutors.java651 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
652 return e.schedule(command, delay, unit);
654 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
655 return e.schedule(callable, delay, unit);
DScheduledThreadPoolExecutor.java524 public ScheduledFuture<?> schedule(Runnable command, in schedule() method in ScheduledThreadPoolExecutor
541 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule() method in ScheduledThreadPoolExecutor
625 schedule(command, 0, NANOSECONDS); in execute()
635 return schedule(task, 0, NANOSECONDS); in submit()
643 return schedule(Executors.callable(task, result), 0, NANOSECONDS); in submit()
651 return schedule(task, 0, NANOSECONDS); in submit()
DCompletableFuture.java2625 return delayer.schedule(command, delay, unit); in delay()
/libcore/ojluni/src/main/java/java/util/
DTimer.java190 public void schedule(TimerTask task, long delay) { in schedule() method in Timer
207 public void schedule(TimerTask task, Date time) { in schedule() method in Timer
243 public void schedule(TimerTask task, long delay, long period) { in schedule() method in Timer
284 public void schedule(TimerTask task, Date firstTime, long period) { in schedule() method in Timer
/libcore/jsr166-tests/src/test/java/jsr166/
DScheduledExecutorSubclassTest.java134 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1()
153 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3()
305 Future f = p.schedule(callable, SHORT_DELAY_MS, MILLISECONDS); in testScheduleNull()
319 p.schedule(new NoOpRunnable(), in testSchedule1_RejectedExecutionException()
335 p.schedule(new NoOpCallable(), in testSchedule2_RejectedExecutionException()
351 p.schedule(new NoOpCallable(), in testSchedule3_RejectedExecutionException()
646 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testGetQueue()
670 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testRemove()
697 tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(), in testPurge()
761 tasks.add(p.schedule(r, 9, SECONDS)); in testShutdownNow_delayedTasks()
[all …]
DScheduledExecutorTest.java77 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1()
97 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3()
249 Future f = p.schedule(callable, SHORT_DELAY_MS, MILLISECONDS); in testScheduleNull()
263 p.schedule(new NoOpRunnable(), in testSchedule1_RejectedExecutionException()
279 p.schedule(new NoOpCallable(), in testSchedule2_RejectedExecutionException()
295 p.schedule(new NoOpCallable(), in testSchedule3_RejectedExecutionException()
594 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testGetQueue()
618 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testRemove()
645 tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(), in testPurge()
710 tasks.add(p.schedule(r, 9, SECONDS)); in testShutdownNow_delayedTasks()
[all …]
DExecutorsTest.java211 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), in testNewSingleThreadScheduledExecutor()
235 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), in testNewScheduledThreadPool()
261 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), in testUnconfigurableScheduledExecutorService()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java125 executor.schedule(runnable, delayMillis, TimeUnit.MILLISECONDS); in runLater()