/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 675 static ComputedDayOfField ofDayOfWeekField(WeekFields weekDef) { in ofDayOfWeekField() argument 676 return new ComputedDayOfField("DayOfWeek", weekDef, DAYS, WEEKS, DAY_OF_WEEK_RANGE); in ofDayOfWeekField() 684 static ComputedDayOfField ofWeekOfMonthField(WeekFields weekDef) { in ofWeekOfMonthField() argument 685 … return new ComputedDayOfField("WeekOfMonth", weekDef, WEEKS, MONTHS, WEEK_OF_MONTH_RANGE); in ofWeekOfMonthField() 693 static ComputedDayOfField ofWeekOfYearField(WeekFields weekDef) { in ofWeekOfYearField() argument 694 return new ComputedDayOfField("WeekOfYear", weekDef, WEEKS, YEARS, WEEK_OF_YEAR_RANGE); in ofWeekOfYearField() 702 static ComputedDayOfField ofWeekOfWeekBasedYearField(WeekFields weekDef) { in ofWeekOfWeekBasedYearField() argument 703 …return new ComputedDayOfField("WeekOfWeekBasedYear", weekDef, WEEKS, IsoFields.WEEK_BASED_YEARS, W… in ofWeekOfWeekBasedYearField() 711 static ComputedDayOfField ofWeekBasedYearField(WeekFields weekDef) { in ofWeekBasedYearField() argument 712 …return new ComputedDayOfField("WeekBasedYear", weekDef, IsoFields.WEEK_BASED_YEARS, FOREVER, Chron… in ofWeekBasedYearField() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedFieldParser.java | 99 WeekFields weekDef = WeekFields.of(locale); in test_parse_textField() local 103 field = weekDef.dayOfWeek(); in test_parse_textField() 106 field = weekDef.weekOfWeekBasedYear(); in test_parse_textField() 109 field = weekDef.weekOfMonth(); in test_parse_textField() 112 field = weekDef.weekBasedYear(); in test_parse_textField() 194 WeekFields weekDef = WeekFields.of(locale); in test_parse_WeekBasedYear() local 196 assertEquals(parsed.isSupported(weekDef.dayOfWeek()), pattern.indexOf('e') >= 0); in test_parse_WeekBasedYear() 197 … assertEquals(parsed.isSupported(weekDef.weekOfWeekBasedYear()), pattern.indexOf('w') >= 0); in test_parse_WeekBasedYear() 198 assertEquals(parsed.isSupported(weekDef.weekBasedYear()), pattern.indexOf('Y') >= 0); in test_parse_WeekBasedYear() 201 …ssertEquals(result, expectedValue, "LocalDate incorrect for " + pattern + ", weekDef: " + weekDef); in test_parse_WeekBasedYear()
|
D | TCKLocalizedFieldPrinter.java | 126 WeekFields weekDef = WeekFields.of(locale); in test_print_WeekBasedYear() local 127 …ssertEquals(result, expectedText, "Incorrect formatting for " + pattern + ", weekDef: " + weekDef); in test_print_WeekBasedYear()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestIsoChronoImpl.java | 126 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_DayOfWeek_IsoChronology_vsCalendar() local 142 int dow = isoDate.get(weekDef.dayOfWeek()); in test_DayOfWeek_IsoChronology_vsCalendar() 146 int isoWeekOfMonth = isoDate.get(weekDef.weekOfMonth()); in test_DayOfWeek_IsoChronology_vsCalendar() 150 int weekOfYear = isoDate.get(weekDef.weekOfWeekBasedYear()); in test_DayOfWeek_IsoChronology_vsCalendar() 154 int weekBasedYear = isoDate.get(weekDef.weekBasedYear()); in test_DayOfWeek_IsoChronology_vsCalendar() 158 … int weeksInWeekBasedYear = (int)isoDate.range(weekDef.weekOfWeekBasedYear()).getMaximum(); in test_DayOfWeek_IsoChronology_vsCalendar()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 236 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_weekOfWeekBasedYearField() local 237 TemporalField dowField = weekDef.dayOfWeek(); in test_weekOfWeekBasedYearField() 238 TemporalField wowbyField = weekDef.weekOfWeekBasedYear(); in test_weekOfWeekBasedYearField() 239 TemporalField yowbyField = weekDef.weekBasedYear(); in test_weekOfWeekBasedYearField() 253 if (weekStart + 1 > weekDef.getMinimalDaysInFirstWeek()) { in test_weekOfWeekBasedYearField() 263 … weekDef, day.getDayOfWeek(), weekStart, actualDOW, actualWOWBY, actualYOWBY, day, result)); in test_weekOfWeekBasedYearField() 270 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_fieldRanges() local 271 TemporalField womField = weekDef.weekOfMonth(); in test_fieldRanges() 272 TemporalField woyField = weekDef.weekOfYear(); in test_fieldRanges() 284 + first + ", " + weekDef); in test_fieldRanges() local [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKWeekFieldsSerialization.java | 84 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_serializable_singleton() local 85 assertSerializableSame(weekDef); // spec state singleton in test_serializable_singleton()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 4536 WeekFields weekDef = WeekFields.of(locale); in printerParser() local 4540 field = weekDef.weekBasedYear(); in printerParser() 4549 field = weekDef.dayOfWeek(); in printerParser() 4552 field = weekDef.weekOfWeekBasedYear(); in printerParser() 4555 field = weekDef.weekOfMonth(); in printerParser()
|