Searched refs:tz1 (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTimeZoneTest.java | 59 TimeZone tz1 = TimeZone.getDefault(); in test_clone() local 60 TimeZone tz2 = (TimeZone)tz1.clone(); in test_clone() 62 assertTrue(tz1.equals(tz2)); in test_clone() 134 TimeZone tz1 = TimeZone.getTimeZone("America/Denver"); in test_hasSameRulesLjava_util_TimeZone() local 136 assertEquals(tz1.getDisplayName(false, 0), tz2.getDisplayName(false, 0)); in test_hasSameRulesLjava_util_TimeZone() 138 assertFalse(tz1.hasSameRules(tz2)); in test_hasSameRulesLjava_util_TimeZone() 139 assertFalse(tz1.hasSameRules(null)); in test_hasSameRulesLjava_util_TimeZone() 140 tz1 = TimeZone.getTimeZone("America/New_York"); in test_hasSameRulesLjava_util_TimeZone() 142 assertEquals(tz1.getDisplayName(), tz2.getDisplayName()); in test_hasSameRulesLjava_util_TimeZone() 143 assertFalse(tz1.getID().equals(tz2.getID())); in test_hasSameRulesLjava_util_TimeZone() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TimeZoneTest.java | 61 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true); in test_getDSTSavings() local 63 ONE_HOUR, tz1.getDSTSavings()); in test_getDSTSavings() 66 tz1 = new Support_TimeZone(3 * ONE_HOUR, false); in test_getDSTSavings() 68 0, tz1.getDSTSavings()); in test_getDSTSavings() 91 TimeZone tz1 = new Support_TimeZone(-5 * ONE_HOUR, true); in test_getOffset_long() local 93 -(5 * ONE_HOUR), tz1.getOffset(time1)); in test_getOffset_long() 95 -(4 * ONE_HOUR), tz1.getOffset(time2)); in test_getOffset_long() 98 tz1 = new Support_TimeZone(3 * ONE_HOUR, false); in test_getOffset_long() 100 (3 * ONE_HOUR), tz1.getOffset(time1)); in test_getOffset_long() 102 (3 * ONE_HOUR), tz1.getOffset(time2)); in test_getOffset_long()
|