/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ScheduledExecutorService.java | 11 * delay, or to execute periodically. 21 * with a requested delay of zero. Zero and negative delays (but not 32 * relative delay need not coincide with the current {@code Date} at 69 * after the given delay. 72 * @param delay the time from now to delay execution 73 * @param unit the time unit of the delay parameter 82 long delay, TimeUnit unit); 86 * given delay. 89 * @param delay th 81 schedule(Runnable command, long delay, TimeUnit unit) argument 97 schedule(Callable<V> callable, long delay, TimeUnit unit) argument 179 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument [all...] |
H A D | ScheduledThreadPoolExecutor.java | 28 * commands to run after a given delay, or to execute periodically. 42 * automatically removed from the work queue until its delay elapses. 111 * methods, which are treated as tasks with a delay of zero. 164 * A negative value indicates fixed-delay execution. 173 * Index into delay queue, to support faster cancellation. 491 private long triggerTime(long delay, TimeUnit unit) { argument 492 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay)); 498 long triggerTime(long delay) { argument 500 ((delay < (Lon 510 overflowFree(long delay) argument 524 schedule(Runnable command, long delay, TimeUnit unit) argument 541 schedule(Callable<V> callable, long delay, TimeUnit unit) argument 584 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument [all...] |
H A D | DelayQueue.java | 26 * when its delay has expired. The <em>head</em> of the queue is that 27 * {@code Delayed} element whose delay expired furthest in the 28 * past. If no delay has expired there is no head and {@code poll} 58 * the leader, it waits only for the next delay to elapse, but 96 * Inserts the specified element into this delay queue. 107 * Inserts the specified element into this delay queue. 129 * Inserts the specified element into this delay queue. As the queue is 140 * Inserts the specified element into this delay queue. As the queue is 155 * if this queue has no elements with an expired delay. 158 * queue has no elements with an expired delay [all...] |
H A D | Executors.java | 217 * to run after a given delay, or to execute periodically. 235 * to run after a given delay, or to execute periodically. (Note 256 * given delay, or to execute periodically. 268 * given delay, or to execute periodically. 651 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument 652 return e.schedule(command, delay, unit); 654 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument 655 return e.schedule(callable, delay, unit); 660 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) { argument 661 return e.scheduleWithFixedDelay(command, initialDelay, delay, uni [all...] |
H A D | CompletableFuture.java | 2497 whenComplete(new Canceller(Delayer.delay(new Timeout(this), 2521 whenComplete(new Canceller(Delayer.delay( 2529 * executor after the given delay (or no delay if non-positive). 2530 * Each delay commences upon invocation of the returned executor's 2533 * @param delay how long to delay, in units of {@code unit} 2535 * {@code delay} parameter 2542 public static Executor delayedExecutor(long delay, TimeUnit unit, argument 2546 return new DelayedExecutor(delay, uni 2563 delayedExecutor(long delay, TimeUnit unit) argument 2623 delay(Runnable command, long delay, TimeUnit unit) argument 2648 final long delay; field in class:CompletableFuture.DelayedExecutor 2651 DelayedExecutor(long delay, TimeUnit unit, Executor executor) argument [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Timer.java | 39 * turn, delay the execution of subsequent tasks, which may "bunch up" and 68 * executing tasks at a given rate or delay. It is effectively a more 180 * Schedules the specified task for execution after the specified delay. 183 * @param delay delay in milliseconds before task is to be executed. 184 * @throws IllegalArgumentException if <tt>delay</tt> is negative, or 185 * <tt>delay + System.currentTimeMillis()</tt> is negative. 190 public void schedule(TimerTask task, long delay) { argument 191 if (delay < 0) 192 throw new IllegalArgumentException("Negative delay 243 schedule(TimerTask task, long delay, long period) argument 323 scheduleAtFixedRate(TimerTask task, long delay, long period) argument [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | JSR166TestCase.java | 194 systemPropertyValue("jsr166.delay.factor", 1.0f); 578 * Returns the shortest timed delay. This can be scaled up for 579 * slow machines using the jsr166.delay.factor system property, 833 * Delays, via Thread.sleep, for the given millisecond delay, but 838 static void delay(long millis) throws InterruptedException { method in class:JSR166TestCase 981 * millisecond delay of {@code timeoutMillis()}. 988 * Checks that thread does not terminate within the given millisecond delay. 993 delay(millis); 1002 * millisecond delay of {@code timeoutMillis()}. 1009 * Checks that the threads do not terminate within the given millisecond delay [all...] |
H A D | ScheduledExecutorSubclassTest.java | 121 * delayed schedule of callable successfully executes after delay 141 * delayed schedule of runnable successfully executes after delay 161 * scheduleAtFixedRate executes runnable after given initial delay 183 * scheduleWithFixedDelay executes runnable after given initial delay 212 * cycles - 1 <= elapsedMillis/delay < cycles 217 for (int delay = 1; delay <= LONG_DELAY_MS; delay *= 3) { 224 p.scheduleAtFixedRate(task, 0, delay, MILLISECONDS); 225 final int totalDelayMillis = (cycles - 1) * delay; [all...] |
H A D | ScheduledExecutorTest.java | 64 * delayed schedule of callable successfully executes after delay 85 * delayed schedule of runnable successfully executes after delay 105 * scheduleAtFixedRate executes runnable after given initial delay 127 * scheduleWithFixedDelay executes runnable after given initial delay 156 * cycles - 1 <= elapsedMillis/delay < cycles 161 for (int delay = 1; delay <= LONG_DELAY_MS; delay *= 3) { 168 p.scheduleAtFixedRate(task, 0, delay, MILLISECONDS); 169 final int totalDelayMillis = (cycles - 1) * delay; [all...] |
H A D | FutureTaskTest.java | 422 delay(LONG_DELAY_MS); 496 delay(LONG_DELAY_MS); 639 delay(2*LONG_DELAY_MS);
|
H A D | CyclicBarrierTest.java | 322 delay(timeoutMillis());
|
H A D | ExecutorsTest.java | 286 delay(LONG_DELAY_MS);
|
H A D | ThreadPoolExecutorSubclassTest.java | 1970 delay(keepAliveTime); 1997 delay(2 * keepAliveTime);
|
H A D | ThreadPoolExecutorTest.java | 1977 delay(keepAliveTime); 2004 delay(2 * keepAliveTime);
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldAndroidDatagramTest.java | 179 long delay = System.currentTimeMillis() - start; 180 if (Math.abs(delay - timeout) > 1000) { 182 + " actual: " + delay + " miliseconds.");
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ObjectTest.java | 293 final int delay = 200; // milliseconds 300 obj1.wait(delay, 0); 302 long error = (after - before - delay); 313 if (error > (1000 + delay) || count == toLong.length) {
|
H A D | ThreadTest.java | 26 int delay; field in class:ThreadTest.SimpleThread 32 this.wait(delay); 42 delay = d; 47 volatile int delay; field in class:ThreadTest.YieldThread 58 delay = d;
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | FileIOInterruptTest.java | 481 delay(100); 485 delay(100); 520 delay(500); 569 delay(100); 573 delay(100); 621 delay(500); 708 private static void delay(int millis) { method in class:FileIOInterruptTest
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldThreadTest.java | 29 int delay; field in class:OldThreadTest.SimpleThread 35 this.wait(delay); 45 delay = d;
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Thread.java | 1294 long delay = millis - now; 1295 if (delay <= 0) { 1298 lock.wait(delay); 2178 * calculated the delay, the wall clock gets moved ahead,
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | ServerSocketTest.java | 233 int delay = (int) (finish.getTime() - start.getTime()); 234 assertTrue("timeout too soon: " + delay + " " + start.getTime() 235 + " " + finish.getTime(), delay >= 490);
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | R.java | 1514 public static final int delay = 0; field in class:R
|