/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 34 greg.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_computeFields_dayOfWeekAndWeekOfYearSet() 40 greg.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_computeFields_dayOfWeekAndWeekOfYearSet() 43 assertEquals(Calendar.MONDAY, greg.get(Calendar.DAY_OF_WEEK)); in test_computeFields_dayOfWeekAndWeekOfYearSet() 52 greg.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_computeFields_dayOfWeekAndWeekOfYearSet()
|
/libcore/luni/src/main/java/java/util/ |
D | GregorianCalendar.java | 428 case DAY_OF_WEEK: in add() 502 fields[DAY_OF_WEEK] = mod7(days - 3) + 1; in fullFieldsCalc() 504 fields[YEAR], month, date, fields[DAY_OF_WEEK], millis); in fullFieldsCalc() 533 fields[DAY_OF_WEEK] = mod7(days - 3) + 1; in fullFieldsCalc() 630 if (isSet[DAY_OF_WEEK] in computeTime() 631 && (fields[DAY_OF_WEEK] < 1 || fields[DAY_OF_WEEK] > 7)) { 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() 701 } else if (lastDateFieldSet == DAY_OF_WEEK) { in computeTime() 726 && (lastDateFieldSet == DAY_OF_WEEK in computeTime() [all …]
|
D | Calendar.java | 564 public static final int DAY_OF_WEEK = 7; field in Calendar 1308 case DAY_OF_WEEK: in getDisplayNameArray()
|
D | Date.java | 255 return new GregorianCalendar(milliseconds).get(Calendar.DAY_OF_WEEK) - 1; in getDay() 707 result.append(localeData.shortWeekdayNames[cal.get(Calendar.DAY_OF_WEEK)]); in toString()
|
D | Formatter.java | 1839 result.append(localeData.longWeekdayNames[calendar.get(Calendar.DAY_OF_WEEK)]); in appendT() 1842 result.append(localeData.shortWeekdayNames[calendar.get(Calendar.DAY_OF_WEEK)]); in appendT()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DataFormatFieldTest.java | 70 MyField field = new MyField("a field", Calendar.DAY_OF_WEEK); in test_ConstructorLjava_lang_StringI() 74 Calendar.DAY_OF_WEEK, field.getCalendarField()); in test_ConstructorLjava_lang_StringI() 77 .ofCalendarField(Calendar.DAY_OF_WEEK); in test_ConstructorLjava_lang_StringI() 79 DateFormat.Field.DAY_OF_WEEK, realField); in test_ConstructorLjava_lang_StringI()
|
D | Support_SimpleDateFormat.java | 85 t_FormatWithField(10, format, date, null, Field.DAY_OF_WEEK, 102, 105); in t_format_with_FieldPosition() 114 t_FormatWithField(32, format, date, null, Field.DAY_OF_WEEK, 0, 0); in t_format_with_FieldPosition() 178 v.add(new FieldContainer(23, 29, Field.DAY_OF_WEEK)); in getDateVector2() 237 v.add(new FieldContainer(102, 105, Field.DAY_OF_WEEK)); in getDateVector4() 238 v.add(new FieldContainer(106, 112, Field.DAY_OF_WEEK)); in getDateVector4()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 67 int dow = cal.get(Calendar.DAY_OF_WEEK); in test_setII() 69 assertTrue("Incorrect DAY_OF_WEEK: " + cal.get(Calendar.DAY_OF_WEEK) in test_setII() 70 + " expected: " + dow, cal.get(Calendar.DAY_OF_WEEK) != dow); in test_setII() 74 cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_setII() 80 cal.set(Calendar.DAY_OF_WEEK, Calendar.TUESDAY); in test_setII() 86 cal.set(Calendar.DAY_OF_WEEK, Calendar.THURSDAY); in test_setII() 129 cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_setII() 140 cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); in test_setII() 149 cal.set(Calendar.DAY_OF_WEEK, Calendar.TUESDAY); in test_setII() 157 cal.set(Calendar.DAY_OF_WEEK, Calendar.TUESDAY); in test_setII() [all …]
|
D | GregorianCalendarTest.java | 242 gc1.add(Calendar.DAY_OF_WEEK, 1); in test_addII()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 74 assertEquals(Calendar.TUESDAY, parseDate(en, "EEEE", "Tuesday").get(Calendar.DAY_OF_WEEK)); in testStandAloneNames() 75 assertEquals(Calendar.TUESDAY, parseDate(en, "cccc", "Tuesday").get(Calendar.DAY_OF_WEEK)); in testStandAloneNames() 76 …AY, parseDate(ru, "EEEE", "\u0432\u0442\u043e\u0440\u043d\u0438\u043a").get(Calendar.DAY_OF_WEEK)); in testStandAloneNames() 77 …AY, parseDate(ru, "cccc", "\u0412\u0442\u043e\u0440\u043d\u0438\u043a").get(Calendar.DAY_OF_WEEK)); in testStandAloneNames()
|
/libcore/luni/src/main/java/java/text/ |
D | DateFormat.java | 739 public static final Field DAY_OF_WEEK = new Field("day of week", Calendar.DAY_OF_WEEK); field in DateFormat.Field
|
D | SimpleDateFormat.java | 630 dateFormatField = Field.DAY_OF_WEEK; in append() 634 dateFormatField = Field.DAY_OF_WEEK; in append() 706 buffer.append(days[calendar.get(Calendar.DAY_OF_WEEK)]); in appendDayOfWeek() 984 Calendar.DAY_OF_WEEK); in parseDayOfWeek() 988 Calendar.DAY_OF_WEEK); in parseDayOfWeek()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfo.java | 828 weekDay = calendar.get(Calendar.DAY_OF_WEEK) - 1;
|