/libcore/ojluni/src/main/java/java/util/ |
H A D | TimerTask.java | 81 long period = 0; field in class:TimerTask 154 return (period < 0 ? nextExecutionTime + period 155 : nextExecutionTime - period);
|
H A D | Timer.java | 214 * at approximately regular intervals separated by the specified period. 221 * lower than the reciprocal of the specified period (assuming the system 235 * @param period time in milliseconds between successive task executions. 238 * {@code period <= 0} 243 public void schedule(TimerTask task, long delay, long period) { argument 246 if (period <= 0) 247 throw new IllegalArgumentException("Non-positive period."); 248 sched(task, System.currentTimeMillis()+delay, -period); 254 * approximately regular intervals, separated by the specified period. 261 * lower than the reciprocal of the specified period (assumin 284 schedule(TimerTask task, Date firstTime, long period) argument 323 scheduleAtFixedRate(TimerTask task, long delay, long period) argument 366 scheduleAtFixedRate(TimerTask task, Date firstTime, long period) argument 386 sched(TimerTask task, long time, long period) argument [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | ScheduledExecutorService.java | 132 * period; that is, executions will commence after 133 * {@code initialDelay}, then {@code initialDelay + period}, then 134 * {@code initialDelay + 2 * period}, and so on. 150 * <p>If any execution of this task takes longer than its period, then 156 * @param period the period between successive executions 157 * @param unit the time unit of the initialDelay and period parameters 166 * @throws IllegalArgumentException if period less than or equal to zero 170 long period, 168 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
|
H A D | Executors.java | 686 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) { argument 687 return e.scheduleAtFixedRate(command, initialDelay, period, unit);
|
H A D | ScheduledThreadPoolExecutor.java | 196 private final long period; field in class:ScheduledThreadPoolExecutor.ScheduledFutureTask 213 this.period = 0; 219 * trigger time and period. 222 long period, long sequenceNumber) { 225 this.period = period; 236 this.period = 0; 269 return period != 0; 276 long p = period; 590 long period, 221 ScheduledFutureTask(Runnable r, V result, long triggerTime, long period, long sequenceNumber) argument 588 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | PollingWatchService.java | 282 void enable(Set<? extends WatchEvent.Kind<?>> events, long period) { argument 290 .scheduleAtFixedRate(thunk, period, period, TimeUnit.SECONDS);
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | Chronology.java | 678 * Obtains a period for this chronology based on years, months and days. 680 * This returns a period tied to this chronology using the specified 683 * allows the period to be represented using other units. 697 * The returned period is immutable and thread-safe. 702 * @return the period in terms of this chronology, not null 704 default ChronoPeriod period(int years, int months, int days) { method in interface:Chronology
|
H A D | IsoChronology.java | 571 * Obtains a period for this chronology based on years, months and days. 573 * This returns a period tied to the ISO chronology using the specified 579 * @return the period in terms of this chronology, not null 580 * @return the ISO period, not null 583 public Period period(int years, int months, int days) { method in class:IsoChronology
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKPeriod.java | 249 Period.from(ThaiBuddhistChronology.INSTANCE.period(1, 1, 1)); 640 pymd(4, 5, 6).plus(ThaiBuddhistChronology.INSTANCE.period(1, 0, 0)); 785 pymd(4, 5, 6).minus(ThaiBuddhistChronology.INSTANCE.period(1, 0, 0)); 1060 public void test_addTo(Period period, LocalDate baseDate, LocalDate expected) { argument 1061 assertEquals(period.addTo(baseDate), expected); 1065 public void test_addTo_usingLocalDatePlus(Period period, LocalDate baseDate, LocalDate expected) { argument 1066 assertEquals(baseDate.plus(period), expected); 1113 public void test_subtractFrom(Period period, LocalDate baseDate, LocalDate expected) { argument 1114 assertEquals(period.subtractFrom(baseDate), expected); 1118 public void test_subtractFrom_usingLocalDateMinus(Period period, LocalDat argument [all...] |