Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 – 16 of 16) 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.java165 TimeZone timeZone = TimeZone.getTimeZone("Europe/Helsinki"); in testHelsinkiOverflow() local
166 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/timezone/
DCountryTimeZones.java51 public OffsetResult(TimeZone timeZone, boolean oneMatch) { in OffsetResult() argument
52 mTimeZone = java.util.Objects.requireNonNull(timeZone); in OffsetResult()
287 TimeZone timeZone; in getIcuTimeZones() local
289 timeZone = getDefaultTimeZone(); in getIcuTimeZones()
291 timeZone = getValidFrozenTimeZoneOrNull(timeZoneId); in getIcuTimeZones()
295 if (timeZone == null) { in getIcuTimeZones()
299 mutableList.add(timeZone); in getIcuTimeZones()
414 private static boolean offsetMatchesAtTime(TimeZone timeZone, int offsetMillis, boolean isDst, in offsetMatchesAtTime() argument
417 timeZone.getOffset(whenMillis, false /* local */, offsets); in offsetMatchesAtTime()
478 private static boolean offsetMatchesAtTime(TimeZone timeZone, int offsetMillis, in offsetMatchesAtTime() argument
[all …]
/libcore/luni/src/test/java/libcore/libcore/icu/
DTimeZoneIntegrationTest.java473 java.util.TimeZone timeZone = java.util.TimeZone.getTimeZone(timeZoneId); in testDstMeansSummer() local
474 assertTrue(timeZone.useDaylightTime()); in testDstMeansSummer()
476 assertFalse(timeZone.inDaylightTime(new Date(winterTimeMillis))); in testDstMeansSummer()
477 assertTrue(timeZone.inDaylightTime(new Date(summerTimeMillis))); in testDstMeansSummer()
480 timeZone.getOffset(winterTimeMillis)); in testDstMeansSummer()
482 timeZone.getOffset(summerTimeMillis)); in testDstMeansSummer()
484 timeZone.getDisplayName(false /* daylight */, java.util.TimeZone.LONG, in testDstMeansSummer()
487 timeZone.getDisplayName(true /* daylight */, java.util.TimeZone.LONG, in testDstMeansSummer()
493 android.icu.util.TimeZone timeZone = android.icu.util.TimeZone.getTimeZone(timeZoneId); in testDstMeansSummer() local
494 assertTrue(timeZone.useDaylightTime()); in testDstMeansSummer()
[all …]
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/luni/src/main/java/libcore/util/
DZoneInfo.java646 @Override public boolean hasSameRules(TimeZone timeZone) { in hasSameRules() argument
647 if (!(timeZone instanceof ZoneInfo)) { in hasSameRules()
650 ZoneInfo other = (ZoneInfo) timeZone; in hasSameRules()
1290 public static OffsetInterval create(ZoneInfo timeZone, int transitionIndex) {
1291 if (transitionIndex < -1 || transitionIndex >= timeZone.mTransitions.length) {
1296 int totalOffsetSeconds = timeZone.mEarliestRawOffset / 1000;
1301 saturated32BitAdd(timeZone.mTransitions[0], totalOffsetSeconds);
1310 int rawOffsetSeconds = timeZone.mRawOffset / 1000;
1311 int type = timeZone.mTypes[transitionIndex] & 0xff;
1312 int totalOffsetSeconds = timeZone.mOffsets[type] + rawOffsetSeconds;
[all …]
/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.java599 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in doTestFormat() local
602 assertEquals(timeZoneId, timeZone.getID()); in doTestFormat()
604 dateFormat.setTimeZone(timeZone); in doTestFormat()
606 assertEquals(timeZone.getDisplayName( in doTestFormat()
647 TimeZone timeZone = TimeZone.getTimeZone(timeZoneId); in doUtcParsingTest() local
650 assertEquals(timeZoneId, timeZone.getID()); in doUtcParsingTest()
653 timeZone.getDisplayName(false /* daylight */, timeZoneStyle, locale)); in doUtcParsingTest()
659 formatter.setTimeZone(timeZone); in doUtcParsingTest()
864 NonGregorianCalendar(TimeZone timeZone, Locale locale) { in NonGregorianCalendar() argument
865 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/timezone/
DTimeZoneFinderTest.java928 private static void assertImmutableTimeZone(TimeZone timeZone) { in assertImmutableTimeZone() argument
930 timeZone.setRawOffset(1000); in assertImmutableTimeZone()
DCountryTimeZonesTest.java685 private void assertImmutableTimeZone(TimeZone timeZone) { in assertImmutableTimeZone() argument
687 timeZone.setRawOffset(1000); in assertImmutableTimeZone()
/libcore/benchmarks/src/benchmarks/regression/
DR.java2392 public static final int timeZone = 0; field in R