Searched defs:timeZone (Results 1 - 10 of 10) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKClock.java96 public Clock withZone(ZoneId timeZone) { argument
97 return new MockInstantClock(millis, timeZone);
/libcore/luni/src/test/java/libcore/java/util/
H A DSimpleTimeZoneTest.java48 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris");
50 checkDstParis2014(timeZone);
54 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris",
58 checkDstParis2014(timeZone);
62 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris",
66 checkDstParis2014(timeZone);
70 TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris",
74 checkDstParis2014(timeZone);
81 private void checkDstParis2014(TimeZone timeZone) { argument
82 checkDstTransitionTimes(timeZone, 201
188 checkDstNewYork2014(TimeZone timeZone) argument
202 findDstEntryAndExit(TimeZone timeZone, long startOfYearMillis) argument
252 formatTime(TimeZone timeZone, long millis) argument
258 checkDstTransitionTimes(TimeZone timeZone, int year, String expectedUtcEntryTime, String expectedUtcExitTime) argument
[all...]
H A DGregorianCalendarTest.java162 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles");
163 checkDstLosAngeles2014(timeZone);
175 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles");
176 timeZone = new DelegatingTimeZone(timeZone);
177 checkDstLosAngeles2014(timeZone);
293 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris");
294 assertEquals(timeZone, calendar.getTimeZone());
319 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris");
320 GregorianCalendar calendar = new GregorianCalendar(timeZone);
327 getDstLosAngeles2014(TimeZone timeZone) argument
335 checkDstLosAngeles2014(TimeZone timeZone) argument
425 private final TimeZone timeZone; field in class:GregorianCalendarTest.DelegatingTimeZone
427 DelegatingTimeZone(TimeZone timeZone) argument
[all...]
H A DCalendarTest.java150 private void testSetSelfConsistent(TimeZone timeZone, int year, int month, int day) { argument
153 Calendar calendar = new GregorianCalendar(timeZone);
164 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris");
165 Calendar calendar = new GregorianCalendar(timeZone);
/libcore/luni/src/main/java/libcore/util/
H A DCountryTimeZones.java45 public OffsetResult(TimeZone timeZone, boolean oneMatch) { argument
46 mTimeZone = java.util.Objects.requireNonNull(timeZone);
270 TimeZone timeZone;
272 timeZone = getDefaultTimeZone();
274 timeZone = getValidFrozenTimeZoneOrNull(timeZoneId);
278 if (timeZone == null) {
282 mutableList.add(timeZone);
392 * timeZone.
394 private static boolean offsetMatchesAtTime(TimeZone timeZone, int offsetMillis, boolean isDst, argument
397 timeZone
458 offsetMatchesAtTime(TimeZone timeZone, int offsetMillis, Integer dstOffsetMillis, long whenMillis) argument
[all...]
H A DZoneInfo.java408 * <p>Returns an index in the range -1..timeZone.mTransitions.length - 1. -1 is used to
410 * timeZone.mTransitions.
617 @Override public boolean hasSameRules(TimeZone timeZone) { argument
618 if (!(timeZone instanceof ZoneInfo)) {
621 ZoneInfo other = (ZoneInfo) timeZone;
1214 * that runs from the beginning of time until the first transition in {@code timeZone} and
1217 * Otherwise, the information is extracted from {@code timeZone.mTransitions},
1218 * {@code timeZone.mOffsets} an {@code timeZone.mIsDsts}.
1220 public static OffsetInterval create(ZoneInfo timeZone, in argument
[all...]
/libcore/luni/src/test/java/libcore/libcore/util/
H A DCountryTimeZonesTest.java685 private void assertImmutableTimeZone(TimeZone timeZone) { argument
687 timeZone.setRawOffset(1000);
H A DTimeZoneFinderTest.java928 private static void assertImmutableTimeZone(TimeZone timeZone) { argument
930 timeZone.setRawOffset(1000);
/libcore/ojluni/src/main/java/java/util/
H A DTimeZone.java729 * method. {@code timeZone} is cached. If {@code timeZone} is null, the cached
733 * @param timeZone the new default {@code TimeZone}, or null
736 // Android-changed: s/zone/timeZone, synchronized, removed mention of SecurityException
737 public synchronized static void setDefault(TimeZone timeZone) argument
744 defaultTimeZone = timeZone != null ? (TimeZone) timeZone.clone() : null;
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java2392 public static final int timeZone = 0; field in class:R

Completed in 121 milliseconds