/external/icu/icu4c/source/i18n/ |
D | dtrule.cpp | 18 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimeRule) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument 20 DateTimeRule::DateTimeRule(int32_t month, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 25 fDateRuleType(DateTimeRule::DOM), fTimeRuleType(timeType) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 28 DateTimeRule::DateTimeRule(int32_t month, in DateTimeRule() function in DateTimeRule 34 fDateRuleType(DateTimeRule::DOW), fTimeRuleType(timeType) { in DateTimeRule() 37 DateTimeRule::DateTimeRule(int32_t month, in DateTimeRule() function in DateTimeRule 47 fDateRuleType = DateTimeRule::DOW_GEQ_DOM; in DateTimeRule() 49 fDateRuleType = DateTimeRule::DOW_LEQ_DOM; in DateTimeRule() 53 DateTimeRule::DateTimeRule(const DateTimeRule& source) in DateTimeRule() function in DateTimeRule 60 DateTimeRule::~DateTimeRule() { in ~DateTimeRule() [all …]
|
D | tzrule.cpp | 184 const DateTimeRule& dateTimeRule, in AnnualTimeZoneRule() 187 : TimeZoneRule(name, rawOffset, dstSavings), fDateTimeRule(new DateTimeRule(dateTimeRule)), in AnnualTimeZoneRule() 194 DateTimeRule* dateTimeRule, in AnnualTimeZoneRule() 202 : TimeZoneRule(source), fDateTimeRule(new DateTimeRule(*(source.fDateTimeRule))), in AnnualTimeZoneRule() 246 const DateTimeRule* 270 DateTimeRule::DateRuleType type = fDateTimeRule->getDateRuleType(); in getStartInYear() 271 if (type == DateTimeRule::DOM) { in getStartInYear() 275 if (type == DateTimeRule::DOW) { in getStartInYear() 290 if (type == DateTimeRule::DOW_LEQ_DOM) { in getStartInYear() 310 if (fDateTimeRule->getTimeRuleType() != DateTimeRule::UTC_TIME) { in getStartInYear() [all …]
|
D | simpletz.cpp | 1106 DateTimeRule* dtRule; in initTransitionRules() 1107 DateTimeRule::TimeRuleType timeRuleType; in initTransitionRules() 1111 timeRuleType = (startTimeMode == STANDARD_TIME) ? DateTimeRule::STANDARD_TIME : in initTransitionRules() 1112 ((startTimeMode == UTC_TIME) ? DateTimeRule::UTC_TIME : DateTimeRule::WALL_TIME); in initTransitionRules() 1115 dtRule = new DateTimeRule(startMonth, startDay, startTime, timeRuleType); in initTransitionRules() 1118 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, startTime, timeRuleType); in initTransitionRules() 1121 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, true, startTime, timeRuleType); in initTransitionRules() 1124 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, false, startTime, timeRuleType); in initTransitionRules() 1150 timeRuleType = (endTimeMode == STANDARD_TIME) ? DateTimeRule::STANDARD_TIME : in initTransitionRules() 1151 ((endTimeMode == UTC_TIME) ? DateTimeRule::UTC_TIME : DateTimeRule::WALL_TIME); in initTransitionRules() [all …]
|
D | dangical.cpp | 110 …e(UNICODE_STRING_SIMPLE("Korean 1897"), 7*kOneHour, 0, millis1897, 1, DateTimeRule::STANDARD_TIME); in initDangiCalZoneAstroCalc() 111 …CODE_STRING_SIMPLE("Korean 1898-1911"), 8*kOneHour, 0, millis1898, 1, DateTimeRule::STANDARD_TIME); in initDangiCalZoneAstroCalc() 112 …(UNICODE_STRING_SIMPLE("Korean 1912-"), 9*kOneHour, 0, millis1912, 1, DateTimeRule::STANDARD_TIME); in initDangiCalZoneAstroCalc()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | dtrule.h | 29 class U_I18N_API DateTimeRule : public UObject { 69 DateTimeRule(int32_t month, int32_t dayOfMonth, 87 DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek, 105 DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, UBool after, 113 DateTimeRule(const DateTimeRule& source); 119 ~DateTimeRule(); 127 DateTimeRule* clone(void) const; 134 DateTimeRule& operator=(const DateTimeRule& right); 143 UBool operator==(const DateTimeRule& that) const; 152 UBool operator!=(const DateTimeRule& that) const;
|
D | tzrule.h | 401 const DateTimeRule& dateTimeRule, int32_t startYear, int32_t endYear); 420 DateTimeRule* dateTimeRule, int32_t startYear, int32_t endYear); 474 const DateTimeRule* getRule(void) const; 578 DateTimeRule* fDateTimeRule; 636 const UDate* startTimes, int32_t numStartTimes, DateTimeRule::TimeRuleType timeRuleType); 692 DateTimeRule::TimeRuleType getTimeType(void) const; 788 DateTimeRule::TimeRuleType fTimeRuleType;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneRuleTest.java | 23 import android.icu.util.DateTimeRule; 59 DateTimeRule dtr; in TestSimpleRuleBasedTimeZone() 70 dtr = new DateTimeRule(Calendar.SEPTEMBER, 30, Calendar.SATURDAY, false, in TestSimpleRuleBasedTimeZone() 71 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 76 dtr = new DateTimeRule(Calendar.FEBRUARY, 2, Calendar.SUNDAY, in TestSimpleRuleBasedTimeZone() 77 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() 85 dtr = new DateTimeRule(Calendar.SEPTEMBER, -1, Calendar.SATURDAY, in TestSimpleRuleBasedTimeZone() 86 1*HOUR, DateTimeRule.WALL_TIME); // Last Sunday in September at 1AM wall time in TestSimpleRuleBasedTimeZone() 89 dtr = new DateTimeRule(Calendar.FEBRUARY, 8, Calendar.SUNDAY, true, in TestSimpleRuleBasedTimeZone() 90 1*HOUR, DateTimeRule.WALL_TIME); // SUN>=8 in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() [all …]
|
D | TimeZoneOffsetLocalTest.java | 17 import android.icu.util.DateTimeRule; 132 DateTimeRule dtr; in TestGetOffsetAroundTransition() 136 dtr = new DateTimeRule(Calendar.APRIL, 1, Calendar.SUNDAY, in TestGetOffsetAroundTransition() 137 2*HOUR, DateTimeRule.WALL_TIME); // 1st Sunday in April, at 2AM wall time in TestGetOffsetAroundTransition() 143 dtr = new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, in TestGetOffsetAroundTransition() 144 2*HOUR, DateTimeRule.WALL_TIME); // last Sunday in October, at 2AM wall time in TestGetOffsetAroundTransition()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneRuleTest.java | 22 import com.ibm.icu.util.DateTimeRule; 55 DateTimeRule dtr; in TestSimpleRuleBasedTimeZone() 66 dtr = new DateTimeRule(Calendar.SEPTEMBER, 30, Calendar.SATURDAY, false, in TestSimpleRuleBasedTimeZone() 67 1*HOUR, DateTimeRule.WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 72 dtr = new DateTimeRule(Calendar.FEBRUARY, 2, Calendar.SUNDAY, in TestSimpleRuleBasedTimeZone() 73 1*HOUR, DateTimeRule.WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() 81 dtr = new DateTimeRule(Calendar.SEPTEMBER, -1, Calendar.SATURDAY, in TestSimpleRuleBasedTimeZone() 82 1*HOUR, DateTimeRule.WALL_TIME); // Last Sunday in September at 1AM wall time in TestSimpleRuleBasedTimeZone() 85 dtr = new DateTimeRule(Calendar.FEBRUARY, 8, Calendar.SUNDAY, true, in TestSimpleRuleBasedTimeZone() 86 1*HOUR, DateTimeRule.WALL_TIME); // SUN>=8 in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() [all …]
|
D | TimeZoneOffsetLocalTest.java | 16 import com.ibm.icu.util.DateTimeRule; 128 DateTimeRule dtr; in TestGetOffsetAroundTransition() 132 dtr = new DateTimeRule(Calendar.APRIL, 1, Calendar.SUNDAY, in TestGetOffsetAroundTransition() 133 2*HOUR, DateTimeRule.WALL_TIME); // 1st Sunday in April, at 2AM wall time in TestGetOffsetAroundTransition() 139 dtr = new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, in TestGetOffsetAroundTransition() 140 2*HOUR, DateTimeRule.WALL_TIME); // last Sunday in October, at 2AM wall time in TestGetOffsetAroundTransition()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
D | SerializableTest.java | 28 import com.ibm.icu.util.DateTimeRule; 195 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 199 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 203 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 207 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME), 211 new DateTimeRule(Calendar.FEBRUARY, 23, 2*HOUR, DateTimeRule.WALL_TIME), 215 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 219 … new DateTimeRule(Calendar.APRIL, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 223 … new DateTimeRule(Calendar.MARCH, 8, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 252 DateTimeRule[] rules = new DateTimeRule[4]; in getTestObjects() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
D | SerializableTest.java | 29 import android.icu.util.DateTimeRule; 199 … new DateTimeRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 203 … new DateTimeRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 207 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 211 new DateTimeRule(Calendar.JANUARY, 6, 2*HOUR, DateTimeRule.WALL_TIME), 215 new DateTimeRule(Calendar.FEBRUARY, 23, 2*HOUR, DateTimeRule.WALL_TIME), 219 … new DateTimeRule(Calendar.APRIL, -1, Calendar.SUNDAY, 2*HOUR, DateTimeRule.WALL_TIME), 223 … new DateTimeRule(Calendar.APRIL, 1, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 227 … new DateTimeRule(Calendar.MARCH, 8, Calendar.SUNDAY, true, 2*HOUR, DateTimeRule.WALL_TIME), 256 DateTimeRule[] rules = new DateTimeRule[4]; in getTestObjects() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | tzrulets.cpp | 160 DateTimeRule *dtr; in TestSimpleRuleBasedTimeZone() 171 dtr = new DateTimeRule(UCAL_SEPTEMBER, 30, UCAL_SATURDAY, FALSE, in TestSimpleRuleBasedTimeZone() 172 1*HOUR, DateTimeRule::WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone() 180 dtr = new DateTimeRule(UCAL_FEBRUARY, 2, UCAL_SUNDAY, in TestSimpleRuleBasedTimeZone() 181 1*HOUR, DateTimeRule::WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() 196 dtr = new DateTimeRule(UCAL_SEPTEMBER, -1, UCAL_SATURDAY, in TestSimpleRuleBasedTimeZone() 197 1*HOUR, DateTimeRule::WALL_TIME); // Last Sunday in September at 1AM wall time in TestSimpleRuleBasedTimeZone() 203 dtr = new DateTimeRule(UCAL_FEBRUARY, 8, UCAL_SUNDAY, true, in TestSimpleRuleBasedTimeZone() 204 1*HOUR, DateTimeRule::WALL_TIME); // SUN>=8 in February, at 1AM wall time in TestSimpleRuleBasedTimeZone() 217 dtr = new DateTimeRule(UCAL_SEPTEMBER, 30, UCAL_SATURDAY, false, in TestSimpleRuleBasedTimeZone() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | AnnualTimeZoneRule.java | 30 private final DateTimeRule dateTimeRule; 50 DateTimeRule dateTimeRule, int startYear, int endYear) { in AnnualTimeZoneRule() 63 public DateTimeRule getRule() { in getRule() 107 if (type == DateTimeRule.DOM) { in getStartInYear() 111 if (type == DateTimeRule.DOW) { in getStartInYear() 125 if (type == DateTimeRule.DOW_LEQ_DOM) { in getStartInYear() 146 if (dateTimeRule.getTimeRuleType() != DateTimeRule.UTC_TIME) { in getStartInYear() 149 if (dateTimeRule.getTimeRuleType() == DateTimeRule.WALL_TIME) { in getStartInYear()
|
D | VTimeZone.java | 788 DateTimeRule.UTC_TIME); in parse() 995 DateTimeRule adtr = null; in createRuleByRRULE() 998 adtr = new DateTimeRule(month, dayOfMonth, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() 1001 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() 1005 … adtr = new DateTimeRule(month, dayOfMonth, dayOfWeek, true, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() 1204 … return new TimeArrayTimeZoneRule(tzname, rawOffset, dstSavings, times, DateTimeRule.UTC_TIME); in createRuleByRDATE() 1454 …atic boolean isEquivalentDateRule(int month, int weekInMonth, int dayOfWeek, DateTimeRule dtrule) { in isEquivalentDateRule() 1458 if (dtrule.getTimeRuleType() != DateTimeRule.WALL_TIME) { in isEquivalentDateRule() 1462 if (dtrule.getDateRuleType() == DateTimeRule.DOW in isEquivalentDateRule() 1467 if (dtrule.getDateRuleType() == DateTimeRule.DOW_GEQ_DOM) { in isEquivalentDateRule() [all …]
|
D | SimpleTimeZone.java | 1307 DateTimeRule dtRule = null; in initTransitionRules() 1312 timeRuleType = (startTimeMode == STANDARD_TIME) ? DateTimeRule.STANDARD_TIME : in initTransitionRules() 1313 ((startTimeMode == UTC_TIME) ? DateTimeRule.UTC_TIME : DateTimeRule.WALL_TIME); in initTransitionRules() 1316 dtRule = new DateTimeRule(startMonth, startDay, startTime, timeRuleType); in initTransitionRules() 1319 dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, startTime, in initTransitionRules() 1323 dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, true, startTime, in initTransitionRules() 1327 dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, false, startTime, in initTransitionRules() 1339 timeRuleType = (endTimeMode == STANDARD_TIME) ? DateTimeRule.STANDARD_TIME : in initTransitionRules() 1340 ((endTimeMode == UTC_TIME) ? DateTimeRule.UTC_TIME : DateTimeRule.WALL_TIME); in initTransitionRules() 1343 dtRule = new DateTimeRule(endMonth, endDay, endTime, timeRuleType); in initTransitionRules() [all …]
|
D | DateTimeRule.java | 19 public class DateTimeRule implements Serializable { class 85 public DateTimeRule(int month, int dayOfMonth, in DateTimeRule() method in DateTimeRule 113 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() method in DateTimeRule 141 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() method in DateTimeRule
|
D | BasicTimeZone.java | 302 if (timeType == DateTimeRule.STANDARD_TIME) { in getTimeZoneRules() 305 if (timeType == DateTimeRule.WALL_TIME) { in getTimeZoneRules() 399 DateTimeRule dtr = new DateTimeRule(dtfields[1], weekInMonth, dtfields[3], in getSimpleTimeZoneRulesNear() 400 dtfields[5], DateTimeRule.WALL_TIME); in getSimpleTimeZoneRulesNear() 431 dtr = new DateTimeRule(dtfields[1], weekInMonth, dtfields[3], in getSimpleTimeZoneRulesNear() 432 dtfields[5], DateTimeRule.WALL_TIME); in getSimpleTimeZoneRulesNear() 464 dtr = new DateTimeRule(dtfields[1], weekInMonth, dtfields[3], in getSimpleTimeZoneRulesNear() 465 dtfields[5], DateTimeRule.WALL_TIME); in getSimpleTimeZoneRulesNear()
|
D | DangiCalendar.java | 69 DateTimeRule.STANDARD_TIME); 71 DateTimeRule.STANDARD_TIME); 73 DateTimeRule.STANDARD_TIME);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | AnnualTimeZoneRule.java | 30 private final DateTimeRule dateTimeRule; 52 DateTimeRule dateTimeRule, int startYear, int endYear) { in AnnualTimeZoneRule() 67 public DateTimeRule getRule() { in getRule() 117 if (type == DateTimeRule.DOM) { in getStartInYear() 121 if (type == DateTimeRule.DOW) { in getStartInYear() 135 if (type == DateTimeRule.DOW_LEQ_DOM) { in getStartInYear() 156 if (dateTimeRule.getTimeRuleType() != DateTimeRule.UTC_TIME) { in getStartInYear() 159 if (dateTimeRule.getTimeRuleType() == DateTimeRule.WALL_TIME) { in getStartInYear()
|
D | VTimeZone.java | 819 DateTimeRule.UTC_TIME); in parse() 1026 DateTimeRule adtr = null; in createRuleByRRULE() 1029 adtr = new DateTimeRule(month, dayOfMonth, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() 1032 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() 1036 … adtr = new DateTimeRule(month, dayOfMonth, dayOfWeek, true, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE() 1235 … return new TimeArrayTimeZoneRule(tzname, rawOffset, dstSavings, times, DateTimeRule.UTC_TIME); in createRuleByRDATE() 1485 …atic boolean isEquivalentDateRule(int month, int weekInMonth, int dayOfWeek, DateTimeRule dtrule) { in isEquivalentDateRule() 1489 if (dtrule.getTimeRuleType() != DateTimeRule.WALL_TIME) { in isEquivalentDateRule() 1493 if (dtrule.getDateRuleType() == DateTimeRule.DOW in isEquivalentDateRule() 1498 if (dtrule.getDateRuleType() == DateTimeRule.DOW_GEQ_DOM) { in isEquivalentDateRule() [all …]
|
D | SimpleTimeZone.java | 1338 DateTimeRule dtRule = null; in initTransitionRules() 1343 timeRuleType = (startTimeMode == STANDARD_TIME) ? DateTimeRule.STANDARD_TIME : in initTransitionRules() 1344 ((startTimeMode == UTC_TIME) ? DateTimeRule.UTC_TIME : DateTimeRule.WALL_TIME); in initTransitionRules() 1347 dtRule = new DateTimeRule(startMonth, startDay, startTime, timeRuleType); in initTransitionRules() 1350 dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, startTime, in initTransitionRules() 1354 dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, true, startTime, in initTransitionRules() 1358 dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, false, startTime, in initTransitionRules() 1370 timeRuleType = (endTimeMode == STANDARD_TIME) ? DateTimeRule.STANDARD_TIME : in initTransitionRules() 1371 ((endTimeMode == UTC_TIME) ? DateTimeRule.UTC_TIME : DateTimeRule.WALL_TIME); in initTransitionRules() 1374 dtRule = new DateTimeRule(endMonth, endDay, endTime, timeRuleType); in initTransitionRules() [all …]
|
D | DateTimeRule.java | 18 public class DateTimeRule implements Serializable { class 100 public DateTimeRule(int month, int dayOfMonth, in DateTimeRule() method in DateTimeRule 130 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() method in DateTimeRule 160 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() method in DateTimeRule
|
D | BasicTimeZone.java | 313 if (timeType == DateTimeRule.STANDARD_TIME) { in getTimeZoneRules() 316 if (timeType == DateTimeRule.WALL_TIME) { in getTimeZoneRules() 412 DateTimeRule dtr = new DateTimeRule(dtfields[1], weekInMonth, dtfields[3], in getSimpleTimeZoneRulesNear() 413 dtfields[5], DateTimeRule.WALL_TIME); in getSimpleTimeZoneRulesNear() 444 dtr = new DateTimeRule(dtfields[1], weekInMonth, dtfields[3], in getSimpleTimeZoneRulesNear() 445 dtfields[5], DateTimeRule.WALL_TIME); in getSimpleTimeZoneRulesNear() 477 dtr = new DateTimeRule(dtfields[1], weekInMonth, dtfields[3], in getSimpleTimeZoneRulesNear() 478 dtfields[5], DateTimeRule.WALL_TIME); in getSimpleTimeZoneRulesNear()
|
D | DangiCalendar.java | 67 DateTimeRule.STANDARD_TIME); 69 DateTimeRule.STANDARD_TIME); 71 DateTimeRule.STANDARD_TIME);
|