Lines Matching refs:TimeZone
94 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
110 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
113 TimeZone::adoptDefault(zone); in TestGenericAPI()
114 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
118 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
138 TimeZone* hostZone = TimeZone::detectHostTimeZone(); in TestGenericAPI()
146 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
235 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
265 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch()
311 TimeZone* tz = TimeZone::createTimeZone("PRT"); in TestPRTOffset()
338 TimeZone* time_zone = TimeZone::createTimeZone("PST"); in TestVariousAPI518()
372 const UnicodeString** ids = TimeZone::createAvailableIDs(numIDs); in TestGetAvailableIDs913()
388 ids = TimeZone::createAvailableIDs(-8*U_MILLIS_PER_HOUR, numIDs); in TestGetAvailableIDs913()
403 ids = TimeZone::createAvailableIDs("US", numIDs); in TestGetAvailableIDs913()
422 StringEnumeration* s = TimeZone::createEnumeration(); in TestGetAvailableIDs913()
459 TimeZone *z = TimeZone::createTimeZone(*id); in TestGetAvailableIDs913()
478 s = TimeZone::createEnumeration(1 * U_MILLIS_PER_HOUR); in TestGetAvailableIDs913()
492 s = TimeZone::createEnumeration("US"); in TestGetAvailableIDs913()
501 TimeZone *tz = TimeZone::createTimeZone("PST"); in TestGetAvailableIDs913()
505 tz = TimeZone::createTimeZone("America/Los_Angeles"); in TestGetAvailableIDs913()
511 tz = TimeZone::createTimeZone("NON_EXISTENT"); in TestGetAvailableIDs913()
540 any = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, NULL, ec); in TestGetAvailableIDsNew()
546 canonical = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, NULL, NULL, ec); in TestGetAvailableIDsNew()
552 …canonicalLoc = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, NULL, NULL… in TestGetAvailableIDsNew()
558 any_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", NULL, ec); in TestGetAvailableIDsNew()
564 canonical_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, "US", NULL, ec); in TestGetAvailableIDsNew()
570 …canonicalLoc_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, "US", N… in TestGetAvailableIDsNew()
577 any_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, &rawOffset, ec); in TestGetAvailableIDsNew()
583 any_CA_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "CA", &rawOffset, ec); in TestGetAvailableIDsNew()
590 any_US_E14 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", &rawOffset, ec); in TestGetAvailableIDsNew()
624 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec); in TestGetAvailableIDsNew()
644 TimeZone::getCanonicalID(*id1, canonicalID, isSystemID, ec); in TestGetAvailableIDsNew()
663 TimeZone::getRegion(*id1, region, sizeof(region), ec); in TestGetAvailableIDsNew()
679 TimeZone::getRegion(*id1, region, sizeof(region), ec); in TestGetAvailableIDsNew()
695 TimeZone *tz = TimeZone::createTimeZone(*id1); in TestGetAvailableIDsNew()
903 TimeZone *tz = TimeZone::createTimeZone(itsID); in TestShortZoneIDs()
904 if (!tz || (kReferenceList[i].offset != 0 && *tz == *TimeZone::getGMT())) { in TestShortZoneIDs()
995 TimeZone *tz1 = TimeZone::createTimeZone(zone1); in TestShortZoneIDs()
996 TimeZone *tz2 = TimeZone::createTimeZone(zone2); in TestShortZoneIDs()
1164 TimeZone *zone = TimeZone::createTimeZone(id); in TestCustomParse()
1323 TimeZone::EDisplayType styles[] = { TimeZone::SHORT, TimeZone::LONG }; in TestAliasedNames()
1329 TimeZone *from = NULL, *to = NULL; in TestAliasedNames()
1331 from = TimeZone::createTimeZone(kData[i].from); in TestAliasedNames()
1332 to = TimeZone::createTimeZone(kData[i].to); in TestAliasedNames()
1384 TimeZone *zone = TimeZone::createTimeZone("PST"); in TestDisplayName()
1399 TimeZone::EDisplayType style; in TestDisplayName()
1402 {FALSE, TimeZone::SHORT, "PST"}, in TestDisplayName()
1403 {TRUE, TimeZone::SHORT, "PDT"}, in TestDisplayName()
1404 {FALSE, TimeZone::LONG, "Pacific Standard Time"}, in TestDisplayName()
1405 {TRUE, TimeZone::LONG, "Pacific Daylight Time"}, in TestDisplayName()
1407 {FALSE, TimeZone::SHORT_GENERIC, "PT"}, in TestDisplayName()
1408 {TRUE, TimeZone::SHORT_GENERIC, "PT"}, in TestDisplayName()
1409 {FALSE, TimeZone::LONG_GENERIC, "Pacific Time"}, in TestDisplayName()
1410 {TRUE, TimeZone::LONG_GENERIC, "Pacific Time"}, in TestDisplayName()
1412 {FALSE, TimeZone::SHORT_GMT, "-0800"}, in TestDisplayName()
1413 {TRUE, TimeZone::SHORT_GMT, "-0700"}, in TestDisplayName()
1414 {FALSE, TimeZone::LONG_GMT, "GMT-08:00"}, in TestDisplayName()
1415 {TRUE, TimeZone::LONG_GMT, "GMT-07:00"}, in TestDisplayName()
1417 {FALSE, TimeZone::SHORT_COMMONLY_USED, "PST"}, in TestDisplayName()
1418 {TRUE, TimeZone::SHORT_COMMONLY_USED, "PDT"}, in TestDisplayName()
1419 {FALSE, TimeZone::GENERIC_LOCATION, "Los Angeles Time"}, in TestDisplayName()
1420 {TRUE, TimeZone::GENERIC_LOCATION, "Los Angeles Time"}, in TestDisplayName()
1422 {FALSE, TimeZone::LONG, ""} in TestDisplayName()
1670 TimeZone* tz_icu = TimeZone::createTimeZone(tzName); in TestFractionalDST()
1692 StringEnumeration* s = TimeZone::createEnumeration("US"); in TestCountries()
1722 s = TimeZone::createEnumeration("JP"); in TestCountries()
1739 StringEnumeration* s1 = TimeZone::createEnumeration("US"); in TestCountries()
1740 StringEnumeration* s2 = TimeZone::createEnumeration("US"); in TestCountries()
1746 TimeZone* tz1 = TimeZone::createTimeZone(*id1); in TestCountries()
1752 TimeZone* tz2 = TimeZone::createTimeZone(*id2); in TestCountries()
1791 TimeZone *tz = TimeZone::createTimeZone(id); in TestHistorical()
1821 int32_t n = TimeZone::countEquivalentIDs("PST"); in TestEquivalentIDs()
1827 UnicodeString id = TimeZone::getEquivalentID("PST", i); in TestEquivalentIDs()
1877 GregorianCalendar gc(*TimeZone::getGMT(), status); in TestFebruary()
1910 TimeZone *timezones[] = { &tz1, &tz2 }; in TestFebruary()
1912 TimeZone *tz; in TestFebruary()
1954 UnicodeString *pResult = &TimeZone::getCanonicalID(bogus, canonicalID, ec); in TestCanonicalIDAPI()
1961 pResult = &TimeZone::getCanonicalID(berlin, canonicalID, ec); in TestCanonicalIDAPI()
1968 pResult = &TimeZone::getCanonicalID(berlin, canonicalID, ec); in TestCanonicalIDAPI()
2087 StringEnumeration* s = TimeZone::createEnumeration(); in TestCanonicalID()
2096 int32_t nEquiv = TimeZone::countEquivalentIDs(*tzid); in TestCanonicalID()
2106 UnicodeString tmp = TimeZone::getEquivalentID(*tzid, j); in TestCanonicalID()
2107 TimeZone::getCanonicalID(tmp, tmpCanonical, ec); in TestCanonicalID()
2173 TimeZone::getCanonicalID(UnicodeString(data[i].id), canonicalID, isSystemID, ec); in TestCanonicalID()
2201 TimeZone::EDisplayType style;
2205 {"Europe/London", "en", FALSE, TimeZone::SHORT, "GMT"},
2206 {"Europe/London", "en", FALSE, TimeZone::LONG, "Greenwich Mean Time"},
2207 {"Europe/London", "en", TRUE, TimeZone::SHORT, "GMT+1" /*"BST"*/},
2208 {"Europe/London", "en", TRUE, TimeZone::LONG, "British Summer Time"},
2210 {"America/Anchorage", "en", FALSE, TimeZone::SHORT, "AKST"},
2211 {"America/Anchorage", "en", FALSE, TimeZone::LONG, "Alaska Standard Time"},
2212 {"America/Anchorage", "en", TRUE, TimeZone::SHORT, "AKDT"},
2213 {"America/Anchorage", "en", TRUE, TimeZone::LONG, "Alaska Daylight Time"},
2216 {"Australia/Perth", "en", FALSE, TimeZone::SHORT, "GMT+8"/*"AWST"*/},
2217 {"Australia/Perth", "en", FALSE, TimeZone::LONG, "Australian Western Standard Time"},
2221 {"Australia/Perth", "en", TRUE, TimeZone::SHORT, "GMT+8"/*"AWDT"*/},
2222 {"Australia/Perth", "en", TRUE, TimeZone::LONG, "Australian Western Daylight Time"},
2224 {"America/Sao_Paulo", "en", FALSE, TimeZone::SHORT, "GMT-3"/*"BRT"*/},
2225 {"America/Sao_Paulo", "en", FALSE, TimeZone::LONG, "Brasilia Standard Time"},
2226 {"America/Sao_Paulo", "en", TRUE, TimeZone::SHORT, "GMT-2"/*"BRST"*/},
2227 {"America/Sao_Paulo", "en", TRUE, TimeZone::LONG, "Brasilia Summer Time"},
2230 {"Pacific/Honolulu", "en", FALSE, TimeZone::SHORT, "HST"},
2231 {"Pacific/Honolulu", "en", FALSE, TimeZone::LONG, "Hawaii-Aleutian Standard Time"},
2232 {"Pacific/Honolulu", "en", TRUE, TimeZone::SHORT, "HDT"},
2233 {"Pacific/Honolulu", "en", TRUE, TimeZone::LONG, "Hawaii-Aleutian Daylight Time"},
2236 {"Europe/Helsinki", "en", FALSE, TimeZone::SHORT, "GMT+2"/*"EET"*/},
2237 {"Europe/Helsinki", "en", FALSE, TimeZone::LONG, "Eastern European Standard Time"},
2238 {"Europe/Helsinki", "en", TRUE, TimeZone::SHORT, "GMT+3"/*"EEST"*/},
2239 {"Europe/Helsinki", "en", TRUE, TimeZone::LONG, "Eastern European Summer Time"},
2243 {"Europe/London", "en", TRUE, TimeZone::SHORT, "GMT+1" /*"BST"*/},
2244 {"Europe/London", "en", TRUE, TimeZone::LONG, "British Summer Time"},
2246 {NULL, NULL, FALSE, TimeZone::SHORT, NULL} // NULL values terminate list
2251 GregorianCalendar cal(*TimeZone::getGMT(), status); in TestDisplayNamesMeta()
2257 TimeZone *zone = TimeZone::createTimeZone(zoneDisplayTestData[testNum].zoneName); in TestDisplayNamesMeta()
2274 zoneDisplayTestData[testNum].style==TimeZone::SHORT ? in TestDisplayNamesMeta()
2286 zoneDisplayTestData[testNum].style==TimeZone::SHORT ? in TestDisplayNamesMeta()
2329 TimeZone::getRegion(data[i].id, region, sizeof(region), sts); in TestGetRegion()
2355 len = TimeZone::getRegion("America/New_York", region2, sizeof(region2), sts); in TestGetRegion()
2373 len = TimeZone::getRegion("America/Chicago", region1, sizeof(region1), sts); in TestGetRegion()
2387 const TimeZone &unknown = TimeZone::getUnknown(); in TestGetUnknown()
2418 TimeZone::getWindowsID(UnicodeString(TESTDATA[i].id), windowsID, sts); in TestGetWindowsID()
2446 TimeZone::getIDForWindowsID(UnicodeString(TESTDATA[i].winid), TESTDATA[i].region, in TestGetIDForWindowsID()