Home
last modified time | relevance | path

Searched refs:ofNanos (Results 1 – 9 of 9) 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/ojluni/src/main/java/java/time/temporal/
DChronoUnit.java83 NANOS("Nanos", Duration.ofNanos(1)),
88 MICROS("Micros", Duration.ofNanos(1000)),
93 MILLIS("Millis", Duration.ofNanos(1000_000)),
/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()
DTCKDuration.java196 Duration test = Duration.ofNanos(1); in factory_nanos_nanos()
203 Duration test = Duration.ofNanos(1000000002); in factory_nanos_nanosSecs()
210 Duration test = Duration.ofNanos(-2000000001); in factory_nanos_negative()
217 Duration test = Duration.ofNanos(Long.MAX_VALUE); in factory_nanos_max()
224 Duration test = Duration.ofNanos(Long.MIN_VALUE); in factory_nanos_min()
878 assertEquals(Duration.ofNanos(0).isZero(), true); in test_isZero()
880 assertEquals(Duration.ofNanos(1).isZero(), false); in test_isZero()
883 assertEquals(Duration.ofNanos(-1).isZero(), false); in test_isZero()
890 assertEquals(Duration.ofNanos(0).isNegative(), false); in test_isNegative()
892 assertEquals(Duration.ofNanos(1).isNegative(), false); in test_isNegative()
[all …]
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/
DDuration.java272 public static Duration ofNanos(long nanos) { in ofNanos() method in Duration
467 return ofNanos(startInclusive.until(endExclusive, NANOS)); in between()
DClock.java645 return "TickClock[" + baseClock + "," + Duration.ofNanos(tickNanos) + "]"; in toString()
/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.java1120 assertTrue(Duration.ofNanos(endTime - startTime).toMillis() < allowedTimeoutMillis); in test_socket_setSockoptTimeval_effective()