Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/Timer/
DArgs.java39 void schedule(final Timer t, final TimerTask task, final Date d) { in schedule() method in Args
40 t.schedule(task, d); in schedule()
43 () -> t.schedule(task, d)); in schedule()
46 void schedule(final Timer t, final TimerTask task, final Date d, final in schedule() method in Args
48 t.schedule(task, d, period); in schedule()
51 () -> t.schedule(task, d, period)); in schedule()
91 () -> t.schedule(nop(), 42),
92 () -> t.schedule(nop(), 42),
93 () -> t.schedule(nop(), past),
94 () -> t.schedule(nop(), 42, 42),
[all …]
DKillThread.java45 t.schedule(new TimerTask() { in main()
67 t.schedule(new TimerTask() { in main()
DAutoStop.java47 t.schedule(new TimerTask() { in main()
68 t.schedule(new TimerTask() { in main()
DDelayOverflow.java46 timer.schedule(task, new Date(), Long.MAX_VALUE); in scheduleNow()
49 timer.schedule(task, 0L, Long.MAX_VALUE); in scheduleNow()
DPurge.java46 timer.schedule(task, i * 60*60*1000); // i hrs. hence. in main()
DNameConstructors.java55 timer.schedule(task, 0L); // immediately in test()
/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.java106 public ScheduledFuture<?> schedule(Runnable command, in schedule() method
122 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule() method
DScheduledThreadPoolExecutor.java560 public ScheduledFuture<?> schedule(Runnable command, in schedule() method in ScheduledThreadPoolExecutor
577 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule() method in ScheduledThreadPoolExecutor
712 schedule(command, 0, NANOSECONDS); in execute()
722 return schedule(task, 0, NANOSECONDS); in submit()
730 return schedule(Executors.callable(task, result), 0, NANOSECONDS); in submit()
738 return schedule(task, 0, NANOSECONDS); in submit()
DExecutors.java769 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
770 return e.schedule(command, delay, unit);
772 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
773 return e.schedule(callable, delay, unit);
DCompletableFuture.java2811 return delayer.schedule(command, delay, unit); in delay()
/libcore/ojluni/src/main/java/java/util/
DTimer.java209 public void schedule(TimerTask task, long delay) { in schedule() method in Timer
226 public void schedule(TimerTask task, Date time) { in schedule() method in Timer
262 public void schedule(TimerTask task, long delay, long period) { in schedule() method in Timer
303 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/ojluni/src/test/java/util/concurrent/tck/
DScheduledExecutorSubclassTest.java158 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1()
177 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3()
329 Future f = p.schedule(callable, SHORT_DELAY_MS, MILLISECONDS); in testScheduleNull()
343 p.schedule(new NoOpRunnable(), in testSchedule1_RejectedExecutionException()
359 p.schedule(new NoOpCallable(), in testSchedule2_RejectedExecutionException()
375 p.schedule(new NoOpCallable(), in testSchedule3_RejectedExecutionException()
670 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testGetQueue()
694 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testRemove()
721 tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(), in testPurge()
785 tasks.add(p.schedule(r, 9, SECONDS)); in testShutdownNow_delayedTasks()
[all …]
DScheduledExecutorTest.java101 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1()
121 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3()
273 Future f = p.schedule(callable, SHORT_DELAY_MS, MILLISECONDS); in testScheduleNull()
287 p.schedule(new NoOpRunnable(), in testSchedule1_RejectedExecutionException()
303 p.schedule(new NoOpCallable(), in testSchedule2_RejectedExecutionException()
319 p.schedule(new NoOpCallable(), in testSchedule3_RejectedExecutionException()
617 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testGetQueue()
641 tasks[i] = p.schedule(r, 1, MILLISECONDS); in testRemove()
668 tasks[i] = p.schedule(new SmallPossiblyInterruptedRunnable(), in testPurge()
733 tasks.add(p.schedule(r, 9, SECONDS)); in testShutdownNow_delayedTasks()
[all …]
DExecutorsTest.java234 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), in testNewSingleThreadScheduledExecutor()
258 Future f = p.schedule(Executors.callable(task, Boolean.TRUE), in testNewScheduledThreadPool()
284 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/ojluni/src/test/java/nio/channels/Selector/
DSelectWithConsumer.java729 POOL.schedule(() -> sel.wakeup(), delay, unit); in scheduleWakeup()
733 POOL.schedule(() -> t.interrupt(), delay, unit); in scheduleInterrupt()
737 POOL.schedule(() -> { in scheduleClose()
747 POOL.schedule(() -> { in scheduleWrite()
/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
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java147 executor.schedule(runnable, delayMillis, TimeUnit.MILLISECONDS); in runLater()
/libcore/api/
Dcurrent.txt15141 method public void schedule(java.util.TimerTask, long);
15142 method public void schedule(java.util.TimerTask, java.util.Date);
15143 method public void schedule(java.util.TimerTask, long, long);
15144 method public void schedule(java.util.TimerTask, java.util.Date, long);
16263 …method public java.util.concurrent.ScheduledFuture<?> schedule(Runnable, long, java.util.concurren…
16264 …method public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V…
16282 …method public java.util.concurrent.ScheduledFuture<?> schedule(Runnable, long, java.util.concurren…
16283 …method public <V> java.util.concurrent.ScheduledFuture<V> schedule(java.util.concurrent.Callable<V…