/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKDayOfWeek.java | 62 import static java.time.DayOfWeek.MONDAY; 63 import static java.time.DayOfWeek.SUNDAY; 64 import static java.time.DayOfWeek.WEDNESDAY; 70 import java.time.DayOfWeek; 130 DayOfWeek test = DayOfWeek.of(i); in test_factory_int_singleton() 132 assertSame(DayOfWeek.of(i), test); in test_factory_int_singleton() 138 DayOfWeek.of(0); in test_factory_int_valueTooLow() 143 DayOfWeek.of(8); in test_factory_int_valueTooHigh() 149 assertEquals(DayOfWeek.from(LocalDate.of(2011, 6, 6)), DayOfWeek.MONDAY); in test_factory_CalendricalObject() 154 DayOfWeek.from(LocalTime.of(12, 30)); in test_factory_CalendricalObject_invalid_noDerive() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneOffsetTransitionRule.java | 64 import java.time.DayOfWeek; 92 null, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_nullMonth() 99 Month.MARCH, 20, DayOfWeek.SUNDAY, null, false, TimeDefinition.WALL, in test_factory_nullTime() 106 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, null, in test_factory_nullTimeDefinition() 113 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_nullStandardOffset() 120 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_nullOffsetBefore() 127 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_nullOffsetAfter() 134 Month.MARCH, -29, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_invalidDayOfMonthIndicator_tooSmall() 141 Month.MARCH, 0, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_invalidDayOfMonthIndicator_zero() 148 Month.MARCH, 32, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_factory_invalidDayOfMonthIndicator_tooLarge() [all …]
|
D | TCKZoneRules.java | 71 import java.time.DayOfWeek; 377 assertEquals(in.getDayOfWeek(), DayOfWeek.SUNDAY); in test_London_getTransitionRules() 388 assertEquals(out.getDayOfWeek(), DayOfWeek.SUNDAY); in test_London_getTransitionRules() 1013 DayOfWeek.MONDAY, in test_of()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 75 import java.time.DayOfWeek; 95 public void test_of_DayOfWeek_int_singleton(DayOfWeek firstDayOfWeek, int minDays) { in test_of_DayOfWeek_int_singleton() 104 public void test_basics(DayOfWeek firstDayOfWeek, int minDays) { in test_basics() 127 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 1).dayOfWeek()), 1); in test_dayOfWeekField_simpleGet() 128 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 7).dayOfWeek()), 1); in test_dayOfWeekField_simpleGet() 130 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 1).dayOfWeek()), 2); in test_dayOfWeekField_simpleGet() 131 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 7).dayOfWeek()), 2); in test_dayOfWeekField_simpleGet() 132 assertEquals(date.get(WeekFields.of(DayOfWeek.SATURDAY, 1).dayOfWeek()), 3); in test_dayOfWeekField_simpleGet() 133 assertEquals(date.get(WeekFields.of(DayOfWeek.FRIDAY, 1).dayOfWeek()), 4); in test_dayOfWeekField_simpleGet() 134 assertEquals(date.get(WeekFields.of(DayOfWeek.TUESDAY, 1).dayOfWeek()), 7); in test_dayOfWeekField_simpleGet() [all …]
|
D | TCKTemporalAdjusters.java | 62 import static java.time.DayOfWeek.MONDAY; 63 import static java.time.DayOfWeek.TUESDAY; 72 import java.time.DayOfWeek; 338 …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() 467 for (DayOfWeek dow : DayOfWeek.values()) { in test_next() 506 for (DayOfWeek dow : DayOfWeek.values()) { [all …]
|
D | TCKIsoFields.java | 59 import static java.time.DayOfWeek.FRIDAY; 60 import static java.time.DayOfWeek.MONDAY; 61 import static java.time.DayOfWeek.SATURDAY; 62 import static java.time.DayOfWeek.SUNDAY; 63 import static java.time.DayOfWeek.THURSDAY; 64 import static java.time.DayOfWeek.TUESDAY; 65 import static java.time.DayOfWeek.WEDNESDAY; 71 import java.time.DayOfWeek; 321 public void test_WOWBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WOWBY() 336 public void test_WBY(LocalDate date, DayOfWeek dow, int week, int wby) { in test_WBY() [all …]
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 109 public enum DayOfWeek implements TemporalAccessor, TemporalAdjuster { enum 149 private static final DayOfWeek[] ENUMS = DayOfWeek.values(); 163 public static DayOfWeek of(int dayOfWeek) { in of() 187 public static DayOfWeek from(TemporalAccessor temporal) { in from() 188 if (temporal instanceof DayOfWeek) { in from() 189 return (DayOfWeek) temporal; in from() 365 public DayOfWeek plus(long days) { in plus() 381 public DayOfWeek minus(long days) { in minus()
|
D | LocalDate.java | 798 public DayOfWeek getDayOfWeek() { in getDayOfWeek() 800 return DayOfWeek.of(dow0 + 1); in getDayOfWeek()
|
D | OffsetDateTime.java | 803 public DayOfWeek getDayOfWeek() { in getDayOfWeek()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAdjusters.java | 71 import java.time.DayOfWeek; 290 public static TemporalAdjuster firstInMonth(DayOfWeek dayOfWeek) { in firstInMonth() 310 public static TemporalAdjuster lastInMonth(DayOfWeek dayOfWeek) { in lastInMonth() 346 public static TemporalAdjuster dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek) { in dayOfWeekInMonth() 386 public static TemporalAdjuster next(DayOfWeek dayOfWeek) { 412 public static TemporalAdjuster nextOrSame(DayOfWeek dayOfWeek) { 440 public static TemporalAdjuster previous(DayOfWeek dayOfWeek) { 466 public static TemporalAdjuster previousOrSame(DayOfWeek dayOfWeek) {
|
D | WeekFields.java | 84 import java.time.DayOfWeek; 205 public static final WeekFields ISO = new WeekFields(DayOfWeek.MONDAY, 4); 214 public static final WeekFields SUNDAY_START = WeekFields.of(DayOfWeek.SUNDAY, 1); 242 private final DayOfWeek firstDayOfWeek; 291 DayOfWeek dow = DayOfWeek.SUNDAY.plus(weekData.firstDayOfWeek - 1); in of() 315 public static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in of() 334 private WeekFields(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in WeekFields() 391 public DayOfWeek getFirstDayOfWeek() { in getFirstDayOfWeek()
|
D | IsoFields.java | 62 import static java.time.DayOfWeek.THURSDAY; 63 import static java.time.DayOfWeek.WEDNESDAY;
|
D | ChronoField.java | 61 import java.time.DayOfWeek;
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKWeekFieldsSerialization.java | 71 import java.time.DayOfWeek; 83 …public void test_serializable_singleton(DayOfWeek firstDayOfWeek, int minDays) throws IOException,… in test_serializable_singleton() 93 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { in data_weekFields() 103 WeekFields wf = WeekFields.of(DayOfWeek.MONDAY, 7); in test_invalid_serialform() 115 assertEquals(o, WeekFields.of(DayOfWeek.MONDAY, 5), "Should be MONDAY, min = 5"); in test_invalid_serialform()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKZoneOffsetTransitionRuleSerialization.java | 62 import java.time.DayOfWeek; 99 Month.MARCH, 20, DayOfWeek.FRIDAY, LocalTime.MIDNIGHT, true, TimeDefinition.UTC, in test_serialization_endOfDay() 107 … Month.MARCH, 20, DayOfWeek.WEDNESDAY, LocalTime.of(13, 34, 56), false, TimeDefinition.STANDARD, in test_serialization_unusualTime() 115 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_serialization_floatingWeek() 123 Month.MARCH, -1, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, in test_serialization_floatingWeekBackwards()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestTextPrinter.java | 70 import java.time.DayOfWeek; 213 {Locale.US, "e", "1", DayOfWeek.SUNDAY}, in providerDayOfWeekData() 214 {Locale.US, "ee", "01", DayOfWeek.SUNDAY}, in providerDayOfWeekData() 215 {Locale.US, "c", "1", DayOfWeek.SUNDAY}, in providerDayOfWeekData() 217 {Locale.UK, "e", "1", DayOfWeek.MONDAY}, in providerDayOfWeekData() 218 {Locale.UK, "ee", "01", DayOfWeek.MONDAY}, in providerDayOfWeekData() 219 {Locale.UK, "c", "1", DayOfWeek.MONDAY}, in providerDayOfWeekData() 253 …public void test_formatDayOfWeek(Locale locale, String pattern, String expected, DayOfWeek dayOfWe… in test_formatDayOfWeek()
|
D | TestTextParser.java | 70 import java.time.DayOfWeek; 225 {Locale.US, "e", "1", DayOfWeek.SUNDAY}, in providerDayOfWeekData() 226 {Locale.US, "ee", "01", DayOfWeek.SUNDAY}, in providerDayOfWeekData() 227 {Locale.US, "c", "1", DayOfWeek.SUNDAY}, in providerDayOfWeekData() 229 {Locale.UK, "e", "1", DayOfWeek.MONDAY}, in providerDayOfWeekData() 230 {Locale.UK, "ee", "01", DayOfWeek.MONDAY}, in providerDayOfWeekData() 231 {Locale.UK, "c", "1", DayOfWeek.MONDAY}, in providerDayOfWeekData() 271 …public void test_parseDayOfWeekText(Locale locale, String pattern, String input, DayOfWeek expecte… in test_parseDayOfWeekText() 274 assertEquals(DayOfWeek.from(formatter.parse(input, pos)), expected); in test_parseDayOfWeekText()
|
D | TestDateTimeFormatter.java | 68 import java.time.DayOfWeek; 112 assertGoodErrorDate(DayOfWeek::from, "DayOfWeek"); in test_parse_errorMessage() 127 assertGoodErrorTime(DayOfWeek::from, "DayOfWeek"); in test_parse_errorMessage()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestIsoChronoImpl.java | 65 import java.time.DayOfWeek; 124 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { in test_DayOfWeek_IsoChronology_vsCalendar() 173 private DayOfWeek toISOfromCalendarDOW(int i) { in toISOfromCalendarDOW() 174 return DayOfWeek.of(Math.floorMod(i - 2, 7) + 1); in toISOfromCalendarDOW()
|
D | TestUmmAlQuraChronology.java | 38 import java.time.DayOfWeek; 488 assertEquals(date.get(WeekFields.of(DayOfWeek.SATURDAY, 7).dayOfWeek()), satStart); in test_dayOfWeek() 489 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 7).dayOfWeek()), sunStart); in test_dayOfWeek() 642 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 6, 28)), HijrahDate.of(1434, 7, 1)); in test_adjustInto() 643 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1432, 4, 13)), HijrahDate.of(1432, 4, 14)… in test_adjustInto() 644 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1433, 11, 29)), HijrahDate.of(1433, 12, 4… in test_adjustInto() 645 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 5, 10)), HijrahDate.of(1434, 5, 11)… in test_adjustInto() 646 …assertEquals(DayOfWeek.SATURDAY.adjustInto(HijrahDate.of(1434, 9, 11)), HijrahDate.of(1434, 9, 12)… in test_adjustInto()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneOffsetTransitionRule.java | 73 import java.time.DayOfWeek; 124 private final DayOfWeek dow; 174 DayOfWeek dayOfWeek, in of() 216 DayOfWeek dayOfWeek, in ZoneOffsetTransitionRule() 345 DayOfWeek dow = dowByte == 0 ? null : DayOfWeek.of(dowByte); in readExternal() 407 public DayOfWeek getDayOfWeek() { in getDayOfWeek()
|
D | IcuZoneRulesProvider.java | 31 import java.time.DayOfWeek; 231 DayOfWeek dayOfWeek = DayOfWeek.SATURDAY.plus(dateTimeRule.getRuleDayOfWeek()); in toZoneOffsetTransitionRule()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatter.java | 77 import java.time.DayOfWeek; 288 {null, null, DayOfWeek.MONDAY, "::::"}, in data_format_withZone_withChronology() 298 {IsoChronology.INSTANCE, null, DayOfWeek.MONDAY, "::::ISO"}, in data_format_withZone_withChronology() 308 {null, ZONE_PARIS, DayOfWeek.MONDAY, ":::Europe/Paris:"}, in data_format_withZone_withChronology() 318 {null, OFFSET_PTHREE, DayOfWeek.MONDAY, ":::+03:00:"}, in data_format_withZone_withChronology() 328 … {ThaiBuddhistChronology.INSTANCE, null, DayOfWeek.MONDAY, null}, // not a complete date in data_format_withZone_withChronology() 338 … {ThaiBuddhistChronology.INSTANCE, null, DayOfWeek.MONDAY, null}, // not a complete date in data_format_withZone_withChronology()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | AbstractChronology.java | 90 import java.time.DayOfWeek; 610 …ChronoLocalDate date = date(y, moy, 1).plus((aw - 1) * 7, DAYS).with(nextOrSame(DayOfWeek.of(dow))… in resolveYMAD() 642 …ChronoLocalDate date = dateYearDay(y, 1).plus((aw - 1) * 7, DAYS).with(nextOrSame(DayOfWeek.of(dow… in resolveYAD() 658 return date.with(nextOrSame(DayOfWeek.of((int) dow))); in resolveAligned()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 205 public java.time.DayOfWeek getDayOfWeek() { in getDayOfWeek()
|