/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKPeriod.java | 135 assertPeriod(Period.ofDays(0), 0, 0, 0); in factory_ofDays_int() 136 assertPeriod(Period.ofDays(1), 0, 0, 1); in factory_ofDays_int() 137 assertPeriod(Period.ofDays(234), 0, 0, 234); in factory_ofDays_int() 138 assertPeriod(Period.ofDays(-100), 0, 0, -100); in factory_ofDays_int() 139 assertPeriod(Period.ofDays(Integer.MAX_VALUE), 0, 0, Integer.MAX_VALUE); in factory_ofDays_int() 140 assertPeriod(Period.ofDays(Integer.MIN_VALUE), 0, 0, Integer.MIN_VALUE); in factory_ofDays_int() 296 {"P1W", Period.ofDays(1 * 7)}, in data_factory_parseSuccess() 297 {"P12W", Period.ofDays(12 * 7)}, in data_factory_parseSuccess() 298 {"P7654321W", Period.ofDays(7654321 * 7)}, in data_factory_parseSuccess() 299 {"P+1W", Period.ofDays(1 * 7)}, in data_factory_parseSuccess() [all …]
|
D | TCKDuration.java | 302 Duration test = Duration.ofDays(2); in factory_days() 309 Duration test = Duration.ofDays(Long.MAX_VALUE / 86400); in factory_days_max() 316 Duration test = Duration.ofDays(Long.MIN_VALUE / 86400); in factory_days_min() 323 Duration.ofDays(Long.MAX_VALUE / 86400 + 1); in factory_days_tooBig() 328 Duration.ofDays(Long.MIN_VALUE / 86400 - 1); in factory_days_tooSmall() 1171 Duration t = Duration.ofDays(days); in plusDays_long() 1178 Duration t = Duration.ofDays(1); in plusDays_long_overflowTooBig() 1184 Duration t = Duration.ofDays(-1); in plusDays_long_overflowTooSmall() 1790 Duration t = Duration.ofDays(days); in minusDays_long() 1797 Duration t = Duration.ofDays(Long.MAX_VALUE/3600/24); in minusDays_long_overflowTooBig() [all …]
|
D | TCKYearMonth.java | 817 {YearMonth.of(1, 1), Period.ofDays(365), null, DateTimeException.class}, in data_plus_TemporalAmount() 818 {YearMonth.of(1, 1), Duration.ofDays(365), null, DateTimeException.class}, in data_plus_TemporalAmount() 1032 {YearMonth.of(1, 1), Period.ofDays(365), null, DateTimeException.class}, in data_minus_TemporalAmount() 1033 {YearMonth.of(1, 1), Duration.ofDays(365), null, DateTimeException.class}, in data_minus_TemporalAmount()
|
D | TCKYear.java | 506 {Duration.ofDays(1)}, in data_plusInvalidUnit() 638 {Duration.ofDays(1)}, in data_minusInvalidUnit()
|
D | TCKZonedDateTime.java | 1626 assertEquals(base.plus(Period.ofDays(amount)), expected); 1831 assertEquals(base.minus(Period.ofDays(-amount)), expected);
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestPeriod.java | 88 assertSame(Period.ofDays(0), Period.ZERO); in factory_zeroSingleton() 97 Period test5 = Period.ofDays(5); in test_hashCode() 98 Period test6 = Period.ofDays(6); in test_hashCode()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKPeriodSerialization.java | 77 assertSerializable(Period.ofDays(1)); in test_serialization()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 568 …{ResolverStyle.LENIENT, 23, 59, 60, 123456789, LocalTime.of(0, 0, 0, 123456789), Period.ofDays(1)}, in data_resolveFourToTime() 571 {ResolverStyle.SMART, 24, 0, 0, 0, LocalTime.of(0, 0, 0, 0), Period.ofDays(1)}, in data_resolveFourToTime() 572 {ResolverStyle.LENIENT, 24, 0, 0, 0, LocalTime.of(0, 0, 0, 0), Period.ofDays(1)}, in data_resolveFourToTime() 576 {ResolverStyle.LENIENT, 24, 1, 0, 0, LocalTime.of(0, 1, 0, 0), Period.ofDays(1)}, in data_resolveFourToTime() 580 {ResolverStyle.LENIENT, 25, 0, 0, 0, LocalTime.of(1, 0, 0, 0), Period.ofDays(1)}, in data_resolveFourToTime() 584 {ResolverStyle.LENIENT, 49, 2, 3, 4, LocalTime.of(1, 2, 3, 4), Period.ofDays(2)}, in data_resolveFourToTime() 588 {ResolverStyle.LENIENT, -1, 2, 3, 4, LocalTime.of(23, 2, 3, 4), Period.ofDays(-1)}, in data_resolveFourToTime() 592 {ResolverStyle.LENIENT, -6, 2, 3, 4, LocalTime.of(18, 2, 3, 4), Period.ofDays(-1)}, in data_resolveFourToTime() 596 …esolverStyle.LENIENT, 25, 61, 61, 1_123456789, LocalTime.of(2, 2, 2, 123456789), Period.ofDays(1)}, in data_resolveFourToTime() 708 … assertEquals(accessor.query(DateTimeFormatter.parsedExcessDays()), Period.ofDays(expectedDays)); in test_resolveSecondOfDay() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 77 public static java.time.Duration ofDays(long days) { in ofDays() method in Duration
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 544 updateCheckConflict(LocalTime.ofNanoOfDay(nod), Period.ofDays(excessDays)); in resolveTime() 550 updateCheckConflict(LocalTime.MIDNIGHT, Period.ofDays(1)); in resolveTime()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Period.java | 215 public static Period ofDays(int days) { in ofDays() method in Period
|
D | Duration.java | 172 public static Duration ofDays(long days) { in ofDays() method in Duration
|