/libcore/ojluni/src/main/java/java/text/ |
D | CalendarBuilder.java | 127 int weekOfYear = isSet(WEEK_OF_YEAR) ? field[MAX_FIELD + WEEK_OF_YEAR] : 1; in establish() local 133 weekOfYear += dayOfWeek / 7; in establish() 138 weekOfYear--; in establish() 143 cal.setWeekDate(field[MAX_FIELD + WEEK_YEAR], weekOfYear, dayOfWeek); in establish()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoField.java | 138 TemporalField weekOfYearField = WeekFields.SUNDAY_START.weekOfYear(); in test_WeekFields_week_based_year() 146 TemporalField weekOfYearField = WeekFields.SUNDAY_START.weekOfYear(); in test_nullWeekFields_week_based_year()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 1455 int weekOfYear = internalGet(WEEK_OF_YEAR); in roll() local 1456 if (weekOfYear > 1 && weekOfYear < 52) { in roll() 1457 set(WEEK_OF_YEAR, weekOfYear); // update stamp[WEEK_OF_YEAR] in roll() 2095 int weekOfYear = internalGet(WEEK_OF_YEAR); in getWeekYear() local 2097 if (weekOfYear >= 52) { in getWeekYear() 2101 if (weekOfYear == 1) { in getWeekYear() 2207 public void setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate() argument 2227 days += 7 * (weekOfYear - 1); in setWeekDate() 2236 || gc.internalGet(WEEK_OF_YEAR) != weekOfYear in setWeekDate() 2248 internalSet(WEEK_OF_YEAR, weekOfYear); in setWeekDate() [all …]
|
D | Calendar.java | 1286 public Builder setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate() argument 1289 internalSet(WEEK_OF_YEAR, weekOfYear); in setWeekDate() 1535 int weekOfYear = isSet(WEEK_OF_YEAR) ? fields[NFIELDS + WEEK_OF_YEAR] : 1; in build() local 1538 cal.setWeekDate(fields[NFIELDS + WEEK_YEAR], weekOfYear, dayOfWeek); in build() 3071 public void setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate() argument 3485 int weekOfYear = cal.get(WEEK_OF_YEAR); in invalidateWeekFields() local 3486 if (fields[WEEK_OF_YEAR] != weekOfYear) { in invalidateWeekFields() 3487 fields[WEEK_OF_YEAR] = weekOfYear; in invalidateWeekFields()
|
D | JapaneseImperialCalendar.java | 918 int weekOfYear = internalGet(WEEK_OF_YEAR); in roll() local 919 if (weekOfYear > 1 && weekOfYear < 52) { in roll() 1719 int weekOfYear = getWeekNumber(fixedDateJan1, fixedDate); in computeFields() local 1723 if (weekOfYear == 0) { in computeFields() 1768 weekOfYear = getWeekNumber(prevJan1, fixedDec31); in computeFields() 1772 if (weekOfYear >= 52) { in computeFields() 1782 weekOfYear = 1; in computeFields() 1805 weekOfYear = 1; in computeFields() 1809 internalSet(WEEK_OF_YEAR, weekOfYear); in computeFields()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 112 assertEquals(week.weekOfYear().isDateBased(), true); in test_basics() 113 assertEquals(week.weekOfYear().isTimeBased(), false); in test_basics() 200 TemporalField woyField = week.weekOfYear(); in test_weekOfYearField() 272 TemporalField woyField = weekDef.weekOfYear(); in test_fieldRanges() 314 TemporalField woyField = week.weekOfYear(); in test_withDayOfWeek() 497 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoy() 517 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoy_lenient() 539 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoy_strict() 561 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoyDow() 583 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoyDow_lenient()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestIsoChronoImpl.java | 150 int weekOfYear = isoDate.get(weekDef.weekOfWeekBasedYear()); in test_DayOfWeek_IsoChronology_vsCalendar() local 151 …assertEquals(jweekOfYear, weekOfYear, "GregorianCalendar WeekOfYear does not match WeekOfWeekBase… in test_DayOfWeek_IsoChronology_vsCalendar()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Calendar.annotated.java | 140 public void setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { throw new RuntimeException("… in setWeekDate() argument 291 @libcore.util.NonNull public java.util.Calendar.Builder setWeekDate(int weekYear, int weekOfYear, i… in setWeekDate() argument
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 326 public void setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate() argument 647 public java.util.Calendar.Builder setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate() argument
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 258 private final transient TemporalField weekOfYear = ComputedDayOfField.ofWeekOfYearField(this); field in WeekFields 519 public TemporalField weekOfYear() { in weekOfYear() method in WeekFields 520 return weekOfYear; in weekOfYear()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedFieldParser.java | 161 parsed.isSupported(WeekFields.of(locale).weekOfYear()), true); in test_parse_textLocalDate()
|