/libcore/luni/src/test/java/libcore/java/time/ |
D | DurationTest.java | 53 assertEquals(Instant.MAX, in test_addTo() 54 Duration.between(Instant.EPOCH, Instant.MAX).addTo(Instant.EPOCH)); in test_addTo() 55 assertEquals(Instant.MAX, in test_addTo() 56 Duration.between(Instant.MIN, Instant.MAX).addTo(Instant.MIN)); in test_addTo() 67 Duration.between(Instant.MIN, Instant.MAX).subtractFrom(Instant.MAX)); in test_subtractFrom() 69 Duration.between(Instant.EPOCH, Instant.MAX).subtractFrom(Instant.MAX)); in test_subtractFrom() 75 { Instant.EPOCH, Duration.between(Instant.EPOCH, Instant.MAX).plusNanos(1) }, in test_addTo_exceeds() 78 { Instant.EPOCH, Duration.between(Instant.MIN, Instant.MAX) }, in test_addTo_exceeds() 81 { Instant.MAX, Duration.ofNanos(1) }, in test_addTo_exceeds() 82 { LocalDateTime.MAX, Duration.ofNanos(1) }, in test_addTo_exceeds() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | TimeUnit.java | 97 public long toNanos(long d) { return x(d, C1/C0, MAX/(C1/C0)); } in toNanos() 112 public long toNanos(long d) { return x(d, C2/C0, MAX/(C2/C0)); } in toNanos() 113 public long toMicros(long d) { return x(d, C2/C1, MAX/(C2/C1)); } in toMicros() 127 public long toNanos(long d) { return x(d, C3/C0, MAX/(C3/C0)); } in toNanos() 128 public long toMicros(long d) { return x(d, C3/C1, MAX/(C3/C1)); } in toMicros() 129 public long toMillis(long d) { return x(d, C3/C2, MAX/(C3/C2)); } in toMillis() 143 public long toNanos(long d) { return x(d, C4/C0, MAX/(C4/C0)); } in toNanos() 144 public long toMicros(long d) { return x(d, C4/C1, MAX/(C4/C1)); } in toMicros() 145 public long toMillis(long d) { return x(d, C4/C2, MAX/(C4/C2)); } in toMillis() 146 public long toSeconds(long d) { return x(d, C4/C3, MAX/(C4/C3)); } in toSeconds() [all …]
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 91 cmp(Instant.MAX, Long.MAX_VALUE, DAYS, -1); in main() 92 cmp(Instant.MAX, Long.MAX_VALUE, HOURS, -1); in main() 93 cmp(Instant.MAX, Long.MAX_VALUE, MINUTES, -1); in main() 94 cmp(Instant.MAX, Long.MAX_VALUE, SECONDS, -1); in main() 95 cmp(Instant.MAX, Instant.MAX.getEpochSecond() + 1, SECONDS, -1); in main() 96 cmp(Instant.MAX, Instant.MAX.getEpochSecond() + 100, SECONDS, -1); in main() 97 cmp(Instant.MAX, Instant.MAX.getEpochSecond(), SECONDS, 0); in main() 129 if (instant != Instant.MIN && instant != Instant.MAX) { in main() 148 } else if (!instant.equals(Instant.MAX)) { in main() 212 ts(Instant.MAX, "1000000000-12-31T23:59:59.999999999Z"); in main() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKInstantPrinterParser.java | 105 {Instant.MAX.getEpochSecond(), 999999999, "+1000000000-12-31T23:59:59.999999999Z"}, in data_printGrouped() 183 … {9, Instant.MAX.getEpochSecond(), 999999999, "+1000000000-12-31T23:59:59.999999999Z"}, in data_printDigits() 219 {Instant.MAX.getEpochSecond(), 999999999, "+1000000000-12-31T23:59:59.999999999Z"}, in data_parse_digits()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKLocalDateSerialization.java | 89 assertSerializable(LocalDate.MAX); in test_serialization()
|
D | TCKLocalDateTimeSerialization.java | 82 assertSerializable(LocalDateTime.MAX); in test_serialization()
|
D | TCKOffsetTimeSerialization.java | 92 assertSerializable(OffsetTime.MAX); in test_serialization()
|
D | TCKOffsetDateTimeSerialization.java | 92 assertSerializable(OffsetDateTime.MAX); in test_serialization()
|
D | TCKLocalTimeSerialization.java | 91 assertSerializable(LocalTime.MAX); in test_serialization()
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | ZoneRulesTest.java | 52 LocalDateTime.MAX.toInstant(offset), in test_of_ZoneOffset()
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetTime.java | 122 public static final OffsetTime MIN = LocalTime.MIN.atOffset(ZoneOffset.MAX); 130 public static final OffsetTime MAX = LocalTime.MAX.atOffset(ZoneOffset.MIN); field in OffsetTime
|
D | OffsetDateTime.java | 132 public static final OffsetDateTime MIN = LocalDateTime.MIN.atOffset(ZoneOffset.MAX); 140 public static final OffsetDateTime MAX = LocalDateTime.MAX.atOffset(ZoneOffset.MIN); field in OffsetDateTime
|
D | LocalDateTime.java | 145 public static final LocalDateTime MAX = LocalDateTime.of(LocalDate.MAX, LocalTime.MAX); field in LocalDateTime
|
D | LocalTime.java | 131 public static final LocalTime MAX; field in LocalTime 151 MAX = new LocalTime(23, 59, 59, 999_999_999);
|
D | ZoneOffset.java | 153 public static final ZoneOffset MAX = ZoneOffset.ofTotalSeconds(MAX_SECONDS); field in ZoneOffset
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestIsoWeekFields.java | 75 assertEquals(weekField.isSupportedBy(OffsetDateTime.MAX), true); in test_WOWBY_isSupportedBy() 116 assertEquals(yearField.isSupportedBy(OffsetDateTime.MAX), true); in test_WBY_isSupportedBy()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalTime.java | 130 check(LocalTime.MAX, 23, 59, 59, 999999999); in constant_MAX_TIME()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKJulianFields.java | 134 assertEquals(field.adjustInto(LocalDate.MAX, value), date); in test_samples_set()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 306 ZonedDateTime.of(LocalDateTime.MAX, gmt), in test_fromZonedDateTime_invalidValues() 309 ZonedDateTime.of(LocalDateTime.MAX, gmt) }; in test_fromZonedDateTime_invalidValues()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKOffsetTime.java | 154 TemporalAccessor[] array = {TEST_11_30_59_500_PONE, OffsetTime.MIN, OffsetTime.MAX}; in samples() 196 check(OffsetTime.MIN, 0, 0, 0, 0, ZoneOffset.MAX); in constant_MIN() 201 check(OffsetTime.MAX, 23, 59, 59, 999999999, ZoneOffset.MIN); in constant_MAX() 358 OffsetTime test = OffsetTime.ofInstant(Instant.MAX, ZoneOffset.UTC); 693 …{OffsetTime.of(LocalTime.of(23, 5), OFFSET_PONE), OffsetTime.MAX, OffsetTime.of(LocalTime.of(23, 5… 695 …{OffsetTime.MAX, OffsetTime.of(LocalTime.of(23, 5), OFFSET_PONE), OffsetTime.of(OffsetTime.MAX.toL…
|
D | TCKInstant.java | 120 private static final long MAX_SECOND = Instant.MAX.getEpochSecond(); 137 TemporalAccessor[] array = {TEST_12345_123456789, Instant.MIN, Instant.MAX, Instant.EPOCH}; in samples() 183 check(Instant.MAX, 31556889864403199L, 999_999_999); in constant_MAX() 443 {Instant.ofEpochSecond(10), Instant.MAX, Instant.ofEpochSecond(10), null}, 481 {Instant.ofEpochSecond(10), Instant.MAX, Instant.MAX, null}, 2142 {Instant.MAX, "+1000000000-12-31T23:59:59.999999999Z"},
|
D | TCKOffsetDateTime.java | 173 …oralAccessor[] array = {TEST_2008_6_30_11_30_59_000000500, OffsetDateTime.MIN, OffsetDateTime.MAX}; in samples() 229 check(OffsetDateTime.MIN, Year.MIN_VALUE, 1, 1, 0, 0, 0, 0, ZoneOffset.MAX); in constant_MIN() 234 check(OffsetDateTime.MAX, Year.MAX_VALUE, 12, 31, 23, 59, 59, 999999999, ZoneOffset.MIN); in constant_MAX() 675 …{OffsetDateTime.of(2012, 3, 4, 23, 5, 0, 0, OFFSET_PONE), OffsetDateTime.MAX, OffsetDateTime.of(20… 677 …{OffsetDateTime.MAX, OffsetDateTime.of(2012, 3, 4, 23, 5, 0, 0, OFFSET_PONE), OffsetDateTime.of(Of…
|
D | TCKLocalDateTime.java | 169 MAX_DATE_TIME = LocalDateTime.MAX; in setUp() 178 …TemporalAccessor[] array = {TEST_2007_07_15_12_30_40_987654321, LocalDateTime.MAX, LocalDateTime.M… in samples() 255 check(LocalDateTime.MAX, Year.MAX_VALUE, 12, 31, 23, 59, 59, 999999999); in constant_MAX() 769 ZoneOffset.UTC, LocalDateTime.MAX}, 781 LocalDateTime.ofInstant(Instant.MAX, OFFSET_PONE) ; 1137 …{LocalDateTime.of(2012, 3, 4, 23, 5), LocalDateTime.MAX, LocalDateTime.of(2012, 3, 4, 23, 5), null… 1139 {LocalDateTime.MAX, LocalDateTime.of(2012, 3, 4, 23, 5), LocalDateTime.MAX, null},
|
D | TCKLocalTime.java | 161 …TemporalAccessor[] array = {TEST_12_30_40_987654321, LocalTime.MIN, LocalTime.MAX, LocalTime.MIDNI… in samples() 229 check(LocalTime.MAX, 23, 59, 59, 999999999); in constant_MAX() 292 Clock clock = Clock.fixed(Instant.MAX, ZoneOffset.UTC); in now_Clock_max() 730 {LocalTime.of(23, 5, 20, 1000), LocalTime.MAX, LocalTime.of(23, 5, 20, 1000), null}, in data_adjustInto() 734 … {LocalTime.MAX, LocalTime.of(23, 5, 20, 1000), LocalTime.of(23, 59, 59, 999999999), null}, in data_adjustInto()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 269 instant = Instant.MAX; in toInstant()
|