/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | SimpleHoliday.java | 112 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name) in SimpleHoliday() argument 115 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 116 dayOfWeek > 0)); in SimpleHoliday() 123 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument 128 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 129 dayOfWeek > 0))); in SimpleHoliday() 137 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument 142 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 143 dayOfWeek > 0))); in SimpleHoliday()
|
D | DateTimeRule.java | 83 private final int dayOfWeek; field in DateTimeRule 112 this.dayOfWeek = 0; in DateTimeRule() 132 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() argument 137 this.dayOfWeek = dayOfWeek; in DateTimeRule() 162 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() argument 167 this.dayOfWeek = dayOfWeek; in DateTimeRule() 219 return dayOfWeek; in getRuleDayOfWeek() 278 sDate = Integer.toString(weekInMonth) + DOWSTR[dayOfWeek]; in toString() 281 sDate = DOWSTR[dayOfWeek] + ">=" + Integer.toString(dayOfMonth); in toString() 284 sDate = DOWSTR[dayOfWeek] + "<=" + Integer.toString(dayOfMonth); in toString()
|
D | SimpleDateRule.java | 36 this.dayOfWeek = 0; in SimpleDateRule() 44 this.dayOfWeek = 0; in SimpleDateRule() 60 public SimpleDateRule(int month, int dayOfMonth, int dayOfWeek, boolean after) in SimpleDateRule() argument 64 this.dayOfWeek = after ? dayOfWeek : -dayOfWeek; in SimpleDateRule() 190 if (dayOfWeek != 0) { in computeInYear() 198 if (dayOfWeek > 0) { in computeInYear() 201 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear() 206 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear() 228 private int dayOfWeek; field in SimpleDateRule
|
D | SimpleTimeZone.java | 318 public void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, in setStartRule() argument 324 getSTZInfo().setStart(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setStartRule() 325 setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME); in setStartRule() 366 private void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time, int mode) { in setStartRule() argument 371 startDayOfWeek = dayOfWeek; in setStartRule() 417 public void setStartRule(int month, int dayOfMonth, int dayOfWeek, int time, boolean after) { in setStartRule() argument 422 getSTZInfo().setStart(month, -1, dayOfWeek, time, dayOfMonth, after); in setStartRule() 424 -dayOfWeek, time, WALL_TIME); in setStartRule() 447 public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) { in setEndRule() argument 452 getSTZInfo().setEnd(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setEndRule() [all …]
|
D | VTimeZone.java | 85 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument 87 return tz.getOffset(era, year, month, day, dayOfWeek, milliseconds); in getOffset() 879 int dayOfWeek = ruleFields[1]; in createRuleByRRULE() local 888 if (ruleFields.length != 10 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE() 923 if (month == -1 || dayOfWeek == 0 || dayOfMonth == 0) { in createRuleByRRULE() 969 if (fields[1] != dayOfWeek) { in createRuleByRRULE() 1019 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE() 1033 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE() 1036 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE() 1038 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() [all …]
|
D | Calendar.java | 3905 protected int weekNumber(int desiredDay, int dayOfPeriod, int dayOfWeek) in weekNumber() argument 3910 int periodStartDayOfWeek = (dayOfWeek - getFirstDayOfWeek() - dayOfPeriod + 1) % 7; in weekNumber() 3956 protected final int weekNumber(int dayOfPeriod, int dayOfWeek) in weekNumber() argument 3958 return weekNumber(dayOfPeriod, dayOfPeriod, dayOfWeek); in weekNumber() 4545 public int getDayOfWeekType(int dayOfWeek) { in getDayOfWeekType() argument 4546 if (dayOfWeek < SUNDAY || dayOfWeek > SATURDAY) { in getDayOfWeekType() 4550 if (dayOfWeek != weekendOnset) in getDayOfWeekType() 4555 if (dayOfWeek < weekendOnset || dayOfWeek > weekendCease) { in getDayOfWeekType() 4559 if (dayOfWeek > weekendCease && dayOfWeek < weekendOnset) { in getDayOfWeekType() 4563 if (dayOfWeek == weekendOnset) { in getDayOfWeekType() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | SimpleHoliday.java | 109 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name) in SimpleHoliday() argument 112 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 113 dayOfWeek > 0)); in SimpleHoliday() 119 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument 124 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 125 dayOfWeek > 0))); in SimpleHoliday() 132 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument 137 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday() 138 dayOfWeek > 0))); in SimpleHoliday()
|
D | DateTimeRule.java | 70 private final int dayOfWeek; field in DateTimeRule 97 this.dayOfWeek = 0; in DateTimeRule() 115 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() argument 120 this.dayOfWeek = dayOfWeek; in DateTimeRule() 143 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() argument 148 this.dayOfWeek = dayOfWeek; in DateTimeRule() 192 return dayOfWeek; in getRuleDayOfWeek() 243 sDate = Integer.toString(weekInMonth) + DOWSTR[dayOfWeek]; in toString() 246 sDate = DOWSTR[dayOfWeek] + ">=" + Integer.toString(dayOfMonth); in toString() 249 sDate = DOWSTR[dayOfWeek] + "<=" + Integer.toString(dayOfMonth); in toString()
|
D | SimpleDateRule.java | 36 this.dayOfWeek = 0; in SimpleDateRule() 44 this.dayOfWeek = 0; in SimpleDateRule() 59 public SimpleDateRule(int month, int dayOfMonth, int dayOfWeek, boolean after) in SimpleDateRule() argument 63 this.dayOfWeek = after ? dayOfWeek : -dayOfWeek; in SimpleDateRule() 185 if (dayOfWeek != 0) { in computeInYear() 193 if (dayOfWeek > 0) { in computeInYear() 196 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear() 201 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear() 222 private int dayOfWeek; field in SimpleDateRule
|
D | SimpleTimeZone.java | 306 public void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, in setStartRule() argument 312 getSTZInfo().setStart(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setStartRule() 313 setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME); in setStartRule() 354 private void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time, int mode) { in setStartRule() argument 359 startDayOfWeek = dayOfWeek; in setStartRule() 403 public void setStartRule(int month, int dayOfMonth, int dayOfWeek, int time, boolean after) { in setStartRule() argument 408 getSTZInfo().setStart(month, -1, dayOfWeek, time, dayOfMonth, after); in setStartRule() 410 -dayOfWeek, time, WALL_TIME); in setStartRule() 432 public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) { in setEndRule() argument 437 getSTZInfo().setEnd(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setEndRule() [all …]
|
D | VTimeZone.java | 81 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument 83 return tz.getOffset(era, year, month, day, dayOfWeek, milliseconds); in getOffset() 848 int dayOfWeek = ruleFields[1]; in createRuleByRRULE() local 857 if (ruleFields.length != 10 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE() 892 if (month == -1 || dayOfWeek == 0 || dayOfMonth == 0) { in createRuleByRRULE() 938 if (fields[1] != dayOfWeek) { in createRuleByRRULE() 988 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE() 1002 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE() 1005 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE() 1007 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() [all …]
|
D | Calendar.java | 3804 protected int weekNumber(int desiredDay, int dayOfPeriod, int dayOfWeek) in weekNumber() argument 3809 int periodStartDayOfWeek = (dayOfWeek - getFirstDayOfWeek() - dayOfPeriod + 1) % 7; in weekNumber() 3854 protected final int weekNumber(int dayOfPeriod, int dayOfWeek) in weekNumber() argument 3856 return weekNumber(dayOfPeriod, dayOfPeriod, dayOfWeek); in weekNumber() 4417 public int getDayOfWeekType(int dayOfWeek) { in getDayOfWeekType() argument 4418 if (dayOfWeek < SUNDAY || dayOfWeek > SATURDAY) { in getDayOfWeekType() 4422 if (dayOfWeek != weekendOnset) in getDayOfWeekType() 4427 if (dayOfWeek < weekendOnset || dayOfWeek > weekendCease) { in getDayOfWeekType() 4431 if (dayOfWeek > weekendCease && dayOfWeek < weekendOnset) { in getDayOfWeekType() 4435 if (dayOfWeek == weekendOnset) { in getDayOfWeekType() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | simpletz.h | 313 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, 359 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, 407 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 427 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 452 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, 479 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, 527 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 548 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 572 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 590 uint8_t dayOfWeek, int32_t milliseconds, [all …]
|
D | vtzone.h | 215 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const; 237 uint8_t dayOfWeek, int32_t millis, 394 int32_t month, int32_t weekInMonth, int32_t dayOfWeek, 398 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, 401 int32_t dayOfWeek, int32_t numDays, 405 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Grego.java | 111 public static int dayOfWeek(long day) { in dayOfWeek() method in Grego 114 int dayOfWeek = (int)remainder[0]; in dayOfWeek() local 115 dayOfWeek = (dayOfWeek == 0) ? 7 : dayOfWeek; in dayOfWeek() 116 return dayOfWeek; in dayOfWeek() 149 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2) in dayToFields() local 150 if (dayOfWeek < 1 /* Sunday */) { in dayToFields() 151 dayOfWeek += 7; in dayToFields() 158 fields[3] = dayOfWeek; in dayToFields()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/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 | 309 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setStartRule() argument 314 startDayOfWeek = (int8_t)dayOfWeek; in setStartRule() 333 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setStartRule() argument 337 -dayOfWeek, time, mode, status); in setStartRule() 361 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setEndRule() argument 366 endDayOfWeek = (int8_t)dayOfWeek; in setEndRule() 385 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setEndRule() argument 389 -dayOfWeek, time, mode, status); in setEndRule() 396 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument 410 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset() [all …]
|
D | dtrule.cpp | 32 int32_t dayOfWeek, in DateTimeRule() argument 35 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(mil… in DateTimeRule() 41 int32_t dayOfWeek, in DateTimeRule() argument 46 …fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(milli… in DateTimeRule()
|
D | vtzone.cpp | 541 int32_t month, dayOfWeek, nthDayOfWeek, dayOfMonth = 0; in createRuleByRRULE() local 546 parseRRULE(rrule, month, dayOfWeek, nthDayOfWeek, days, daysCount, until, status); in createRuleByRRULE() 555 if (daysCount != 7 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE() 592 if (month == -1 || dayOfWeek == 0 || daysCount == 0) { in createRuleByRRULE() 641 if (tmp_dayOfWeek != dayOfWeek) { in createRuleByRRULE() 691 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE() 705 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE() 708 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE() 710 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE() 711 } else if (dayOfWeek != 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE() [all …]
|
D | vzone.cpp | 120 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { in vzone_getOffset() argument 121 … return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); in vzone_getOffset() 126 uint8_t dayOfWeek, int32_t millis, in vzone_getOffset2() argument 128 …return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLen… in vzone_getOffset2()
|
D | calendar.cpp | 1567 int8_t dayOfWeek = (int8_t) uprv_fmod(julian + 1, 7); in julianDayToDayOfWeek() local 1569 uint8_t result = (uint8_t)(dayOfWeek + ((dayOfWeek < 0) ? (7+UCAL_SUNDAY ) : UCAL_SUNDAY)); in julianDayToDayOfWeek() 1633 int32_t dayOfWeek = fFields[UCAL_DAY_OF_WEEK]; in computeWeekFields() local 1646 int32_t relDow = (dayOfWeek + 7 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields() 1647 int32_t relDowJan1 = (dayOfWeek - dayOfYear + 7001 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields() 1662 woy = weekNumber(prevDoy, dayOfWeek); in computeWeekFields() 1689 fFields[UCAL_WEEK_OF_MONTH] = weekNumber(dayOfMonth, dayOfWeek); in computeWeekFields() 1698 int32_t Calendar::weekNumber(int32_t desiredDay, int32_t dayOfPeriod, int32_t dayOfWeek) in weekNumber() argument 1703 int32_t periodStartDayOfWeek = (dayOfWeek - getFirstDayOfWeek() - dayOfPeriod + 1) % 7; in weekNumber() 2528 Calendar::getDayOfWeekType(UCalendarDaysOfWeek dayOfWeek, UErrorCode &status) const in getDayOfWeekType() argument [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | TestCase.java | 96 int dayOfWeek, in TestCase() argument 105 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase() 130 int dayOfWeek, in TestCase() argument 142 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase()
|
D | ChineseTestCase.java | 37 boolean isLeapMonth, int dayOfMonth, int dayOfWeek) { in ChineseTestCase() argument 46 set(Calendar.DAY_OF_WEEK, dayOfWeek); in ChineseTestCase()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | TestCase.java | 93 int dayOfWeek, in TestCase() argument 102 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase() 127 int dayOfWeek, in TestCase() argument 139 set(Calendar.DAY_OF_WEEK, dayOfWeek); in TestCase()
|
D | ChineseTestCase.java | 34 boolean isLeapMonth, int dayOfMonth, int dayOfWeek) { in ChineseTestCase() argument 43 set(Calendar.DAY_OF_WEEK, dayOfWeek); in ChineseTestCase()
|