Home
last modified time | relevance | path

Searched refs:tzid (Results 1 – 25 of 40) sorted by relevance

12

/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DTimeZoneNameTest.java52 for (String tzid : tzids) { in TestTimeZoneNames()
57 String icuStdLong = getIcuDisplayName(tzid, false, TimeZone.LONG, loc); in TestTimeZoneNames()
58 String icuDstLong = getIcuDisplayName(tzid, true, TimeZone.LONG, loc); in TestTimeZoneNames()
59 String icuStdShort = getIcuDisplayName(tzid, false, TimeZone.SHORT, loc); in TestTimeZoneNames()
60 String icuDstShort = getIcuDisplayName(tzid, true, TimeZone.SHORT, loc); in TestTimeZoneNames()
63 … checkDisplayNamePair(TimeZone.SHORT, tzid, loc, warningOnly || ProblematicZones.contains(tzid)); in TestTimeZoneNames()
64 … checkDisplayNamePair(TimeZone.LONG, tzid, loc, warningOnly || ProblematicZones.contains(tzid)); in TestTimeZoneNames()
67 + tzid + " in locale " + loc + " in ICU"); in TestTimeZoneNames()
73 private void checkDisplayNamePair(int style, String tzid, Locale loc, boolean warnOnly) { in checkDisplayNamePair() argument
86 String icuStdName = getIcuDisplayName(tzid, false, style, loc); in checkDisplayNamePair()
[all …]
/external/icu/icu4c/source/i18n/
Dzonemeta.h39 …static UnicodeString& U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &syste…
46 static const UChar* U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status);
61 …static UnicodeString& U_EXPORT2 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &coun…
66 …static UnicodeString& U_EXPORT2 getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString…
72 static const UVector* U_EXPORT2 getMetazoneMappings(const UnicodeString &tzid);
80 static const UChar* U_EXPORT2 findTimeZoneID(const UnicodeString& tzid);
113 static UVector* createMetazoneMappings(const UnicodeString &tzid);
Dzonemeta.cpp235 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status) { in getCanonicalCLDRID() argument
240 if (tzid.isBogus() || tzid.length() > ZID_KEY_MAX) { in getCanonicalCLDRID()
255 tzid.extract(utzid, ZID_KEY_MAX + 1, tmpStatus); in getCanonicalCLDRID()
272 tzid.extract(0, 0x7fffffff, id, UPRV_LENGTHOF(id), US_INV); in getCanonicalCLDRID()
289 canonicalID = TimeZone::findID(tzid); in getCanonicalCLDRID()
306 const UChar *derefer = TimeZone::dereferOlsonLink(tzid); in getCanonicalCLDRID()
348 const UChar* key = ZoneMeta::findTimeZoneID(tzid); in getCanonicalCLDRID()
371 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status… in getCanonicalCLDRID() argument
372 const UChar *canonicalID = getCanonicalCLDRID(tzid, status); in getCanonicalCLDRID()
416 ZoneMeta::getCanonicalCountry(const UnicodeString &tzid, UnicodeString &country, UBool *isPrimary /… in getCanonicalCountry() argument
[all …]
Dolsontz.cpp122 const UnicodeString& tzid, in OlsonTimeZone() argument
124 BasicTimeZone(tzid), finalZone(NULL) in OlsonTimeZone()
257 canonicalID = ZoneMeta::getCanonicalCLDRID(tzid, ec); in OlsonTimeZone()
711 UnicodeString tzid; in initTransitionRules() local
712 getID(tzid); in initTransitionRules()
714 UnicodeString stdName = tzid + UNICODE_STRING_SIMPLE("(STD)"); in initTransitionRules()
715 UnicodeString dstName = tzid + UNICODE_STRING_SIMPLE("(DST)"); in initTransitionRules()
849 finalZone->getID(tzid); in initTransitionRules()
850 firstFinalRule = new TimeArrayTimeZoneRule(tzid, in initTransitionRules()
Dvtzone.cpp361 static void getDefaultTZName(const UnicodeString tzid, UBool isDST, UnicodeString& zonename) { in getDefaultTZName() argument
362 zonename = tzid; in getDefaultTZName()
1360 UnicodeString tzid; in parse() local
1417 tzid = value; in parse()
1431 if (tzid.length() == 0) { in parse()
1503 getDefaultTZName(tzid, dst, zonename); in parse()
1588 getDefaultTZName(tzid, FALSE, zonename); in parse()
1597 rbtz = new RuleBasedTimeZone(tzid, initialRule); in parse()
1703 setID(tzid); in parse()
1781 UnicodeString tzid; in write() local
[all …]
Dsimpletz.cpp1104 UnicodeString tzid; in initTransitionRules() local
1105 getID(tzid); in initTransitionRules()
1138 … dstRule = new AnnualTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), getDSTSavings(), in initTransitionRules()
1176 stdRule = new AnnualTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0, in initTransitionRules()
1191 …initialRule = new InitialTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), dstRule->getDST… in initTransitionRules()
1194 initialRule = new InitialTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0); in initTransitionRules()
1206 initialRule = new InitialTimeZoneRule(tzid, getRawOffset(), 0); in initTransitionRules()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DZoneMeta.java360 public static String getCanonicalCLDRID(String tzid) { in getCanonicalCLDRID() argument
361 String canonical = CANONICAL_ID_CACHE.get(tzid); in getCanonicalCLDRID()
363 canonical = findCLDRCanonicalID(tzid); in getCanonicalCLDRID()
367 int zoneIdx = getZoneIndex(tzid); in getCanonicalCLDRID()
375 tzid = getZoneID(zone.getInt()); in getCanonicalCLDRID()
376 canonical = findCLDRCanonicalID(tzid); in getCanonicalCLDRID()
379 canonical = tzid; in getCanonicalCLDRID()
387 CANONICAL_ID_CACHE.put(tzid, canonical); in getCanonicalCLDRID()
393 private static String findCLDRCanonicalID(String tzid) { in findCLDRCanonicalID() argument
395 String tzidKey = tzid.replace('/', ':'); in findCLDRCanonicalID()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DZoneMeta.java361 public static String getCanonicalCLDRID(String tzid) { in getCanonicalCLDRID() argument
362 String canonical = CANONICAL_ID_CACHE.get(tzid); in getCanonicalCLDRID()
364 canonical = findCLDRCanonicalID(tzid); in getCanonicalCLDRID()
368 int zoneIdx = getZoneIndex(tzid); in getCanonicalCLDRID()
376 tzid = getZoneID(zone.getInt()); in getCanonicalCLDRID()
377 canonical = findCLDRCanonicalID(tzid); in getCanonicalCLDRID()
380 canonical = tzid; in getCanonicalCLDRID()
388 CANONICAL_ID_CACHE.put(tzid, canonical); in getCanonicalCLDRID()
394 private static String findCLDRCanonicalID(String tzid) { in findCLDRCanonicalID() argument
396 String tzidKey = tzid.replace('/', ':'); in findCLDRCanonicalID()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtzfmttst.cpp180 const UnicodeString *tzid; in TestTimeZoneRoundTrip() local
181 while ((tzid = tzids->snext(status))) { in TestTimeZoneRoundTrip()
182 TimeZone *tz = TimeZone::createTimeZone(*tzid); in TestTimeZoneRoundTrip()
216 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid); in TestTimeZoneRoundTrip()
228 TimeZone::getCanonicalID(*tzid, canonicalID, status); in TestTimeZoneRoundTrip()
231 errln((UnicodeString)"Unknown ID " + *tzid); in TestTimeZoneRoundTrip()
237 … logln((UnicodeString)"Canonical round trip failed (probably as expected); tz=" + *tzid in TestTimeZoneRoundTrip()
242 errln((UnicodeString)"Canonical round trip failed; tz=" + *tzid in TestTimeZoneRoundTrip()
250 if (outtzid != *tzid) { in TestTimeZoneRoundTrip()
251 errln((UnicodeString)"Zone ID round trip failued; tz=" + *tzid in TestTimeZoneRoundTrip()
[all …]
Dtzrulets.cpp615 const UnicodeString *tzid = tzenum.snext(status); in TestOlsonTransition() local
616 if (tzid == NULL) { in TestOlsonTransition()
623 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestOlsonTransition()
650 const UnicodeString *tzid = tzenum.snext(status); in TestRBTZTransition() local
651 if (tzid == NULL) { in TestRBTZTransition()
658 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestRBTZTransition()
665 errln((UnicodeString)"FAIL: failed to get the TimeZoneRules from time zone " + *tzid); in TestRBTZTransition()
667 RuleBasedTimeZone *rbtz = new RuleBasedTimeZone(*tzid, initial->clone()); in TestRBTZTransition()
669 … errln((UnicodeString)"FAIL: failed to get the transition rule count from time zone " + *tzid); in TestRBTZTransition()
674 …UnicodeString)"FAIL: failed to add a transition rule at index " + i + " to the RBTZ for " + *tzid); in TestRBTZTransition()
[all …]
Dcaltest.cpp389 UnicodeString tzid("TestZone"); in TestGenericAPI() local
392 SimpleTimeZone *zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI()
451 if (z->getID(str) != tzid || in TestGenericAPI()
2528 const char* tzid; member
2570 for (int32_t i = 0; RPDATA[i].tzid != NULL; i++) { in TestRepeatedWallTime()
2572 TimeZone *tz = TimeZone::createTimeZone(RPDATA[i].tzid); in TestRepeatedWallTime()
2582 + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "]"); in TestRepeatedWallTime()
2585 …LLTIME_LAST ") + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "] is parsed as " in TestRepeatedWallTime()
2598 + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "]"); in TestRepeatedWallTime()
2601 …: (default) ") + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "] is parsed as " in TestRepeatedWallTime()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DGlobalizationPreferencesTest.java702 String tzid = tz.getID(); in TestTimeZone() local
703 if (!tzid.equals("Asia/Shanghai")) { in TestTimeZone()
704 errln("FAIL: Time zone ID is " + tzid + " Expected: Asia/Shanghai"); in TestTimeZone()
711 tzid = tz.getID(); in TestTimeZone()
712 if (!tzid.equals("America/New_York")) { in TestTimeZone()
713 errln("FAIL: Time zone ID is " + tzid + " Expected: America/New_York"); in TestTimeZone()
720 tzid = tz.getID(); in TestTimeZone()
721 if (!tzid.equals("Europe/London")) { in TestTimeZone()
722 errln("FAIL: Time zone ID is " + tzid + " Expected: Europe/London"); in TestTimeZone()
728 tzid = tz.getID(); in TestTimeZone()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java701 String tzid = tz.getID(); in TestTimeZone() local
702 if (!tzid.equals("Asia/Shanghai")) { in TestTimeZone()
703 errln("FAIL: Time zone ID is " + tzid + " Expected: Asia/Shanghai"); in TestTimeZone()
710 tzid = tz.getID(); in TestTimeZone()
711 if (!tzid.equals("America/New_York")) { in TestTimeZone()
712 errln("FAIL: Time zone ID is " + tzid + " Expected: America/New_York"); in TestTimeZone()
719 tzid = tz.getID(); in TestTimeZone()
720 if (!tzid.equals("Europe/London")) { in TestTimeZone()
721 errln("FAIL: Time zone ID is " + tzid + " Expected: Europe/London"); in TestTimeZone()
727 tzid = tz.getID(); in TestTimeZone()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcdateintervalformattest.c44 const char * tzid; member
80 const char * tzidForLog = (testItemPtr->tzid)? testItemPtr->tzid: "NULL"; in TestDateIntervalFormat()
84 if ( testItemPtr->tzid ) { in TestDateIntervalFormat()
85 u_unescape(testItemPtr->tzid, tzidBuf, kTZIDBufLen); in TestDateIntervalFormat()
/external/icu/icu4c/source/common/
Dputil.cpp1014 const char *tzid = NULL; in uprv_tzname() local
1016 tzid = uprv_detectWindowsTimeZone(); in uprv_tzname()
1018 if (tzid != NULL) { in uprv_tzname()
1019 return tzid; in uprv_tzname()
1034 tzid = getenv("TZ"); in uprv_tzname()
1035 if (tzid != NULL && isValidOlsonID(tzid) in uprv_tzname()
1038 && uprv_strcmp(tzid, TZ_ENV_CHECK) != 0 in uprv_tzname()
1042 if (tzid[0] == ':') { in uprv_tzname()
1043 tzid++; in uprv_tzname()
1046 skipZoneIDPrefix(&tzid); in uprv_tzname()
[all …]
/external/icu/icu4c/source/test/perf/normperf/
Ddtfmtrtperf.h164 const UnicodeString *tzid; in call() local
165 while ((tzid = tzids->snext(*status))) { in call()
166 TimeZone *tz = TimeZone::createTimeZone(*tzid); in call()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRegressionTest.java1140 String tzid = "MyZone"; in TestT5432() local
1144 stz = new SimpleTimeZone(0, tzid); in TestT5432()
1145 if (!tzid.equals(stz.getID())) { in TestT5432()
1147 + tzid + ") [2-arg constructor]"); in TestT5432()
1151 stz = new SimpleTimeZone(0, tzid, 3, -1, 1, 3600000, 9, -1, 1, 3600000); in TestT5432()
1152 if (!tzid.equals(stz.getID())) { in TestT5432()
1154 + tzid + ") [10-arg constructor]"); in TestT5432()
1158 stz = new SimpleTimeZone(0, tzid, 3, -1, 1, 3600000, 9, -1, 1, 3600000, 3600000); in TestT5432()
1159 if (!tzid.equals(stz.getID())) { in TestT5432()
1161 + tzid + ") [11-arg constructor]"); in TestT5432()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegressionTest.java1139 String tzid = "MyZone"; in TestT5432() local
1143 stz = new SimpleTimeZone(0, tzid); in TestT5432()
1144 if (!tzid.equals(stz.getID())) { in TestT5432()
1146 + tzid + ") [2-arg constructor]"); in TestT5432()
1150 stz = new SimpleTimeZone(0, tzid, 3, -1, 1, 3600000, 9, -1, 1, 3600000); in TestT5432()
1151 if (!tzid.equals(stz.getID())) { in TestT5432()
1153 + tzid + ") [10-arg constructor]"); in TestT5432()
1157 stz = new SimpleTimeZone(0, tzid, 3, -1, 1, 3600000, 9, -1, 1, 3600000, 3600000); in TestT5432()
1158 if (!tzid.equals(stz.getID())) { in TestT5432()
1160 + tzid + ") [11-arg constructor]"); in TestT5432()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DIBMCalendarTest.java1311 String tzid = (String)test[0]; in TestRepeatedWallTime() local
1312 TimeZone tz = TimeZone.getTimeZone(tzid); in TestRepeatedWallTime()
1323 …errln("Fail: WALLTIME_LAST " + in + "[" + tzid + "] is parsed as " + outLastGMT + "[GMT]. Expected… in TestRepeatedWallTime()
1332 …errln("Fail: (default) " + in + "[" + tzid + "] is parsed as " + outDefGMT + "[GMT]. Expected: " +… in TestRepeatedWallTime()
1341 …errln("Fail: WALLTIME_FIRST " + in + "[" + tzid + "] is parsed as " + outFirstGMT + "[GMT]. Expect… in TestRepeatedWallTime()
1397 String tzid = (String)test[0]; in TestSkippedWallTime() local
1398 TimeZone tz = TimeZone.getTimeZone(tzid); in TestSkippedWallTime()
1416 … errln("Fail: IllegalArgumentException expected - " + in + "[" + tzid + "] (WALLTIME_LAST)"); in TestSkippedWallTime()
1418 …errln("Fail: WALLTIME_LAST " + in + "[" + tzid + "] is parsed as " + outLastGMT + "[GMT]. Expected… in TestSkippedWallTime()
1422 … errln("Fail: Unexpected IllegalArgumentException - " + in + "[" + tzid + "] (WALLTIME_LAST)"); in TestSkippedWallTime()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIBMCalendarTest.java1310 String tzid = (String)test[0]; in TestRepeatedWallTime() local
1311 TimeZone tz = TimeZone.getTimeZone(tzid); in TestRepeatedWallTime()
1322 …errln("Fail: WALLTIME_LAST " + in + "[" + tzid + "] is parsed as " + outLastGMT + "[GMT]. Expected… in TestRepeatedWallTime()
1331 …errln("Fail: (default) " + in + "[" + tzid + "] is parsed as " + outDefGMT + "[GMT]. Expected: " +… in TestRepeatedWallTime()
1340 …errln("Fail: WALLTIME_FIRST " + in + "[" + tzid + "] is parsed as " + outFirstGMT + "[GMT]. Expect… in TestRepeatedWallTime()
1396 String tzid = (String)test[0]; in TestSkippedWallTime() local
1397 TimeZone tz = TimeZone.getTimeZone(tzid); in TestSkippedWallTime()
1415 … errln("Fail: IllegalArgumentException expected - " + in + "[" + tzid + "] (WALLTIME_LAST)"); in TestSkippedWallTime()
1417 …errln("Fail: WALLTIME_LAST " + in + "[" + tzid + "] is parsed as " + outLastGMT + "[GMT]. Expected… in TestSkippedWallTime()
1421 … errln("Fail: Unexpected IllegalArgumentException - " + in + "[" + tzid + "] (WALLTIME_LAST)"); in TestSkippedWallTime()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DVTimeZone.java51 public static VTimeZone create(String tzid) { in create() argument
52 BasicTimeZone basicTimeZone = TimeZone.getFrozenICUTimeZone(tzid, true); in create()
56 VTimeZone vtz = new VTimeZone(tzid); in create()
469 private VTimeZone(String tzid) { in VTimeZone() argument
470 super(tzid); in VTimeZone()
571 String tzid = null; in parse() local
602 tzid = value; in parse()
613 if (tzid == null) { in parse()
679 tzname = getDefaultTZName(tzid, dst); in parse()
767 InitialTimeZoneRule initialRule = new InitialTimeZoneRule(getDefaultTZName(tzid, false), in parse()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DVTimeZone.java50 public static VTimeZone create(String tzid) { in create() argument
51 BasicTimeZone basicTimeZone = TimeZone.getFrozenICUTimeZone(tzid, true); in create()
55 VTimeZone vtz = new VTimeZone(tzid); in create()
438 private VTimeZone(String tzid) { in VTimeZone() argument
439 super(tzid); in VTimeZone()
540 String tzid = null; in parse() local
571 tzid = value; in parse()
582 if (tzid == null) { in parse()
648 tzname = getDefaultTZName(tzid, dst); in parse()
736 InitialTimeZoneRule initialRule = new InitialTimeZoneRule(getDefaultTZName(tzid, false), in parse()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DFormatHandler.java2310 final String tzid = "America/Los_Angeles"; in hasSameBehavior() local
2312 String eca = tzna.getExemplarLocationName(tzid); in hasSameBehavior()
2313 String ecb = tznb.getExemplarLocationName(tzid); in hasSameBehavior()
2357 for (String tzid : TZIDS) { in hasSameBehavior()
2358 TimeZone tz = TimeZone.getTimeZone(tzid); in hasSameBehavior()
2404 for (String tzid : TZIDS) { in hasSameBehavior()
2407 String nameA = tzdbna.getDisplayName(tzid, nt, date); in hasSameBehavior()
2408 String nameB = tzdbnb.getDisplayName(tzid, nt, date); in hasSameBehavior()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatHandler.java2309 final String tzid = "America/Los_Angeles"; in hasSameBehavior() local
2311 String eca = tzna.getExemplarLocationName(tzid); in hasSameBehavior()
2312 String ecb = tznb.getExemplarLocationName(tzid); in hasSameBehavior()
2356 for (String tzid : TZIDS) { in hasSameBehavior()
2357 TimeZone tz = TimeZone.getTimeZone(tzid); in hasSameBehavior()
2403 for (String tzid : TZIDS) { in hasSameBehavior()
2406 String nameA = tzdbna.getDisplayName(tzid, nt, date); in hasSameBehavior()
2407 String nameB = tzdbnb.getDisplayName(tzid, nt, date); in hasSameBehavior()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timezone/
DICUZDump.java349 …private static void dumpZone(Writer w, String lineSep, String tzid, int low, int high, boolean isJ… in dumpZone() argument
353 tzimpl = java.util.TimeZone.getTimeZone(tzid); in dumpZone()
355 tzimpl = com.ibm.icu.util.TimeZone.getTimeZone(tzid); in dumpZone()

12