Home
last modified time | relevance | path

Searched refs:TimeZoneRule (Results 1 – 25 of 60) sorted by relevance

123

/external/icu/icu4c/source/i18n/
Dtzrule.cpp35 TimeZoneRule::TimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings) in TimeZoneRule() function in TimeZoneRule
39 TimeZoneRule::TimeZoneRule(const TimeZoneRule& source) in TimeZoneRule() function in TimeZoneRule
43 TimeZoneRule::~TimeZoneRule() { in ~TimeZoneRule()
46 TimeZoneRule&
47 TimeZoneRule::operator=(const TimeZoneRule& right) { in operator =()
57 TimeZoneRule::operator==(const TimeZoneRule& that) const { in operator ==()
66 TimeZoneRule::operator!=(const TimeZoneRule& that) const { in operator !=()
71 TimeZoneRule::getName(UnicodeString& name) const { in getName()
77 TimeZoneRule::getRawOffset(void) const { in getRawOffset()
82 TimeZoneRule::getDSTSavings(void) const { in getDSTSavings()
[all …]
Drbtz.cpp30 TimeZoneRule* from;
31 TimeZoneRule* to;
45 TimeZoneRule *r1 = (TimeZoneRule*)rules1->elementAt(i); in compareRules()
46 TimeZoneRule *r2 = (TimeZoneRule*)rules2->elementAt(i); in compareRules()
117 RuleBasedTimeZone::addTransitionRule(TimeZoneRule* rule, UErrorCode& status) { in addTransitionRule()
182 TimeZoneRule *curRule = fInitialRule; in complete()
202 TimeZoneRule *nextRule = NULL; in complete()
203 TimeZoneRule *r = NULL; in complete()
213 r = (TimeZoneRule*)fHistoricRules->elementAt(i); in complete()
249 TimeZoneRule *fr = (TimeZoneRule*)fFinalRules->elementAt(i); in complete()
[all …]
Dzrule.cpp34 delete (TimeZoneRule*)rule; in zrule_close()
39 return *(const TimeZoneRule*)rule1 == *(const TimeZoneRule*)rule2; in zrule_equals()
45 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); in zrule_getName()
53 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); in zrule_getRawOffset()
58 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); in zrule_getDSTSavings()
63 return ((TimeZoneRule*)rule1)->TimeZoneRule::isEquivalentTo(*(TimeZoneRule*)rule2); in zrule_isEquivalentTo()
Dtztrans.cpp23 TimeZoneTransition::TimeZoneTransition(UDate time, const TimeZoneRule& from, const TimeZoneRule& to) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
98 TimeZoneTransition::setFrom(const TimeZoneRule& from) { in setFrom()
106 TimeZoneTransition::adoptFrom(TimeZoneRule* from) { in adoptFrom()
114 TimeZoneTransition::setTo(const TimeZoneRule& to) { in setTo()
122 TimeZoneTransition::adoptTo(TimeZoneRule* to) { in adoptTo()
134 const TimeZoneRule*
139 const TimeZoneRule*
Dztrans.cpp30 return (ZTrans*) new TimeZoneTransition(time,*(TimeZoneRule*)from,*(TimeZoneRule*)to); in ztrans_open()
70 return ((TimeZoneTransition*)trans)->TimeZoneTransition::setFrom(*(TimeZoneRule*)from); in ztrans_setFrom()
75 return ((TimeZoneTransition*)trans)->TimeZoneTransition::adoptFrom((TimeZoneRule*)from); in ztrans_adoptFrom()
85 return ((TimeZoneTransition*)trans)->TimeZoneTransition::setTo(*(TimeZoneRule*)to); in ztrans_setTo()
90 return ((TimeZoneTransition*)trans)->TimeZoneTransition::adoptTo((TimeZoneRule*)to); in ztrans_adoptTo()
Dbasictz.cpp296 const TimeZoneRule **orgtrs = NULL; in getTimeZoneRulesAfter()
301 TimeZoneRule *r = NULL; in getTimeZoneRulesAfter()
321 orgtrs = (const TimeZoneRule**)uprv_malloc(sizeof(TimeZoneRule*)*ruleCount); in getTimeZoneRulesAfter()
364 r = (TimeZoneRule*)orgRules->elementAt(i); in getTimeZoneRulesAfter()
385 const TimeZoneRule *toRule = tzt.getTo(); in getTimeZoneRulesAfter()
387 r = (TimeZoneRule*)orgRules->elementAt(i); in getTimeZoneRulesAfter()
509 r = (TimeZoneRule*)orgRules->orphanElementAt(0); in getTimeZoneRulesAfter()
528 r = (TimeZoneRule*)orgRules->orphanElementAt(0); in getTimeZoneRulesAfter()
536 r = (TimeZoneRule*)filteredRules->orphanElementAt(0); in getTimeZoneRulesAfter()
Ddangical.cpp112TimeZoneRule* rule1897 = new TimeArrayTimeZoneRule(UNICODE_STRING_SIMPLE("Korean 1897"), 7*kOneHou… in initDangiCalZoneAstroCalc()
113TimeZoneRule* rule1898to1911 = new TimeArrayTimeZoneRule(UNICODE_STRING_SIMPLE("Korean 1898-1911")… in initDangiCalZoneAstroCalc()
114TimeZoneRule* ruleFrom1912 = new TimeArrayTimeZoneRule(UNICODE_STRING_SIMPLE("Korean 1912-"), 9*kO… in initDangiCalZoneAstroCalc()
/external/icu/icu4c/source/i18n/unicode/
Dtztrans.h26 class TimeZoneRule; variable
44 TimeZoneTransition(UDate time, const TimeZoneRule& from, const TimeZoneRule& to);
117 const TimeZoneRule* getFrom(void) const;
125 void setFrom(const TimeZoneRule& from);
133 void adoptFrom(TimeZoneRule* from);
141 void setTo(const TimeZoneRule& to);
149 void adoptTo(TimeZoneRule* to);
156 const TimeZoneRule* getTo(void) const;
160 TimeZoneRule* fFrom;
161 TimeZoneRule* fTo;
Dtzrule.h34 class U_I18N_API TimeZoneRule : public UObject {
40 virtual ~TimeZoneRule();
48 virtual TimeZoneRule* clone(void) const = 0;
57 virtual UBool operator==(const TimeZoneRule& that) const;
66 virtual UBool operator!=(const TimeZoneRule& that) const;
99 virtual UBool isEquivalentTo(const TimeZoneRule& other) const;
172 TimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings);
179 TimeZoneRule(const TimeZoneRule& source);
186 TimeZoneRule& operator=(const TimeZoneRule& right);
200 class U_I18N_API InitialTimeZoneRule : public TimeZoneRule {
[all …]
Drbtz.h104 void addTransitionRule(TimeZoneRule* rule, UErrorCode& status);
299 const TimeZoneRule* trsrules[], int32_t& trscount, UErrorCode& status) const;
312 TimeZoneRule* findRuleInFinal(UDate date, UBool local,
314 …UBool findNext(UDate base, UBool inclusive, UDate& time, TimeZoneRule*& from, TimeZoneRule*& to) c…
315 …UBool findPrev(UDate base, UBool inclusive, UDate& time, TimeZoneRule*& from, TimeZoneRule*& to) c…
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeZoneTransition.java18 private final TimeZoneRule from;
19 private final TimeZoneRule to;
32 public TimeZoneTransition(long time, TimeZoneRule from, TimeZoneRule to) { in TimeZoneTransition()
56 public TimeZoneRule getTo() { in getTo()
67 public TimeZoneRule getFrom() { in getFrom()
DRuleBasedTimeZone.java30 private List<TimeZoneRule> historicRules;
60 public void addTransitionRule(TimeZoneRule rule) { in addTransitionRule()
82 historicRules = new ArrayList<TimeZoneRule>(); in addTransitionRule()
218 TimeZoneRule toRule = tt.getTo(); in observesDaylightTime()
283 for (TimeZoneRule rule : historicRules) { in hasSameRules()
285 for (TimeZoneRule orule : otherRBTZ.historicRules) { in hasSameRules()
309 public TimeZoneRule[] getTimeZoneRules() { in getTimeZoneRules()
322 TimeZoneRule[] rules = new TimeZoneRule[size]; in getTimeZoneRules()
398 TimeZoneRule from = result.getFrom(); in getNextTransition()
399 TimeZoneRule to = result.getTo(); in getNextTransition()
[all …]
DBasicTimeZone.java221 public abstract TimeZoneRule[] getTimeZoneRules(); in getTimeZoneRules()
238 public TimeZoneRule[] getTimeZoneRules(long start) { in getTimeZoneRules()
239 TimeZoneRule[] all = getTimeZoneRules(); in getTimeZoneRules()
247 List<TimeZoneRule> filteredRules = new LinkedList<TimeZoneRule>(); in getTimeZoneRules()
250 TimeZoneRule initial = new InitialTimeZoneRule(tzt.getTo().getName(), in getTimeZoneRules()
273 TimeZoneRule toRule = tzt.getTo(); in getTimeZoneRules()
366 TimeZoneRule[] rules = filteredRules.toArray(new TimeZoneRule[filteredRules.size()]); in getTimeZoneRules()
392 public TimeZoneRule[] getSimpleTimeZoneRulesNear(long date) { in getSimpleTimeZoneRulesNear()
394 TimeZoneRule initialRule = null; in getSimpleTimeZoneRulesNear()
524 TimeZoneRule[] result = null; in getSimpleTimeZoneRulesNear()
[all …]
DTimeZoneRule.java24 public abstract class TimeZoneRule implements Serializable { class
43 public TimeZoneRule(String name, int rawOffset, int dstSavings) { in TimeZoneRule() method in TimeZoneRule
93 public boolean isEquivalentTo(TimeZoneRule other) { in isEquivalentTo()
DDangiCalendar.java68TimeZoneRule rule1897 = new TimeArrayTimeZoneRule("Korean 1897", 7 * ONE_HOUR, 0, millis1897,
70TimeZoneRule rule1898to1911 = new TimeArrayTimeZoneRule("Korean 1898-1911", 8 * ONE_HOUR, 0, milli…
72TimeZoneRule ruleFrom1912 = new TimeArrayTimeZoneRule("Korean 1912-", 9 * ONE_HOUR, 0, millis1912,
DInitialTimeZoneRule.java20 public class InitialTimeZoneRule extends TimeZoneRule {
45 public boolean isEquivalentTo(TimeZoneRule other) { in isEquivalentTo()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DTimeZoneTransition.java20 private final TimeZoneRule from;
21 private final TimeZoneRule to;
32 public TimeZoneTransition(long time, TimeZoneRule from, TimeZoneRule to) { in TimeZoneTransition()
54 public TimeZoneRule getTo() { in getTo()
64 public TimeZoneRule getFrom() { in getFrom()
DRuleBasedTimeZone.java31 private List<TimeZoneRule> historicRules;
57 public void addTransitionRule(TimeZoneRule rule) { in addTransitionRule()
79 historicRules = new ArrayList<TimeZoneRule>(); in addTransitionRule()
202 TimeZoneRule toRule = tt.getTo(); in observesDaylightTime()
265 for (TimeZoneRule rule : historicRules) { in hasSameRules()
267 for (TimeZoneRule orule : otherRBTZ.historicRules) { in hasSameRules()
289 public TimeZoneRule[] getTimeZoneRules() { in getTimeZoneRules()
302 TimeZoneRule[] rules = new TimeZoneRule[size]; in getTimeZoneRules()
376 TimeZoneRule from = result.getFrom(); in getNextTransition()
377 TimeZoneRule to = result.getTo(); in getNextTransition()
[all …]
DBasicTimeZone.java214 public abstract TimeZoneRule[] getTimeZoneRules(); in getTimeZoneRules()
229 public TimeZoneRule[] getTimeZoneRules(long start) { in getTimeZoneRules()
230 TimeZoneRule[] all = getTimeZoneRules(); in getTimeZoneRules()
238 List<TimeZoneRule> filteredRules = new LinkedList<TimeZoneRule>(); in getTimeZoneRules()
241 TimeZoneRule initial = new InitialTimeZoneRule(tzt.getTo().getName(), in getTimeZoneRules()
264 TimeZoneRule toRule = tzt.getTo(); in getTimeZoneRules()
357 TimeZoneRule[] rules = filteredRules.toArray(new TimeZoneRule[filteredRules.size()]); in getTimeZoneRules()
381 public TimeZoneRule[] getSimpleTimeZoneRulesNear(long date) { in getSimpleTimeZoneRulesNear()
383 TimeZoneRule initialRule = null; in getSimpleTimeZoneRulesNear()
513 TimeZoneRule[] result = null; in getSimpleTimeZoneRulesNear()
[all …]
DTimeZoneRule.java26 public abstract class TimeZoneRule implements Serializable { class
43 public TimeZoneRule(String name, int rawOffset, int dstSavings) { in TimeZoneRule() method in TimeZoneRule
86 public boolean isEquivalentTo(TimeZoneRule other) { in isEquivalentTo()
DDangiCalendar.java70TimeZoneRule rule1897 = new TimeArrayTimeZoneRule("Korean 1897", 7 * ONE_HOUR, 0, millis1897,
72TimeZoneRule rule1898to1911 = new TimeArrayTimeZoneRule("Korean 1898-1911", 8 * ONE_HOUR, 0, milli…
74TimeZoneRule ruleFrom1912 = new TimeArrayTimeZoneRule("Korean 1912-", 9 * ONE_HOUR, 0, millis1912,
DInitialTimeZoneRule.java21 public class InitialTimeZoneRule extends TimeZoneRule {
42 public boolean isEquivalentTo(TimeZoneRule other) { in isEquivalentTo()
/external/cldr/tools/java/org/unicode/cldr/test/
DPrintTransitions.java11 import com.ibm.icu.util.TimeZoneRule;
48 TimeZoneRule from = tzt.getFrom(); in main()
49 TimeZoneRule to = tzt.getTo(); in main()
64 TimeZoneRule[] rules = tz.getTimeZoneRules(0); in main()
65 TimeZoneRule from = rules[0]; in main()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DOlsonTimeZone.java26 import com.ibm.icu.util.TimeZoneRule;
188 TimeZoneRule[] currentRules = getSimpleTimeZoneRulesNear(current); in setRawOffset()
981 TimeZoneRule to = historicRules[getInt(typeMapData[ttidx + 1])]; in getNextTransition()
982 TimeZoneRule from = historicRules[getInt(typeMapData[ttidx])]; in getNextTransition()
1033 TimeZoneRule to = historicRules[getInt(typeMapData[ttidx])]; in getPreviousTransition()
1034 TimeZoneRule from = historicRules[getInt(typeMapData[ttidx-1])]; in getPreviousTransition()
1053 public TimeZoneRule[] getTimeZoneRules() { in getTimeZoneRules()
1073 TimeZoneRule[] rules = new TimeZoneRule[size]; in getTimeZoneRules()
1087 TimeZoneRule[] stzr = finalZoneWithStartYear.getTimeZoneRules(); in getTimeZoneRules()
1185 TimeZoneRule firstFinalRule; in initTransitionRules()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DOlsonTimeZone.java27 import android.icu.util.TimeZoneRule;
190 TimeZoneRule[] currentRules = getSimpleTimeZoneRulesNear(current); in setRawOffset()
983 TimeZoneRule to = historicRules[getInt(typeMapData[ttidx + 1])]; in getNextTransition()
984 TimeZoneRule from = historicRules[getInt(typeMapData[ttidx])]; in getNextTransition()
1035 TimeZoneRule to = historicRules[getInt(typeMapData[ttidx])]; in getPreviousTransition()
1036 TimeZoneRule from = historicRules[getInt(typeMapData[ttidx-1])]; in getPreviousTransition()
1055 public TimeZoneRule[] getTimeZoneRules() { in getTimeZoneRules()
1075 TimeZoneRule[] rules = new TimeZoneRule[size]; in getTimeZoneRules()
1089 TimeZoneRule[] stzr = finalZoneWithStartYear.getTimeZoneRules(); in getTimeZoneRules()
1187 TimeZoneRule firstFinalRule; in initTransitionRules()
[all …]

123