/libcore/luni/src/test/java/libcore/java/util/ |
D | SimpleTimeZoneTest.java | 48 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 …]
|
D | GregorianCalendarTest.java | 162 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 …]
|
D | CalendarTest.java | 150 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()
|
D | TimeZoneTest.java | 164 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/ |
D | IcuZoneRulesProviderTest.java | 85 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/ |
D | ZoneInfo.java | 137 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/ |
D | TCKClock.java | 96 public Clock withZone(ZoneId timeZone) { in withZone() argument 97 return new MockInstantClock(millis, timeZone); in withZone()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | IcuZoneRulesProvider.java | 105 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/ |
D | SimpleDateFormatTest.java | 605 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/ |
D | TimeZone.java | 739 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/ |
D | DateIntervalFormatTest.java | 433 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/ |
D | R.java | 2392 public static final int timeZone = 0; field in R
|