Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DSimpleTimeZoneTest.java50 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in testStandardParis2014() local
52 checkDstParis2014(timeZone); in testStandardParis2014()
56 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris", in testDstParis2014_LastSundayMarch_LastSundayOctober_UtcTime() local
60 checkDstParis2014(timeZone); in testDstParis2014_LastSundayMarch_LastSundayOctober_UtcTime()
64 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris", in testDstParis2014_SundayAfter25thMarch_SundayAfter25thOctober_UtcTime() local
68 checkDstParis2014(timeZone); in testDstParis2014_SundayAfter25thMarch_SundayAfter25thOctober_UtcTime()
72 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris", in testDstParis2014_30thMarch_26thOctober_UtcTime() local
76 checkDstParis2014(timeZone); in testDstParis2014_30thMarch_26thOctober_UtcTime()
83 private void checkDstParis2014(TimeZone timeZone) { in checkDstParis2014() argument
84 checkDstTransitionTimes(timeZone, 2014, in checkDstParis2014()
[all …]
DGregorianCalendarTest.java162 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles"); in test_computeTime_enteringDst_TimeZone_LosAngeles_2014() local
163 checkDstLosAngeles2014(timeZone); in test_computeTime_enteringDst_TimeZone_LosAngeles_2014()
175 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles"); in test_computeTime_enteringDst_DelegatingTimeZone_LosAngeles_2014() local
176 timeZone = new DelegatingTimeZone(timeZone); in test_computeTime_enteringDst_DelegatingTimeZone_LosAngeles_2014()
177 checkDstLosAngeles2014(timeZone); in test_computeTime_enteringDst_DelegatingTimeZone_LosAngeles_2014()
293 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in test_fromZonedDateTime() local
294 assertEquals(timeZone, calendar.getTimeZone()); in test_fromZonedDateTime()
319 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in test_toZonedDateTime() local
320 GregorianCalendar calendar = new GregorianCalendar(timeZone); in test_toZonedDateTime()
327 private long getDstLosAngeles2014(TimeZone timeZone) { in getDstLosAngeles2014() argument
[all …]
DCalendarTest.java150 private void testSetSelfConsistent(TimeZone timeZone, int year, int month, int day) { in testSetSelfConsistent() argument
153 Calendar calendar = new GregorianCalendar(timeZone); in testSetSelfConsistent()
164 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in testToInstant() local
165 Calendar calendar = new GregorianCalendar(timeZone); in testToInstant()
DTimeZoneTest.java176 TimeZone timeZone = TimeZone.getTimeZone("Europe/Helsinki"); in testHelsinkiOverflow() local
177 long offset = timeZone.getOffset(time); in testHelsinkiOverflow()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock.java96 public Clock withZone(ZoneId timeZone) { in withZone() argument
97 return new MockInstantClock(millis, timeZone); in withZone()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java258 public boolean hasSameRules(TimeZone timeZone) { in hasSameRules() argument
259 if (!(timeZone instanceof ZoneInfo)) { in hasSameRules()
262 ZoneInfo other = (ZoneInfo) timeZone; in hasSameRules()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java607 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in doTestFormat() local
610 assertEquals(timeZoneId, timeZone.getID()); in doTestFormat()
612 dateFormat.setTimeZone(timeZone); in doTestFormat()
614 assertEquals(timeZone.getDisplayName( in doTestFormat()
657 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in doUtcParsingTest() local
660 assertEquals(timeZoneId, timeZone.getID()); in doUtcParsingTest()
663 timeZone.getDisplayName(false /* daylight */, timeZoneStyle, locale)); in doUtcParsingTest()
669 formatter.setTimeZone(timeZone); in doUtcParsingTest()
936 NonGregorianCalendar(TimeZone timeZone, Locale locale) { in NonGregorianCalendar() argument
937 super(timeZone, locale); in NonGregorianCalendar()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java742 public synchronized static void setDefault(TimeZone timeZone) in setDefault() argument
750 defaultTimeZone = timeZone != null ? (TimeZone) timeZone.clone() : null; in setDefault()
/libcore/benchmarks/src/benchmarks/regression/
DR.java2392 public static final int timeZone = 0; field in R