/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 50 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII() 60 cal.set(Calendar.MONTH, Calendar.OCTOBER); in test_setII() 62 cal.set(Calendar.MONTH, Calendar.NOVEMBER); in test_setII() 64 assertTrue("Incorrect month: " + cal.get(Calendar.MONTH), cal in test_setII() 65 .get(Calendar.MONTH) == Calendar.NOVEMBER); in test_setII() 127 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII() 137 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII() 147 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII() 156 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII() 168 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII() [all …]
|
D | GregorianCalendarTest.java | 68 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIII() 86 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIIIII() 115 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIIIIII() 168 c1.set(Calendar.MONTH, Calendar.JUNE); in test_ConstructorLjava_util_TimeZone() 211 gc1.add(Calendar.MONTH, 7); in test_addII() 214 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); in test_addII() 220 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); in test_addII() 278 .get(Calendar.MONTH) == Calendar.APRIL in test_addII() 322 .getActualMaximum(Calendar.MONTH) == Calendar.DECEMBER); in test_getActualMaximumI() 367 .getActualMinimum(Calendar.MONTH) == Calendar.JANUARY); in test_getActualMinimumI() [all …]
|
D | DateTest.java | 306 assertEquals("Parsed incorrect month", 9, cal.get(Calendar.MONTH)); in test_parseLjava_lang_String() 445 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_toString()
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | DateIntervalFormatTest.java | 34 private static final long MONTH = 31 * DAY; field in DateIntervalFormatTest 35 private static final long YEAR = 12 * MONTH; 42 c.set(Calendar.MONTH, Calendar.JANUARY); in test_formatDateInterval() 86 …/2009 – 4/22/2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR … in test_formatDateInterval() 91 …assertEquals("19.01. – 22.04.2009", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * MONTH, F… in test_formatDateInterval() 96 …assertEquals("19/1/2009–22/4/2009", formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * MONTH, F… in test_formatDateInterval() 101 …assertEquals("19/1/2009–22/4/2009", formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * MONTH, F… in test_formatDateInterval() 111 …ls("January 19 – April 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, 0)); in test_formatDateInterval() 112 …19 – Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_DATE … in test_formatDateInterval() 113 …Wed, Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_WEEKD… in test_formatDateInterval() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestThaiBuddhistChronoImpl.java | 104 cal.set(Calendar.MONTH, thaiDate.get(ChronoField.MONTH_OF_YEAR) - 1); in test_ThaiBuddhistChrono_vsCalendar() 109 …assertEquals(thaiDate.get(ChronoField.MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch… in test_ThaiBuddhistChrono_vsCalendar() 119 … cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH)); in calToString()
|
D | TestIsoChronoImpl.java | 101 cal.set(Calendar.MONTH, isoDate.get(MONTH_OF_YEAR) - 1); in test_IsoChrono_vsCalendar() 106 …assertEquals(isoDate.get(MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch in " + isoDa… in test_IsoChrono_vsCalendar() 132 cal.set(Calendar.MONTH, isoDate.get(MONTH_OF_YEAR) - 1); in test_DayOfWeek_IsoChronology_vsCalendar() 138 …assertEquals(isoDate.get(MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch in " + isoDa… in test_DayOfWeek_IsoChronology_vsCalendar()
|
D | TestJapaneseChronoImpl.java | 115 …assertEquals(jDate.get(ChronoField.MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch in… in test_JapaneseChrono_vsCalendar()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateUtilsBridge.java | 170 c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) || in fallOnDifferentDates() 175 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH); in fallInSameMonth()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | FieldPositionTest.java | 41 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH); in test_ConstructorLjava_text_Format$Field() 43 DateFormat.Field.MONTH, fpos.getFieldAttribute()); in test_ConstructorLjava_text_Format$Field() 53 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH, in test_ConstructorLjava_text_Format$FieldI() 56 DateFormat.Field.MONTH, fpos.getFieldAttribute()); in test_ConstructorLjava_text_Format$FieldI()
|
D | Support_SimpleDateFormat.java | 77 t_FormatWithField(2, format, date, null, Field.MONTH, 19, 20); in t_format_with_FieldPosition() 108 t_FormatWithField(26, format, date, null, Field.MONTH, 0, 0); in t_format_with_FieldPosition() 162 v.add(new FieldContainer(4, 6, Field.MONTH)); in getDateVector1() 176 v.add(new FieldContainer(8, 17, Field.MONTH)); in getDateVector2() 213 v.add(new FieldContainer(19, 20, Field.MONTH)); in getDateVector4() 214 v.add(new FieldContainer(21, 23, Field.MONTH)); in getDateVector4() 215 v.add(new FieldContainer(24, 27, Field.MONTH)); in getDateVector4() 216 v.add(new FieldContainer(28, 37, Field.MONTH)); in getDateVector4()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 703 this.set(MONTH, month); in GregorianCalendar() 956 } else if (field == MONTH) { 957 int month = internalGet(MONTH) + amount; 990 set(MONTH, month % 12); 997 set(MONTH, JANUARY + month); 1216 internalGet(MONTH) + 1, in roll() 1241 case MONTH: in roll() 1248 int mon = (internalGet(MONTH) + amount) % 12; in roll() 1252 set(MONTH, mon); in roll() 1264 int yearLength = getActualMaximum(MONTH) + 1; in roll() [all …]
|
D | JapaneseImperialCalendar.java | 425 set(MONTH, d.getMonth() - 1); in add() 427 } else if (field == MONTH) { in add() 433 set(MONTH, d.getMonth() - 1); in add() 605 internalGet(MONTH) + 1, in roll() 635 case MONTH: in roll() 666 set(MONTH, n); in roll() 690 set(MONTH, n); in roll() 692 int mon = (internalGet(MONTH) + amount) % 12; in roll() 696 set(MONTH, mon); in roll() 732 set(MONTH, n); in roll() [all …]
|
D | Calendar.java | 396 public final static int MONTH = 2; field in Calendar 1002 final static int MONTH_MASK = (1 << MONTH); 1228 return setFields(YEAR, year, MONTH, month, DAY_OF_MONTH, dayOfMonth); in setDate() 1891 set(MONTH, month); in set() 1915 set(MONTH, month); in set() 1943 set(MONTH, month); in set() 2238 case MONTH: in getFieldStrings() 2447 int monthStamp = stamp[MONTH]; in selectFields()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TimeZone.java | 56 int month = cal.get(Calendar.MONTH); in inDaylightTime()
|
D | Support_MessageFormat.java | 88 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 185 fieldIndex = Calendar.MONTH; in getText() 257 fieldIndex = Calendar.MONTH; in getTextIterator() 290 case Calendar.MONTH: in getTextIterator() 354 "gregory", Calendar.MONTH, textStyle.toCalendarStyle(), locale); in createStore() 367 … "gregory", Calendar.MONTH, month, textStyle.toCalendarStyle(), locale); in createStore()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetGetterTests.java | 940 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeInt() 997 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeIntCalendar() 1070 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeString() 1122 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeStringCalendar() 1169 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimestampInt() 1182 cal3.set(Calendar.MONTH, Calendar.SEPTEMBER); in testGetTimestampInt() 1226 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimestampIntCalendar() 1239 cal3.set(Calendar.MONTH, Calendar.SEPTEMBER); in testGetTimestampIntCalendar() 1289 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimestampString() 1302 cal3.set(Calendar.MONTH, Calendar.SEPTEMBER); in testGetTimestampString() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | CalendarTest.java | 157 assertEquals(month, calendar.get(Calendar.MONTH)); in testSetSelfConsistent() 216 assertEquals("month", month, calendar.get(Calendar.MONTH)); in assertCalendarEquals() 245 cal.set(Calendar.MONTH, Calendar.JANUARY); in checkClear()
|
D | OldGregorianCalendarTest.java | 62 assertEquals(Calendar.SEPTEMBER, g.get(Calendar.MONTH)); in test_computeFields()
|
D | GregorianCalendarTest.java | 125 assertEquals(Calendar.DECEMBER, gc.get(Calendar.MONTH)); in test_fieldsAffectedByGregorianCutOver() 146 assertEquals(Calendar.JANUARY, gc.get(Calendar.MONTH)); in test_fieldsAffectedByGregorianCutOver() 296 assertEquals(Calendar.DECEMBER, calendar.get(Calendar.MONTH)); in test_fromZonedDateTime()
|
D | CalendarBuilderTest.java | 186 builder.setFields(Calendar.YEAR, 2000, Calendar.MONTH, Calendar.FEBRUARY); in test_setFields() 190 expected.set(Calendar.MONTH, Calendar.FEBRUARY); in test_setFields()
|
/libcore/ojluni/annotations/mmodule/java/text/ |
D | DateFormat.annotated.java | 211 public static final java.text.DateFormat.Field MONTH; field in DateFormat.Field 212 static { MONTH = null; }
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | DateFormat.java | 322 public static final java.text.DateFormat.Field MONTH; field in DateFormat.Field 325 MONTH = null;
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 951 public final static Field MONTH = new Field("month", Calendar.MONTH); field in DateFormat.Field
|
/libcore/ojluni/annotations/sdk/nullability/java/text/ |
D | DateFormat.annotated.java | 207 @libcore.util.NonNull public static final java.text.DateFormat.Field MONTH; field in DateFormat.Field 208 static { MONTH = null; }
|