Home
last modified time | relevance | path

Searched refs:schedule (Results 1 – 14 of 14) 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/ojluni/src/main/java/java/util/concurrent/
DScheduledExecutorService.java110 public ScheduledFuture<?> schedule(Runnable command, in schedule() method
126 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule() method
DExecutors.java690 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
691 return e.schedule(command, delay, unit);
693 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
694 return e.schedule(callable, delay, unit);
DScheduledThreadPoolExecutor.java553 public ScheduledFuture<?> schedule(Runnable command, in schedule() method in ScheduledThreadPoolExecutor
570 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule() method in ScheduledThreadPoolExecutor
654 schedule(command, 0, NANOSECONDS); in execute()
664 return schedule(task, 0, NANOSECONDS); in submit()
672 return schedule(Executors.callable(task, result), 0, NANOSECONDS); in submit()
680 return schedule(task, 0, NANOSECONDS); in submit()
DCompletableFuture.java2643 return delayer.schedule(command, delay, unit); in delay()
/libcore/ojluni/src/main/java/java/util/
DTimer.java197 public void schedule(TimerTask task, long delay) { in schedule() method in Timer
214 public void schedule(TimerTask task, Date time) { in schedule() method in Timer
250 public void schedule(TimerTask task, long delay, long period) { in schedule() method in Timer
291 public void schedule(TimerTask task, Date firstTime, long period) { in schedule() method in Timer
/libcore/jsr166-tests/src/test/java/jsr166/
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 …]
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 …]
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/ojluni/src/main/java/sun/nio/ch/
DAsynchronousChannelGroupImpl.java200 final Future<?> schedule(Runnable task, long timeout, TimeUnit unit) {
202 return timeoutExecutor.schedule(task, timeout, unit);
DUnixAsynchronousSocketChannelImpl.java553 this.readTimer = port.schedule(readTimeoutTask, timeout, unit); in implRead()
736 this.writeTimer = port.schedule(writeTimeoutTask, timeout, unit); in implWrite()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java141 executor.schedule(runnable, delayMillis, TimeUnit.MILLISECONDS); in runLater()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DExecutors.java276 public java.util.concurrent.ScheduledFuture<?> schedule( in schedule() method in Executors.DelegatedScheduledExecutorService
281 public <V> java.util.concurrent.ScheduledFuture<V> schedule( in schedule() method in Executors.DelegatedScheduledExecutorService