/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 97 public void test_of_DayOfWeek_int_singleton(DayOfWeek firstDayOfWeek, int minDays) { in test_of_DayOfWeek_int_singleton() argument 98 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_of_DayOfWeek_int_singleton() 99 assertEquals(week.getFirstDayOfWeek(), firstDayOfWeek, "Incorrect firstDayOfWeek"); in test_of_DayOfWeek_int_singleton() local 101 assertSame(WeekFields.of(firstDayOfWeek, minDays), week); in test_of_DayOfWeek_int_singleton() 106 public void test_basics(DayOfWeek firstDayOfWeek, int minDays) { in test_basics() argument 107 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_basics() 153 public void test_dayOfWeekField(DayOfWeek firstDayOfWeek, int minDays) { in test_dayOfWeekField() argument 155 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_dayOfWeekField() 159 … assertEquals(day.get(f), (7 + day.getDayOfWeek().getValue() - firstDayOfWeek.getValue()) % 7 + 1); in test_dayOfWeekField() 165 public void test_weekOfMonthField(DayOfWeek firstDayOfWeek, int minDays) { in test_weekOfMonthField() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | CalendarWeekOfMonthTest.java | 40 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/ |
D | TCKWeekFieldsSerialization.java | 83 …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/ |
D | WeekFields.java | 253 private final DayOfWeek firstDayOfWeek; field in WeekFields 309 int calDow = CalendarDataUtility.retrieveFirstDayOfWeek(locale, weekData.firstDayOfWeek); in of() 337 public static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in of() argument 338 String key = firstDayOfWeek.toString() + minimalDaysInFirstWeek; in of() 341 rules = new WeekFields(firstDayOfWeek, minimalDaysInFirstWeek); in of() 356 private WeekFields(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in WeekFields() argument 357 Objects.requireNonNull(firstDayOfWeek, "firstDayOfWeek"); in WeekFields() 361 this.firstDayOfWeek = firstDayOfWeek; in WeekFields() 381 if (firstDayOfWeek == null) { in readObject() 400 return WeekFields.of(firstDayOfWeek, minimalDays); in readResolve() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Calendar.java | 922 private int firstDayOfWeek; field in Calendar 1093 private int firstDayOfWeek, minimalDaysInFirstWeek; field in Calendar.Builder 1420 public Builder setWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek) { in setWeekDefinition() argument 1421 if (!isValidWeekParameter(firstDayOfWeek) in setWeekDefinition() 1425 this.firstDayOfWeek = firstDayOfWeek; in setWeekDefinition() 1517 if (firstDayOfWeek != 0) { in build() 1518 cal.setFirstDayOfWeek(firstDayOfWeek); in build() 2771 firstDayOfWeek == that.firstDayOfWeek && in equals() 2796 | (firstDayOfWeek << 1) in hashCode() 3025 if (firstDayOfWeek == value) { in setFirstDayOfWeek() [all …]
|
D | GregorianCalendar.java | 3014 long firstDayOfWeek = BaseCalendar.getDayOfWeekDateOnOrBefore(fixedDate + 6, in getFixedDate() local 3018 if ((firstDayOfWeek - fixedDate) >= getMinimalDaysInFirstWeek()) { in getFixedDate() 3019 firstDayOfWeek -= 7; in getFixedDate() 3022 firstDayOfWeek = BaseCalendar.getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, in getFixedDate() 3028 fixedDate = firstDayOfWeek + 7 * (internalGet(WEEK_OF_MONTH) - 1); in getFixedDate() 3073 long firstDayOfWeek = BaseCalendar.getDayOfWeekDateOnOrBefore(fixedDate + 6, in getFixedDate() local 3077 if ((firstDayOfWeek - fixedDate) >= getMinimalDaysInFirstWeek()) { in getFixedDate() 3078 firstDayOfWeek -= 7; in getFixedDate() 3083 firstDayOfWeek = BaseCalendar.getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, in getFixedDate() 3087 fixedDate = firstDayOfWeek + 7 * ((long)internalGet(WEEK_OF_YEAR) - 1); in getFixedDate()
|
D | JapaneseImperialCalendar.java | 2023 … long firstDayOfWeek = LocalGregorianCalendar.getDayOfWeekDateOnOrBefore(fixedDate + 6, 2027 if ((firstDayOfWeek - fixedDate) >= getMinimalDaysInFirstWeek()) { 2028 firstDayOfWeek -= 7; 2031 … firstDayOfWeek = LocalGregorianCalendar.getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, 2037 fixedDate = firstDayOfWeek + 7 * (internalGet(WEEK_OF_MONTH) - 1); 2077 … long firstDayOfWeek = LocalGregorianCalendar.getDayOfWeekDateOnOrBefore(fixedDate + 6, 2081 if ((firstDayOfWeek - fixedDate) >= getMinimalDaysInFirstWeek()) { 2082 firstDayOfWeek -= 7; 2087 … firstDayOfWeek = LocalGregorianCalendar.getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, 2091 fixedDate = firstDayOfWeek + 7 * ((long)internalGet(WEEK_OF_YEAR) - 1);
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestIsoChronoImpl.java | 127 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { in test_DayOfWeek_IsoChronology_vsCalendar() 129 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_DayOfWeek_IsoChronology_vsCalendar() 130 cal.setFirstDayOfWeek(Math.floorMod(firstDayOfWeek.getValue(), 7) + 1); in test_DayOfWeek_IsoChronology_vsCalendar()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | LocaleData.java | 96 public Integer firstDayOfWeek; field in LocaleData 255 firstDayOfWeek = CalendarDataUtility.retrieveFirstDayOfWeek(locale, in initializeCalendarData()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Calendar.java | 572 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/test/java/libcore/libcore/icu/ |
D | LocaleDataTest.java | 161 assertEquals(localeData.firstDayOfWeek, (Integer) icuCalendar.getFirstDayOfWeek()); in assertRootDataEqualsToTargetLocaleData()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Calendar.annotated.java | 301 @libcore.util.NonNull public java.util.Calendar.Builder setWeekDefinition(int firstDayOfWeek, int m… in setWeekDefinition() argument
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestUnicodeExtension.java | 300 Object[][] firstDayOfWeek () { in firstDayOfWeek() method in TestUnicodeExtension
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | R.java | 1625 public static final int firstDayOfWeek = 0; field in R
|