Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java95 public void test_of_DayOfWeek_int_singleton(DayOfWeek firstDayOfWeek, int minDays) { in test_of_DayOfWeek_int_singleton() argument
96 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_of_DayOfWeek_int_singleton()
97 assertEquals(week.getFirstDayOfWeek(), firstDayOfWeek, "Incorrect firstDayOfWeek"); in test_of_DayOfWeek_int_singleton() local
99 assertSame(WeekFields.of(firstDayOfWeek, minDays), week); in test_of_DayOfWeek_int_singleton()
104 public void test_basics(DayOfWeek firstDayOfWeek, int minDays) { in test_basics() argument
105 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_basics()
151 public void test_dayOfWeekField(DayOfWeek firstDayOfWeek, int minDays) { in test_dayOfWeekField() argument
153 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_dayOfWeekField()
157 … assertEquals(day.get(f), (7 + day.getDayOfWeek().getValue() - firstDayOfWeek.getValue()) % 7 + 1); in test_dayOfWeekField()
163 public void test_weekOfMonthField(DayOfWeek firstDayOfWeek, int minDays) { in test_weekOfMonthField() argument
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DCalendarWeekOfMonthTest.java40 private final int firstDayOfWeek; field in CalendarWeekOfMonthTest
208 public CalendarWeekOfMonthTest(long timeInMillis, String date, int firstDayOfWeek, in CalendarWeekOfMonthTest() argument
212 this.firstDayOfWeek = firstDayOfWeek; in CalendarWeekOfMonthTest()
221 calendar.setFirstDayOfWeek(firstDayOfWeek); in test()
231 + ", date='" + date + '\'' + ", firstDayOfWeek=" + firstDayOfWeek in toString()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKWeekFieldsSerialization.java83 …public void test_serializable_singleton(DayOfWeek firstDayOfWeek, int minDays) throws IOException,… in test_serializable_singleton() argument
84 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_serializable_singleton()
93 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { in data_weekFields()
95 objects[i++] = new Object[] {firstDayOfWeek, minDays}; in data_weekFields()
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java242 private final DayOfWeek firstDayOfWeek; field in WeekFields
290 DayOfWeek dow = DayOfWeek.SUNDAY.plus(weekData.firstDayOfWeek - 1); in of()
314 public static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in of() argument
315 String key = firstDayOfWeek.toString() + minimalDaysInFirstWeek; in of()
318 rules = new WeekFields(firstDayOfWeek, minimalDaysInFirstWeek); in of()
333 private WeekFields(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in WeekFields() argument
334 Objects.requireNonNull(firstDayOfWeek, "firstDayOfWeek"); in WeekFields()
338 this.firstDayOfWeek = firstDayOfWeek; in WeekFields()
356 if (firstDayOfWeek == null) { in readObject()
374 return WeekFields.of(firstDayOfWeek, minimalDays); in readResolve()
[all …]
/libcore/ojluni/src/main/java/java/util/
DCalendar.java915 private int firstDayOfWeek; field in Calendar
1085 private int firstDayOfWeek, minimalDaysInFirstWeek; field in Calendar.Builder
1412 public Builder setWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek) { in setWeekDefinition() argument
1413 if (!isValidWeekParameter(firstDayOfWeek) in setWeekDefinition()
1417 this.firstDayOfWeek = firstDayOfWeek; in setWeekDefinition()
1506 if (firstDayOfWeek != 0) { in build()
1507 cal.setFirstDayOfWeek(firstDayOfWeek); in build()
2697 firstDayOfWeek == that.firstDayOfWeek && in equals()
2718 | (firstDayOfWeek << 1) in hashCode()
2947 if (firstDayOfWeek == value) { in setFirstDayOfWeek()
[all …]
DGregorianCalendar.java3053 long firstDayOfWeek = BaseCalendar.getDayOfWeekDateOnOrBefore(fixedDate + 6, in getFixedDate() local
3057 if ((firstDayOfWeek - fixedDate) >= getMinimalDaysInFirstWeek()) { in getFixedDate()
3058 firstDayOfWeek -= 7; in getFixedDate()
3061 firstDayOfWeek = BaseCalendar.getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, in getFixedDate()
3067 fixedDate = firstDayOfWeek + 7 * (internalGet(WEEK_OF_MONTH) - 1); in getFixedDate()
3112 long firstDayOfWeek = BaseCalendar.getDayOfWeekDateOnOrBefore(fixedDate + 6, in getFixedDate() local
3116 if ((firstDayOfWeek - fixedDate) >= getMinimalDaysInFirstWeek()) { in getFixedDate()
3117 firstDayOfWeek -= 7; in getFixedDate()
3122 firstDayOfWeek = BaseCalendar.getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, in getFixedDate()
3126 fixedDate = firstDayOfWeek + 7 * ((long)internalGet(WEEK_OF_YEAR) - 1); in getFixedDate()
DJapaneseImperialCalendar.java2058 … long firstDayOfWeek = LocalGregorianCalendar.getDayOfWeekDateOnOrBefore(fixedDate + 6, in getFixedDate() local
2062 if ((firstDayOfWeek - fixedDate) >= getMinimalDaysInFirstWeek()) { in getFixedDate()
2063 firstDayOfWeek -= 7; in getFixedDate()
2066firstDayOfWeek = LocalGregorianCalendar.getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, in getFixedDate()
2072 fixedDate = firstDayOfWeek + 7 * (internalGet(WEEK_OF_MONTH) - 1); in getFixedDate()
2112 … long firstDayOfWeek = LocalGregorianCalendar.getDayOfWeekDateOnOrBefore(fixedDate + 6, in getFixedDate() local
2116 if ((firstDayOfWeek - fixedDate) >= getMinimalDaysInFirstWeek()) { in getFixedDate()
2117 firstDayOfWeek -= 7; in getFixedDate()
2122firstDayOfWeek = LocalGregorianCalendar.getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, in getFixedDate()
2126 fixedDate = firstDayOfWeek + 7 * ((long)internalGet(WEEK_OF_YEAR) - 1); in getFixedDate()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java124 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { in test_DayOfWeek_IsoChronology_vsCalendar()
126 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_DayOfWeek_IsoChronology_vsCalendar()
127 cal.setFirstDayOfWeek(Math.floorMod(firstDayOfWeek.getValue(), 7) + 1); in test_DayOfWeek_IsoChronology_vsCalendar()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java572 private int firstDayOfWeek; field in Calendar
668 int firstDayOfWeek, int minimalDaysInFirstWeek) { in setWeekDefinition() argument
702 private int firstDayOfWeek; field in Calendar.Builder
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java104 public Integer firstDayOfWeek; field in LocaleData
408 firstDayOfWeek = calendar.getFirstDayOfWeek(); in initializeCalendarData()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCalendar.annotated.java301 @libcore.util.NonNull public java.util.Calendar.Builder setWeekDefinition(int firstDayOfWeek, int m… in setWeekDefinition() argument
/libcore/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java206 assertEquals(localeData.firstDayOfWeek, (Integer) icuCalendar.getFirstDayOfWeek()); in assertRootDataEqualsToTargetLocaleData()
/libcore/benchmarks/src/benchmarks/regression/
DR.java1625 public static final int firstDayOfWeek = 0; field in R