Home
last modified time | relevance | path

Searched refs:weekOfYear (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/java/text/
DCalendarBuilder.java128 int weekOfYear = isSet(WEEK_OF_YEAR) ? field[MAX_FIELD + WEEK_OF_YEAR] : 1; in establish() local
134 weekOfYear += dayOfWeek / 7; in establish()
139 weekOfYear--; in establish()
144 cal.setWeekDate(field[MAX_FIELD + WEEK_YEAR], weekOfYear, dayOfWeek); in establish()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java1452 int weekOfYear = internalGet(WEEK_OF_YEAR); in roll() local
1453 if (weekOfYear > 1 && weekOfYear < 52) { in roll()
1454 set(WEEK_OF_YEAR, weekOfYear); // update stamp[WEEK_OF_YEAR] in roll()
2056 int weekOfYear = internalGet(WEEK_OF_YEAR); in getWeekYear() local
2058 if (weekOfYear >= 52) { in getWeekYear()
2062 if (weekOfYear == 1) { in getWeekYear()
2168 public void setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate() argument
2188 days += 7 * (weekOfYear - 1); in setWeekDate()
2197 || gc.internalGet(WEEK_OF_YEAR) != weekOfYear in setWeekDate()
2209 internalSet(WEEK_OF_YEAR, weekOfYear); in setWeekDate()
[all …]
DJapaneseImperialCalendar.java922 int weekOfYear = internalGet(WEEK_OF_YEAR); in roll() local
923 if (weekOfYear > 1 && weekOfYear < 52) { in roll()
1394 int weekOfYear = jc.get(WEEK_OF_YEAR);
1395 if (weekOfYear == 1 && max > 7) {
1397 weekOfYear = jc.get(WEEK_OF_YEAR);
1399 yield weekOfYear;
1684 int weekOfYear = getWeekNumber(fixedDateJan1, fixedDate);
1688 if (weekOfYear == 0) {
1733 weekOfYear = getWeekNumber(prevJan1, fixedDec31);
1737 if (weekOfYear >= 52) {
[all …]
DCalendar.java1294 public Builder setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate() argument
1297 internalSet(WEEK_OF_YEAR, weekOfYear); in setWeekDate()
1546 int weekOfYear = isSet(WEEK_OF_YEAR) ? fields[NFIELDS + WEEK_OF_YEAR] : 1; in build() local
1549 cal.setWeekDate(fields[NFIELDS + WEEK_YEAR], weekOfYear, dayOfWeek); in build()
3149 public void setWeekDate(int weekYear, int weekOfYear, int dayOfWeek) { in setWeekDate() argument
3564 int weekOfYear = cal.get(WEEK_OF_YEAR); in invalidateWeekFields() local
3565 if (fields[WEEK_OF_YEAR] != weekOfYear) { in invalidateWeekFields()
3566 fields[WEEK_OF_YEAR] = weekOfYear; in invalidateWeekFields()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoField.java137 TemporalField weekOfYearField = WeekFields.SUNDAY_START.weekOfYear(); in test_WeekFields_week_based_year()
144 TemporalField weekOfYearField = WeekFields.SUNDAY_START.weekOfYear(); in test_nullWeekFields_week_based_year()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java114 assertEquals(week.weekOfYear().isDateBased(), true); in test_basics()
115 assertEquals(week.weekOfYear().isTimeBased(), false); in test_basics()
202 TemporalField woyField = week.weekOfYear(); in test_weekOfYearField()
274 TemporalField woyField = weekDef.weekOfYear(); in test_fieldRanges()
316 TemporalField woyField = week.weekOfYear(); in test_withDayOfWeek()
499 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoy()
519 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoy_lenient()
541 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoy_strict()
563 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoyDow()
585 TemporalField woyField = week.weekOfYear(); in test_parse_resolve_localizedWoyDow_lenient()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java153 int weekOfYear = isoDate.get(weekDef.weekOfWeekBasedYear()); in test_DayOfWeek_IsoChronology_vsCalendar() local
154 …assertEquals(jweekOfYear, weekOfYear, "GregorianCalendar WeekOfYear does not match WeekOfWeekBase… in test_DayOfWeek_IsoChronology_vsCalendar()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCalendar.annotated.java140 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/
DCalendar.java326 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/
DWeekFields.java269 private final transient TemporalField weekOfYear = ComputedDayOfField.ofWeekOfYearField(this); field in WeekFields
544 public TemporalField weekOfYear() { in weekOfYear() method in WeekFields
545 return weekOfYear; in weekOfYear()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedFieldParser.java169 parsed.isSupported(WeekFields.of(locale).weekOfYear()), true); in test_parse_textLocalDate()
/libcore/api/
Dcurrent.txt12963 method public java.time.temporal.TemporalField weekOfYear();