Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java32 greg.set(Calendar.WEEK_OF_YEAR, 1); in test_computeFields_dayOfWeekAndWeekOfYearSet()
33 assertEquals(1, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet()
35 assertEquals(1, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet()
41 greg.set(Calendar.WEEK_OF_YEAR, 1); in test_computeFields_dayOfWeekAndWeekOfYearSet()
42 assertEquals(1, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet()
50 int weekOfYear = greg.get(Calendar.WEEK_OF_YEAR); in test_computeFields_dayOfWeekAndWeekOfYearSet()
51 greg.set(Calendar.WEEK_OF_YEAR, 1); in test_computeFields_dayOfWeekAndWeekOfYearSet()
54 assertEquals(weekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet()
/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java431 case WEEK_OF_YEAR: in add()
563 fields[WEEK_OF_YEAR] = 7 - mod7(daysFromStart in fullFieldsCalc()
568 …fields[WEEK_OF_YEAR] = 7 - mod7(daysFromStart + (leapYear ? 2 : 1)) >= getMinimalDaysInFirstWeek()… in fullFieldsCalc()
571 fields[WEEK_OF_YEAR] = week; in fullFieldsCalc()
626 if (isSet[WEEK_OF_YEAR] in computeTime()
627 && (fields[WEEK_OF_YEAR] < 1 || fields[WEEK_OF_YEAR] > 53)) { in computeTime()
697 && (lastDateFieldSet == DAY_OF_WEEK || lastDateFieldSet == WEEK_OF_YEAR)) { in computeTime()
698 if (isSet[WEEK_OF_YEAR] && isSet[DAY_OF_WEEK]) { in computeTime()
699 if (lastDateFieldSet == WEEK_OF_YEAR) { in computeTime()
765 boolean useWeekYear = isSet[WEEK_OF_YEAR] in computeTime()
[all …]
DCalendar.java509 public static final int WEEK_OF_YEAR = 3; field in Calendar
/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.java246 gc1.add(Calendar.WEEK_OF_YEAR, 1); in test_addII()
436 assertEquals(gc.getActualMaximum(Calendar.WEEK_OF_YEAR), gc in test_getLeastMaximumI()
437 .getLeastMaximum(Calendar.WEEK_OF_YEAR)); in test_getLeastMaximumI()
570 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ()
580 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ()
587 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ()
594 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ()
601 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ()
608 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ()
617 cal.roll(GregorianCalendar.WEEK_OF_YEAR, true); in test_rollIZ()
[all …]
/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/luni/src/main/java/java/text/
DDateFormat.java760 public static final Field WEEK_OF_YEAR = new Field("week of year", field in DateFormat.Field
761 Calendar.WEEK_OF_YEAR);
DSimpleDateFormat.java646 dateFormatField = Field.WEEK_OF_YEAR; in append()
647 field = Calendar.WEEK_OF_YEAR; in append()
922 field = Calendar.WEEK_OF_YEAR; in parse()