/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestTextPrinter.java | 63 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 91 getFormatter(DAY_OF_WEEK, TextStyle.FULL).formatTo(EMPTY_DTA, buf); in test_print_emptyCalendrical() 96 getFormatter(DAY_OF_WEEK, TextStyle.FULL).formatTo(LocalDate.of(2012, 4, 18), buf); in test_print_append() 104 {DAY_OF_WEEK, TextStyle.FULL, 1, "Monday"}, in provider_dow() 105 {DAY_OF_WEEK, TextStyle.FULL, 2, "Tuesday"}, in provider_dow() 106 {DAY_OF_WEEK, TextStyle.FULL, 3, "Wednesday"}, in provider_dow() 107 {DAY_OF_WEEK, TextStyle.FULL, 4, "Thursday"}, in provider_dow() 108 {DAY_OF_WEEK, TextStyle.FULL, 5, "Friday"}, in provider_dow() 109 {DAY_OF_WEEK, TextStyle.FULL, 6, "Saturday"}, in provider_dow() 110 {DAY_OF_WEEK, TextStyle.FULL, 7, "Sunday"}, in provider_dow() [all …]
|
D | TestDateTimeTextProviderWithLocale.java | 70 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 96 {DAY_OF_WEEK, 1, TextStyle.SHORT, ptBR, "seg."}, in data_text() 97 {DAY_OF_WEEK, 2, TextStyle.SHORT, ptBR, "ter."}, in data_text() 98 {DAY_OF_WEEK, 3, TextStyle.SHORT, ptBR, "qua."}, in data_text() 99 {DAY_OF_WEEK, 4, TextStyle.SHORT, ptBR, "qui."}, in data_text() 100 {DAY_OF_WEEK, 5, TextStyle.SHORT, ptBR, "sex."}, in data_text() 101 {DAY_OF_WEEK, 6, TextStyle.SHORT, ptBR, "s\u00E1b."}, in data_text() 102 {DAY_OF_WEEK, 7, TextStyle.SHORT, ptBR, "dom."}, in data_text() 104 {DAY_OF_WEEK, 1, TextStyle.FULL, ptBR, "segunda-feira"}, in data_text() 105 {DAY_OF_WEEK, 2, TextStyle.FULL, ptBR, "ter\u00E7a-feira"}, in data_text() [all …]
|
D | TestDateTimeTextProvider.java | 63 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 88 {DAY_OF_WEEK, 1, TextStyle.SHORT, enUS, "Mon"}, in data_text() 89 {DAY_OF_WEEK, 2, TextStyle.SHORT, enUS, "Tue"}, in data_text() 90 {DAY_OF_WEEK, 3, TextStyle.SHORT, enUS, "Wed"}, in data_text() 91 {DAY_OF_WEEK, 4, TextStyle.SHORT, enUS, "Thu"}, in data_text() 92 {DAY_OF_WEEK, 5, TextStyle.SHORT, enUS, "Fri"}, in data_text() 93 {DAY_OF_WEEK, 6, TextStyle.SHORT, enUS, "Sat"}, in data_text() 94 {DAY_OF_WEEK, 7, TextStyle.SHORT, enUS, "Sun"}, in data_text() 96 {DAY_OF_WEEK, 1, TextStyle.FULL, enUS, "Monday"}, in data_text() 97 {DAY_OF_WEEK, 2, TextStyle.FULL, enUS, "Tuesday"}, in data_text() [all …]
|
D | TestTextParser.java | 63 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 93 {DAY_OF_WEEK, TextStyle.FULL, "Monday", -1, IndexOutOfBoundsException.class}, in data_error() 94 {DAY_OF_WEEK, TextStyle.FULL, "Monday", 7, IndexOutOfBoundsException.class}, in data_error() 110 assertEquals(getFormatter(DAY_OF_WEEK, TextStyle.FULL) in test_parse_midStr() 112 .getLong(DAY_OF_WEEK), 1L); in test_parse_midStr() 118 assertEquals(getFormatter(DAY_OF_WEEK, TextStyle.SHORT) in test_parse_remainderIgnored() 120 .getLong(DAY_OF_WEEK), 3L); in test_parse_remainderIgnored() 128 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Munday", pos); in test_parse_noMatch1() 136 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Monday", pos); in test_parse_noMatch2() 144 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Monday", pos); in test_parse_noMatch_atEnd() [all …]
|
D | TestTextPrinterWithLocale.java | 69 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 119 {FINNISH, DAY_OF_WEEK, TextStyle.FULL_STANDALONE, "tiistai"}, in provider_StandaloneNames() 120 {FINNISH, DAY_OF_WEEK, TextStyle.SHORT_STANDALONE, "ti"}, in provider_StandaloneNames()
|
D | TestTextParserWithLocale.java | 89 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 133 {FINNISH, DAY_OF_WEEK, TextStyle.FULL_STANDALONE, 2, "tiistai"}, in providerStandaloneText() 134 {FINNISH, DAY_OF_WEEK, TextStyle.SHORT_STANDALONE, 2, "ti"}, in providerStandaloneText()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeTextPrinting.java | 63 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 98 {DAY_OF_WEEK, TextStyle.FULL, 1, "Monday"}, in data_text() 99 {DAY_OF_WEEK, TextStyle.FULL, 2, "Tuesday"}, in data_text() 100 {DAY_OF_WEEK, TextStyle.FULL, 3, "Wednesday"}, in data_text() 101 {DAY_OF_WEEK, TextStyle.FULL, 4, "Thursday"}, in data_text() 102 {DAY_OF_WEEK, TextStyle.FULL, 5, "Friday"}, in data_text() 103 {DAY_OF_WEEK, TextStyle.FULL, 6, "Saturday"}, in data_text() 104 {DAY_OF_WEEK, TextStyle.FULL, 7, "Sunday"}, in data_text() 106 {DAY_OF_WEEK, TextStyle.SHORT, 1, "Mon"}, in data_text() 107 {DAY_OF_WEEK, TextStyle.SHORT, 2, "Tue"}, in data_text() [all …]
|
D | TCKLocalizedFieldParser.java | 87 public static final TemporalField DAY_OF_WEEK = WEEKDEF.dayOfWeek(); field in TCKLocalizedFieldParser 236 {"YYYYwwc", WEEK_BASED_YEAR, WEEK_OF_WEEK_BASED_YEAR, DAY_OF_WEEK, in provider_adjacentValuePatterns2() 238 {"YYYYwwee", WEEK_BASED_YEAR, WEEK_OF_WEEK_BASED_YEAR, DAY_OF_WEEK, in provider_adjacentValuePatterns2() 240 {"YYYYwwe", WEEK_BASED_YEAR, WEEK_OF_WEEK_BASED_YEAR, DAY_OF_WEEK, in provider_adjacentValuePatterns2() 265 assertEquals(parsed.get(DAY_OF_WEEK), 6); in test_adjacentValuePatterns3()
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 64 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 192 return of(temporal.get(DAY_OF_WEEK)); in from() 227 …return new DateTimeFormatterBuilder().appendText(DAY_OF_WEEK, style).toFormatter(locale).format(th… in getDisplayName() 253 return field == DAY_OF_WEEK; in isSupported() 282 if (field == DAY_OF_WEEK) { in range() 315 if (field == DAY_OF_WEEK) { in get() 345 if (field == DAY_OF_WEEK) { in getLong() 454 return temporal.with(DAY_OF_WEEK, getValue()); in adjustInto()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAdjusters.java | 65 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 352 int curDow = temp.get(DAY_OF_WEEK); in dayOfWeekInMonth() 360 int curDow = temp.get(DAY_OF_WEEK); in dayOfWeekInMonth() 389 int calDow = temporal.get(DAY_OF_WEEK); 415 int calDow = temporal.get(DAY_OF_WEEK); 443 int calDow = temporal.get(DAY_OF_WEEK); 469 int calDow = temporal.get(DAY_OF_WEEK);
|
D | WeekFields.java | 69 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 802 int isoDow = temporal.get(DAY_OF_WEEK); in localizedDayOfWeek() 952 fieldValues.put(DAY_OF_WEEK, isoDow); in resolve() 957 if (fieldValues.containsKey(DAY_OF_WEEK) == false) { in resolve() 960 int isoDow = DAY_OF_WEEK.checkValidIntValue(fieldValues.get(DAY_OF_WEEK)); in resolve() 1004 fieldValues.remove(DAY_OF_WEEK); in resolveWoM() 1026 fieldValues.remove(DAY_OF_WEEK); in resolveWoY() 1051 fieldValues.remove(DAY_OF_WEEK); in resolveWBY() 1105 if (temporal.isSupported(DAY_OF_WEEK)) { in isSupportedBy()
|
D | IsoFields.java | 64 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 492 Long dowLong = fieldValues.get(DAY_OF_WEEK); in resolve() 509 date = date.plusWeeks(Math.subtractExact(wowby, 1)).with(DAY_OF_WEEK, dow); in resolve() 511 int dow = DAY_OF_WEEK.checkValidIntValue(dowLong); // validated in resolve() 519 date = date.plusWeeks(wowby - 1).with(DAY_OF_WEEK, dow); in resolve() 523 fieldValues.remove(DAY_OF_WEEK); in resolve() 569 int dow = date.get(DAY_OF_WEEK); in adjustInto() 575 int days = (dow - resolved.get(DAY_OF_WEEK)) + ((week - 1) * 7); in adjustInto()
|
D | ChronoField.java | 365 DAY_OF_WEEK("DayOfWeek", DAYS, WEEKS, ValueRange.of(1, 7), "weekday"), enumConstant 674 case DAY_OF_WEEK: in getIcuFieldNumber() 732 return ordinal() >= DAY_OF_WEEK.ordinal() && ordinal() <= ERA.ordinal(); in isDateBased() 744 return ordinal() < DAY_OF_WEEK.ordinal(); in isTimeBased()
|
/libcore/ojluni/src/main/java/java/text/ |
D | CalendarBuilder.java | 71 index = DAY_OF_WEEK; in set() 90 index = DAY_OF_WEEK; in isSet() 97 index = DAY_OF_WEEK; in clear() 129 int dayOfWeek = isSet(DAY_OF_WEEK) ? in establish() 130 field[MAX_FIELD + DAY_OF_WEEK] : cal.getFirstDayOfWeek(); in establish()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestIsoWeekFields.java | 27 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 155 assertEquals(DAY_OF_WEEK.getFrom(date), dow); in test_getFrom() 170 assertEquals(DAY_OF_WEEK.getFrom(date), 1); in test_getFrom() 182 LocalDate adjusted = DAY_OF_WEEK.adjustInto(date, j); in test_adjustInto_dow() 183 assertEquals(adjusted.get(DAY_OF_WEEK), j); in test_adjustInto_dow() 213 assertEquals(adjusted.get(DAY_OF_WEEK), dow); in test_adjustInto_week() 241 assertEquals(adjusted.get(DAY_OF_WEEK), dow); in test_adjustInto_wby() 269 assertEquals(adjusted.get(DAY_OF_WEEK), dow); in test_addTo_weekBasedYears()
|
D | TestDateTimeBuilderCombinations.java | 67 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 96 …{YEAR, 2012, ALIGNED_WEEK_OF_YEAR, 6, DAY_OF_WEEK, 3, null, null, LocalDate.class, LocalDate.of(20… in data_combine() 174 {DAY_OF_WEEK, 127, DAY_OF_WEEK, 127L}, in data_normalized()
|
/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 …]
|
/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()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 68 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 191 } else if (field == DAY_OF_WEEK) { in getText() 192 fieldIndex = Calendar.DAY_OF_WEEK; in getText() 263 case DAY_OF_WEEK: in getTextIterator() 264 fieldIndex = Calendar.DAY_OF_WEEK; in getTextIterator() 299 case Calendar.DAY_OF_WEEK: in getTextIterator() 400 if (field == DAY_OF_WEEK) { in createStore() 410 "gregory", Calendar.DAY_OF_WEEK, in createStore() 419 "gregory", Calendar.DAY_OF_WEEK, textStyle.toCalendarStyle(), locale); in createStore() 430 … "gregory", Calendar.DAY_OF_WEEK, wday, textStyle.toCalendarStyle(), locale); in createStore()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 63 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 389 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(SMART); in test_parse_resolve_localizedWom() 391 date.get(womField) + ":" + date.get(DAY_OF_WEEK); in test_parse_resolve_localizedWom() 410 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT); in test_parse_resolve_localizedWom_lenient() 412 int dow = date.get(DAY_OF_WEEK); in test_parse_resolve_localizedWom_lenient() 431 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(STRICT); in test_parse_resolve_localizedWom_strict() 438 assertEquals(date.get(DAY_OF_WEEK), 1); in test_parse_resolve_localizedWom_strict() 503 .appendValue(DAY_OF_WEEK).toFormatter(); in test_parse_resolve_localizedWoy() 505 date.get(woyField) + ":" + date.get(DAY_OF_WEEK); in test_parse_resolve_localizedWoy() 523 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT); in test_parse_resolve_localizedWoy_lenient() [all …]
|
D | TCKIsoFields.java | 66 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 358 .appendValue(DAY_OF_WEEK) in test_parse_weeks_STRICT() 369 .appendValue(DAY_OF_WEEK) in test_parse_weeks_SMART() 380 .appendValue(DAY_OF_WEEK) in test_parse_weeks_LENIENT() 408 .appendValue(DAY_OF_WEEK) in test_parse_parseLenientWeek_STRICT() 418 .appendValue(DAY_OF_WEEK) in test_parse_parseLenientWeek_SMART() 438 .appendValue(DAY_OF_WEEK) in test_parse_parseLenientWeek_LENIENT()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | AbstractChronology.java | 69 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 448 if (fieldValues.containsKey(DAY_OF_WEEK)) { in resolveDate() 460 if (fieldValues.containsKey(DAY_OF_WEEK)) { in resolveDate() 574 long dow = Math.subtractExact(fieldValues.remove(DAY_OF_WEEK), 1); in resolveYMAD() 579 … int dow = range(DAY_OF_WEEK).checkValidIntValue(fieldValues.remove(DAY_OF_WEEK), DAY_OF_WEEK); in resolveYMAD() 607 long dow = Math.subtractExact(fieldValues.remove(DAY_OF_WEEK), 1); in resolveYAD() 611 … int dow = range(DAY_OF_WEEK).checkValidIntValue(fieldValues.remove(DAY_OF_WEEK), DAY_OF_WEEK); in resolveYAD()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 70 int differentDayOfWeek = greg.get(Calendar.DAY_OF_WEEK) == Calendar.MONDAY in test_computeFields_dayOfWeekAndWeekOfYearSet() 77 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek); in test_computeFields_dayOfWeekAndWeekOfYearSet() 83 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek); in test_computeFields_dayOfWeekAndWeekOfYearSet() 86 assertEquals(differentDayOfWeek, greg.get(Calendar.DAY_OF_WEEK)); in test_computeFields_dayOfWeekAndWeekOfYearSet() 92 greg.set(Calendar.DAY_OF_WEEK, differentDayOfWeek); in test_computeFields_dayOfWeekAndWeekOfYearSet() 94 assertEquals(differentDayOfWeek, greg.get(Calendar.DAY_OF_WEEK)); in test_computeFields_dayOfWeekAndWeekOfYearSet() 221 assertEquals(Calendar.TUESDAY, cal.get(Calendar.DAY_OF_WEEK)); in test_setWeekDate() 227 assertEquals(Calendar.TUESDAY, cal.get(Calendar.DAY_OF_WEEK)); in test_setWeekDate()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDayOfWeek.java | 65 import static java.time.temporal.ChronoField.DAY_OF_WEEK; 111 DAY_OF_WEEK, in validFields() 183 assertEquals(DayOfWeek.THURSDAY.isSupported(ChronoField.DAY_OF_WEEK), true); in test_isSupported_TemporalField() 205 assertEquals(DayOfWeek.WEDNESDAY.getLong(ChronoField.DAY_OF_WEEK), 3); in test_get_TemporalField() 210 assertEquals(DayOfWeek.WEDNESDAY.getLong(ChronoField.DAY_OF_WEEK), 3); in test_getLong_TemporalField()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 1043 case DAY_OF_WEEK: 1279 set(DAY_OF_WEEK, internalGet(DAY_OF_WEEK)); in roll() 1358 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() 1447 case DAY_OF_WEEK: in roll() 1494 set(DAY_OF_WEEK, internalGet(DAY_OF_WEEK)); in roll() 1912 dow1 = gc.get(DAY_OF_WEEK); in getActualMaximum() 2127 int delta = getFirstDayOfWeek() - cal.get(DAY_OF_WEEK); in getWeekYear() 2143 int del = getFirstDayOfWeek() - cal.get(DAY_OF_WEEK); in getWeekYear() 2219 gc.set(DAY_OF_WEEK, getFirstDayOfWeek()); in setWeekDate() 2234 || gc.internalGet(DAY_OF_WEEK) != dayOfWeek)) { in setWeekDate() [all …]
|