Lines Matching refs:TimeZone
100 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
116 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
119 TimeZone::adoptDefault(zone); in TestGenericAPI()
120 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
124 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
144 TimeZone* hostZone = TimeZone::detectHostTimeZone(); in TestGenericAPI()
155 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
247 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
277 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch()
323 TimeZone* tz = TimeZone::createTimeZone("PRT"); in TestPRTOffset()
350 TimeZone* time_zone = TimeZone::createTimeZone("PST"); in TestVariousAPI518()
384 const UnicodeString** ids = TimeZone::createAvailableIDs(numIDs); in TestGetAvailableIDs913()
400 ids = TimeZone::createAvailableIDs(-8*U_MILLIS_PER_HOUR, numIDs); in TestGetAvailableIDs913()
415 ids = TimeZone::createAvailableIDs("US", numIDs); in TestGetAvailableIDs913()
434 StringEnumeration* s = TimeZone::createEnumeration(ec); in TestGetAvailableIDs913()
435 LocalPointer<StringEnumeration> tmp1(TimeZone::createEnumeration(), ec); in TestGetAvailableIDs913()
475 TimeZone *z = TimeZone::createTimeZone(*id); in TestGetAvailableIDs913()
494 s = TimeZone::createEnumerationForRawOffset(1 * U_MILLIS_PER_HOUR, ec); in TestGetAvailableIDs913()
495 LocalPointer<StringEnumeration> tmp2(TimeZone::createEnumeration(1 * U_MILLIS_PER_HOUR), ec); in TestGetAvailableIDs913()
516 s = TimeZone::createEnumerationForRegion("US", ec); in TestGetAvailableIDs913()
517 LocalPointer<StringEnumeration> tmp3(TimeZone::createEnumeration("US"), ec); in TestGetAvailableIDs913()
533 TimeZone *tz = TimeZone::createTimeZone("PST"); in TestGetAvailableIDs913()
537 tz = TimeZone::createTimeZone("America/Los_Angeles"); in TestGetAvailableIDs913()
543 tz = TimeZone::createTimeZone("NON_EXISTENT"); in TestGetAvailableIDs913()
571 any = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, NULL, ec); in TestGetAvailableIDsNew()
577 canonical = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, NULL, NULL, ec); in TestGetAvailableIDsNew()
583 …canonicalLoc = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, NULL, NULL… in TestGetAvailableIDsNew()
589 any_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", NULL, ec); in TestGetAvailableIDsNew()
595 canonical_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, "US", NULL, ec); in TestGetAvailableIDsNew()
601 …canonicalLoc_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, "US", N… in TestGetAvailableIDsNew()
608 any_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, &rawOffset, ec); in TestGetAvailableIDsNew()
614 any_CA_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "CA", &rawOffset, ec); in TestGetAvailableIDsNew()
621 any_US_E14 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", &rawOffset, ec); in TestGetAvailableIDsNew()
655 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec); in TestGetAvailableIDsNew()
675 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec); in TestGetAvailableIDsNew()
694 TimeZone::getRegion(*id1, region, sizeof(region), ec); in TestGetAvailableIDsNew()
710 TimeZone::getRegion(*id1, region, sizeof(region), ec); in TestGetAvailableIDsNew()
726 TimeZone *tz = TimeZone::createTimeZone(*id1); in TestGetAvailableIDsNew()
936 TimeZone *tz = TimeZone::createTimeZone(itsID); in TestShortZoneIDs()
937 if (!tz || (kReferenceList[i].offset != 0 && *tz == *TimeZone::getGMT())) { in TestShortZoneIDs()
1028 TimeZone *tz1 = TimeZone::createTimeZone(zone1); in TestShortZoneIDs()
1029 TimeZone *tz2 = TimeZone::createTimeZone(zone2); in TestShortZoneIDs()
1197 TimeZone *zone = TimeZone::createTimeZone(id); in TestCustomParse()
1379 TimeZone::EDisplayType styles[] = { TimeZone::SHORT, TimeZone::LONG }; in TestAliasedNames()
1385 TimeZone *from = NULL, *to = NULL; in TestAliasedNames()
1387 from = TimeZone::createTimeZone(kData[i].from); in TestAliasedNames()
1388 to = TimeZone::createTimeZone(kData[i].to); in TestAliasedNames()
1440 TimeZone *zone = TimeZone::createTimeZone("PST"); in TestDisplayName()
1455 TimeZone::EDisplayType style; in TestDisplayName()
1458 {false, TimeZone::SHORT, "PST"}, in TestDisplayName()
1459 {true, TimeZone::SHORT, "PDT"}, in TestDisplayName()
1460 {false, TimeZone::LONG, "Pacific Standard Time"}, in TestDisplayName()
1461 {true, TimeZone::LONG, "Pacific Daylight Time"}, in TestDisplayName()
1463 {false, TimeZone::SHORT_GENERIC, "PT"}, in TestDisplayName()
1464 {true, TimeZone::SHORT_GENERIC, "PT"}, in TestDisplayName()
1465 {false, TimeZone::LONG_GENERIC, "Pacific Time"}, in TestDisplayName()
1466 {true, TimeZone::LONG_GENERIC, "Pacific Time"}, in TestDisplayName()
1468 {false, TimeZone::SHORT_GMT, "-0800"}, in TestDisplayName()
1469 {true, TimeZone::SHORT_GMT, "-0700"}, in TestDisplayName()
1470 {false, TimeZone::LONG_GMT, "GMT-08:00"}, in TestDisplayName()
1471 {true, TimeZone::LONG_GMT, "GMT-07:00"}, in TestDisplayName()
1473 {false, TimeZone::SHORT_COMMONLY_USED, "PST"}, in TestDisplayName()
1474 {true, TimeZone::SHORT_COMMONLY_USED, "PDT"}, in TestDisplayName()
1475 {false, TimeZone::GENERIC_LOCATION, "Los Angeles Time"}, in TestDisplayName()
1476 {true, TimeZone::GENERIC_LOCATION, "Los Angeles Time"}, in TestDisplayName()
1478 {false, TimeZone::LONG, ""} in TestDisplayName()
1726 TimeZone* tz_icu = TimeZone::createTimeZone(tzName); in TestFractionalDST()
1748 StringEnumeration* s = TimeZone::createEnumerationForRegion("US", ec); in TestCountries()
1778 s = TimeZone::createEnumerationForRegion("JP", ec); in TestCountries()
1799 StringEnumeration* s1 = TimeZone::createEnumerationForRegion("US", ec); in TestCountries()
1800 StringEnumeration* s2 = TimeZone::createEnumerationForRegion("US", ec); in TestCountries()
1810 TimeZone* tz1 = TimeZone::createTimeZone(*id1); in TestCountries()
1816 TimeZone* tz2 = TimeZone::createTimeZone(*id2); in TestCountries()
1855 TimeZone *tz = TimeZone::createTimeZone(id); in TestHistorical()
1885 int32_t n = TimeZone::countEquivalentIDs("PST"); in TestEquivalentIDs()
1891 UnicodeString id = TimeZone::getEquivalentID("PST", i); in TestEquivalentIDs()
1941 GregorianCalendar gc(*TimeZone::getGMT(), status); in TestFebruary()
1974 TimeZone *timezones[] = { &tz1, &tz2 }; in TestFebruary()
1976 TimeZone *tz; in TestFebruary()
2018 UnicodeString *pResult = &TimeZone::getCanonicalID(bogus, canonicalID, ec); in TestCanonicalIDAPI()
2025 pResult = &TimeZone::getCanonicalID(berlin, canonicalID, ec); in TestCanonicalIDAPI()
2032 pResult = &TimeZone::getCanonicalID(berlin, canonicalID, ec); in TestCanonicalIDAPI()
2193 StringEnumeration* s = TimeZone::createEnumeration(ec); in TestCanonicalID()
2202 int32_t nEquiv = TimeZone::countEquivalentIDs(*tzid); in TestCanonicalID()
2212 UnicodeString tmp = TimeZone::getEquivalentID(*tzid, j); in TestCanonicalID()
2213 TimeZone::getCanonicalID(tmp, tmpCanonical, ec); in TestCanonicalID()
2279 TimeZone::getCanonicalID(UnicodeString(data[i].id), canonicalID, isSystemID, ec); in TestCanonicalID()
2307 TimeZone::EDisplayType style;
2311 {"Europe/London", "en", false, TimeZone::SHORT, "GMT"},
2312 {"Europe/London", "en", false, TimeZone::LONG, "Greenwich Mean Time"},
2313 {"Europe/London", "en", true, TimeZone::SHORT, "GMT+1" /*"BST"*/},
2314 {"Europe/London", "en", true, TimeZone::LONG, "British Summer Time"},
2316 {"America/Anchorage", "en", false, TimeZone::SHORT, "AKST"},
2317 {"America/Anchorage", "en", false, TimeZone::LONG, "Alaska Standard Time"},
2318 {"America/Anchorage", "en", true, TimeZone::SHORT, "AKDT"},
2319 {"America/Anchorage", "en", true, TimeZone::LONG, "Alaska Daylight Time"},
2322 {"Australia/Perth", "en", false, TimeZone::SHORT, "GMT+8"/*"AWST"*/},
2323 {"Australia/Perth", "en", false, TimeZone::LONG, "Australian Western Standard Time"},
2327 {"Australia/Perth", "en", true, TimeZone::SHORT, "GMT+8"/*"AWDT"*/},
2328 {"Australia/Perth", "en", true, TimeZone::LONG, "Australian Western Daylight Time"},
2330 {"America/Sao_Paulo", "en", false, TimeZone::SHORT, "GMT-3"/*"BRT"*/},
2331 {"America/Sao_Paulo", "en", false, TimeZone::LONG, "Brasilia Standard Time"},
2339 {"Pacific/Honolulu", "en", false, TimeZone::SHORT, "HST"},
2340 {"Pacific/Honolulu", "en", false, TimeZone::LONG, "Hawaii-Aleutian Standard Time"},
2341 {"Pacific/Honolulu", "en", true, TimeZone::SHORT, "HDT"},
2342 {"Pacific/Honolulu", "en", true, TimeZone::LONG, "Hawaii-Aleutian Daylight Time"},
2345 {"Europe/Helsinki", "en", false, TimeZone::SHORT, "GMT+2"/*"EET"*/},
2346 {"Europe/Helsinki", "en", false, TimeZone::LONG, "Eastern European Standard Time"},
2347 {"Europe/Helsinki", "en", true, TimeZone::SHORT, "GMT+3"/*"EEST"*/},
2348 {"Europe/Helsinki", "en", true, TimeZone::LONG, "Eastern European Summer Time"},
2352 {"Europe/London", "en", true, TimeZone::SHORT, "GMT+1" /*"BST"*/},
2353 {"Europe/London", "en", true, TimeZone::LONG, "British Summer Time"},
2355 {NULL, NULL, false, TimeZone::SHORT, NULL} // NULL values terminate list
2360 GregorianCalendar cal(*TimeZone::getGMT(), status); in TestDisplayNamesMeta()
2366 TimeZone *zone = TimeZone::createTimeZone(zoneDisplayTestData[testNum].zoneName); in TestDisplayNamesMeta()
2383 zoneDisplayTestData[testNum].style==TimeZone::SHORT ? in TestDisplayNamesMeta()
2395 zoneDisplayTestData[testNum].style==TimeZone::SHORT ? in TestDisplayNamesMeta()
2440 TimeZone::getRegion(data[i].id, region, sizeof(region), sts); in TestGetRegion()
2466 len = TimeZone::getRegion("America/New_York", region2, sizeof(region2), sts); in TestGetRegion()
2484 len = TimeZone::getRegion("America/Chicago", region1, sizeof(region1), sts); in TestGetRegion()
2498 const TimeZone &unknown = TimeZone::getUnknown(); in TestGetUnknown()
2507 const TimeZone *gmt = TimeZone::getGMT(); in TestGetGMT()
2538 TimeZone::getWindowsID(UnicodeString(TESTDATA[i].id), windowsID, sts); in TestGetWindowsID()
2566 TimeZone::getIDForWindowsID(UnicodeString(TESTDATA[i].winid), TESTDATA[i].region, in TestGetIDForWindowsID()
2574 std::unique_ptr<TimeZone> zone(TimeZone::createTimeZone("Africa/Casablanca")); in TestCasablancaNameAndOffset22041()
2576 zone->getDisplayName(false, TimeZone::LONG, Locale::getEnglish(), standardName); in TestCasablancaNameAndOffset22041()
2577 zone->getDisplayName(true, TimeZone::LONG, Locale::getEnglish(), summerName); in TestCasablancaNameAndOffset22041()
2591 LocalPointer<StringEnumeration> s(TimeZone::createEnumeration(status)); in TestRawOffsetAndOffsetConsistency22041()
2599 std::unique_ptr<TimeZone> zone(TimeZone::createTimeZone(tz)); in TestRawOffsetAndOffsetConsistency22041()