/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 65 int differentWeekOfYear = greg.get(Calendar.WEEK_OF_YEAR) == 1 ? 2 : 1; in test_computeFields_dayOfWeekAndWeekOfYearSet() 71 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet() 72 assertEquals(differentWeekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet() 74 assertEquals(differentWeekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet() 80 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet() 81 assertEquals(differentWeekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet() 87 greg.set(Calendar.WEEK_OF_YEAR, differentWeekOfYear); in test_computeFields_dayOfWeekAndWeekOfYearSet() 89 assertEquals(differentWeekOfYear, greg.get(Calendar.WEEK_OF_YEAR)); in test_computeFields_dayOfWeekAndWeekOfYearSet() 124 assertEquals(50, gc.getActualMaximum(Calendar.WEEK_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver() 125 assertEquals(50, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 411 public final static int WEEK_OF_YEAR = 3; field in Calendar 915 final static int WEEK_OF_YEAR_MASK = (1 << WEEK_OF_YEAR); 1730 int woyStamp = aggregateStamp(stamp[WEEK_OF_YEAR], dowStamp); in selectFields() 1753 woyStamp = stamp[WEEK_OF_YEAR]; in selectFields() 1766 (bestStamp == womStamp && stamp[WEEK_OF_MONTH] >= stamp[WEEK_OF_YEAR]) || in selectFields() 1767 (bestStamp == dowimStamp && stamp[DAY_OF_WEEK_IN_MONTH] >= stamp[WEEK_OF_YEAR])) { in selectFields() 2454 if (field == WEEK_OF_YEAR || field == WEEK_OF_MONTH) in getActualMaximum() 2651 stamp[WEEK_OF_YEAR] != COMPUTED) { in invalidateWeekFields() 2661 cal.clear(WEEK_OF_YEAR); in invalidateWeekFields() 2670 if (stamp[WEEK_OF_YEAR] == COMPUTED) { in invalidateWeekFields() [all …]
|
D | GregorianCalendar.java | 1000 case WEEK_OF_YEAR: 1241 case WEEK_OF_YEAR: in roll() 1244 max = getActualMaximum(WEEK_OF_YEAR); in roll() 1246 int woy = internalGet(WEEK_OF_YEAR); in roll() 1252 set(WEEK_OF_YEAR, value); in roll() 1263 fd += 7 * (max - internalGet(WEEK_OF_YEAR)); in roll() 1399 int weekOfYear = internalGet(WEEK_OF_YEAR); in roll() 1401 set(WEEK_OF_YEAR, weekOfYear); // update stamp[WEEK_OF_YEAR] in roll() 1515 case WEEK_OF_YEAR: in getMaximum() 1592 case WEEK_OF_YEAR: in getLeastMaximum() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 104 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 …]
|
D | GregorianCalendarTest.java | 262 gc1.add(Calendar.WEEK_OF_YEAR, 1); in test_addII() 578 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ() 588 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ() 595 cal.roll(Calendar.WEEK_OF_YEAR, true); in test_rollIZ() 602 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ() 609 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ() 616 cal.roll(Calendar.WEEK_OF_YEAR, false); in test_rollIZ() 625 cal.roll(GregorianCalendar.WEEK_OF_YEAR, true); in test_rollIZ() 631 cal.roll(GregorianCalendar.WEEK_OF_YEAR, false); in test_rollIZ()
|
/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()
|
D | DateFormat.java | 974 public final static Field WEEK_OF_YEAR = new field in DateFormat.Field 975 Field("week of year", Calendar.WEEK_OF_YEAR);
|
D | SimpleDateFormat.java | 1029 Calendar.WEEK_OF_YEAR, Calendar.WEEK_OF_MONTH, 1065 Field.WEEK_OF_YEAR, Field.WEEK_OF_MONTH,
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_SimpleDateFormat.java | 88 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()
|