/libcore/luni/src/test/java/libcore/java/util/ |
OldTimeZoneTest.java | 60 TimeZone tz1 = TimeZone.getDefault(); local 61 TimeZone tz2 = (TimeZone)tz1.clone(); 63 assertTrue(tz1.equals(tz2)); 148 TimeZone tz1 = TimeZone.getTimeZone("America/Denver"); local 150 assertEquals(tz1.getDisplayName(false, 0), tz2.getDisplayName(false, 0)); 152 assertFalse(tz1.hasSameRules(tz2)); 153 assertFalse(tz1.hasSameRules(null)); 154 tz1 = TimeZone.getTimeZone("America/New_York"); 156 assertEquals(tz1.getDisplayName(), tz2.getDisplayName()); 157 assertFalse(tz1.getID().equals(tz2.getID())) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
TimeZoneTest.java | 61 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true); local 63 ONE_HOUR, tz1.getDSTSavings()); 66 tz1 = new Support_TimeZone(3 * ONE_HOUR, false); 68 0, tz1.getDSTSavings()); 91 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true); local 93 -(5 * ONE_HOUR), tz1.getOffset(time1)); 95 -(4 * ONE_HOUR), tz1.getOffset(time2)); 98 tz1 = new Support_TimeZone(3 * ONE_HOUR, false); 100 (3 * ONE_HOUR), tz1.getOffset(time1)); 102 (3 * ONE_HOUR), tz1.getOffset(time2)) [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
tztest.cpp | 999 TimeZone *tz1 = TimeZone::createTimeZone(zone1); local 1750 TimeZone* tz1 = TimeZone::createTimeZone(*id1); local [all...] |
tzregts.cpp | 553 // tz1 and tz2 have no DST and different rule parameters 554 SimpleTimeZone *tz1 = new SimpleTimeZone(0, "1", 0, 0, 0, 0, 2, 0, 0, 0, status); local 565 if (tz1->useDaylightTime() || tz2->useDaylightTime() || 573 if (!tz1->hasSameRules(*tz2)) { 575 //errln("zone 1 = " + tz1); 579 delete tz1; [all...] |
incaltst.cpp | 164 int32_t tz1 = cal.get(UCAL_ZONE_OFFSET,status); local 166 if(tz1 != tz2) { 167 errln((UnicodeString)"cal's tz " + tz1 + " != grego's tz " + tz2); [all...] |
tzrulets.cpp | 51 static UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz1, /*const*/BasicTimeZone& tz2, [all...] |
/external/icu/icu4c/source/test/intltest/ |
tztest.cpp | 990 TimeZone *tz1 = TimeZone::createTimeZone(zone1); local 1741 TimeZone* tz1 = TimeZone::createTimeZone(*id1); local [all...] |
tzregts.cpp | 553 // tz1 and tz2 have no DST and different rule parameters 554 SimpleTimeZone *tz1 = new SimpleTimeZone(0, "1", 0, 0, 0, 0, 2, 0, 0, 0, status); local 565 if (tz1->useDaylightTime() || tz2->useDaylightTime() || 573 if (!tz1->hasSameRules(*tz2)) { 575 //errln("zone 1 = " + tz1); 579 delete tz1; [all...] |
incaltst.cpp | 161 int32_t tz1 = cal.get(UCAL_ZONE_OFFSET,status); local 163 if(tz1 != tz2) { 164 errln((UnicodeString)"cal's tz " + tz1 + " != grego's tz " + tz2); [all...] |
tzrulets.cpp | 49 static UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz1, /*const*/BasicTimeZone& tz2, [all...] |