Searched refs:period (Results 1 - 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/util/
H A DTimer.java31 * <p>Recurring tasks are scheduled with either a fixed period or a fixed rate:
33 * <li>With the default <strong>fixed-period execution</strong>, each
36 * than the specified {@code period}.
263 if (task.period >= 0) {
267 task.when = task.when + task.period;
271 + task.period;
469 * @param period
472 * if {@code delay < 0} or {@code period <= 0}.
477 public void schedule(TimerTask task, long delay, long period) { argument
478 if (delay < 0 || period <
500 schedule(TimerTask task, Date when, long period) argument
524 scheduleAtFixedRate(TimerTask task, long delay, long period) argument
547 scheduleAtFixedRate(TimerTask task, Date when, long period) argument
558 scheduleImpl(TimerTask task, long delay, long period, boolean fixed) argument
[all...]
H A DTimerTask.java37 long period; field in class:TimerTask
/libcore/luni/src/main/java/java/util/concurrent/
H A DScheduledExecutorService.java102 * period; that is executions will commence after
103 * <tt>initialDelay</tt> then <tt>initialDelay+period</tt>, then
104 * <tt>initialDelay + 2 * period</tt>, and so on.
109 * takes longer than its period, then subsequent executions
114 * @param period the period between successive executions
115 * @param unit the time unit of the initialDelay and period parameters
122 * @throws IllegalArgumentException if period less than or equal to zero
126 long period,
124 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
H A DScheduledThreadPoolExecutor.java168 private final long period; field in class:ScheduledThreadPoolExecutor.ScheduledFutureTask
184 this.period = 0;
189 * Creates a periodic action with given nano time and period.
191 ScheduledFutureTask(Runnable r, V result, long ns, long period) { argument
194 this.period = period;
204 this.period = 0;
238 return period != 0;
245 long p = period;
532 long period,
530 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
[all...]
H A DExecutors.java618 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) { argument
619 return e.scheduleAtFixedRate(command, initialDelay, period, unit);
/libcore/luni/src/test/java/tests/api/java/util/
H A DArraysTest.java1960 int period = m;
1964 for (int k = 1; k <= period; k++) {
1970 period += m;
1972 for (int k = 1; k <= period; k++) {
1978 period += m;

Completed in 357 milliseconds