Home
last modified time | relevance | path

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

123

/external/icu/icu4c/source/i18n/unicode/
Dtztrans.h24 class TimeZoneRule; variable
42 TimeZoneTransition(UDate time, const TimeZoneRule& from, const TimeZoneRule& to);
115 const TimeZoneRule* getFrom(void) const;
123 void setFrom(const TimeZoneRule& from);
131 void adoptFrom(TimeZoneRule* from);
139 void setTo(const TimeZoneRule& to);
147 void adoptTo(TimeZoneRule* to);
154 const TimeZoneRule* getTo(void) const;
158 TimeZoneRule* fFrom;
159 TimeZoneRule* fTo;
Dtzrule.h32 class U_I18N_API TimeZoneRule : public UObject {
38 virtual ~TimeZoneRule();
46 virtual TimeZoneRule* clone(void) const = 0;
55 virtual UBool operator==(const TimeZoneRule& that) const;
64 virtual UBool operator!=(const TimeZoneRule& that) const;
97 virtual UBool isEquivalentTo(const TimeZoneRule& other) const;
170 TimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings);
177 TimeZoneRule(const TimeZoneRule& source);
184 TimeZoneRule& operator=(const TimeZoneRule& right);
198 class U_I18N_API InitialTimeZoneRule : public TimeZoneRule {
[all …]
Drbtz.h102 void addTransitionRule(TimeZoneRule* rule, UErrorCode& status);
297 const TimeZoneRule* trsrules[], int32_t& trscount, UErrorCode& status) const;
310 TimeZoneRule* findRuleInFinal(UDate date, UBool local,
312 …UBool findNext(UDate base, UBool inclusive, UDate& time, TimeZoneRule*& from, TimeZoneRule*& to) c…
313 …UBool findPrev(UDate base, UBool inclusive, UDate& time, TimeZoneRule*& from, TimeZoneRule*& to) c…
/external/icu/icu4c/source/i18n/
Dtzrule.cpp33 TimeZoneRule::TimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings) in TimeZoneRule() function in TimeZoneRule
37 TimeZoneRule::TimeZoneRule(const TimeZoneRule& source) in TimeZoneRule() function in TimeZoneRule
41 TimeZoneRule::~TimeZoneRule() { in ~TimeZoneRule()
44 TimeZoneRule&
45 TimeZoneRule::operator=(const TimeZoneRule& right) { in operator =()
55 TimeZoneRule::operator==(const TimeZoneRule& that) const { in operator ==()
64 TimeZoneRule::operator!=(const TimeZoneRule& that) const { in operator !=()
69 TimeZoneRule::getName(UnicodeString& name) const { in getName()
75 TimeZoneRule::getRawOffset(void) const { in getRawOffset()
80 TimeZoneRule::getDSTSavings(void) const { in getDSTSavings()
[all …]
Drbtz.cpp28 TimeZoneRule* from;
29 TimeZoneRule* to;
43 TimeZoneRule *r1 = (TimeZoneRule*)rules1->elementAt(i); in compareRules()
44 TimeZoneRule *r2 = (TimeZoneRule*)rules2->elementAt(i); in compareRules()
115 RuleBasedTimeZone::addTransitionRule(TimeZoneRule* rule, UErrorCode& status) { in addTransitionRule()
180 TimeZoneRule *curRule = fInitialRule; in complete()
200 TimeZoneRule *nextRule = NULL; in complete()
201 TimeZoneRule *r = NULL; in complete()
211 r = (TimeZoneRule*)fHistoricRules->elementAt(i); in complete()
247 TimeZoneRule *fr = (TimeZoneRule*)fFinalRules->elementAt(i); in complete()
[all …]
Dzrule.cpp32 delete (TimeZoneRule*)rule; in zrule_close()
37 return *(const TimeZoneRule*)rule1 == *(const TimeZoneRule*)rule2; in zrule_equals()
43 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); in zrule_getName()
51 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); in zrule_getRawOffset()
56 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); in zrule_getDSTSavings()
61 return ((TimeZoneRule*)rule1)->TimeZoneRule::isEquivalentTo(*(TimeZoneRule*)rule2); in zrule_isEquivalentTo()
Dtztrans.cpp21 TimeZoneTransition::TimeZoneTransition(UDate time, const TimeZoneRule& from, const TimeZoneRule& to) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
96 TimeZoneTransition::setFrom(const TimeZoneRule& from) { in setFrom()
104 TimeZoneTransition::adoptFrom(TimeZoneRule* from) { in adoptFrom()
112 TimeZoneTransition::setTo(const TimeZoneRule& to) { in setTo()
120 TimeZoneTransition::adoptTo(TimeZoneRule* to) { in adoptTo()
132 const TimeZoneRule*
137 const TimeZoneRule*
Dztrans.cpp28 return (ZTrans*) new TimeZoneTransition(time,*(TimeZoneRule*)from,*(TimeZoneRule*)to); in ztrans_open()
68 return ((TimeZoneTransition*)trans)->TimeZoneTransition::setFrom(*(TimeZoneRule*)from); in ztrans_setFrom()
73 return ((TimeZoneTransition*)trans)->TimeZoneTransition::adoptFrom((TimeZoneRule*)from); in ztrans_adoptFrom()
83 return ((TimeZoneTransition*)trans)->TimeZoneTransition::setTo(*(TimeZoneRule*)to); in ztrans_setTo()
88 return ((TimeZoneTransition*)trans)->TimeZoneTransition::adoptTo((TimeZoneRule*)to); in ztrans_adoptTo()
Ddangical.cpp110TimeZoneRule* rule1897 = new TimeArrayTimeZoneRule(UNICODE_STRING_SIMPLE("Korean 1897"), 7*kOneHou… in initDangiCalZoneAstroCalc()
111TimeZoneRule* rule1898to1911 = new TimeArrayTimeZoneRule(UNICODE_STRING_SIMPLE("Korean 1898-1911")… in initDangiCalZoneAstroCalc()
112TimeZoneRule* ruleFrom1912 = new TimeArrayTimeZoneRule(UNICODE_STRING_SIMPLE("Korean 1912-"), 9*kO… in initDangiCalZoneAstroCalc()
Dbasictz.cpp294 const TimeZoneRule **orgtrs = NULL; in getTimeZoneRulesAfter()
299 TimeZoneRule *r = NULL; in getTimeZoneRulesAfter()
319 orgtrs = (const TimeZoneRule**)uprv_malloc(sizeof(TimeZoneRule*)*ruleCount); in getTimeZoneRulesAfter()
362 r = (TimeZoneRule*)orgRules->elementAt(i); in getTimeZoneRulesAfter()
383 const TimeZoneRule *toRule = tzt.getTo(); in getTimeZoneRulesAfter()
385 r = (TimeZoneRule*)orgRules->elementAt(i); in getTimeZoneRulesAfter()
507 r = (TimeZoneRule*)orgRules->orphanElementAt(0); in getTimeZoneRulesAfter()
526 r = (TimeZoneRule*)orgRules->orphanElementAt(0); in getTimeZoneRulesAfter()
534 r = (TimeZoneRule*)filteredRules->orphanElementAt(0); in getTimeZoneRulesAfter()
Dsimpletz.cpp991 result.setFrom((const TimeZoneRule&)*dstRule); in getNextTransition()
992 result.setTo((const TimeZoneRule&)*stdRule); in getNextTransition()
997 result.setFrom((const TimeZoneRule&)*stdRule); in getNextTransition()
998 result.setTo((const TimeZoneRule&)*dstRule); in getNextTransition()
1025 result.setFrom((const TimeZoneRule&)*dstRule); in getPreviousTransition()
1026 result.setTo((const TimeZoneRule&)*stdRule); in getPreviousTransition()
1031 result.setFrom((const TimeZoneRule&)*stdRule); in getPreviousTransition()
1032 result.setTo((const TimeZoneRule&)*dstRule); in getPreviousTransition()
1223 const TimeZoneRule* trsrules[], in getTimeZoneRules()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DTimeZoneTransition.java17 private final TimeZoneRule from;
18 private final TimeZoneRule to;
29 public TimeZoneTransition(long time, TimeZoneRule from, TimeZoneRule to) { in TimeZoneTransition()
49 public TimeZoneRule getTo() { in getTo()
58 public TimeZoneRule getFrom() { in getFrom()
DRuleBasedTimeZone.java29 private List<TimeZoneRule> historicRules;
55 public void addTransitionRule(TimeZoneRule rule) { in addTransitionRule()
77 historicRules = new ArrayList<TimeZoneRule>(); in addTransitionRule()
200 TimeZoneRule toRule = tt.getTo(); in observesDaylightTime()
263 for (TimeZoneRule rule : historicRules) { in hasSameRules()
265 for (TimeZoneRule orule : otherRBTZ.historicRules) { in hasSameRules()
287 public TimeZoneRule[] getTimeZoneRules() { in getTimeZoneRules()
300 TimeZoneRule[] rules = new TimeZoneRule[size]; in getTimeZoneRules()
375 TimeZoneRule from = result.getFrom(); in getNextTransition()
376 TimeZoneRule to = result.getTo(); in getNextTransition()
[all …]
DBasicTimeZone.java210 public abstract TimeZoneRule[] getTimeZoneRules(); in getTimeZoneRules()
225 public TimeZoneRule[] getTimeZoneRules(long start) { in getTimeZoneRules()
226 TimeZoneRule[] all = getTimeZoneRules(); in getTimeZoneRules()
234 List<TimeZoneRule> filteredRules = new LinkedList<TimeZoneRule>(); in getTimeZoneRules()
237 TimeZoneRule initial = new InitialTimeZoneRule(tzt.getTo().getName(), in getTimeZoneRules()
260 TimeZoneRule toRule = tzt.getTo(); in getTimeZoneRules()
353 TimeZoneRule[] rules = filteredRules.toArray(new TimeZoneRule[filteredRules.size()]); in getTimeZoneRules()
377 public TimeZoneRule[] getSimpleTimeZoneRulesNear(long date) { in getSimpleTimeZoneRulesNear()
379 TimeZoneRule initialRule = null; in getSimpleTimeZoneRulesNear()
509 TimeZoneRule[] result = null; in getSimpleTimeZoneRulesNear()
[all …]
DTimeZoneRule.java23 public abstract class TimeZoneRule implements Serializable { class
40 public TimeZoneRule(String name, int rawOffset, int dstSavings) { in TimeZoneRule() method in TimeZoneRule
82 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.java19 public class InitialTimeZoneRule extends TimeZoneRule {
39 public boolean isEquivalentTo(TimeZoneRule other) { in isEquivalentTo()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeZoneTransition.java16 private final TimeZoneRule from;
17 private final TimeZoneRule to;
30 public TimeZoneTransition(long time, TimeZoneRule from, TimeZoneRule to) { in TimeZoneTransition()
54 public TimeZoneRule getTo() { in getTo()
65 public TimeZoneRule getFrom() { in getFrom()
DRuleBasedTimeZone.java28 private List<TimeZoneRule> historicRules;
58 public void addTransitionRule(TimeZoneRule rule) { in addTransitionRule()
80 historicRules = new ArrayList<TimeZoneRule>(); in addTransitionRule()
216 TimeZoneRule toRule = tt.getTo(); in observesDaylightTime()
281 for (TimeZoneRule rule : historicRules) { in hasSameRules()
283 for (TimeZoneRule orule : otherRBTZ.historicRules) { in hasSameRules()
307 public TimeZoneRule[] getTimeZoneRules() { in getTimeZoneRules()
320 TimeZoneRule[] rules = new TimeZoneRule[size]; in getTimeZoneRules()
397 TimeZoneRule from = result.getFrom(); in getNextTransition()
398 TimeZoneRule to = result.getTo(); in getNextTransition()
[all …]
DBasicTimeZone.java219 public abstract TimeZoneRule[] getTimeZoneRules(); in getTimeZoneRules()
236 public TimeZoneRule[] getTimeZoneRules(long start) { in getTimeZoneRules()
237 TimeZoneRule[] all = getTimeZoneRules(); in getTimeZoneRules()
245 List<TimeZoneRule> filteredRules = new LinkedList<TimeZoneRule>(); in getTimeZoneRules()
248 TimeZoneRule initial = new InitialTimeZoneRule(tzt.getTo().getName(), in getTimeZoneRules()
271 TimeZoneRule toRule = tzt.getTo(); in getTimeZoneRules()
364 TimeZoneRule[] rules = filteredRules.toArray(new TimeZoneRule[filteredRules.size()]); in getTimeZoneRules()
390 public TimeZoneRule[] getSimpleTimeZoneRulesNear(long date) { in getSimpleTimeZoneRulesNear()
392 TimeZoneRule initialRule = null; in getSimpleTimeZoneRulesNear()
522 TimeZoneRule[] result = null; in getSimpleTimeZoneRulesNear()
[all …]
DTimeZoneRule.java22 public abstract class TimeZoneRule implements Serializable { class
41 public TimeZoneRule(String name, int rawOffset, int dstSavings) { in TimeZoneRule() method in TimeZoneRule
91 public boolean isEquivalentTo(TimeZoneRule other) { in isEquivalentTo()
DDangiCalendar.java66TimeZoneRule rule1897 = new TimeArrayTimeZoneRule("Korean 1897", 7 * ONE_HOUR, 0, millis1897,
68TimeZoneRule rule1898to1911 = new TimeArrayTimeZoneRule("Korean 1898-1911", 8 * ONE_HOUR, 0, milli…
70TimeZoneRule ruleFrom1912 = new TimeArrayTimeZoneRule("Korean 1912-", 9 * ONE_HOUR, 0, millis1912,
DInitialTimeZoneRule.java18 public class InitialTimeZoneRule extends TimeZoneRule {
42 public boolean isEquivalentTo(TimeZoneRule other) { in isEquivalentTo()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DOlsonTimeZone.java25 import android.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/icu4j/main/classes/core/src/com/ibm/icu/impl/
DOlsonTimeZone.java24 import com.ibm.icu.util.TimeZoneRule;
186 TimeZoneRule[] currentRules = getSimpleTimeZoneRulesNear(current); in setRawOffset()
979 TimeZoneRule to = historicRules[getInt(typeMapData[ttidx + 1])]; in getNextTransition()
980 TimeZoneRule from = historicRules[getInt(typeMapData[ttidx])]; in getNextTransition()
1031 TimeZoneRule to = historicRules[getInt(typeMapData[ttidx])]; in getPreviousTransition()
1032 TimeZoneRule from = historicRules[getInt(typeMapData[ttidx-1])]; in getPreviousTransition()
1051 public TimeZoneRule[] getTimeZoneRules() { in getTimeZoneRules()
1071 TimeZoneRule[] rules = new TimeZoneRule[size]; in getTimeZoneRules()
1085 TimeZoneRule[] stzr = finalZoneWithStartYear.getTimeZoneRules(); in getTimeZoneRules()
1183 TimeZoneRule firstFinalRule; in initTransitionRules()
[all …]

123