Home
last modified time | relevance | path

Searched refs:WEEK_OF_YEAR (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java69 int differentWeekOfYear = greg.get(Calendar.WEEK_OF_YEAR) == 1 ? 2 : 1; in test_computeFields_dayOfWeekAndWeekOfYearSet()
75 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet()
76 assertEquals(differentWeekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet()
78 assertEquals(differentWeekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet()
84 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet()
85 assertEquals(differentWeekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet()
91 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet()
93 assertEquals(differentWeekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet()
128 assertEquals(50, gc.getActualMaximum(Calendar.WEEK_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver()
129 assertEquals(50, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java104 cal.set(Calendar.WEEK_OF_YEAR, 11); in test_setII()
111 cal.set(Calendar.WEEK_OF_YEAR, 11); in test_setII()
117 cal.get(Calendar.WEEK_OF_YEAR); // Force fields to compute in test_setII()
118 cal.set(Calendar.WEEK_OF_YEAR, 11); in test_setII()
126 cal.set(Calendar.WEEK_OF_YEAR, 11); in test_setII()
136 cal.set(Calendar.WEEK_OF_YEAR, 11); in test_setII()
165 cal.set(Calendar.WEEK_OF_YEAR, 12); in test_setII()
177 cal.set(Calendar.WEEK_OF_YEAR, 12); in test_setII()
188 cal.set(Calendar.WEEK_OF_YEAR, 12); in test_setII()
199 cal.set(Calendar.WEEK_OF_YEAR, 11); in test_setII()
[all …]
DGregorianCalendarTest.java262 gc1.add(Calendar.WEEK_OF_YEAR, 1); in test_addII()
578 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ()
590 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ()
597 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ()
604 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ()
611 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ()
618 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ()
627 cal.roll(GregorianCalendar.WEEK_OF_YEAR, true); in test_rollIZ()
633 cal.roll(GregorianCalendar.WEEK_OF_YEAR, false); in test_rollIZ()
/libcore/ojluni/src/main/java/java/util/
DCalendar.java416 public static final int WEEK_OF_YEAR = 3; field in Calendar
1011 static final int WEEK_OF_YEAR_MASK = (1 << WEEK_OF_YEAR);
1297 internalSet(WEEK_OF_YEAR, weekOfYear); in setWeekDate()
1546 int weekOfYear = isSet(WEEK_OF_YEAR) ? fields[NFIELDS + WEEK_OF_YEAR] : 1; in build()
2526 int woyStamp = aggregateStamp(stamp[WEEK_OF_YEAR], dowStamp); in selectFields()
2549 woyStamp = stamp[WEEK_OF_YEAR]; in selectFields()
2562 (bestStamp == womStamp && stamp[WEEK_OF_MONTH] >= stamp[WEEK_OF_YEAR]) || in selectFields()
2563 (bestStamp == dowimStamp && stamp[DAY_OF_WEEK_IN_MONTH] >= stamp[WEEK_OF_YEAR])) { in selectFields()
3338 if (field == WEEK_OF_YEAR || field == WEEK_OF_MONTH) { in getActualMaximum()
3544 stamp[WEEK_OF_YEAR] != COMPUTED) { in invalidateWeekFields()
[all …]
DGregorianCalendar.java1035 case WEEK_OF_YEAR:
1275 case WEEK_OF_YEAR: in roll()
1278 max = getActualMaximum(WEEK_OF_YEAR); in roll()
1280 int woy = internalGet(WEEK_OF_YEAR); in roll()
1288 set(WEEK_OF_YEAR, value); in roll()
1300 fd += 7 * (max - internalGet(WEEK_OF_YEAR)); in roll()
1452 int weekOfYear = internalGet(WEEK_OF_YEAR); in roll()
1454 set(WEEK_OF_YEAR, weekOfYear); // update stamp[WEEK_OF_YEAR] in roll()
1567 …case MONTH, DAY_OF_MONTH, DAY_OF_YEAR, WEEK_OF_YEAR, WEEK_OF_MONTH, DAY_OF_WEEK_IN_MONTH, YEAR -> { in getMaximum()
1639 …case MONTH, DAY_OF_MONTH, DAY_OF_YEAR, WEEK_OF_YEAR, WEEK_OF_MONTH, DAY_OF_WEEK_IN_MONTH, YEAR -> { in getLeastMaximum()
[all …]
DJapaneseImperialCalendar.java470 case WEEK_OF_YEAR: in add()
754 case WEEK_OF_YEAR: in roll()
757 max = getActualMaximum(WEEK_OF_YEAR); in roll()
759 int woy = internalGet(WEEK_OF_YEAR); in roll()
764 max = getActualMaximum(WEEK_OF_YEAR); in roll()
766 min = getActualMinimum(WEEK_OF_YEAR); in roll()
767 max = getActualMaximum(WEEK_OF_YEAR); in roll()
769 set(WEEK_OF_YEAR, value); in roll()
777 set(WEEK_OF_YEAR, value); in roll()
795 fd += 7 * (max - internalGet(WEEK_OF_YEAR)); in roll()
[all …]
/libcore/ojluni/src/main/java/java/text/
DCalendarBuilder.java128 int weekOfYear = isSet(WEEK_OF_YEAR) ? field[MAX_FIELD + WEEK_OF_YEAR] : 1; in establish()
DDateFormat.java1067 public static final Field WEEK_OF_YEAR = new field in DateFormat.Field
1068 Field("week of year", Calendar.WEEK_OF_YEAR);
DSimpleDateFormat.java1178 Calendar.WEEK_OF_YEAR,
1244 Field.WEEK_OF_YEAR,
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_SimpleDateFormat.java88 t_FormatWithField(13, format, date, null, Field.WEEK_OF_YEAR, 130, 132); in t_format_with_FieldPosition()
117 t_FormatWithField(35, format, date, null, Field.WEEK_OF_YEAR, 0, 0); in t_format_with_FieldPosition()
173 v.add(new FieldContainer(0, 2, Field.WEEK_OF_YEAR)); in getDateVector2()
244 v.add(new FieldContainer(130, 132, Field.WEEK_OF_YEAR)); in getDateVector4()
245 v.add(new FieldContainer(133, 136, Field.WEEK_OF_YEAR)); in getDateVector4()
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java223 public static final java.text.DateFormat.Field WEEK_OF_YEAR; field in DateFormat.Field
224 static { WEEK_OF_YEAR = null; }
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java346 public static final java.text.DateFormat.Field WEEK_OF_YEAR; field in DateFormat.Field
349 WEEK_OF_YEAR = null;
/libcore/ojluni/annotations/sdk/nullability/java/text/
DDateFormat.annotated.java219 @libcore.util.NonNull public static final java.text.DateFormat.Field WEEK_OF_YEAR; field in DateFormat.Field
220 static { WEEK_OF_YEAR = null; }
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java152 int jweekOfYear = cal.get(Calendar.WEEK_OF_YEAR); in test_DayOfWeek_IsoChronology_vsCalendar()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCalendar.annotated.java256 public static final int WEEK_OF_YEAR = 3; // 0x3 field in Calendar
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java545 public static final int WEEK_OF_YEAR = 3; // 0x3 field in Calendar
/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java446 .getAppendItemName(DateTimePatternGenerator.WEEK_OF_YEAR); in getDisplayName()
DWeekFields.java1071 .getAppendItemName(DateTimePatternGenerator.WEEK_OF_YEAR); in getDisplayName()
/libcore/api/
Dcurrent.txt11094 field @NonNull public static final java.text.DateFormat.Field WEEK_OF_YEAR;
13561 field public static final int WEEK_OF_YEAR = 3; // 0x3