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.java50 for (String tzid : tzids) { in TestTimeZoneNames()
55 String icuStdLong = getIcuDisplayName(tzid, false, TimeZone.LONG, loc); in TestTimeZoneNames()
56 String icuDstLong = getIcuDisplayName(tzid, true, TimeZone.LONG, loc); in TestTimeZoneNames()
57 String icuStdShort = getIcuDisplayName(tzid, false, TimeZone.SHORT, loc); in TestTimeZoneNames()
58 String icuDstShort = getIcuDisplayName(tzid, true, TimeZone.SHORT, loc); in TestTimeZoneNames()
61 … checkDisplayNamePair(TimeZone.SHORT, tzid, loc, warningOnly || ProblematicZones.contains(tzid)); in TestTimeZoneNames()
62 … checkDisplayNamePair(TimeZone.LONG, tzid, loc, warningOnly || ProblematicZones.contains(tzid)); in TestTimeZoneNames()
65 + tzid + " in locale " + loc + " in ICU"); in TestTimeZoneNames()
71 private void checkDisplayNamePair(int style, String tzid, Locale loc, boolean warnOnly) { in checkDisplayNamePair() argument
84 String icuStdName = getIcuDisplayName(tzid, false, style, loc); in checkDisplayNamePair()
[all …]
/external/icu/icu4c/source/i18n/
Dzonemeta.h37 …static UnicodeString& U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &syste…
44 static const UChar* U_EXPORT2 getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status);
59 …static UnicodeString& U_EXPORT2 getCanonicalCountry(const UnicodeString &tzid, UnicodeString &coun…
64 …static UnicodeString& U_EXPORT2 getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString…
70 static const UVector* U_EXPORT2 getMetazoneMappings(const UnicodeString &tzid);
78 static const UChar* U_EXPORT2 findTimeZoneID(const UnicodeString& tzid);
111 static UVector* createMetazoneMappings(const UnicodeString &tzid);
Dzonemeta.cpp233 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status) { in getCanonicalCLDRID() argument
238 if (tzid.isBogus() || tzid.length() > ZID_KEY_MAX) { in getCanonicalCLDRID()
253 tzid.extract(utzid, ZID_KEY_MAX + 1, tmpStatus); in getCanonicalCLDRID()
270 tzid.extract(0, 0x7fffffff, id, UPRV_LENGTHOF(id), US_INV); in getCanonicalCLDRID()
287 canonicalID = TimeZone::findID(tzid); in getCanonicalCLDRID()
304 const UChar *derefer = TimeZone::dereferOlsonLink(tzid); in getCanonicalCLDRID()
346 const UChar* key = ZoneMeta::findTimeZoneID(tzid); in getCanonicalCLDRID()
369 ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status… in getCanonicalCLDRID() argument
370 const UChar *canonicalID = getCanonicalCLDRID(tzid, status); in getCanonicalCLDRID()
414 ZoneMeta::getCanonicalCountry(const UnicodeString &tzid, UnicodeString &country, UBool *isPrimary /… in getCanonicalCountry() argument
[all …]
Dolsontz.cpp120 const UnicodeString& tzid, in OlsonTimeZone() argument
122 BasicTimeZone(tzid), finalZone(NULL) in OlsonTimeZone()
255 canonicalID = ZoneMeta::getCanonicalCLDRID(tzid, ec); in OlsonTimeZone()
709 UnicodeString tzid; in initTransitionRules() local
710 getID(tzid); in initTransitionRules()
712 UnicodeString stdName = tzid + UNICODE_STRING_SIMPLE("(STD)"); in initTransitionRules()
713 UnicodeString dstName = tzid + UNICODE_STRING_SIMPLE("(DST)"); in initTransitionRules()
847 finalZone->getID(tzid); in initTransitionRules()
848 firstFinalRule = new TimeArrayTimeZoneRule(tzid, in initTransitionRules()
Dvtzone.cpp359 static void getDefaultTZName(const UnicodeString tzid, UBool isDST, UnicodeString& zonename) { in getDefaultTZName() argument
360 zonename = tzid; in getDefaultTZName()
1358 UnicodeString tzid; in parse() local
1415 tzid = value; in parse()
1429 if (tzid.length() == 0) { in parse()
1501 getDefaultTZName(tzid, dst, zonename); in parse()
1586 getDefaultTZName(tzid, FALSE, zonename); in parse()
1595 rbtz = new RuleBasedTimeZone(tzid, initialRule); in parse()
1701 setID(tzid); in parse()
1779 UnicodeString tzid; in write() local
[all …]
Dsimpletz.cpp1102 UnicodeString tzid; in initTransitionRules() local
1103 getID(tzid); in initTransitionRules()
1136 … dstRule = new AnnualTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), getDSTSavings(), in initTransitionRules()
1174 stdRule = new AnnualTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0, in initTransitionRules()
1189 …initialRule = new InitialTimeZoneRule(tzid+UnicodeString(DST_STR), getRawOffset(), dstRule->getDST… in initTransitionRules()
1192 initialRule = new InitialTimeZoneRule(tzid+UnicodeString(STD_STR), getRawOffset(), 0); in initTransitionRules()
1204 initialRule = new InitialTimeZoneRule(tzid, getRawOffset(), 0); in initTransitionRules()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DZoneMeta.java358 public static String getCanonicalCLDRID(String tzid) { in getCanonicalCLDRID() argument
359 String canonical = CANONICAL_ID_CACHE.get(tzid); in getCanonicalCLDRID()
361 canonical = findCLDRCanonicalID(tzid); in getCanonicalCLDRID()
365 int zoneIdx = getZoneIndex(tzid); in getCanonicalCLDRID()
373 tzid = getZoneID(zone.getInt()); in getCanonicalCLDRID()
374 canonical = findCLDRCanonicalID(tzid); in getCanonicalCLDRID()
377 canonical = tzid; in getCanonicalCLDRID()
385 CANONICAL_ID_CACHE.put(tzid, canonical); in getCanonicalCLDRID()
391 private static String findCLDRCanonicalID(String tzid) { in findCLDRCanonicalID() argument
393 String tzidKey = tzid.replace('/', ':'); in findCLDRCanonicalID()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DZoneMeta.java359 public static String getCanonicalCLDRID(String tzid) { in getCanonicalCLDRID() argument
360 String canonical = CANONICAL_ID_CACHE.get(tzid); in getCanonicalCLDRID()
362 canonical = findCLDRCanonicalID(tzid); in getCanonicalCLDRID()
366 int zoneIdx = getZoneIndex(tzid); in getCanonicalCLDRID()
374 tzid = getZoneID(zone.getInt()); in getCanonicalCLDRID()
375 canonical = findCLDRCanonicalID(tzid); in getCanonicalCLDRID()
378 canonical = tzid; in getCanonicalCLDRID()
386 CANONICAL_ID_CACHE.put(tzid, canonical); in getCanonicalCLDRID()
392 private static String findCLDRCanonicalID(String tzid) { in findCLDRCanonicalID() argument
394 String tzidKey = tzid.replace('/', ':'); in findCLDRCanonicalID()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtzfmttst.cpp175 const UnicodeString *tzid; in TestTimeZoneRoundTrip() local
176 while ((tzid = tzids->snext(status))) { in TestTimeZoneRoundTrip()
177 TimeZone *tz = TimeZone::createTimeZone(*tzid); in TestTimeZoneRoundTrip()
211 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid); in TestTimeZoneRoundTrip()
223 TimeZone::getCanonicalID(*tzid, canonicalID, status); in TestTimeZoneRoundTrip()
226 errln((UnicodeString)"Unknown ID " + *tzid); in TestTimeZoneRoundTrip()
232 … logln((UnicodeString)"Canonical round trip failed (probably as expected); tz=" + *tzid in TestTimeZoneRoundTrip()
237 errln((UnicodeString)"Canonical round trip failed; tz=" + *tzid in TestTimeZoneRoundTrip()
245 if (outtzid != *tzid) { in TestTimeZoneRoundTrip()
246 errln((UnicodeString)"Zone ID round trip failued; tz=" + *tzid in TestTimeZoneRoundTrip()
[all …]
Dtzrulets.cpp613 const UnicodeString *tzid = tzenum.snext(status); in TestOlsonTransition() local
614 if (tzid == NULL) { in TestOlsonTransition()
621 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestOlsonTransition()
648 const UnicodeString *tzid = tzenum.snext(status); in TestRBTZTransition() local
649 if (tzid == NULL) { in TestRBTZTransition()
656 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestRBTZTransition()
663 errln((UnicodeString)"FAIL: failed to get the TimeZoneRules from time zone " + *tzid); in TestRBTZTransition()
665 RuleBasedTimeZone *rbtz = new RuleBasedTimeZone(*tzid, initial->clone()); in TestRBTZTransition()
667 … errln((UnicodeString)"FAIL: failed to get the transition rule count from time zone " + *tzid); in TestRBTZTransition()
672 …UnicodeString)"FAIL: failed to add a transition rule at index " + i + " to the RBTZ for " + *tzid); in TestRBTZTransition()
[all …]
Dcaltest.cpp380 UnicodeString tzid("TestZone"); in TestGenericAPI() local
383 SimpleTimeZone *zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI()
442 if (z->getID(str) != tzid || in TestGenericAPI()
2519 const char* tzid; member
2561 for (int32_t i = 0; RPDATA[i].tzid != NULL; i++) { in TestRepeatedWallTime()
2563 TimeZone *tz = TimeZone::createTimeZone(RPDATA[i].tzid); in TestRepeatedWallTime()
2573 + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "]"); in TestRepeatedWallTime()
2576 …LLTIME_LAST ") + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "] is parsed as " in TestRepeatedWallTime()
2589 + RPDATA[i].in.toString(buf, sizeof(buf)) + "[" + RPDATA[i].tzid + "]"); in TestRepeatedWallTime()
2592 …: (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.java698 String tzid = tz.getID(); in TestTimeZone() local
699 if (!tzid.equals("Asia/Shanghai")) { in TestTimeZone()
700 errln("FAIL: Time zone ID is " + tzid + " Expected: Asia/Shanghai"); in TestTimeZone()
707 tzid = tz.getID(); in TestTimeZone()
708 if (!tzid.equals("America/New_York")) { in TestTimeZone()
709 errln("FAIL: Time zone ID is " + tzid + " Expected: America/New_York"); in TestTimeZone()
716 tzid = tz.getID(); in TestTimeZone()
717 if (!tzid.equals("Europe/London")) { in TestTimeZone()
718 errln("FAIL: Time zone ID is " + tzid + " Expected: Europe/London"); in TestTimeZone()
724 tzid = tz.getID(); in TestTimeZone()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java694 String tzid = tz.getID(); in TestTimeZone() local
695 if (!tzid.equals("Asia/Shanghai")) { in TestTimeZone()
696 errln("FAIL: Time zone ID is " + tzid + " Expected: Asia/Shanghai"); in TestTimeZone()
703 tzid = tz.getID(); in TestTimeZone()
704 if (!tzid.equals("America/New_York")) { in TestTimeZone()
705 errln("FAIL: Time zone ID is " + tzid + " Expected: America/New_York"); in TestTimeZone()
712 tzid = tz.getID(); in TestTimeZone()
713 if (!tzid.equals("Europe/London")) { in TestTimeZone()
714 errln("FAIL: Time zone ID is " + tzid + " Expected: Europe/London"); in TestTimeZone()
720 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/test/perf/normperf/
Ddtfmtrtperf.h161 const UnicodeString *tzid; in call() local
162 while ((tzid = tzids->snext(*status))) { in call()
163 TimeZone *tz = TimeZone::createTimeZone(*tzid); in call()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRegression.java1121 String tzid = "MyZone"; in TestT5432() local
1125 stz = new SimpleTimeZone(0, tzid); in TestT5432()
1126 if (!tzid.equals(stz.getID())) { in TestT5432()
1128 + tzid + ") [2-arg constructor]"); in TestT5432()
1132 stz = new SimpleTimeZone(0, tzid, 3, -1, 1, 3600000, 9, -1, 1, 3600000); in TestT5432()
1133 if (!tzid.equals(stz.getID())) { in TestT5432()
1135 + tzid + ") [10-arg constructor]"); in TestT5432()
1139 stz = new SimpleTimeZone(0, tzid, 3, -1, 1, 3600000, 9, -1, 1, 3600000, 3600000); in TestT5432()
1140 if (!tzid.equals(stz.getID())) { in TestT5432()
1142 + tzid + ") [11-arg constructor]"); in TestT5432()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegression.java1117 String tzid = "MyZone"; in TestT5432() local
1121 stz = new SimpleTimeZone(0, tzid); in TestT5432()
1122 if (!tzid.equals(stz.getID())) { in TestT5432()
1124 + tzid + ") [2-arg constructor]"); in TestT5432()
1128 stz = new SimpleTimeZone(0, tzid, 3, -1, 1, 3600000, 9, -1, 1, 3600000); in TestT5432()
1129 if (!tzid.equals(stz.getID())) { in TestT5432()
1131 + tzid + ") [10-arg constructor]"); in TestT5432()
1135 stz = new SimpleTimeZone(0, tzid, 3, -1, 1, 3600000, 9, -1, 1, 3600000, 3600000); in TestT5432()
1136 if (!tzid.equals(stz.getID())) { in TestT5432()
1138 + tzid + ") [11-arg constructor]"); in TestT5432()
[all …]
/external/icu/icu4c/source/common/
Dputil.cpp976 const char *tzid = NULL; in uprv_tzname() local
978 tzid = uprv_detectWindowsTimeZone(); in uprv_tzname()
980 if (tzid != NULL) { in uprv_tzname()
981 return tzid; in uprv_tzname()
996 tzid = getenv("TZ"); in uprv_tzname()
997 if (tzid != NULL && isValidOlsonID(tzid) in uprv_tzname()
1000 && uprv_strcmp(tzid, TZ_ENV_CHECK) != 0 in uprv_tzname()
1004 skipZoneIDPrefix(&tzid); in uprv_tzname()
1005 return tzid; in uprv_tzname()
1102 tzid = remapShortTimeZone(U_TZNAME[0], U_TZNAME[1], daylightType, uprv_timezone()); in uprv_tzname()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DIBMCalendarTest.java1275 String tzid = (String)test[0]; in TestRepeatedWallTime() local
1276 TimeZone tz = TimeZone.getTimeZone(tzid); in TestRepeatedWallTime()
1287 …errln("Fail: WALLTIME_LAST " + in + "[" + tzid + "] is parsed as " + outLastGMT + "[GMT]. Expected… in TestRepeatedWallTime()
1296 …errln("Fail: (default) " + in + "[" + tzid + "] is parsed as " + outDefGMT + "[GMT]. Expected: " +… in TestRepeatedWallTime()
1305 …errln("Fail: WALLTIME_FIRST " + in + "[" + tzid + "] is parsed as " + outFirstGMT + "[GMT]. Expect… in TestRepeatedWallTime()
1360 String tzid = (String)test[0]; in TestSkippedWallTime() local
1361 TimeZone tz = TimeZone.getTimeZone(tzid); in TestSkippedWallTime()
1379 … errln("Fail: IllegalArgumentException expected - " + in + "[" + tzid + "] (WALLTIME_LAST)"); in TestSkippedWallTime()
1381 …errln("Fail: WALLTIME_LAST " + in + "[" + tzid + "] is parsed as " + outLastGMT + "[GMT]. Expected… in TestSkippedWallTime()
1385 … 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.java1271 String tzid = (String)test[0]; in TestRepeatedWallTime() local
1272 TimeZone tz = TimeZone.getTimeZone(tzid); in TestRepeatedWallTime()
1283 …errln("Fail: WALLTIME_LAST " + in + "[" + tzid + "] is parsed as " + outLastGMT + "[GMT]. Expected… in TestRepeatedWallTime()
1292 …errln("Fail: (default) " + in + "[" + tzid + "] is parsed as " + outDefGMT + "[GMT]. Expected: " +… in TestRepeatedWallTime()
1301 …errln("Fail: WALLTIME_FIRST " + in + "[" + tzid + "] is parsed as " + outFirstGMT + "[GMT]. Expect… in TestRepeatedWallTime()
1356 String tzid = (String)test[0]; in TestSkippedWallTime() local
1357 TimeZone tz = TimeZone.getTimeZone(tzid); in TestSkippedWallTime()
1375 … errln("Fail: IllegalArgumentException expected - " + in + "[" + tzid + "] (WALLTIME_LAST)"); in TestSkippedWallTime()
1377 …errln("Fail: WALLTIME_LAST " + in + "[" + tzid + "] is parsed as " + outLastGMT + "[GMT]. Expected… in TestSkippedWallTime()
1381 … errln("Fail: Unexpected IllegalArgumentException - " + in + "[" + tzid + "] (WALLTIME_LAST)"); in TestSkippedWallTime()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DVTimeZone.java48 public static VTimeZone create(String tzid) { in create() argument
49 VTimeZone vtz = new VTimeZone(tzid); in create()
50 vtz.tz = (BasicTimeZone)TimeZone.getTimeZone(tzid, TimeZone.TIMEZONE_ICU); in create()
432 private VTimeZone(String tzid) { in VTimeZone() argument
433 super(tzid); in VTimeZone()
534 String tzid = null; in parse() local
565 tzid = value; in parse()
576 if (tzid == null) { in parse()
642 tzname = getDefaultTZName(tzid, dst); in parse()
730 InitialTimeZoneRule initialRule = new InitialTimeZoneRule(getDefaultTZName(tzid, false), in parse()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DVTimeZone.java49 public static VTimeZone create(String tzid) { in create() argument
50 VTimeZone vtz = new VTimeZone(tzid); in create()
51 vtz.tz = (BasicTimeZone)TimeZone.getTimeZone(tzid, TimeZone.TIMEZONE_ICU); in create()
463 private VTimeZone(String tzid) { in VTimeZone() argument
464 super(tzid); in VTimeZone()
565 String tzid = null; in parse() local
596 tzid = value; in parse()
607 if (tzid == null) { in parse()
673 tzname = getDefaultTZName(tzid, dst); in parse()
761 InitialTimeZoneRule initialRule = new InitialTimeZoneRule(getDefaultTZName(tzid, false), in parse()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DFormatTests.java2241 final String tzid = "America/Los_Angeles"; in hasSameBehavior() local
2243 String eca = tzna.getExemplarLocationName(tzid); in hasSameBehavior()
2244 String ecb = tznb.getExemplarLocationName(tzid); in hasSameBehavior()
2286 for (String tzid : TZIDS) { in hasSameBehavior()
2287 TimeZone tz = TimeZone.getTimeZone(tzid); in hasSameBehavior()
2331 for (String tzid : TZIDS) { in hasSameBehavior()
2334 String nameA = tzdbna.getDisplayName(tzid, nt, date); in hasSameBehavior()
2335 String nameB = tzdbnb.getDisplayName(tzid, nt, date); in hasSameBehavior()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timezone/
DICUZDump.java347 …private static void dumpZone(Writer w, String lineSep, String tzid, int low, int high, boolean isJ… in dumpZone() argument
351 tzimpl = java.util.TimeZone.getTimeZone(tzid); in dumpZone()
353 tzimpl = com.ibm.icu.util.TimeZone.getTimeZone(tzid); in dumpZone()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatTests.java2240 final String tzid = "America/Los_Angeles"; in hasSameBehavior() local
2242 String eca = tzna.getExemplarLocationName(tzid); in hasSameBehavior()
2243 String ecb = tznb.getExemplarLocationName(tzid); in hasSameBehavior()
2285 for (String tzid : TZIDS) { in hasSameBehavior()
2286 TimeZone tz = TimeZone.getTimeZone(tzid); in hasSameBehavior()
2330 for (String tzid : TZIDS) { in hasSameBehavior()
2333 String nameA = tzdbna.getDisplayName(tzid, nt, date); in hasSameBehavior()
2334 String nameB = tzdbnb.getDisplayName(tzid, nt, date); in hasSameBehavior()

12