/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 69 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/ |
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() 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/ |
D | Calendar.java | 416 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 …]
|
D | GregorianCalendar.java | 1035 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 …]
|
D | JapaneseImperialCalendar.java | 470 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/ |
D | CalendarBuilder.java | 128 int weekOfYear = isSet(WEEK_OF_YEAR) ? field[MAX_FIELD + WEEK_OF_YEAR] : 1; in establish()
|
D | DateFormat.java | 1067 public static final Field WEEK_OF_YEAR = new field in DateFormat.Field 1068 Field("week of year", Calendar.WEEK_OF_YEAR);
|
D | SimpleDateFormat.java | 1178 Calendar.WEEK_OF_YEAR, 1244 Field.WEEK_OF_YEAR,
|
/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()
|
/libcore/ojluni/annotations/mmodule/java/text/ |
D | DateFormat.annotated.java | 223 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/ |
D | DateFormat.java | 346 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/ |
D | DateFormat.annotated.java | 219 @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/ |
D | TestIsoChronoImpl.java | 152 int jweekOfYear = cal.get(Calendar.WEEK_OF_YEAR); in test_DayOfWeek_IsoChronology_vsCalendar()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Calendar.annotated.java | 256 public static final int WEEK_OF_YEAR = 3; // 0x3 field in Calendar
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 545 public static final int WEEK_OF_YEAR = 3; // 0x3 field in Calendar
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | IsoFields.java | 446 .getAppendItemName(DateTimePatternGenerator.WEEK_OF_YEAR); in getDisplayName()
|
D | WeekFields.java | 1071 .getAppendItemName(DateTimePatternGenerator.WEEK_OF_YEAR); in getDisplayName()
|
/libcore/api/ |
D | current.txt | 11094 field @NonNull public static final java.text.DateFormat.Field WEEK_OF_YEAR; 13561 field public static final int WEEK_OF_YEAR = 3; // 0x3
|