/libcore/ojluni/src/main/java/java/time/chrono/ |
D | AbstractChronology.java | 66 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 474 if (fieldValues.containsKey(ALIGNED_WEEK_OF_MONTH)) { in resolveDate() 585 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_MONTH), 1); in resolveYMAA() 590 …int aw = range(ALIGNED_WEEK_OF_MONTH).checkValidIntValue(fieldValues.remove(ALIGNED_WEEK_OF_MONTH)… in resolveYMAA() 603 long weeks = Math.subtractExact(fieldValues.remove(ALIGNED_WEEK_OF_MONTH), 1); in resolveYMAD() 608 …int aw = range(ALIGNED_WEEK_OF_MONTH).checkValidIntValue(fieldValues.remove(ALIGNED_WEEK_OF_MONTH)… in resolveYMAD()
|
D | HijrahDate.java | 61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 349 case ALIGNED_WEEK_OF_MONTH: return ValueRange.of(1, 5); // TODO in range() 370 case ALIGNED_WEEK_OF_MONTH: return ((dayOfMonth - 1) / 7) + 1; in getLong() 401 … case ALIGNED_WEEK_OF_MONTH: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_MONTH)) * 7); in with()
|
D | JapaneseDate.java | 61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 432 field == ALIGNED_WEEK_OF_MONTH || field == ALIGNED_WEEK_OF_YEAR) { in isSupported() 476 case ALIGNED_WEEK_OF_MONTH: in getLong()
|
D | MinguoDate.java | 260 case ALIGNED_WEEK_OF_MONTH: in range()
|
D | ThaiBuddhistDate.java | 260 case ALIGNED_WEEK_OF_MONTH: in range()
|
D | JapaneseChronology.java | 404 case ALIGNED_WEEK_OF_MONTH: in range()
|
D | HijrahChronology.java | 589 case ALIGNED_WEEK_OF_MONTH: in range()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 60 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 198 case ALIGNED_WEEK_OF_MONTH: return ValueRange.of(1, month == 13 ? 1 : 5); in range() 220 case ALIGNED_WEEK_OF_MONTH: return ((day - 1) / 7) + 1; in getLong() 245 … case ALIGNED_WEEK_OF_MONTH: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_MONTH)) * 7); in with()
|
D | CopticChronology.java | 234 case ALIGNED_WEEK_OF_MONTH: return ValueRange.of(1, 1, 5); in range()
|
D | TCKIsoChronology.java | 629 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_lenient() 641 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_smart() 662 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_strict()
|
D | TCKThaiBuddhistChronology.java | 880 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_lenient() 892 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_smart() 913 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_strict()
|
D | TCKMinguoChronology.java | 904 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_lenient() 916 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_smart() 937 fieldValues.put(ChronoField.ALIGNED_WEEK_OF_MONTH, (long) w); in test_resolve_ymaa_strict()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 64 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 177 {ALIGNED_WEEK_OF_MONTH, 4, ALIGNED_WEEK_OF_MONTH, 4}, in data_normalized()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoFieldSerialization.java | 61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 114 {ALIGNED_WEEK_OF_MONTH}, in data_fieldBased()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ThaiBuddhistChronologyTest.java | 99 assertEquals(LocalDate.from(date).range(ChronoField.ALIGNED_WEEK_OF_MONTH), in test_ThaiBuddhistDate_range() 100 date.range(ChronoField.ALIGNED_WEEK_OF_MONTH)); in test_ThaiBuddhistDate_range()
|
D | MinguoChronologyTest.java | 97 assertEquals(LocalDate.from(date).range(ChronoField.ALIGNED_WEEK_OF_MONTH), in test_MinguoDate_range() 98 date.range(ChronoField.ALIGNED_WEEK_OF_MONTH)); in test_MinguoDate_range()
|
D | JapaneseChronologyTest.java | 87 assertEquals(false, date.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH)); in test_JapaneseDate_isSupported_TemporalField()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 67 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 575 …case ALIGNED_WEEK_OF_MONTH: return ValueRange.of(1, getMonth() == Month.FEBRUARY && isLeapYear() =… in range() 666 case ALIGNED_WEEK_OF_MONTH: return ((day - 1) / 7) + 1; in get0() 1025 … case ALIGNED_WEEK_OF_MONTH: return plusWeeks(newValue - getLong(ALIGNED_WEEK_OF_MONTH)); in with()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 61 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 163 {ALIGNED_WEEK_OF_MONTH, true, false}, in data_fieldBased()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | YearMonthTest.java | 97 ChronoField.ALIGNED_WEEK_OF_MONTH, in test_with_TemporalField_long_invalidField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 67 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 171 {YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5}, in data_resolveTwoNoChange() 180 {MONTH_OF_YEAR, 5, ALIGNED_WEEK_OF_MONTH, 5}, in data_resolveTwoNoChange() 210 {YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5, DAY_OF_MONTH, 5}, in data_resolveThreeNoChange() 521 …{YEAR, 2012, MONTH_OF_YEAR, 2, ALIGNED_WEEK_OF_MONTH, 1, ALIGNED_DAY_OF_WEEK_IN_MONTH, 1, LocalDat… in data_resolveFourToDate() 522 …{YEAR, 2012, MONTH_OF_YEAR, 2, ALIGNED_WEEK_OF_MONTH, 1, DAY_OF_WEEK, 3, LocalDate.of(2012, 2, 1)}, in data_resolveFourToDate()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 438 ALIGNED_WEEK_OF_MONTH("AlignedWeekOfMonth", WEEKS, MONTHS, ValueRange.of(1, 4, 5)), enumConstant
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDayOfWeek.java | 189 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH), false); in test_isSupported_TemporalField()
|
D | TCKMonth.java | 181 assertEquals(Month.AUGUST.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH), false); in test_isSupported_TemporalField()
|
D | TCKOffsetDateTime.java | 65 import static java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH; 201 ALIGNED_WEEK_OF_MONTH, in validFields() 560 …sertEquals(TEST_2008_6_30_11_30_59_000000500.isSupported(ChronoField.ALIGNED_WEEK_OF_MONTH), true);
|