/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | SimpleHoliday.java | 110 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name) in SimpleHoliday() argument 113 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 114 dayOfWeek > 0)); in SimpleHoliday() 121 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument 126 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 127 dayOfWeek > 0))); in SimpleHoliday() 135 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument 140 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 141 dayOfWeek > 0))); in SimpleHoliday()
|
D | DateTimeRule.java | 81 private final int dayOfWeek; field in DateTimeRule 110 this.dayOfWeek = 0; in DateTimeRule() 130 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() argument 135 this.dayOfWeek = dayOfWeek; in DateTimeRule() 160 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() argument 165 this.dayOfWeek = dayOfWeek; in DateTimeRule() 217 return dayOfWeek; in getRuleDayOfWeek() 275 sDate = Integer.toString(weekInMonth) + DOWSTR[dayOfWeek]; in toString() 278 sDate = DOWSTR[dayOfWeek] + ">=" + Integer.toString(dayOfMonth); in toString() 281 sDate = DOWSTR[dayOfWeek] + "<=" + Integer.toString(dayOfMonth); in toString()
|
D | SimpleDateRule.java | 34 this.dayOfWeek = 0; in SimpleDateRule() 42 this.dayOfWeek = 0; in SimpleDateRule() 58 public SimpleDateRule(int month, int dayOfMonth, int dayOfWeek, boolean after) in SimpleDateRule() argument 62 this.dayOfWeek = after ? dayOfWeek : -dayOfWeek; in SimpleDateRule() 188 if (dayOfWeek != 0) { in computeInYear() 196 if (dayOfWeek > 0) { in computeInYear() 199 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear() 204 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear() 228 private int dayOfWeek; field in SimpleDateRule
|
D | SimpleTimeZone.java | 316 public void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, in setStartRule() argument 322 getSTZInfo().setStart(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setStartRule() 323 setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME); in setStartRule() 364 private void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time, int mode) { in setStartRule() argument 369 startDayOfWeek = dayOfWeek; in setStartRule() 415 public void setStartRule(int month, int dayOfMonth, int dayOfWeek, int time, boolean after) { in setStartRule() argument 420 getSTZInfo().setStart(month, -1, dayOfWeek, time, dayOfMonth, after); in setStartRule() 422 -dayOfWeek, time, WALL_TIME); in setStartRule() 445 public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) { in setEndRule() argument 450 getSTZInfo().setEnd(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setEndRule() [all …]
|
D | VTimeZone.java | 79 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument 81 return tz.getOffset(era, year, month, day, dayOfWeek, milliseconds); in getOffset() 873 int dayOfWeek = ruleFields[1]; in createRuleByRRULE() local 882 if (ruleFields.length != 10 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE() 917 if (month == -1 || dayOfWeek == 0 || dayOfMonth == 0) { in createRuleByRRULE() 963 if (fields[1] != dayOfWeek) { in createRuleByRRULE() 1013 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE() 1027 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE() 1030 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE() 1032 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() [all …]
|
D | Calendar.java | 3849 protected int weekNumber(int desiredDay, int dayOfPeriod, int dayOfWeek) in weekNumber() argument 3854 int periodStartDayOfWeek = (dayOfWeek - getFirstDayOfWeek() - dayOfPeriod + 1) % 7; in weekNumber() 3900 protected final int weekNumber(int dayOfPeriod, int dayOfWeek) in weekNumber() argument 3902 return weekNumber(dayOfPeriod, dayOfPeriod, dayOfWeek); in weekNumber() 4489 public int getDayOfWeekType(int dayOfWeek) { in getDayOfWeekType() argument 4490 if (dayOfWeek < SUNDAY || dayOfWeek > SATURDAY) { in getDayOfWeekType() 4494 if (dayOfWeek != weekendOnset) in getDayOfWeekType() 4499 if (dayOfWeek < weekendOnset || dayOfWeek > weekendCease) { in getDayOfWeekType() 4503 if (dayOfWeek > weekendCease && dayOfWeek < weekendOnset) { in getDayOfWeekType() 4507 if (dayOfWeek == weekendOnset) { in getDayOfWeekType() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | SimpleHoliday.java | 107 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name) in SimpleHoliday() argument 110 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 111 dayOfWeek > 0)); in SimpleHoliday() 117 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument 122 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 123 dayOfWeek > 0))); in SimpleHoliday() 130 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument 135 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 136 dayOfWeek > 0))); in SimpleHoliday()
|
D | DateTimeRule.java | 68 private final int dayOfWeek; field in DateTimeRule 95 this.dayOfWeek = 0; in DateTimeRule() 113 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() argument 118 this.dayOfWeek = dayOfWeek; in DateTimeRule() 141 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() argument 146 this.dayOfWeek = dayOfWeek; in DateTimeRule() 190 return dayOfWeek; in getRuleDayOfWeek() 240 sDate = Integer.toString(weekInMonth) + DOWSTR[dayOfWeek]; in toString() 243 sDate = DOWSTR[dayOfWeek] + ">=" + Integer.toString(dayOfMonth); in toString() 246 sDate = DOWSTR[dayOfWeek] + "<=" + Integer.toString(dayOfMonth); in toString()
|
D | SimpleDateRule.java | 34 this.dayOfWeek = 0; in SimpleDateRule() 42 this.dayOfWeek = 0; in SimpleDateRule() 57 public SimpleDateRule(int month, int dayOfMonth, int dayOfWeek, boolean after) in SimpleDateRule() argument 61 this.dayOfWeek = after ? dayOfWeek : -dayOfWeek; in SimpleDateRule() 183 if (dayOfWeek != 0) { in computeInYear() 191 if (dayOfWeek > 0) { in computeInYear() 194 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear() 199 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear() 222 private int dayOfWeek; field in SimpleDateRule
|
D | SimpleTimeZone.java | 304 public void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, in setStartRule() argument 310 getSTZInfo().setStart(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setStartRule() 311 setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME); in setStartRule() 352 private void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time, int mode) { in setStartRule() argument 357 startDayOfWeek = dayOfWeek; in setStartRule() 401 public void setStartRule(int month, int dayOfMonth, int dayOfWeek, int time, boolean after) { in setStartRule() argument 406 getSTZInfo().setStart(month, -1, dayOfWeek, time, dayOfMonth, after); in setStartRule() 408 -dayOfWeek, time, WALL_TIME); in setStartRule() 430 public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) { in setEndRule() argument 435 getSTZInfo().setEnd(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setEndRule() [all …]
|
D | VTimeZone.java | 75 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument 77 return tz.getOffset(era, year, month, day, dayOfWeek, milliseconds); in getOffset() 842 int dayOfWeek = ruleFields[1]; in createRuleByRRULE() local 851 if (ruleFields.length != 10 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE() 886 if (month == -1 || dayOfWeek == 0 || dayOfMonth == 0) { in createRuleByRRULE() 932 if (fields[1] != dayOfWeek) { in createRuleByRRULE() 982 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE() 996 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE() 999 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE() 1001 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() [all …]
|
D | Calendar.java | 3745 protected int weekNumber(int desiredDay, int dayOfPeriod, int dayOfWeek) in weekNumber() argument 3750 int periodStartDayOfWeek = (dayOfWeek - getFirstDayOfWeek() - dayOfPeriod + 1) % 7; in weekNumber() 3795 protected final int weekNumber(int dayOfPeriod, int dayOfWeek) in weekNumber() argument 3797 return weekNumber(dayOfPeriod, dayOfPeriod, dayOfWeek); in weekNumber() 4358 public int getDayOfWeekType(int dayOfWeek) { in getDayOfWeekType() argument 4359 if (dayOfWeek < SUNDAY || dayOfWeek > SATURDAY) { in getDayOfWeekType() 4363 if (dayOfWeek != weekendOnset) in getDayOfWeekType() 4368 if (dayOfWeek < weekendOnset || dayOfWeek > weekendCease) { in getDayOfWeekType() 4372 if (dayOfWeek > weekendCease && dayOfWeek < weekendOnset) { in getDayOfWeekType() 4376 if (dayOfWeek == weekendOnset) { in getDayOfWeekType() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | simpletz.h | 311 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, 357 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, 405 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 425 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 450 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, 477 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, 525 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 546 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 570 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 588 uint8_t dayOfWeek, int32_t milliseconds, [all …]
|
D | vtzone.h | 213 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 235 uint8_t dayOfWeek, int32_t millis, 392 int32_t month, int32_t weekInMonth, int32_t dayOfWeek, 396 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 399 int32_t dayOfWeek, int32_t numDays, 403 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
D | dtrule.h | 87 DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek, 105 DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, UBool after,
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Grego.java | 107 public static int dayOfWeek(long day) { in dayOfWeek() method in Grego 110 int dayOfWeek = (int)remainder[0]; in dayOfWeek() local 111 dayOfWeek = (dayOfWeek == 0) ? 7 : dayOfWeek; in dayOfWeek() 112 return dayOfWeek; in dayOfWeek() 145 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2) in dayToFields() local 146 if (dayOfWeek < 1 /* Sunday */) { in dayToFields() 147 dayOfWeek += 7; in dayToFields() 154 fields[3] = dayOfWeek; in dayToFields()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Grego.java | 109 public static int dayOfWeek(long day) { in dayOfWeek() method in Grego 112 int dayOfWeek = (int)remainder[0]; in dayOfWeek() local 113 dayOfWeek = (dayOfWeek == 0) ? 7 : dayOfWeek; in dayOfWeek() 114 return dayOfWeek; in dayOfWeek() 147 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2) in dayToFields() local 148 if (dayOfWeek < 1 /* Sunday */) { in dayToFields() 149 dayOfWeek += 7; in dayToFields() 156 fields[3] = dayOfWeek; in dayToFields()
|
/external/icu/icu4c/source/i18n/ |
D | simpletz.cpp | 307 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setStartRule() argument 312 startDayOfWeek = (int8_t)dayOfWeek; in setStartRule() 331 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setStartRule() argument 335 -dayOfWeek, time, mode, status); in setStartRule() 359 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setEndRule() argument 364 endDayOfWeek = (int8_t)dayOfWeek; in setEndRule() 383 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setEndRule() argument 387 -dayOfWeek, time, mode, status); in setEndRule() 394 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument 408 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset() [all …]
|
D | dtrule.cpp | 30 int32_t dayOfWeek, in DateTimeRule() argument 33 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(mil… in DateTimeRule() 39 int32_t dayOfWeek, in DateTimeRule() argument 44 …fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(milli… in DateTimeRule()
|
D | vtzone.cpp | 539 int32_t month, dayOfWeek, nthDayOfWeek, dayOfMonth = 0; in createRuleByRRULE() local 544 parseRRULE(rrule, month, dayOfWeek, nthDayOfWeek, days, daysCount, until, status); in createRuleByRRULE() 553 if (daysCount != 7 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE() 590 if (month == -1 || dayOfWeek == 0 || daysCount == 0) { in createRuleByRRULE() 639 if (tmp_dayOfWeek != dayOfWeek) { in createRuleByRRULE() 689 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE() 703 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE() 706 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE() 708 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE() 709 } else if (dayOfWeek != 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE() [all …]
|
D | vzone.cpp | 118 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { in vzone_getOffset() argument 119 … return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); in vzone_getOffset() 124 uint8_t dayOfWeek, int32_t millis, in vzone_getOffset2() argument 126 …return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLen… in vzone_getOffset2()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | TestCase.java | 92 int dayOfWeek, in TestCase() argument 101 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase() 126 int dayOfWeek, in TestCase() argument 138 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase()
|
D | ChineseTestCase.java | 33 boolean isLeapMonth, int dayOfMonth, int dayOfWeek) { in ChineseTestCase() argument 42 set(Calendar.DAY_OF_WEEK, dayOfWeek); in ChineseTestCase()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | TestCase.java | 91 int dayOfWeek, in TestCase() argument 100 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase() 125 int dayOfWeek, in TestCase() argument 137 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase()
|
D | ChineseTestCase.java | 32 boolean isLeapMonth, int dayOfMonth, int dayOfWeek) { in ChineseTestCase() argument 41 set(Calendar.DAY_OF_WEEK, dayOfWeek); in ChineseTestCase()
|