Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/
DSimpleTimeZoneTest.java48 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in testStandardParis2014() local
50 checkDstParis2014(timeZone); in testStandardParis2014()
54 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris", in testDstParis2014_LastSundayMarch_LastSundayOctober_UtcTime() local
58 checkDstParis2014(timeZone); in testDstParis2014_LastSundayMarch_LastSundayOctober_UtcTime()
62 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris", in testDstParis2014_SundayAfter25thMarch_SundayAfter25thOctober_UtcTime() local
66 checkDstParis2014(timeZone); in testDstParis2014_SundayAfter25thMarch_SundayAfter25thOctober_UtcTime()
70 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris", in testDstParis2014_30thMarch_26thOctober_UtcTime() local
74 checkDstParis2014(timeZone); in testDstParis2014_30thMarch_26thOctober_UtcTime()
81 private void checkDstParis2014(TimeZone timeZone) { in checkDstParis2014() argument
82 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.java164 TimeZone timeZone = TimeZone.getTimeZone("Europe/Helsinki"); in testHelsinkiOverflow() local
165 long offset = timeZone.getOffset(time); in testHelsinkiOverflow()
/libcore/luni/src/test/java/libcore/java/time/zone/
DIcuZoneRulesProviderTest.java85 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(zoneId); in testTransitionsNearInstants() local
91 timeZone.getOffset(instant.toEpochMilli(), false, icuOffsets); in testTransitionsNearInstants()
102 icuTrans = timeZone.getNextTransition(instant.toEpochMilli(), false); in testTransitionsNearInstants()
104 icuTrans = timeZone.getNextTransition(icuTrans.getTime(), false); in testTransitionsNearInstants()
109 icuTrans = timeZone.getPreviousTransition(instant.toEpochMilli(), false); in testTransitionsNearInstants()
112 icuTrans = timeZone.getPreviousTransition(icuTrans.getTime(), false); in testTransitionsNearInstants()
131 BasicTimeZone timeZone = (BasicTimeZone) TimeZone.getTimeZone(zoneId); in testAllTransitions() local
139 icuTrans = timeZone.getNextTransition(instant.toEpochMilli(), false); in testAllTransitions()
141 icuTrans = timeZone.getNextTransition(icuTrans.getTime(), false); in testAllTransitions()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java137 public boolean hasSameRules(TimeZone timeZone) { in hasSameRules() argument
138 if (!(timeZone instanceof ZoneInfo)) { in hasSameRules()
141 ZoneInfo other = (ZoneInfo) timeZone; in hasSameRules()
/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/ojluni/src/main/java/java/time/zone/
DIcuZoneRulesProvider.java105 TimeZone timeZone = TimeZone.getFrozenTimeZone(zoneId); in generateZoneRules() local
107 verify(timeZone instanceof BasicTimeZone, zoneId, in generateZoneRules()
108 "Unexpected time zone class " + timeZone.getClass()); in generateZoneRules()
109 BasicTimeZone tz = (BasicTimeZone) timeZone; in generateZoneRules()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java605 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in doTestFormat() local
608 assertEquals(timeZoneId, timeZone.getID()); in doTestFormat()
610 dateFormat.setTimeZone(timeZone); in doTestFormat()
612 assertEquals(timeZone.getDisplayName( in doTestFormat()
653 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in doUtcParsingTest() local
656 assertEquals(timeZoneId, timeZone.getID()); in doUtcParsingTest()
659 timeZone.getDisplayName(false /* daylight */, timeZoneStyle, locale)); in doUtcParsingTest()
665 formatter.setTimeZone(timeZone); in doUtcParsingTest()
932 NonGregorianCalendar(TimeZone timeZone, Locale locale) { in NonGregorianCalendar() argument
933 super(timeZone, locale); in NonGregorianCalendar()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java739 public synchronized static void setDefault(TimeZone timeZone) in setDefault() argument
746 defaultTimeZone = timeZone != null ? (TimeZone) timeZone.clone() : null; in setDefault()
/libcore/luni/src/test/java/libcore/libcore/icu/
DDateIntervalFormatTest.java433 final TimeZone timeZone = TimeZone.getTimeZone("UTC"); in testEndOfDayOnLastDayOfMonth() local
435 assertEquals("11:00 PM – 12:00 AM", formatDateRange(locale, timeZone, in testEndOfDayOnLastDayOfMonth()
/libcore/benchmarks/src/benchmarks/regression/
DR.java2392 public static final int timeZone = 0; field in R