Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Dtzrule.cpp177 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(AnnualTimeZoneRule)
179 const int32_t AnnualTimeZoneRule::MAX_YEAR = 0x7FFFFFFF; /* max signed int32 */
181 AnnualTimeZoneRule::AnnualTimeZoneRule(const UnicodeString& name, in AnnualTimeZoneRule() function in AnnualTimeZoneRule
191 AnnualTimeZoneRule::AnnualTimeZoneRule(const UnicodeString& name, in AnnualTimeZoneRule() function in AnnualTimeZoneRule
201 AnnualTimeZoneRule::AnnualTimeZoneRule(const AnnualTimeZoneRule& source) in AnnualTimeZoneRule() function in AnnualTimeZoneRule
206 AnnualTimeZoneRule::~AnnualTimeZoneRule() { in ~AnnualTimeZoneRule()
210 AnnualTimeZoneRule*
211 AnnualTimeZoneRule::clone(void) const { in clone()
212 return new AnnualTimeZoneRule(*this); in clone()
215 AnnualTimeZoneRule&
[all …]
Dbasictz.cpp131 AnnualTimeZoneRule*& std, AnnualTimeZoneRule*& dst, UErrorCode& status) const { in getSimpleRulesNear()
141 AnnualTimeZoneRule *ar1 = NULL; in getSimpleRulesNear()
142 AnnualTimeZoneRule *ar2 = NULL; in getSimpleRulesNear()
178 ar1 = new AnnualTimeZoneRule(name, initialRaw, tr.getTo()->getDSTSavings(), in getSimpleRulesNear()
179 dtr, year, AnnualTimeZoneRule::MAX_YEAR); in getSimpleRulesNear()
198 … ar2 = new AnnualTimeZoneRule(name, tr.getTo()->getRawOffset(), tr.getTo()->getDSTSavings(), in getSimpleRulesNear()
199 dtr, year - 1, AnnualTimeZoneRule::MAX_YEAR); in getSimpleRulesNear()
231 ar2 = new AnnualTimeZoneRule(name, initialRaw, initialDst, in getSimpleRulesNear()
232 dtr, ar1->getStartYear() - 1, AnnualTimeZoneRule::MAX_YEAR); in getSimpleRulesNear()
399 const AnnualTimeZoneRule *ar; in getTimeZoneRulesAfter()
[all …]
Drbtz.cpp119 AnnualTimeZoneRule* atzrule = dynamic_cast<AnnualTimeZoneRule*>(rule); in addTransitionRule()
120 if (atzrule != NULL && atzrule->getEndYear() == AnnualTimeZoneRule::MAX_YEAR) { in addTransitionRule()
638 delete (AnnualTimeZoneRule*)(fFinalRules->orphanElementAt(0)); in deleteRules()
694 AnnualTimeZoneRule* fr0 = (AnnualTimeZoneRule*)fFinalRules->elementAt(0); in findRuleInFinal()
695 AnnualTimeZoneRule* fr1 = (AnnualTimeZoneRule*)fFinalRules->elementAt(1); in findRuleInFinal()
Dvtzone.cpp699 endYear = AnnualTimeZoneRule::MAX_YEAR; in createRuleByRRULE()
717 return new AnnualTimeZoneRule(zonename, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
1604 AnnualTimeZoneRule *atzrule = dynamic_cast<AnnualTimeZoneRule *>(r); in parse()
1606 if (atzrule->getEndYear() == AnnualTimeZoneRule::MAX_YEAR) { in parse()
1626 AnnualTimeZoneRule *finalRule = (AnnualTimeZoneRule*)rules->elementAt(finalRuleIdx); in parse()
1665 newRule = new AnnualTimeZoneRule( in parse()
1847 AnnualTimeZoneRule *std = NULL, *dst = NULL; in writeSimple()
1923 AnnualTimeZoneRule *finalDstRule = NULL; in writeZone()
1937 AnnualTimeZoneRule *finalStdRule = NULL; in writeZone()
1962 const AnnualTimeZoneRule *atzrule; in writeZone()
[all …]
Dsimpletz.cpp1136 … dstRule = new AnnualTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), getDSTSavings(), in initTransitionRules()
1137 dtRule, startYear, AnnualTimeZoneRule::MAX_YEAR); in initTransitionRules()
1174 stdRule = new AnnualTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0, in initTransitionRules()
1175 dtRule, startYear, AnnualTimeZoneRule::MAX_YEAR); in initTransitionRules()
Dwintzimpl.cpp41 AnnualTimeZoneRule *std = NULL, *dst = NULL; in getSystemTimeInformation()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DBasicTimeZone.java334 } else if (toRule instanceof AnnualTimeZoneRule) { in getTimeZoneRules()
335 AnnualTimeZoneRule ar = (AnnualTimeZoneRule)toRule; in getTimeZoneRules()
346 AnnualTimeZoneRule newar = new AnnualTimeZoneRule(ar.getName(), in getTimeZoneRules()
352 if (ar.getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in getTimeZoneRules()
391 AnnualTimeZoneRule[] annualRules = null; in getSimpleTimeZoneRulesNear()
406 annualRules = new AnnualTimeZoneRule[2]; in getSimpleTimeZoneRulesNear()
415 AnnualTimeZoneRule secondRule = null; in getSimpleTimeZoneRulesNear()
423 annualRules[0] = new AnnualTimeZoneRule(tr.getTo().getName(), in getSimpleTimeZoneRulesNear()
425 dtr, dtfields[0], AnnualTimeZoneRule.MAX_YEAR); in getSimpleTimeZoneRulesNear()
446 secondRule = new AnnualTimeZoneRule(tr.getTo().getName(), in getSimpleTimeZoneRulesNear()
[all …]
DAnnualTimeZoneRule.java20 public class AnnualTimeZoneRule extends TimeZoneRule { class
51 public AnnualTimeZoneRule(String name, int rawOffset, int dstSavings, in AnnualTimeZoneRule() method in AnnualTimeZoneRule
223 if (!(other instanceof AnnualTimeZoneRule)) { in isEquivalentTo()
226 AnnualTimeZoneRule otherRule = (AnnualTimeZoneRule)other; in isEquivalentTo()
DVTimeZone.java771 if (r instanceof AnnualTimeZoneRule) { in parse()
772 if (((AnnualTimeZoneRule)r).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in parse()
791 AnnualTimeZoneRule finalRule = (AnnualTimeZoneRule)rules.get(finalRuleIdx); in parse()
823 newRule = new AnnualTimeZoneRule( in parse()
1019 int endYear = AnnualTimeZoneRule.MAX_YEAR; in createRuleByRRULE()
1042 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
1267 AnnualTimeZoneRule finalDstRule = null; in writeZone()
1281 AnnualTimeZoneRule finalStdRule = null; in writeZone()
1304 if (finalDstRule == null && tzt.getTo() instanceof AnnualTimeZoneRule) { in writeZone()
1305 … if (((AnnualTimeZoneRule)tzt.getTo()).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in writeZone()
[all …]
DRuleBasedTimeZone.java29 private AnnualTimeZoneRule[] finalRules;
65 if (rule instanceof AnnualTimeZoneRule in addTransitionRule()
66 && ((AnnualTimeZoneRule)rule).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in addTransitionRule()
69 finalRules = new AnnualTimeZoneRule[2]; in addTransitionRule()
70 finalRules[0] = (AnnualTimeZoneRule)rule; in addTransitionRule()
72 finalRules[1] = (AnnualTimeZoneRule)rule; in addTransitionRule()
DSimpleTimeZone.java1330 private transient AnnualTimeZoneRule stdRule;
1331 private transient AnnualTimeZoneRule dstRule;
1363 dstRule = new AnnualTimeZoneRule(getID() + "(DST)", getRawOffset(), getDSTSavings(), in initTransitionRules()
1364 dtRule, startYear, AnnualTimeZoneRule.MAX_YEAR); in initTransitionRules()
1389 stdRule = new AnnualTimeZoneRule(getID() + "(STD)", getRawOffset(), 0, in initTransitionRules()
1390 dtRule, startYear, AnnualTimeZoneRule.MAX_YEAR); in initTransitionRules()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java19 import com.ibm.icu.util.AnnualTimeZoneRule;
56 AnnualTimeZoneRule atzr; in TestSimpleRuleBasedTimeZone()
68 atzr = new AnnualTimeZoneRule("RBTZ_DST1", in TestSimpleRuleBasedTimeZone()
70 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestSimpleRuleBasedTimeZone()
74 atzr = new AnnualTimeZoneRule("RBTZ_STD1", in TestSimpleRuleBasedTimeZone()
76 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestSimpleRuleBasedTimeZone()
83 …atzr = new AnnualTimeZoneRule("RBTZ_DST2", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule.MAX… in TestSimpleRuleBasedTimeZone()
87 …atzr = new AnnualTimeZoneRule("RBTZ_STD2", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule.MAX_YEAR… in TestSimpleRuleBasedTimeZone()
94 …atzr = new AnnualTimeZoneRule("RBTZ_DST3", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule.MAX… in TestSimpleRuleBasedTimeZone()
98 …atzr = new AnnualTimeZoneRule("RBTZ_STD3", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule.MAX_YEAR… in TestSimpleRuleBasedTimeZone()
[all …]
DTimeZoneOffsetLocalTest.java13 import com.ibm.icu.util.AnnualTimeZoneRule;
129 AnnualTimeZoneRule atzr; in TestGetOffsetAroundTransition()
134 atzr = new AnnualTimeZoneRule("Pacific Daylight Time", in TestGetOffsetAroundTransition()
136 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestGetOffsetAroundTransition()
141 atzr = new AnnualTimeZoneRule("Pacific Standard Time", in TestGetOffsetAroundTransition()
143 STARTYEAR, AnnualTimeZoneRule.MAX_YEAR); in TestGetOffsetAroundTransition()
/external/icu/icu4c/source/i18n/unicode/
Dtzrule.h376 class U_I18N_API AnnualTimeZoneRule : public TimeZoneRule {
400 AnnualTimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings,
419 AnnualTimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings,
427 AnnualTimeZoneRule(const AnnualTimeZoneRule& source);
433 virtual ~AnnualTimeZoneRule();
441 virtual AnnualTimeZoneRule* clone(void) const;
448 AnnualTimeZoneRule& operator=(const AnnualTimeZoneRule& right);
Dbasictz.h141 AnnualTimeZoneRule*& std, AnnualTimeZoneRule*& dst, UErrorCode& status) const;
Dsimpletz.h43 class AnnualTimeZoneRule; variable
880 AnnualTimeZoneRule* stdRule;
881 AnnualTimeZoneRule* dstRule;
Dvtzone.h405 void writeFinalRule(VTZWriter& writer, UBool isDst, const AnnualTimeZoneRule* rule,
/external/icu/icu4c/source/test/intltest/
Dtzrulets.cpp161 AnnualTimeZoneRule *atzr; in TestSimpleRuleBasedTimeZone()
173 atzr = new AnnualTimeZoneRule("RBTZ_DST1", in TestSimpleRuleBasedTimeZone()
175 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR); in TestSimpleRuleBasedTimeZone()
182 atzr = new AnnualTimeZoneRule("RBTZ_STD1", in TestSimpleRuleBasedTimeZone()
184 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR); in TestSimpleRuleBasedTimeZone()
198 …atzr = new AnnualTimeZoneRule("RBTZ_DST2", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MA… in TestSimpleRuleBasedTimeZone()
205 …atzr = new AnnualTimeZoneRule("RBTZ_STD2", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEA… in TestSimpleRuleBasedTimeZone()
219 …atzr = new AnnualTimeZoneRule("RBTZ_DST3", -1*HOUR, 1*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MA… in TestSimpleRuleBasedTimeZone()
226 …atzr = new AnnualTimeZoneRule("RBTZ_STD3", -1*HOUR, 0, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_YEA… in TestSimpleRuleBasedTimeZone()
398 …atzr = new AnnualTimeZoneRule("3RD_ATZ", -1*HOUR, 2*HOUR, dtr, STARTYEAR, AnnualTimeZoneRule::MAX_… in TestSimpleRuleBasedTimeZone()
[all …]
Dtzoffloc.cpp149 AnnualTimeZoneRule *atzr; in TestGetOffsetAroundTransition()
154 atzr = new AnnualTimeZoneRule("Pacific Daylight Time", in TestGetOffsetAroundTransition()
156 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR); in TestGetOffsetAroundTransition()
165 atzr = new AnnualTimeZoneRule("Pacific Standard Time", in TestGetOffsetAroundTransition()
167 STARTYEAR, AnnualTimeZoneRule::MAX_YEAR); in TestGetOffsetAroundTransition()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DSerializableTest.java24 import com.ibm.icu.util.AnnualTimeZoneRule;
193 private static final AnnualTimeZoneRule[] TEST_US_EASTERN = {
194 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
198 new AnnualTimeZoneRule("EST", -5*HOUR, 0,
200 2007, AnnualTimeZoneRule.MAX_YEAR),
202 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
206 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
210 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
214 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
218 new AnnualTimeZoneRule("EDT", -5*HOUR, 1*HOUR,
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DOlsonTimeZone.java15 import com.ibm.icu.util.AnnualTimeZoneRule;
198 && (currentRules[1] instanceof AnnualTimeZoneRule) in setRawOffset()
199 && (currentRules[2] instanceof AnnualTimeZoneRule)) { in setRawOffset()
201 AnnualTimeZoneRule r1 = (AnnualTimeZoneRule)currentRules[1]; in setRawOffset()
202 AnnualTimeZoneRule r2 = (AnnualTimeZoneRule)currentRules[2]; in setRawOffset()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...