Home
last modified time | relevance | path

Searched refs:AnnualTimeZoneRule (Results 1 – 25 of 42) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dtzrule.cpp179 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(AnnualTimeZoneRule)
181 const int32_t AnnualTimeZoneRule::MAX_YEAR = 0x7FFFFFFF; /* max signed int32 */
183 AnnualTimeZoneRule::AnnualTimeZoneRule(const UnicodeString& name, in AnnualTimeZoneRule() function in AnnualTimeZoneRule
193 AnnualTimeZoneRule::AnnualTimeZoneRule(const UnicodeString& name, in AnnualTimeZoneRule() function in AnnualTimeZoneRule
203 AnnualTimeZoneRule::AnnualTimeZoneRule(const AnnualTimeZoneRule& source) in AnnualTimeZoneRule() function in AnnualTimeZoneRule
208 AnnualTimeZoneRule::~AnnualTimeZoneRule() { in ~AnnualTimeZoneRule()
212 AnnualTimeZoneRule*
213 AnnualTimeZoneRule::clone(void) const { in clone()
214 return new AnnualTimeZoneRule(*this); in clone()
217 AnnualTimeZoneRule&
[all …]
Dbasictz.cpp133 AnnualTimeZoneRule*& std, AnnualTimeZoneRule*& dst, UErrorCode& status) const { in getSimpleRulesNear()
143 AnnualTimeZoneRule *ar1 = NULL; in getSimpleRulesNear()
144 AnnualTimeZoneRule *ar2 = NULL; in getSimpleRulesNear()
180 ar1 = new AnnualTimeZoneRule(name, initialRaw, tr.getTo()->getDSTSavings(), in getSimpleRulesNear()
181 dtr, year, AnnualTimeZoneRule::MAX_YEAR); in getSimpleRulesNear()
200 … ar2 = new AnnualTimeZoneRule(name, tr.getTo()->getRawOffset(), tr.getTo()->getDSTSavings(), in getSimpleRulesNear()
201 dtr, year - 1, AnnualTimeZoneRule::MAX_YEAR); in getSimpleRulesNear()
233 ar2 = new AnnualTimeZoneRule(name, initialRaw, initialDst, in getSimpleRulesNear()
234 dtr, ar1->getStartYear() - 1, AnnualTimeZoneRule::MAX_YEAR); in getSimpleRulesNear()
401 const AnnualTimeZoneRule *ar; in getTimeZoneRulesAfter()
[all …]
Drbtz.cpp121 AnnualTimeZoneRule* atzrule = dynamic_cast<AnnualTimeZoneRule*>(rule); in addTransitionRule()
122 if (atzrule != NULL && atzrule->getEndYear() == AnnualTimeZoneRule::MAX_YEAR) { in addTransitionRule()
640 delete (AnnualTimeZoneRule*)(fFinalRules->orphanElementAt(0)); in deleteRules()
696 AnnualTimeZoneRule* fr0 = (AnnualTimeZoneRule*)fFinalRules->elementAt(0); in findRuleInFinal()
697 AnnualTimeZoneRule* fr1 = (AnnualTimeZoneRule*)fFinalRules->elementAt(1); in findRuleInFinal()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DBasicTimeZone.java331 } else if (toRule instanceof AnnualTimeZoneRule) { in getTimeZoneRules()
332 AnnualTimeZoneRule ar = (AnnualTimeZoneRule)toRule; in getTimeZoneRules()
343 AnnualTimeZoneRule newar = new AnnualTimeZoneRule(ar.getName(), in getTimeZoneRules()
349 if (ar.getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in getTimeZoneRules()
386 AnnualTimeZoneRule[] annualRules = null; in getSimpleTimeZoneRulesNear()
401 annualRules = new AnnualTimeZoneRule[2]; in getSimpleTimeZoneRulesNear()
410 AnnualTimeZoneRule secondRule = null; in getSimpleTimeZoneRulesNear()
418 annualRules[0] = new AnnualTimeZoneRule(tr.getTo().getName(), in getSimpleTimeZoneRulesNear()
420 dtr, dtfields[0], AnnualTimeZoneRule.MAX_YEAR); in getSimpleTimeZoneRulesNear()
441 secondRule = new AnnualTimeZoneRule(tr.getTo().getName(), in getSimpleTimeZoneRulesNear()
[all …]
DAnnualTimeZoneRule.java24 public class AnnualTimeZoneRule extends TimeZoneRule { class
53 public AnnualTimeZoneRule(String name, int rawOffset, int dstSavings, in AnnualTimeZoneRule() method in AnnualTimeZoneRule
219 if (!(other instanceof AnnualTimeZoneRule)) { in isEquivalentTo()
222 AnnualTimeZoneRule otherRule = (AnnualTimeZoneRule)other; in isEquivalentTo()
DVTimeZone.java746 if (r instanceof AnnualTimeZoneRule) { in parse()
747 if (((AnnualTimeZoneRule)r).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in parse()
766 AnnualTimeZoneRule finalRule = (AnnualTimeZoneRule)rules.get(finalRuleIdx); in parse()
798 newRule = new AnnualTimeZoneRule( in parse()
994 int endYear = AnnualTimeZoneRule.MAX_YEAR; in createRuleByRRULE()
1017 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
1242 AnnualTimeZoneRule finalDstRule = null; in writeZone()
1256 AnnualTimeZoneRule finalStdRule = null; in writeZone()
1279 if (finalDstRule == null && tzt.getTo() instanceof AnnualTimeZoneRule) { in writeZone()
1280 … if (((AnnualTimeZoneRule)tzt.getTo()).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in writeZone()
[all …]
DRuleBasedTimeZone.java32 private AnnualTimeZoneRule[] finalRules;
64 if (rule instanceof AnnualTimeZoneRule in addTransitionRule()
65 && ((AnnualTimeZoneRule)rule).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in addTransitionRule()
68 finalRules = new AnnualTimeZoneRule[2]; in addTransitionRule()
69 finalRules[0] = (AnnualTimeZoneRule)rule; in addTransitionRule()
71 finalRules[1] = (AnnualTimeZoneRule)rule; in addTransitionRule()
DSimpleTimeZone.java1306 private transient AnnualTimeZoneRule stdRule;
1307 private transient AnnualTimeZoneRule dstRule;
1339 dstRule = new AnnualTimeZoneRule(getID() + "(DST)", getRawOffset(), getDSTSavings(), in initTransitionRules()
1340 dtRule, startYear, AnnualTimeZoneRule.MAX_YEAR); in initTransitionRules()
1365 stdRule = new AnnualTimeZoneRule(getID() + "(STD)", getRawOffset(), 0, in initTransitionRules()
1366 dtRule, startYear, AnnualTimeZoneRule.MAX_YEAR); in initTransitionRules()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DBasicTimeZone.java336 } else if (toRule instanceof AnnualTimeZoneRule) { in getTimeZoneRules()
337 AnnualTimeZoneRule ar = (AnnualTimeZoneRule)toRule; in getTimeZoneRules()
348 AnnualTimeZoneRule newar = new AnnualTimeZoneRule(ar.getName(), in getTimeZoneRules()
354 if (ar.getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in getTimeZoneRules()
393 AnnualTimeZoneRule[] annualRules = null; in getSimpleTimeZoneRulesNear()
408 annualRules = new AnnualTimeZoneRule[2]; in getSimpleTimeZoneRulesNear()
417 AnnualTimeZoneRule secondRule = null; in getSimpleTimeZoneRulesNear()
425 annualRules[0] = new AnnualTimeZoneRule(tr.getTo().getName(), in getSimpleTimeZoneRulesNear()
427 dtr, dtfields[0], AnnualTimeZoneRule.MAX_YEAR); in getSimpleTimeZoneRulesNear()
448 secondRule = new AnnualTimeZoneRule(tr.getTo().getName(), in getSimpleTimeZoneRulesNear()
[all …]
DAnnualTimeZoneRule.java22 public class AnnualTimeZoneRule extends TimeZoneRule { class
53 public AnnualTimeZoneRule(String name, int rawOffset, int dstSavings, in AnnualTimeZoneRule() method in AnnualTimeZoneRule
230 if (!(other instanceof AnnualTimeZoneRule)) { in isEquivalentTo()
233 AnnualTimeZoneRule otherRule = (AnnualTimeZoneRule)other; in isEquivalentTo()
DVTimeZone.java777 if (r instanceof AnnualTimeZoneRule) { in parse()
778 if (((AnnualTimeZoneRule)r).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in parse()
797 AnnualTimeZoneRule finalRule = (AnnualTimeZoneRule)rules.get(finalRuleIdx); in parse()
829 newRule = new AnnualTimeZoneRule( in parse()
1025 int endYear = AnnualTimeZoneRule.MAX_YEAR; in createRuleByRRULE()
1048 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
1273 AnnualTimeZoneRule finalDstRule = null; in writeZone()
1287 AnnualTimeZoneRule finalStdRule = null; in writeZone()
1310 if (finalDstRule == null && tzt.getTo() instanceof AnnualTimeZoneRule) { in writeZone()
1311 … if (((AnnualTimeZoneRule)tzt.getTo()).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in writeZone()
[all …]
DRuleBasedTimeZone.java31 private AnnualTimeZoneRule[] finalRules;
67 if (rule instanceof AnnualTimeZoneRule in addTransitionRule()
68 && ((AnnualTimeZoneRule)rule).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in addTransitionRule()
71 finalRules = new AnnualTimeZoneRule[2]; in addTransitionRule()
72 finalRules[0] = (AnnualTimeZoneRule)rule; in addTransitionRule()
74 finalRules[1] = (AnnualTimeZoneRule)rule; in addTransitionRule()
DSimpleTimeZone.java1337 private transient AnnualTimeZoneRule stdRule;
1338 private transient AnnualTimeZoneRule dstRule;
1370 dstRule = new AnnualTimeZoneRule(getID() + "(DST)", getRawOffset(), getDSTSavings(), in initTransitionRules()
1371 dtRule, startYear, AnnualTimeZoneRule.MAX_YEAR); in initTransitionRules()
1396 stdRule = new AnnualTimeZoneRule(getID() + "(STD)", getRawOffset(), 0, in initTransitionRules()
1397 dtRule, startYear, AnnualTimeZoneRule.MAX_YEAR); in initTransitionRules()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java25 import com.ibm.icu.util.AnnualTimeZoneRule;
60 AnnualTimeZoneRule atzr; in TestSimpleRuleBasedTimeZone()
72 atzr = new AnnualTimeZoneRule("RBTZ_DST1", in TestSimpleRuleBasedTimeZone()
74 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestSimpleRuleBasedTimeZone()
78 atzr = new AnnualTimeZoneRule("RBTZ_STD1", in TestSimpleRuleBasedTimeZone()
80 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestSimpleRuleBasedTimeZone()
87 …atzr = new AnnualTimeZoneRule("RBTZ_DST2", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule.MAX… in TestSimpleRuleBasedTimeZone()
91 …atzr = new AnnualTimeZoneRule("RBTZ_STD2", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule.MAX_YEAR… in TestSimpleRuleBasedTimeZone()
98 …atzr = new AnnualTimeZoneRule("RBTZ_DST3", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule.MAX… in TestSimpleRuleBasedTimeZone()
102 …atzr = new AnnualTimeZoneRule("RBTZ_STD3", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule.MAX_YEAR… in TestSimpleRuleBasedTimeZone()
[all …]
DTimeZoneOffsetLocalTest.java19 import com.ibm.icu.util.AnnualTimeZoneRule;
132 AnnualTimeZoneRule atzr; in TestGetOffsetAroundTransition()
137 atzr = new AnnualTimeZoneRule("Pacific Daylight Time", in TestGetOffsetAroundTransition()
139 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestGetOffsetAroundTransition()
144 atzr = new AnnualTimeZoneRule("Pacific Standard Time", in TestGetOffsetAroundTransition()
146 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestGetOffsetAroundTransition()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRuleTest.java26 import android.icu.util.AnnualTimeZoneRule;
63 AnnualTimeZoneRule atzr; in TestSimpleRuleBasedTimeZone()
75 atzr = new AnnualTimeZoneRule("RBTZ_DST1", in TestSimpleRuleBasedTimeZone()
77 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestSimpleRuleBasedTimeZone()
81 atzr = new AnnualTimeZoneRule("RBTZ_STD1", in TestSimpleRuleBasedTimeZone()
83 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestSimpleRuleBasedTimeZone()
90 …atzr = new AnnualTimeZoneRule("RBTZ_DST2", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule.MAX… in TestSimpleRuleBasedTimeZone()
94 …atzr = new AnnualTimeZoneRule("RBTZ_STD2", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule.MAX_YEAR… in TestSimpleRuleBasedTimeZone()
101 …atzr = new AnnualTimeZoneRule("RBTZ_DST3", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule.MAX… in TestSimpleRuleBasedTimeZone()
105 …atzr = new AnnualTimeZoneRule("RBTZ_STD3", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule.MAX_YEAR… in TestSimpleRuleBasedTimeZone()
[all …]
DTimeZoneOffsetLocalTest.java20 import android.icu.util.AnnualTimeZoneRule;
135 AnnualTimeZoneRule atzr; in TestGetOffsetAroundTransition()
140 atzr = new AnnualTimeZoneRule("Pacific Daylight Time", in TestGetOffsetAroundTransition()
142 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestGetOffsetAroundTransition()
147 atzr = new AnnualTimeZoneRule("Pacific Standard Time", in TestGetOffsetAroundTransition()
149 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestGetOffsetAroundTransition()
/external/icu/icu4c/source/i18n/unicode/
Dtzrule.h380 class U_I18N_API AnnualTimeZoneRule : public TimeZoneRule {
404 AnnualTimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings,
423 AnnualTimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings,
431 AnnualTimeZoneRule(const AnnualTimeZoneRule& source);
437 virtual ~AnnualTimeZoneRule();
445 virtual AnnualTimeZoneRule* clone() const;
452 AnnualTimeZoneRule& operator=(const AnnualTimeZoneRule& right);
Dbasictz.h153 AnnualTimeZoneRule*& std, AnnualTimeZoneRule*& dst, UErrorCode& status) const;
/external/icu/icu4c/source/test/intltest/
Dtzrulets.cpp164 AnnualTimeZoneRule *atzr; in TestSimpleRuleBasedTimeZone()
176 atzr = new AnnualTimeZoneRule("RBTZ_DST1", in TestSimpleRuleBasedTimeZone()
178 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR); in TestSimpleRuleBasedTimeZone()
185 atzr = new AnnualTimeZoneRule("RBTZ_STD1", in TestSimpleRuleBasedTimeZone()
187 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR); in TestSimpleRuleBasedTimeZone()
201 …atzr = new AnnualTimeZoneRule("RBTZ_DST2", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MA… in TestSimpleRuleBasedTimeZone()
208 …atzr = new AnnualTimeZoneRule("RBTZ_STD2", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEA… in TestSimpleRuleBasedTimeZone()
222 …atzr = new AnnualTimeZoneRule("RBTZ_DST3", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MA… in TestSimpleRuleBasedTimeZone()
229 …atzr = new AnnualTimeZoneRule("RBTZ_STD3", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEA… in TestSimpleRuleBasedTimeZone()
401 …atzr = new AnnualTimeZoneRule("3RD_ATZ", -1*HOUR, 2*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_… in TestSimpleRuleBasedTimeZone()
[all …]
Dtzoffloc.cpp151 AnnualTimeZoneRule *atzr; in TestGetOffsetAroundTransition()
156 atzr = new AnnualTimeZoneRule("Pacific Daylight Time", in TestGetOffsetAroundTransition()
158 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR); in TestGetOffsetAroundTransition()
167 atzr = new AnnualTimeZoneRule("Pacific Standard Time", in TestGetOffsetAroundTransition()
169 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR); in TestGetOffsetAroundTransition()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DSerializableTestUtility.java42 import com.ibm.icu.util.AnnualTimeZoneRule;
224 private static final AnnualTimeZoneRule[] TEST_US_EASTERN = {
225 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
229 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
231 2007, AnnualTimeZoneRule.MAX_YEAR),
233 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
237 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
241 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
245 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
249 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DSerializableTestUtility.java43 import android.icu.util.AnnualTimeZoneRule;
227 private static final AnnualTimeZoneRule[] TEST_US_EASTERN = {
228 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
232 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
234 2007, AnnualTimeZoneRule.MAX_YEAR),
236 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
240 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
244 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
248 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
252 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
[all …]
/external/icu/tools/srcgen/
Dintra-core-api.txt9 field:android.icu.util.AnnualTimeZoneRule#MAX_YEAR
37 method:android.icu.util.AnnualTimeZoneRule#getEndYear()
38 method:android.icu.util.AnnualTimeZoneRule#getNarrowEras()
39 method:android.icu.util.AnnualTimeZoneRule#getRawOffset()
40 method:android.icu.util.AnnualTimeZoneRule#getRule()
71 type:android.icu.util.AnnualTimeZoneRule
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DOlsonTimeZone.java17 import com.ibm.icu.util.AnnualTimeZoneRule;
200 && (currentRules[1] instanceof AnnualTimeZoneRule) in setRawOffset()
201 && (currentRules[2] instanceof AnnualTimeZoneRule)) { in setRawOffset()
203 AnnualTimeZoneRule r1 = (AnnualTimeZoneRule)currentRules[1]; in setRawOffset()
204 AnnualTimeZoneRule r2 = (AnnualTimeZoneRule)currentRules[2]; in setRawOffset()

12