Home
last modified time | relevance | path

Searched refs:DAY_OF_WEEK (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java34 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/
DGregorianCalendar.java428 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 …]
DCalendar.java564 public static final int DAY_OF_WEEK = 7; field in Calendar
1308 case DAY_OF_WEEK: in getDisplayNameArray()
DDate.java255 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()
DFormatter.java1839 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/
DDataFormatFieldTest.java70 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()
DSupport_SimpleDateFormat.java85 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/
DCalendarTest.java67 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 …]
DGregorianCalendarTest.java242 gc1.add(Calendar.DAY_OF_WEEK, 1); in test_addII()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java74 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/
DDateFormat.java739 public static final Field DAY_OF_WEEK = new Field("day of week", Calendar.DAY_OF_WEEK); field in DateFormat.Field
DSimpleDateFormat.java630 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/
DZoneInfo.java828 weekDay = calendar.get(Calendar.DAY_OF_WEEK) - 1;