/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TimerTest.java | 113 t.schedule(testTask, 200); in test_ConstructorZ() 132 t.schedule(testTask, 200); in test_Constructor() 151 t.schedule(testTask, 200); in test_ConstructorSZ() 181 t.schedule(testTask, 200); in test_ConstructorS() 207 t.schedule(testTask, 100, 200); in test_cancel() 215 t.schedule(testTask, 100, 500); in test_cancel() 227 t.schedule(testTask, 100, 500); in test_cancel() 244 t.schedule(testTask, 100, 100); in test_cancel() 283 t.schedule(tasks[i], delayTime[j++], 200); in test_purge() 314 t.schedule(testTask, d); in test_scheduleLjava_util_TimerTaskLjava_util_Date() [all …]
|
D | TimerTaskTest.java | 89 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() 179 t.schedule(testTask, 100); in test_scheduledExecutionTime() 194 t.schedule(testTask, 100, 500); in test_scheduledExecutionTime() 233 t.schedule(testTask, 200); in test_run()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ScheduledExecutorService.java | 81 public ScheduledFuture<?> schedule(Runnable command, in schedule() method 96 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule() method
|
D | Executors.java | 643 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { 644 return e.schedule(command, delay, unit); 646 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { 647 return e.schedule(callable, delay, unit);
|
D | ScheduledThreadPoolExecutor.java | 495 public ScheduledFuture<?> schedule(Runnable command, in schedule() method in ScheduledThreadPoolExecutor 511 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule() method in ScheduledThreadPoolExecutor 592 schedule(command, 0, NANOSECONDS); in execute() 602 return schedule(task, 0, NANOSECONDS); in submit() 610 return schedule(Executors.callable(task, result), 0, NANOSECONDS); in submit() 618 return schedule(task, 0, NANOSECONDS); in submit()
|
/libcore/luni/src/main/java/java/util/ |
D | Timer.java | 431 public void schedule(TimerTask task, Date when) { in schedule() method in Timer 452 public void schedule(TimerTask task, long delay) { in schedule() method in Timer 474 public void schedule(TimerTask task, long delay, long period) { in schedule() method in Timer 497 public void schedule(TimerTask task, Date when, long period) { in schedule() method in Timer
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ScheduledExecutorTest.java | 51 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() 73 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3() 190 Future f = se.schedule(callable, SHORT_DELAY_MS, MILLISECONDS); in testScheduleNull() 203 se.schedule(new NoOpRunnable(), in testSchedule1_RejectedExecutionException() 220 se.schedule(new NoOpCallable(), in testSchedule2_RejectedExecutionException() 236 se.schedule(new NoOpCallable(), in testSchedule3_RejectedExecutionException() 535 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testGetQueue() 562 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testRemove() 588 tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(), in testPurge() 617 p.schedule(new SmallPossiblyInterruptedRunnable(), in testShutdownNow() [all …]
|
D | ScheduledExecutorSubclassTest.java | 103 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() 125 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3() 240 Future f = se.schedule(callable, SHORT_DELAY_MS, MILLISECONDS); in testScheduleNull() 253 se.schedule(new NoOpRunnable(), in testSchedule1_RejectedExecutionException() 270 se.schedule(new NoOpCallable(), in testSchedule2_RejectedExecutionException() 286 se.schedule(new NoOpCallable(), in testSchedule3_RejectedExecutionException() 584 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testGetQueue() 611 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testRemove() 637 tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(), in testPurge() 666 p.schedule(new SmallPossiblyInterruptedRunnable(), in testShutdownNow() [all …]
|
D | ExecutorsTest.java | 182 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), in testNewSingleThreadScheduledExecutor() 208 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), in testNewScheduledThreadPool() 236 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), in testUnconfigurableScheduledExecutorService()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 94 executor.schedule(runnable, delayMillis, TimeUnit.MILLISECONDS); in runLater()
|