/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | GregorianCalendarTest.java | 23 import java.util.GregorianCalendar; 55 assertTrue("Constructed incorrect calendar", (new GregorianCalendar() in test_Constructor() 64 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, 13); in test_ConstructorIII() 81 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, in test_ConstructorIIIII() 98 gc = new GregorianCalendar(1900, 0, 0, 0, Integer.MAX_VALUE); in test_ConstructorIIIII() 110 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, in test_ConstructorIIIIII() 135 GregorianCalendar gcJapan = new GregorianCalendar(Locale.JAPAN); in test_ConstructorLjava_util_Locale() 137 GregorianCalendar gcJapan2 = new GregorianCalendar(Locale.JAPAN); in test_ConstructorLjava_util_Locale() 139 GregorianCalendar gcItaly = new GregorianCalendar(Locale.ITALY); in test_ConstructorLjava_util_Locale() 152 GregorianCalendar gc1 = new GregorianCalendar(AMERICA_NEW_YORK); in test_ConstructorLjava_util_TimeZone() [all …]
|
D | DateTest.java | 23 import java.util.GregorianCalendar; 34 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.OCTOBER, in test_Constructor() 55 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 22); in test_ConstructorIII() 203 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDate() 213 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDay() 223 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getHours() 233 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMinutes() 243 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMonth() 253 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getSeconds() 282 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getYear() [all …]
|
D | SimpleTimeZoneTest.java | 22 import java.util.GregorianCalendar; 57 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER, in test_ConstructorILjava_lang_StringIIIIIIII() 60 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER, in test_ConstructorILjava_lang_StringIIIIIIII() 114 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER, in test_ConstructorILjava_lang_StringIIIIIIIII() 117 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER, in test_ConstructorILjava_lang_StringIIIIIIIII() 301 GregorianCalendar.AD, 1998, Calendar.NOVEMBER, 11, in test_getOffsetIIIIII() 306 .getOffset(GregorianCalendar.AD, 1998, Calendar.JUNE, 11, in test_getOffsetIIIIII() 405 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.JUNE, 11); in test_inDaylightTimeLjava_util_Date() 409 gc = new GregorianCalendar(1998, Calendar.NOVEMBER, 11); in test_inDaylightTimeLjava_util_Date() 412 gc = new GregorianCalendar(zone); in test_inDaylightTimeLjava_util_Date() [all …]
|
D | TimeZoneTest.java | 24 import java.util.GregorianCalendar; 79 long time1 = new GregorianCalendar(1998, Calendar.NOVEMBER, 11) in test_getOffset_long() 84 long time2 = new GregorianCalendar(1998, Calendar.JUNE, 11) in test_getOffset_long()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldGregorianCalendarTest.java | 22 import java.util.GregorianCalendar; 33 GregorianCalendar gc1 = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.FRANCE); in testGetHour() 35 GregorianCalendar gc2 = new GregorianCalendar(TimeZone.getTimeZone("GMT+2"), Locale.US); in testGetHour() 42 GregorianCalendar g1 = new GregorianCalendar(TimeZone.getTimeZone("Europe/Moscow")); in test_computeTime() 55 GregorianCalendar g = new GregorianCalendar( in test_computeFields() 69 GregorianCalendar g = new GregorianCalendar( in test_hashCode() 75 GregorianCalendar g1 = new GregorianCalendar( in test_hashCode() 83 GregorianCalendar g = new GregorianCalendar( in test_setFirstDayOfWeekI() 97 GregorianCalendar g = new GregorianCalendar( in test_setMinimalDaysInFirstWeekI()
|
D | CalendarTest.java | 21 import java.util.GregorianCalendar; 54 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstForwardAdds23HoursAt0100() 70 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstForwardAdds24HoursAt0000() 79 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstBackAdds25HoursAt0000() 88 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstBackAdds25HoursAt0100() 97 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddTwoHalfDaysOverDstForwardAdds23HoursAt0100() 106 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAdd24HoursOverDstForwardAdds24Hours() 115 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testAddOneDayAndOneDayOver30MinuteDstForwardAdds48Hours() 126 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testAddTwoDaysOver30MinuteDstForwardAdds47AndAHalfHours() 150 Calendar calendar = new GregorianCalendar(timeZone); in testSetSelfConsistent() [all …]
|
D | GregorianCalendarTest.java | 21 import java.util.GregorianCalendar; 62 Calendar greg = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_computeFields_dayOfWeekAndWeekOfYearSet() 78 greg = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_computeFields_dayOfWeekAndWeekOfYearSet() 86 greg = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_computeFields_dayOfWeekAndWeekOfYearSet() 103 GregorianCalendar gc; in test_fieldsAffectedByGregorianCutOver() 106 gc = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_fieldsAffectedByGregorianCutOver() 136 gc = new GregorianCalendar(LONDON, Locale.ENGLISH); in test_fieldsAffectedByGregorianCutOver() 208 assertTrue(new GregorianCalendar().isWeekDateSupported()); in test_isWeekDateSupported() 212 GregorianCalendar cal = new GregorianCalendar(); in test_setWeekDate() 252 GregorianCalendar cal = new GregorianCalendar(); in test_getWeekYear() [all …]
|
D | SimpleTimeZoneTest.java | 22 import java.util.GregorianCalendar; 210 GregorianCalendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in findDstEntryAndExit() 253 Calendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in formatTime() 262 GregorianCalendar calendar = new GregorianCalendar(timeZone, Locale.ENGLISH); in checkDstTransitionTimes()
|
D | FormatterTest.java | 21 import java.util.GregorianCalendar; 180 Calendar c = new GregorianCalendar(utc); in checkFormat()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | SimpleDateFormatTest.java | 27 import java.util.GregorianCalendar; 257 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 261 assertFormat(format, " G", new GregorianCalendar(-1999, Calendar.JUNE, 2), " BC", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 268 assertFormat(format, " yy", new GregorianCalendar(2001, Calendar.JUNE, 2), " 01", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 270 assertFormat(format, " yy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 00", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 272 assertFormat(format, " yyy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 2000", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 279 assertFormat(format, " M", new GregorianCalendar(1999, Calendar.NOVEMBER, 2), " 11", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 287 assertFormat(format, " d", new GregorianCalendar(1999, Calendar.NOVEMBER, 12), " 12", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 293 assertFormat(format, " h", new GregorianCalendar(1999, Calendar.NOVEMBER, 12), " 12", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() 299 assertFormat(format, " H", new GregorianCalendar(1999, Calendar.NOVEMBER, 12, 4, 0), " 4", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() [all …]
|
D | Support_MessageFormat.java | 25 import java.util.GregorianCalendar; 53 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_format_with_FieldPosition() 82 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_formatToCharacterIterator()
|
D | Support_SimpleDateFormat.java | 26 import java.util.GregorianCalendar; 50 Calendar cal = new GregorianCalendar(tz); in t_format_with_FieldPosition() 134 Calendar cal = new GregorianCalendar(tz); in t_formatToCharacterIterator()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TimeZone.java | 21 import java.util.GregorianCalendar; 54 GregorianCalendar cal = new GregorianCalendar(); in inDaylightTime()
|
D | Support_MessageFormat.java | 25 import java.util.GregorianCalendar; 50 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_format_with_FieldPosition() 77 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_formatToCharacterIterator()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetGetterTests.java | 33 import java.util.GregorianCalendar; 411 GregorianCalendar testCal = new GregorianCalendar(1799, Calendar.MAY, 26, 0, 0); in testGetDateInt() 431 GregorianCalendar testCal = new GregorianCalendar(1799, Calendar.MAY, 26, 0, 0); in testGetDateIntCalendar() 453 GregorianCalendar testCal = new GregorianCalendar(1799, Calendar.MAY, 26, 0, 0); in testGetDateString() 473 GregorianCalendar testCal = new GregorianCalendar(1799, Calendar.MAY, 26, 0, 0); in testGetDateStringCalendar() 926 Calendar cal = new GregorianCalendar(); in testGetTimeInt() 938 Calendar cal2 = new GregorianCalendar(); in testGetTimeInt() 985 Calendar cal1 = new GregorianCalendar(); in testGetTimeIntCalendar() 995 Calendar cal2 = new GregorianCalendar(); in testGetTimeIntCalendar() 1011 Time timeRes = res.getTime(i,new GregorianCalendar()); in testGetTimeIntCalendar() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ExpensiveObjectsBenchmark.java | 25 import java.util.GregorianCalendar; 142 new GregorianCalendar(); in timeNewGregorianCalendar() 147 GregorianCalendar gc = new GregorianCalendar(); in timeClonedGregorianCalendar()
|
D | DateToStringBenchmark.java | 24 import java.util.GregorianCalendar; 34 calendar = new GregorianCalendar(); in setUp()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | XMLGregorianCalendar.java | 24 import java.util.GregorianCalendar; 956 public abstract GregorianCalendar toGregorianCalendar(); in toGregorianCalendar() 1008 public abstract GregorianCalendar toGregorianCalendar( in toGregorianCalendar()
|
D | Duration.java | 26 import java.util.GregorianCalendar; 371 Calendar cal = new GregorianCalendar(); in getTimeInMillis() 558 Calendar cal = new GregorianCalendar(); in addTo()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 328 public class GregorianCalendar extends Calendar { class 586 public GregorianCalendar() { in GregorianCalendar() method in GregorianCalendar 597 public GregorianCalendar(TimeZone zone) { in GregorianCalendar() method in GregorianCalendar 607 public GregorianCalendar(Locale aLocale) { in GregorianCalendar() method in GregorianCalendar 619 public GregorianCalendar(TimeZone zone, Locale aLocale) { in GregorianCalendar() method in GregorianCalendar 634 public GregorianCalendar(int year, int month, int dayOfMonth) { in GregorianCalendar() method in GregorianCalendar 651 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() method in GregorianCalendar 671 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() method in GregorianCalendar 692 GregorianCalendar(int year, int month, int dayOfMonth, in GregorianCalendar() method in GregorianCalendar 724 GregorianCalendar(long milliseconds) { in GregorianCalendar() method in GregorianCalendar [all …]
|
D | SimpleTimeZone.java | 558 BaseCalendar cal = date >= GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER ? in getOffsets() 607 if (era != GregorianCalendar.AD && era != GregorianCalendar.BC) { in getOffset() 612 if (era == GregorianCalendar.BC) { in getOffset() 647 if (time < GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER) { in getOffset() 665 if (!useDaylight || year < startYear || era != GregorianCalendar.CE) { in getOffset()
|
D | Date.java | 1186 GregorianCalendar cal = new GregorianCalendar(fastTime); in getTimezoneOffset() 1252 GregorianCalendar gc = new GregorianCalendar(tz); in normalize() 1300 || utc >= GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER in getCalendarSystem()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ConsoleTest.java | 31 import java.util.GregorianCalendar; 73 Calendar c = new GregorianCalendar(1983, 2, 21); in test_printf_LString_LObject()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateUtilsBridge.java | 21 import android.icu.util.GregorianCalendar; 61 Calendar calendar = new GregorianCalendar(icuTimeZone, icuLocale); in createIcuCalendar()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 25 import java.util.GregorianCalendar; 309 Calendar calendar = new GregorianCalendar(AMERICA_LOS_ANGELES); in testDstZoneNameWithNonDstTimestamp() 317 Calendar calendar = new GregorianCalendar(AMERICA_LOS_ANGELES); in testNonDstZoneNameWithDstTimestamp() 326 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testDstZoneWithNonDstTimestampForNonHourDstZone() 334 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testNonDstZoneWithDstTimestampForNonHourDstZone()
|