Searched refs:ofNanos (Results 1 – 12 of 12) 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/ojluni/src/main/java/java/time/temporal/ |
D | ChronoUnit.java | 83 NANOS("Nanos", Duration.ofNanos(1)), 88 MICROS("Micros", Duration.ofNanos(1000)), 93 MILLIS("Millis", Duration.ofNanos(1000_000)),
|
/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 | TCKDuration.java | 198 Duration test = Duration.ofNanos(1); in factory_nanos_nanos() 205 Duration test = Duration.ofNanos(1000000002); in factory_nanos_nanosSecs() 212 Duration test = Duration.ofNanos(-2000000001); in factory_nanos_negative() 219 Duration test = Duration.ofNanos(Long.MAX_VALUE); in factory_nanos_max() 226 Duration test = Duration.ofNanos(Long.MIN_VALUE); in factory_nanos_min() 905 assertEquals(Duration.ofNanos(0).isZero(), true); in test_isZero() 907 assertEquals(Duration.ofNanos(1).isZero(), false); in test_isZero() 910 assertEquals(Duration.ofNanos(-1).isZero(), false); in test_isZero() 917 assertEquals(Duration.ofNanos(0).isNegative(), false); in test_isNegative() 919 assertEquals(Duration.ofNanos(1).isNegative(), false); in test_isNegative() [all …]
|
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/test/java/util/concurrent/tck/ |
D | TimeUnit8Test.java | 114 assertEquals(n, NANOSECONDS.convert(Duration.ofNanos(n))); in testConvertDuration_roundtripDurationOf() 145 u.convert(Duration.ofNanos(n))))); in testConvertDuration_roundtripDurationOfNanos()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 275 public static Duration ofNanos(long nanos) { in ofNanos() method in Duration 470 return ofNanos(startInclusive.until(endExclusive, NANOS)); in between()
|
D | Clock.java | 785 return "TickClock[" + baseClock + "," + Duration.ofNanos(tickNanos) + "]"; in toString()
|
/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 | 1588 long durationMillis = Duration.ofNanos(System.nanoTime() - startTime).toMillis();
|
/libcore/api/ |
D | current.txt | 11242 method public static java.time.Duration ofNanos(long);
|