Home
last modified time | relevance | path

Searched defs:dow (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java141 int dow = 1; in test_getFrom() local
145 assertEquals(DAY_OF_WEEK.getFrom(date), dow); in test_getFrom() local
169 int dow = 1; in test_adjustInto_dow() local
197 int dow = 1; in test_adjustInto_week() local
203 assertEquals(adjusted.get(DAY_OF_WEEK), dow); in test_adjustInto_week() local
226 int dow = 1; in test_adjustInto_wby() local
231 assertEquals(adjusted.get(DAY_OF_WEEK), dow); in test_adjustInto_wby() local
254 int dow = 1; in test_addTo_weekBasedYears() local
259 assertEquals(adjusted.get(DAY_OF_WEEK), dow); in test_addTo_weekBasedYears() local
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKTemporalAdjusters.java338 …public void test_dayOfWeekInMonth_positive(int year, int month, DayOfWeek dow, LocalDate expected)… in test_dayOfWeekInMonth_positive()
367 public void test_dayOfWeekInMonth_zero(int year, int month, DayOfWeek dow, LocalDate expected) { in test_dayOfWeekInMonth_zero()
394 …public void test_dayOfWeekInMonth_negative(int year, int month, DayOfWeek dow, LocalDate expected)… in test_dayOfWeekInMonth_negative()
418 public void test_firstInMonth(int year, int month, DayOfWeek dow, LocalDate expected) { in test_firstInMonth()
440 public void test_lastInMonth(int year, int month, DayOfWeek dow, LocalDate expected) { in test_lastInMonth()
470 assertSame(test.getDayOfWeek(), dow, date + " " + test); in test_next() local
DTCKIsoFields.java321 public void test_WOWBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WOWBY()
322 assertEquals(date.getDayOfWeek(), dow); in test_WOWBY() local
336 public void test_WBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WBY()
337 assertEquals(date.getDayOfWeek(), dow); in test_WBY() local
351 public void test_parse_weeks_STRICT(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_STRICT()
362 public void test_parse_weeks_SMART(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_SMART()
373 public void test_parse_weeks_LENIENT(LocalDate date, DayOfWeek dow, int week, int wby) { in test_parse_weeks_LENIENT()
DTCKWeekFields.java250 int dow = (7 + isoDOW.getValue() - firstDayOfWeek.getValue()) % 7 + 1; in test_weekOfWeekBasedYearField() local
320 … assertEquals(result.get(dowField), dow, String.format("Incorrect new Day of week: %s", result)); in test_withDayOfWeek() local
412 int dow = date.get(DAY_OF_WEEK); in test_parse_resolve_localizedWom_lenient() local
481 int dow = date.get(dowField); in test_parse_resolve_localizedWomDow_lenient() local
525 int dow = date.get(DAY_OF_WEEK); in test_parse_resolve_localizedWoy_lenient() local
591 int dow = date.get(dowField); in test_parse_resolve_localizedWoyDow_lenient() local
637 int dow = date.get(DAY_OF_WEEK); in test_parse_resolve_localizedWoWBY_lenient() local
705 int dow = date.get(dowField); in test_parse_resolve_localizedWoWBYDow_lenient() local
782 public void test_WOWBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WOWBY()
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java291 DayOfWeek dow = DayOfWeek.SUNDAY.plus(weekData.firstDayOfWeek - 1); in of() local
725 int yowby, int wowby, int dow) { in ofWeekBasedYear()
787 int dow = localizedDayOfWeek(temporal); in localizedWeekOfMonth() local
794 int dow = localizedDayOfWeek(temporal); in localizedWeekOfYear() local
807 int dow = localizedDayOfWeek(temporal); in localizedWeekBasedYear() local
838 int dow = localizedDayOfWeek(temporal); in localizedWeekOfWeekBasedYear() local
869 private int startOfWeekOffset(int day, int dow) { in startOfWeekOffset()
936 int dow = localizedDayOfWeek(isoDow); in resolve() local
1113 int dow = localizedDayOfWeek(temporal); in rangeByWeek() local
1129 int dow = localizedDayOfWeek(temporal); in rangeWeekOfWeekBasedYear() local
DIsoFields.java479 long dow = dowLong; // unvalidated in resolve() local
489 int dow = DAY_OF_WEEK.checkValidIntValue(dowLong); // validated in resolve() local
541 int dow = date.get(DAY_OF_WEEK); in adjustInto() local
625 int dow = date.getDayOfWeek().ordinal(); in getWeekBasedYear() local
630 int dow = date.getDayOfWeek().ordinal(); in getWeekBasedYear() local
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java233 @Override public void setStartRule(int m, int d, int dow, int time) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor()
236 @Override public void setStartRule(int m, int d, int dow, int time, boolean after) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor()
239 @Override public void setEndRule(int m, int d, int dow, int time) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor()
242 @Override public void setEndRule(int m, int d, int dow, int time, boolean after) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor()
/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java604 long dow = Math.subtractExact(fieldValues.remove(DAY_OF_WEEK), 1); in resolveYMAD() local
609 … int dow = range(DAY_OF_WEEK).checkValidIntValue(fieldValues.remove(DAY_OF_WEEK), DAY_OF_WEEK); in resolveYMAD() local
637 long dow = Math.subtractExact(fieldValues.remove(DAY_OF_WEEK), 1); in resolveYAD() local
641 … int dow = range(DAY_OF_WEEK).checkValidIntValue(fieldValues.remove(DAY_OF_WEEK), DAY_OF_WEEK); in resolveYAD() local
649 ChronoLocalDate resolveAligned(ChronoLocalDate base, long months, long weeks, long dow) { in resolveAligned()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestExampleCode.java91 int dow = now1.get(ChronoField.DAY_OF_WEEK); in test_chronoPackageExample() local
151 int dow = now1.get(ChronoField.DAY_OF_WEEK); in test_calendarPackageExample() local
DTestIsoChronoImpl.java142 int dow = isoDate.get(weekDef.dayOfWeek()); in test_DayOfWeek_IsoChronology_vsCalendar() local
/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransitionRule.java124 private final DayOfWeek dow; field in ZoneOffsetTransitionRule
345 DayOfWeek dow = dowByte == 0 ? null : DayOfWeek.of(dowByte); in readExternal() local
/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() local
/libcore/ojluni/src/main/java/sun/util/calendar/
DBaseCalendar.java204 int dow = bdate.getDayOfWeek(); in validate() local
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java1361 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1901 int dow = date.getDayOfWeek(); in getActualMaximum() local
DJapaneseImperialCalendar.java825 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local