Searched refs:ofNanos (Results 1 – 8 of 8) sorted by relevance
/libcore/luni/src/test/java/libcore/java/time/ |
D | DurationTest.java | 81 { Instant.MAX, Duration.ofNanos(1) }, in test_addTo_exceeds() 82 { LocalDateTime.MAX, Duration.ofNanos(1) }, in test_addTo_exceeds() 84 { ZonedDateTime.of(LocalDateTime.MAX, ZoneOffset.UTC ), Duration.ofNanos(1) }, in test_addTo_exceeds() 108 { Instant.MIN, Duration.ofNanos(1) }, in test_subtractFrom_exceeds() 109 { LocalDateTime.MIN, Duration.ofNanos(1) }, in test_subtractFrom_exceeds() 112 { ZonedDateTime.of(LocalDateTime.MIN, ZoneOffset.UTC ), Duration.ofNanos(1) }, in test_subtractFrom_exceeds()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | TestUtils.java | 42 Duration startTime = Duration.ofNanos(System.nanoTime()); in waitWhileTrueOrTimeout() 44 Duration now = Duration.ofNanos(System.nanoTime()); in waitWhileTrueOrTimeout()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_Tick.java | 96 …st = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000).toInstant(), PARIS), Duration.ofNanos(250_000)); in test_tick_ClockDuration_250micros() 104 … Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i).toInstant(), PARIS), Duration.ofNanos(20)); in test_tick_ClockDuration_20nanos() 118 Clock test = Clock.tick(underlying, Duration.ofNanos(1)); in test_tick_ClockDuration_1nsDuration()
|
D | TCKYearMonth.java | 822 … {YearMonth.of(1, 1), Duration.ofNanos(365*24*3600*1000000000), null, DateTimeException.class}, in data_plus_TemporalAmount() 1037 … {YearMonth.of(1, 1), Duration.ofNanos(365*24*3600*1000000000), null, DateTimeException.class}, in data_minus_TemporalAmount()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 645 return "TickClock[" + baseClock + "," + Duration.ofNanos(tickNanos) + "]"; in toString()
|
D | Duration.java | 274 public static Duration ofNanos(long nanos) { in ofNanos() method in Duration 469 return ofNanos(startInclusive.until(endExclusive, NANOS)); in between()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 101 public static java.time.Duration ofNanos(long nanos) { in ofNanos() method in Duration
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 1549 long durationMillis = Duration.ofNanos(System.nanoTime() - startTime).toMillis();
|