Lines Matching refs:TimeZone
96 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
112 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
115 TimeZone::adoptDefault(zone); in TestGenericAPI()
116 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
120 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
141 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
230 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
260 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch()
306 TimeZone* tz = TimeZone::createTimeZone("PRT"); in TestPRTOffset()
333 TimeZone* time_zone = TimeZone::createTimeZone("PST"); in TestVariousAPI518()
367 const UnicodeString** ids = TimeZone::createAvailableIDs(numIDs); in TestGetAvailableIDs913()
383 ids = TimeZone::createAvailableIDs(-8*U_MILLIS_PER_HOUR, numIDs); in TestGetAvailableIDs913()
398 ids = TimeZone::createAvailableIDs("US", numIDs); in TestGetAvailableIDs913()
417 StringEnumeration* s = TimeZone::createEnumeration(); in TestGetAvailableIDs913()
454 TimeZone *z = TimeZone::createTimeZone(*id); in TestGetAvailableIDs913()
473 s = TimeZone::createEnumeration(1 * U_MILLIS_PER_HOUR); in TestGetAvailableIDs913()
487 s = TimeZone::createEnumeration("US"); in TestGetAvailableIDs913()
496 TimeZone *tz = TimeZone::createTimeZone("PST"); in TestGetAvailableIDs913()
500 tz = TimeZone::createTimeZone("America/Los_Angeles"); in TestGetAvailableIDs913()
506 tz = TimeZone::createTimeZone("NON_EXISTENT"); in TestGetAvailableIDs913()
535 any = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, NULL, ec); in TestGetAvailableIDsNew()
541 canonical = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, NULL, NULL, ec); in TestGetAvailableIDsNew()
547 …canonicalLoc = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, NULL, NULL… in TestGetAvailableIDsNew()
553 any_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", NULL, ec); in TestGetAvailableIDsNew()
559 canonical_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, "US", NULL, ec); in TestGetAvailableIDsNew()
565 …canonicalLoc_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, "US", N… in TestGetAvailableIDsNew()
572 any_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, &rawOffset, ec); in TestGetAvailableIDsNew()
578 any_CA_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "CA", &rawOffset, ec); in TestGetAvailableIDsNew()
585 any_US_E14 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", &rawOffset, ec); in TestGetAvailableIDsNew()
619 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec); in TestGetAvailableIDsNew()
639 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec); in TestGetAvailableIDsNew()
658 TimeZone::getRegion(*id1, region, sizeof(region), ec); in TestGetAvailableIDsNew()
674 TimeZone::getRegion(*id1, region, sizeof(region), ec); in TestGetAvailableIDsNew()
690 TimeZone *tz = TimeZone::createTimeZone(*id1); in TestGetAvailableIDsNew()
898 TimeZone *tz = TimeZone::createTimeZone(itsID); in TestShortZoneIDs()
899 if (!tz || (kReferenceList[i].offset != 0 && *tz == *TimeZone::getGMT())) { in TestShortZoneIDs()
990 TimeZone *tz1 = TimeZone::createTimeZone(zone1); in TestShortZoneIDs()
991 TimeZone *tz2 = TimeZone::createTimeZone(zone2); in TestShortZoneIDs()
1159 TimeZone *zone = TimeZone::createTimeZone(id); in TestCustomParse()
1318 TimeZone::EDisplayType styles[] = { TimeZone::SHORT, TimeZone::LONG }; in TestAliasedNames()
1324 TimeZone *from = NULL, *to = NULL; in TestAliasedNames()
1326 from = TimeZone::createTimeZone(kData[i].from); in TestAliasedNames()
1327 to = TimeZone::createTimeZone(kData[i].to); in TestAliasedNames()
1379 TimeZone *zone = TimeZone::createTimeZone("PST"); in TestDisplayName()
1394 TimeZone::EDisplayType style; in TestDisplayName()
1397 {FALSE, TimeZone::SHORT, "PST"}, in TestDisplayName()
1398 {TRUE, TimeZone::SHORT, "PDT"}, in TestDisplayName()
1399 {FALSE, TimeZone::LONG, "Pacific Standard Time"}, in TestDisplayName()
1400 {TRUE, TimeZone::LONG, "Pacific Daylight Time"}, in TestDisplayName()
1402 {FALSE, TimeZone::SHORT_GENERIC, "PT"}, in TestDisplayName()
1403 {TRUE, TimeZone::SHORT_GENERIC, "PT"}, in TestDisplayName()
1404 {FALSE, TimeZone::LONG_GENERIC, "Pacific Time"}, in TestDisplayName()
1405 {TRUE, TimeZone::LONG_GENERIC, "Pacific Time"}, in TestDisplayName()
1407 {FALSE, TimeZone::SHORT_GMT, "-0800"}, in TestDisplayName()
1408 {TRUE, TimeZone::SHORT_GMT, "-0700"}, in TestDisplayName()
1409 {FALSE, TimeZone::LONG_GMT, "GMT-08:00"}, in TestDisplayName()
1410 {TRUE, TimeZone::LONG_GMT, "GMT-07:00"}, in TestDisplayName()
1412 {FALSE, TimeZone::SHORT_COMMONLY_USED, "PST"}, in TestDisplayName()
1413 {TRUE, TimeZone::SHORT_COMMONLY_USED, "PDT"}, in TestDisplayName()
1414 {FALSE, TimeZone::GENERIC_LOCATION, "Los Angeles Time"}, in TestDisplayName()
1415 {TRUE, TimeZone::GENERIC_LOCATION, "Los Angeles Time"}, in TestDisplayName()
1417 {FALSE, TimeZone::LONG, ""} in TestDisplayName()
1665 TimeZone* tz_icu = TimeZone::createTimeZone(tzName); in TestFractionalDST()
1687 StringEnumeration* s = TimeZone::createEnumeration("US"); in TestCountries()
1717 s = TimeZone::createEnumeration("JP"); in TestCountries()
1734 StringEnumeration* s1 = TimeZone::createEnumeration("US"); in TestCountries()
1735 StringEnumeration* s2 = TimeZone::createEnumeration("US"); in TestCountries()
1741 TimeZone* tz1 = TimeZone::createTimeZone(*id1); in TestCountries()
1747 TimeZone* tz2 = TimeZone::createTimeZone(*id2); in TestCountries()
1786 TimeZone *tz = TimeZone::createTimeZone(id); in TestHistorical()
1816 int32_t n = TimeZone::countEquivalentIDs("PST"); in TestEquivalentIDs()
1822 UnicodeString id = TimeZone::getEquivalentID("PST", i); in TestEquivalentIDs()
1872 GregorianCalendar gc(*TimeZone::getGMT(), status); in TestFebruary()
1905 TimeZone *timezones[] = { &tz1, &tz2 }; in TestFebruary()
1907 TimeZone *tz; in TestFebruary()
1949 UnicodeString *pResult = &TimeZone::getCanonicalID(bogus, canonicalID, ec); in TestCanonicalIDAPI()
1956 pResult = &TimeZone::getCanonicalID(berlin, canonicalID, ec); in TestCanonicalIDAPI()
1963 pResult = &TimeZone::getCanonicalID(berlin, canonicalID, ec); in TestCanonicalIDAPI()
2034 StringEnumeration* s = TimeZone::createEnumeration(); in TestCanonicalID()
2043 int32_t nEquiv = TimeZone::countEquivalentIDs(*tzid); in TestCanonicalID()
2053 UnicodeString tmp = TimeZone::getEquivalentID(*tzid, j); in TestCanonicalID()
2054 TimeZone::getCanonicalID(tmp, tmpCanonical, ec); in TestCanonicalID()
2120 TimeZone::getCanonicalID(UnicodeString(data[i].id), canonicalID, isSystemID, ec); in TestCanonicalID()
2148 TimeZone::EDisplayType style;
2152 {"Europe/London", "en", FALSE, TimeZone::SHORT, "GMT"},
2153 {"Europe/London", "en", FALSE, TimeZone::LONG, "Greenwich Mean Time"},
2154 {"Europe/London", "en", TRUE, TimeZone::SHORT, "GMT+1" /*"BST"*/},
2155 {"Europe/London", "en", TRUE, TimeZone::LONG, "British Summer Time"},
2157 {"America/Anchorage", "en", FALSE, TimeZone::SHORT, "AKST"},
2158 {"America/Anchorage", "en", FALSE, TimeZone::LONG, "Alaska Standard Time"},
2159 {"America/Anchorage", "en", TRUE, TimeZone::SHORT, "AKDT"},
2160 {"America/Anchorage", "en", TRUE, TimeZone::LONG, "Alaska Daylight Time"},
2163 {"Australia/Perth", "en", FALSE, TimeZone::SHORT, "GMT+8"/*"AWST"*/},
2164 {"Australia/Perth", "en", FALSE, TimeZone::LONG, "Australian Western Standard Time"},
2168 {"Australia/Perth", "en", TRUE, TimeZone::SHORT, "GMT+8"/*"AWDT"*/},
2169 {"Australia/Perth", "en", TRUE, TimeZone::LONG, "Australian Western Daylight Time"},
2171 {"America/Sao_Paulo", "en", FALSE, TimeZone::SHORT, "GMT-3"/*"BRT"*/},
2172 {"America/Sao_Paulo", "en", FALSE, TimeZone::LONG, "Brasilia Standard Time"},
2173 {"America/Sao_Paulo", "en", TRUE, TimeZone::SHORT, "GMT-2"/*"BRST"*/},
2174 {"America/Sao_Paulo", "en", TRUE, TimeZone::LONG, "Brasilia Summer Time"},
2177 {"Pacific/Honolulu", "en", FALSE, TimeZone::SHORT, "HST"},
2178 {"Pacific/Honolulu", "en", FALSE, TimeZone::LONG, "Hawaii-Aleutian Standard Time"},
2179 {"Pacific/Honolulu", "en", TRUE, TimeZone::SHORT, "HDT"},
2180 {"Pacific/Honolulu", "en", TRUE, TimeZone::LONG, "Hawaii-Aleutian Daylight Time"},
2183 {"Europe/Helsinki", "en", FALSE, TimeZone::SHORT, "GMT+2"/*"EET"*/},
2184 {"Europe/Helsinki", "en", FALSE, TimeZone::LONG, "Eastern European Standard Time"},
2185 {"Europe/Helsinki", "en", TRUE, TimeZone::SHORT, "GMT+3"/*"EEST"*/},
2186 {"Europe/Helsinki", "en", TRUE, TimeZone::LONG, "Eastern European Summer Time"},
2190 {"Europe/London", "en", TRUE, TimeZone::SHORT, "GMT+1" /*"BST"*/},
2191 {"Europe/London", "en", TRUE, TimeZone::LONG, "British Summer Time"},
2193 {NULL, NULL, FALSE, TimeZone::SHORT, NULL} // NULL values terminate list
2198 GregorianCalendar cal(*TimeZone::getGMT(), status); in TestDisplayNamesMeta()
2204 TimeZone *zone = TimeZone::createTimeZone(zoneDisplayTestData[testNum].zoneName); in TestDisplayNamesMeta()
2221 zoneDisplayTestData[testNum].style==TimeZone::SHORT ? in TestDisplayNamesMeta()
2233 zoneDisplayTestData[testNum].style==TimeZone::SHORT ? in TestDisplayNamesMeta()
2276 TimeZone::getRegion(data[i].id, region, sizeof(region), sts); in TestGetRegion()
2302 len = TimeZone::getRegion("America/New_York", region2, sizeof(region2), sts); in TestGetRegion()
2320 len = TimeZone::getRegion("America/Chicago", region1, sizeof(region1), sts); in TestGetRegion()
2334 const TimeZone &unknown = TimeZone::getUnknown(); in TestGetUnknown()
2365 TimeZone::getWindowsID(UnicodeString(TESTDATA[i].id), windowsID, sts); in TestGetWindowsID()
2393 TimeZone::getIDForWindowsID(UnicodeString(TESTDATA[i].winid), TESTDATA[i].region, in TestGetIDForWindowsID()