Home
last modified time | relevance | path

Searched refs:tz2 (Results 1 – 13 of 13) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dtime_zone_test.cc27 absl::TimeZone tz2 = tz; // Copy-construct in TEST() local
28 EXPECT_EQ(tz, tz2); in TEST()
29 tz2 = tz; // Copy-assign in TEST()
30 EXPECT_EQ(tz, tz2); in TEST()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java1555 …private void compareTransitionsAscending(TimeZone tz1, TimeZone tz2, long start, long end, boolean… in compareTransitionsAscending() argument
1557 BasicTimeZone z2 = (BasicTimeZone)tz2; in compareTransitionsAscending()
1559 String zid2 = tz2.getID(); in compareTransitionsAscending()
1605 …private void compareTransitionsDescending(TimeZone tz1, TimeZone tz2, long start, long end, boolea… in compareTransitionsDescending() argument
1607 BasicTimeZone z2 = (BasicTimeZone)tz2; in compareTransitionsDescending()
1609 String zid2 = tz2.getID(); in compareTransitionsDescending()
1716 private static boolean hasEquivalentTransitions(BasicTimeZone tz1, BasicTimeZone tz2, in hasEquivalentTransitions() argument
1719 if (tz1.hasSameRules(tz2)) { in hasEquivalentTransitions()
1728 tz2.getOffset(start, false, offsets2); in hasEquivalentTransitions()
1746 TimeZoneTransition tr2 = tz2.getNextTransition(time, false); in hasEquivalentTransitions()
[all …]
DTimeZoneRegressionTest.java446 SimpleTimeZone tz2 = new SimpleTimeZone(0, "2", 1, 0, 0, 0, 3, 0, 0, 0); in Test4154537() local
452 if (tz1.useDaylightTime() || tz2.useDaylightTime() || in Test4154537()
460 if (!tz1.hasSameRules(tz2)) { in Test4154537()
463 errln("zone 2 = " + tz2); in Test4154537()
DTimeZoneTest.java1418 SimpleTimeZone tz2= new SimpleTimeZone( in TestFebruary() local
1455 TimeZone timezones[] = { tz1, tz2 }; in TestFebruary()
1832 TimeZone tz2 = TimeZone.getTimeZone(id); in TestHashCode() local
1835 if (tz1.hashCode() != tz2.hashCode()) { in TestHashCode()
1839 if (!tz1.toString().equals(tz2.toString())) { in TestHashCode()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/
DTimeZoneRuleTest.java1557 …private void compareTransitionsAscending(TimeZone tz1, TimeZone tz2, long start, long end, boolean… in compareTransitionsAscending() argument
1559 BasicTimeZone z2 = (BasicTimeZone)tz2; in compareTransitionsAscending()
1561 String zid2 = tz2.getID(); in compareTransitionsAscending()
1607 …private void compareTransitionsDescending(TimeZone tz1, TimeZone tz2, long start, long end, boolea… in compareTransitionsDescending() argument
1609 BasicTimeZone z2 = (BasicTimeZone)tz2; in compareTransitionsDescending()
1611 String zid2 = tz2.getID(); in compareTransitionsDescending()
1718 private static boolean hasEquivalentTransitions(BasicTimeZone tz1, BasicTimeZone tz2, in hasEquivalentTransitions() argument
1721 if (tz1.hasSameRules(tz2)) { in hasEquivalentTransitions()
1730 tz2.getOffset(start, false, offsets2); in hasEquivalentTransitions()
1748 TimeZoneTransition tr2 = tz2.getNextTransition(time, false); in hasEquivalentTransitions()
[all …]
DTimeZoneRegressionTest.java449 SimpleTimeZone tz2 = new SimpleTimeZone(0, "2", 1, 0, 0, 0, 3, 0, 0, 0); in Test4154537() local
455 if (tz1.useDaylightTime() || tz2.useDaylightTime() || in Test4154537()
463 if (!tz1.hasSameRules(tz2)) { in Test4154537()
466 errln("zone 2 = " + tz2); in Test4154537()
DTimeZoneTest.java1446 SimpleTimeZone tz2= new SimpleTimeZone( in TestFebruary() local
1483 TimeZone timezones[] = { tz1, tz2 }; in TestFebruary()
1861 TimeZone tz2 = TimeZone.getTimeZone(id); in TestHashCode() local
1864 if (tz1.hashCode() != tz2.hashCode()) { in TestHashCode()
1868 if (!tz1.toString().equals(tz2.toString())) { in TestHashCode()
/third_party/icu/icu4c/source/test/intltest/
Dtztest.cpp1003 TimeZone *tz2 = TimeZone::createTimeZone(zone2); in TestShortZoneIDs() local
1008 if (!tz2) { in TestShortZoneIDs()
1012 if (tz1 && tz2) { in TestShortZoneIDs()
1014 tz2->setID(tz1->getID(itsID)); in TestShortZoneIDs()
1016 if (*tz1 != *tz2) { in TestShortZoneIDs()
1026 delete tz2; in TestShortZoneIDs()
1783 TimeZone* tz2 = TimeZone::createTimeZone(*id2); in TestCountries() local
1784 if(tz1->hasSameRules(*tz2)){ in TestCountries()
1787 delete tz2; in TestCountries()
1895 SimpleTimeZone tz2(-3 * U_MILLIS_PER_HOUR, // raw offset: 3h before (west of) GMT in TestFebruary() local
[all …]
Dtzregts.cpp557 SimpleTimeZone *tz2 = new SimpleTimeZone(0, "2", 1, 0, 0, 0, 3, 0, 0, 0, status); in Test4154537() local
567 if (tz1->useDaylightTime() || tz2->useDaylightTime() || in Test4154537()
575 if (!tz1->hasSameRules(*tz2)) { in Test4154537()
582 delete tz2; in Test4154537()
Dtzrulets.cpp52 static UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz1, /*const*/BasicTimeZone& tz2,
2526 static UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz1, /*const*/BasicTimeZone& tz2, in hasEquivalentTransitions() argument
2533 if (tz1.hasSameRules(tz2)) { in hasEquivalentTransitions()
2542 tz2.getOffset(start, FALSE, raw2, dst2, status); in hasEquivalentTransitions()
2562 UBool avail2 = tz2.getNextTransition(time, FALSE, tr2); in hasEquivalentTransitions()
2583 tz2.getNextTransition(tr2.getTime(), FALSE, tr2); in hasEquivalentTransitions()
Dincaltst.cpp189 int32_t tz2 = grego -> get (UCAL_ZONE_OFFSET, status); in quasiGregorianTest() local
190 if(tz1 != tz2) { in quasiGregorianTest()
191 errln((UnicodeString)"cal's tz " + tz1 + " != grego's tz " + tz2); in quasiGregorianTest()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeZoneFormatTest.java709 TimeZone tz2 = fmt.parse("++America/Los_Angeles", new ParsePosition(2)); in TestParseCoverage() local
710 if (tz2 == null) { in TestParseCoverage()
713 } else if (!expectedTZ.equals(tz2)) { in TestParseCoverage()
714 … errln("Parsed TimeZone: '" + tz2.getID() + "' using parse(String, ParsePosition) - expected: " in TestParseCoverage()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DTimeZoneFormatTest.java712 TimeZone tz2 = fmt.parse("++America/Los_Angeles", new ParsePosition(2)); in TestParseCoverage() local
713 if (tz2 == null) { in TestParseCoverage()
716 } else if (!expectedTZ.equals(tz2)) { in TestParseCoverage()
717 … errln("Parsed TimeZone: '" + tz2.getID() + "' using parse(String, ParsePosition) - expected: " in TestParseCoverage()