Home
last modified time | relevance | path

Searched defs:cal (Results 1 – 25 of 35) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestThaiBuddhistChronoImpl.java97 Calendar cal = java.util.Calendar.getInstance(locale); in test_ThaiBuddhistChrono_vsCalendar() local
108 …assertEquals(thaiDate.get(ChronoField.DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch… in test_ThaiBuddhistChrono_vsCalendar() local
117 private String calToString(Calendar cal) { in calToString()
DTestIsoChronoImpl.java95 GregorianCalendar cal = new GregorianCalendar(); in test_IsoChrono_vsCalendar() local
105 …assertEquals(isoDate.get(DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch in " + isoDa… in test_IsoChrono_vsCalendar() local
120 GregorianCalendar cal = new GregorianCalendar(); in test_DayOfWeek_IsoChronology_vsCalendar() local
137 …assertEquals(isoDate.get(DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch in " + isoDa… in test_DayOfWeek_IsoChronology_vsCalendar() local
DTestJapaneseChronoImpl.java102 Calendar cal = Calendar.getJapaneseImperialInstance(TimeZone.getDefault(), locale); in test_JapaneseChrono_vsCalendar() local
114 …assertEquals(jDate.get(ChronoField.DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch in… in test_JapaneseChrono_vsCalendar() local
130 Calendar cal = java.util.Calendar.getInstance(locale); in test_dayOfYearVsCalendar() local
/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java216 GregorianCalendar cal = new GregorianCalendar(); in test_setWeekDate() local
256 GregorianCalendar cal = new GregorianCalendar(); in test_getWeekYear() local
277 GregorianCalendar cal = new GregorianCalendar(); in test_getWeeksInWeekYear() local
328 GregorianCalendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in getDstLosAngeles2014() local
336 Calendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in checkDstLosAngeles2014() local
394 private void checkMillis(Calendar cal, String description, long expectedMillis) { in checkMillis()
398 private void checkOutsideDst(Calendar cal, String description) { in checkOutsideDst()
403 private void checkOutsideDst(Calendar cal, String description, int expectedZoneOffset) { in checkOutsideDst()
407 private void checkInsideDst(Calendar cal, String description) { in checkInsideDst()
412 …private void checkDstFields(Calendar cal, String description, int expectedZoneOffset, int expected… in checkDstFields()
DSimpleTimeZoneTest.java210 GregorianCalendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in findDstEntryAndExit() local
245 public static String formatCalendar(Calendar cal) { in formatCalendar()
253 Calendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in formatTime() local
DOldFormatterTest.java56 Calendar cal = Calendar.getInstance(); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object() local
DCalendarTest.java49 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"), Locale.US); in test_setTimeZone() local
229 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles")); in test_clear_45877_morning() local
237 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles")); in test_clear_45877_afternoon() local
243 private void checkClear(GregorianCalendar cal, int expectedHourOfDay, long expectedMillis) { in checkClear()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java41 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("EST")); in test_setII() local
400 Calendar cal = Calendar.getInstance(); in test_setTimeLjava_util_Date() local
415 Calendar cal = Calendar.getInstance(); in test_compareToLjava_util_Calendar_null() local
428 Calendar cal = Calendar.getInstance(); in test_compareToLjava_util_Calendar() local
453 Calendar cal = Calendar.getInstance(); in test_clone() local
465 Calendar cal = Calendar.getInstance(); in test_getTimeInMillis() local
795 Calendar cal = Calendar.getInstance(); in test_getDisplayNameIILjava_util_Locale() local
952 Calendar cal = Calendar.getInstance(Locale.US); in test_getDisplayNamesIILjava_util_Locale() local
DDateTest.java55 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 22); in test_ConstructorIII() local
304 GregorianCalendar cal = new GregorianCalendar(); in test_parseLjava_lang_String() local
443 Calendar cal = Calendar.getInstance(); in test_toString() local
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java112 Calendar cal; in test() local
182 ChronoZonedDateTime<?> zdt, Calendar cal) { in testDate()
194 ChronoZonedDateTime<?> zdt, Calendar cal) { in testTime()
219 private void testZoneId(Locale locale, ChronoZonedDateTime<?> zdt, Calendar cal) { in testZoneId()
244 ChronoZonedDateTime<?> zdt, Calendar cal) { in testInstant()
/libcore/ojluni/src/main/java/java/util/
DDate.java253 BaseCalendar cal = getCalendarSystem(y); in Date() local
329 BaseCalendar cal = getCalendarSystem(y); in UTC() local
625 BaseCalendar cal = getCalendarSystem(year); in parse() local
1142 BaseCalendar cal = getCalendarSystem(t); in toGMTString() local
1193 GregorianCalendar cal = new GregorianCalendar(fastTime); in getTimezoneOffset() local
1204 BaseCalendar cal = getCalendarSystem(fastTime); in getCalendarDate() local
1213 BaseCalendar cal = getCalendarSystem(fastTime); in normalize() local
1230 CalendarSystem cal = getCalendarSystem(cdate); in normalize() local
1264 BaseCalendar cal = getCalendarSystem(fastTime); in normalize() local
1269 BaseCalendar cal = getCalendarSystem(y); in normalize() local
DSimpleTimeZone.java558 BaseCalendar cal = date >= GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER ? in getOffsets() local
635 BaseCalendar cal = gcal; in getOffset() local
672 private int getOffset(BaseCalendar cal, BaseCalendar.Date cdate, int year, long time) { in getOffset()
724 private long getStart(BaseCalendar cal, BaseCalendar.Date cdate, int year) { in getStart()
733 private long getEnd(BaseCalendar cal, BaseCalendar.Date cdate, int year) { in getEnd()
745 private long getTransition(BaseCalendar cal, BaseCalendar.Date cdate, in getTransition()
DGregorianCalendar.java1328 BaseCalendar cal; in roll() local
1513 BaseCalendar cal = (fd >= gregorianCutoverDate) ? gcal : getJulianCalendarSystem(); in roll() local
1751 BaseCalendar cal = gc.calsys; in getActualMaximum() local
2120 GregorianCalendar cal = (GregorianCalendar) clone(); in getWeekYear() local
3014 private long getFixedDate(BaseCalendar cal, int year, int fieldMask) { in getFixedDate()
3259 BaseCalendar cal = (fd >= gregorianCutoverDate) ? gcal : getJulianCalendarSystem(); in getCalendarDate() local
3456 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone(zdt.getZone())); in from() local
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java333 Calendar cal = (Calendar) startInstant.clone(); in getTimeInMillis() local
371 Calendar cal = new GregorianCalendar(); in getTimeInMillis() local
558 Calendar cal = new GregorianCalendar(); in addTo() local
977 private static long getCalendarTimeInMillis(final Calendar cal) { in getCalendarTimeInMillis()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_SimpleDateFormat.java50 Calendar cal = new GregorianCalendar(tz); in t_format_with_FieldPosition() local
134 Calendar cal = new GregorianCalendar(tz); in t_formatToCharacterIterator() local
DSimpleDateFormatTest.java257 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() local
394 private void assertFormat(SimpleDateFormat format, String pattern, Calendar cal, in assertFormat()
410 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); in test_format_time_zones() local
509 Calendar cal = new GregorianCalendar(); in test_get2DigitYearStart() local
527 Calendar cal = new GregorianCalendar(1970, Calendar.JANUARY, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition() local
627 GregorianCalendar cal = new GregorianCalendar(1970, Calendar.JANUARY, 1); in test_parse_dayOfYearPatterns() local
634 GregorianCalendar cal = new GregorianCalendar(1970, Calendar.JANUARY, 1); in test_parse_h_m_z() local
834 Calendar cal = new GregorianCalendar(); in test_set2DigitYearStartLjava_util_Date() local
DDateFormatTest.java438 Calendar cal = Calendar.getInstance(); in test_setCalendarLjava_util_Calendar() local
/libcore/ojluni/src/main/java/java/sql/
DCallableStatement.java523 java.sql.Date getDate(int parameterIndex, Calendar cal) in getDate()
548 java.sql.Time getTime(int parameterIndex, Calendar cal) in getTime()
574 java.sql.Timestamp getTimestamp(int parameterIndex, Calendar cal) in getTimestamp()
1248 void setDate(String parameterName, java.sql.Date x, Calendar cal) in setDate()
1273 void setTime(String parameterName, java.sql.Time x, Calendar cal) in setTime()
1298 void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal) in setTimestamp()
1692 java.sql.Date getDate(String parameterName, Calendar cal) in getDate()
1718 java.sql.Time getTime(String parameterName, Calendar cal) in getTime()
1745 java.sql.Timestamp getTimestamp(String parameterName, Calendar cal) in getTimestamp()
DPreparedStatement.java636 void setDate(int parameterIndex, java.sql.Date x, Calendar cal) in setDate()
658 void setTime(int parameterIndex, java.sql.Time x, Calendar cal) in setTime()
680 void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal) in setTimestamp()
/libcore/support/src/test/java/tests/support/
DSupport_TimeZone.java54 GregorianCalendar cal = new GregorianCalendar(); in inDaylightTime() local
/libcore/ojluni/src/main/java/java/util/logging/
DXMLFormatter.java59 GregorianCalendar cal = new GregorianCalendar(); in appendISO8601() local
/libcore/ojluni/src/main/java/java/text/
DCalendarBuilder.java103 Calendar establish(Calendar cal) { in establish()
/libcore/ojluni/src/main/java/javax/sql/
DRowSet.java1687 void setDate(int parameterIndex, java.sql.Date x, Calendar cal) in setDate()
1730 void setDate(String parameterName, java.sql.Date x, Calendar cal) in setDate()
1744 void setTime(int parameterIndex, java.sql.Time x, Calendar cal) in setTime()
1785 void setTime(String parameterName, java.sql.Time x, Calendar cal) in setTime()
1801 void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal) in setTimestamp()
1825 void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal) in setTimestamp()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestNonIsoFormatter.java192 Chronology cal = ta.query(TemporalQueries.chronology()); in test_chronoNames() local
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarSystem.java155 CalendarSystem cal = calendars.get(calendarName); in forName() local

12