/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
TCKWeekFields.java | 95 public void test_of_DayOfWeek_int_singleton(DayOfWeek firstDayOfWeek, int minDays) { 96 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); 97 assertEquals(week.getFirstDayOfWeek(), firstDayOfWeek, "Incorrect firstDayOfWeek"); 99 assertSame(WeekFields.of(firstDayOfWeek, minDays), week); 104 public void test_basics(DayOfWeek firstDayOfWeek, int minDays) { 105 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); 151 public void test_dayOfWeekField(DayOfWeek firstDayOfWeek, int minDays) { 153 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); 157 assertEquals(day.get(f), (7 + day.getDayOfWeek().getValue() - firstDayOfWeek.getValue()) % 7 + 1) [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
TCKWeekFieldsSerialization.java | 83 public void test_serializable_singleton(DayOfWeek firstDayOfWeek, int minDays) throws IOException, ClassNotFoundException { 84 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); 93 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { 95 objects[i++] = new Object[] {firstDayOfWeek, minDays};
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
Utils.java | 107 * @param firstDayOfWeek Which week day is the first day of the week, 111 public static int getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek) { 112 int diff = Time.THURSDAY - firstDayOfWeek;
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
WeekFields.java | 188 * The cache of rules by firstDayOfWeek plus minimalDays. 242 private final DayOfWeek firstDayOfWeek; 291 DayOfWeek dow = DayOfWeek.SUNDAY.plus(weekData.firstDayOfWeek - 1); 306 * of {@code firstDayOfWeek} and {@code minimalDaysInFirstWeek} the 309 * @param firstDayOfWeek the first day of the week, not null 315 public static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { 316 String key = firstDayOfWeek.toString() + minimalDaysInFirstWeek; 319 rules = new WeekFields(firstDayOfWeek, minimalDaysInFirstWeek); 330 * @param firstDayOfWeek the first day of the week, not null 334 private WeekFields(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) [all...] |
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/ |
CalendarPanel.java | 140 firstDayOfWeek = Calendar.getInstance(fDisplayLocale).getFirstDayOfWeek(); 180 int cell = (date + firstDayInMonth - firstDayOfWeek - minDay); 181 if (firstDayInMonth < firstDayOfWeek) { 214 int dayNum = (i + minDay + firstDayOfWeek - 2) % daysInWeek + 1; 280 int cell = (1 + firstDayInMonth - firstDayOfWeek - minDay); 281 if (firstDayInMonth < firstDayOfWeek) { 360 private transient int firstDayOfWeek; // First day to display in week
|
/frameworks/base/core/java/android/widget/ |
CalendarViewMaterialDelegate.java | 84 public void setFirstDayOfWeek(int firstDayOfWeek) { 85 mDayPickerView.setFirstDayOfWeek(firstDayOfWeek);
|
DatePicker.java | 160 final int firstDayOfWeek = a.getInt(R.styleable.DatePicker_firstDayOfWeek, 0); 181 if (firstDayOfWeek != 0) { 182 setFirstDayOfWeek(firstDayOfWeek); 374 * @param firstDayOfWeek The first day of the week conforming to the 386 public void setFirstDayOfWeek(int firstDayOfWeek) { 387 if (firstDayOfWeek < Calendar.SUNDAY || firstDayOfWeek > Calendar.SATURDAY) { 388 throw new IllegalArgumentException("firstDayOfWeek must be between 1 and 7"); 390 mDelegate.setFirstDayOfWeek(firstDayOfWeek); 534 void setFirstDayOfWeek(int firstDayOfWeek); [all...] |
DayPickerView.java | 86 final int firstDayOfWeek = a.getInt(R.styleable.CalendarView_firstDayOfWeek, 87 LocaleData.get(Locale.getDefault()).firstDayOfWeek); 166 setFirstDayOfWeek(firstDayOfWeek); 334 public void setFirstDayOfWeek(int firstDayOfWeek) { 335 mAdapter.setFirstDayOfWeek(firstDayOfWeek);
|
CalendarView.java | 480 * @param firstDayOfWeek The first day of the week conforming to the 492 public void setFirstDayOfWeek(int firstDayOfWeek) { 493 mDelegate.setFirstDayOfWeek(firstDayOfWeek); 617 void setFirstDayOfWeek(int firstDayOfWeek);
|
DatePickerCalendarDelegate.java | 476 public void setFirstDayOfWeek(int firstDayOfWeek) { 477 mFirstDayOfWeek = firstDayOfWeek; 479 mDayPickerView.setFirstDayOfWeek(firstDayOfWeek);
|
DatePickerSpinnerDelegate.java | 276 public void setFirstDayOfWeek(int firstDayOfWeek) { 277 mCalendarView.setFirstDayOfWeek(firstDayOfWeek);
|
CalendarViewLegacyDelegate.java | 267 LocaleData.get(Locale.getDefault()).firstDayOfWeek); 565 public void setFirstDayOfWeek(int firstDayOfWeek) { 566 if (mFirstDayOfWeek == firstDayOfWeek) { 569 mFirstDayOfWeek = firstDayOfWeek; [all...] |
/libcore/ojluni/src/main/java/java/util/ |
Calendar.java | [all...] |
GregorianCalendar.java | [all...] |
JapaneseImperialCalendar.java | [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
CalendarWeekOfMonthTest.java | 40 private final int firstDayOfWeek; 49 // MinimalDaysInFirstWeek = 4, FirstDayOfWeek MONDAY 88 // MinimalDaysInFirstWeek = 1, FirstDayOfWeek MONDAY 127 // MinimalDaysInFirstWeek = 4, FirstDayOfWeek SUNDAY 166 // MinimalDaysInFirstWeek = 1, FirstDayOfWeek SUNDAY 208 public CalendarWeekOfMonthTest(long timeInMillis, String date, int firstDayOfWeek, 212 this.firstDayOfWeek = firstDayOfWeek; 221 calendar.setFirstDayOfWeek(firstDayOfWeek); 231 + ", date='" + date + '\'' + ", firstDayOfWeek=" + firstDayOfWee [all...] |
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
TestIsoChronoImpl.java | 124 for (DayOfWeek firstDayOfWeek : DayOfWeek.values()) { 126 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); 127 cal.setFirstDayOfWeek(Math.floorMod(firstDayOfWeek.getValue(), 7) + 1);
|
/packages/apps/Calendar/src/com/android/calendar/ |
Utils.java | 593 * @param firstDayOfWeek Which week day is the first day of the week, 597 public static int getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek) { 598 int diff = Time.THURSDAY - firstDayOfWeek; 707 * @param firstDayOfWeek the first day of week in android.text.format.Time 710 public static boolean isSaturday(int column, int firstDayOfWeek) { 711 return (firstDayOfWeek == Time.SUNDAY && column == 6) 712 || (firstDayOfWeek == Time.MONDAY && column == 5) 713 || (firstDayOfWeek == Time.SATURDAY && column == 0); 720 * @param firstDayOfWeek the first day of week in android.text.format.Time 723 public static boolean isSunday(int column, int firstDayOfWeek) { [all...] |
CalendarViewAdapter.java | 390 int firstDayOfWeek = Utils.getFirstDayOfWeek(mContext); 392 int diff = dayOfWeek - firstDayOfWeek;
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/ |
HolidayCalendarDemo.java | 516 firstDayOfWeek = Calendar.getInstance(fDisplayLocale).getFirstDayOfWeek(); 574 int cell = (date + firstDayInMonth - firstDayOfWeek - minDay); 575 if (firstDayInMonth < firstDayOfWeek) { 608 int dayNum = (i + minDay + firstDayOfWeek - 2) % daysInWeek + 1; 717 private transient int firstDayOfWeek; // First day to display in week
|
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/ |
ICU_Delegate.java | 187 result.firstDayOfWeek = 1;
|
/libcore/luni/src/main/java/libcore/icu/ |
LocaleData.java | 45 public Integer firstDayOfWeek;
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
Calendar.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
Calendar.java | [all...] |
/frameworks/base/core/java/android/text/format/ |
Time.java | [all...] |