Home
last modified time | relevance | path

Searched refs:ofNanos (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/
DDurationTest.java81 { 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/
DTestUtils.java42 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/
DTCKClock_Tick.java96 …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()
DTCKYearMonth.java822 … {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/
DClock.java645 return "TickClock[" + baseClock + "," + Duration.ofNanos(tickNanos) + "]"; in toString()
DDuration.java274 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/
DDuration.java101 public static java.time.Duration ofNanos(long nanos) { in ofNanos() method in Duration
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java1549 long durationMillis = Duration.ofNanos(System.nanoTime() - startTime).toMillis();