/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 | 308 assertEquals("Parsed incorrect month", 9, cal.get(Calendar.MONTH)); in test_parseLjava_lang_String() 447 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_toString()
|
/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 | 104 cal.set(Calendar.MONTH, isoDate.get(MONTH_OF_YEAR) - 1); in test_IsoChrono_vsCalendar() 109 …assertEquals(isoDate.get(MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch in " + isoDa… in test_IsoChrono_vsCalendar() 135 cal.set(Calendar.MONTH, isoDate.get(MONTH_OF_YEAR) - 1); in test_DayOfWeek_IsoChronology_vsCalendar() 141 …assertEquals(isoDate.get(MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch in " + isoDa… in test_DayOfWeek_IsoChronology_vsCalendar()
|
D | TestJapaneseChronoImpl.java | 118 …assertEquals(jDate.get(ChronoField.MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch in… in test_JapaneseChrono_vsCalendar()
|
/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()
|
D | Support_MessageFormat.java | 95 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 704 this.set(MONTH, month); in GregorianCalendar() 957 } else if (field == MONTH) { 958 int month = internalGet(MONTH) + amount; 991 set(MONTH, month % 12); 998 set(MONTH, JANUARY + month); 1238 case MONTH: in roll() 1245 int mon = (internalGet(MONTH) + amount) % 12; in roll() 1249 set(MONTH, mon); in roll() 1261 int yearLength = getActualMaximum(MONTH) + 1; in roll() 1262 int mon = (internalGet(MONTH) + amount) % yearLength; in roll() [all …]
|
D | JapaneseImperialCalendar.java | 427 set(MONTH, d.getMonth() - 1); in add() 429 } else if (field == MONTH) { in add() 435 set(MONTH, d.getMonth() - 1); in add() 609 internalGet(MONTH) + 1, in roll() 639 case MONTH: in roll() 670 set(MONTH, n); in roll() 694 set(MONTH, n); in roll() 696 int mon = (internalGet(MONTH) + amount) % 12; in roll() 700 set(MONTH, mon); in roll() 736 set(MONTH, n); in roll() [all …]
|
D | Calendar.java | 403 public static final int MONTH = 2; field in Calendar 1010 static final int MONTH_MASK = (1 << MONTH); 1236 return setFields(YEAR, year, MONTH, month, DAY_OF_MONTH, dayOfMonth); in setDate() 1974 set(MONTH, month); in set() 1998 set(MONTH, month); in set() 2026 set(MONTH, month); in set() 2320 … case MONTH -> (baseStyle == LONG) ? symbols.getMonths() : symbols.getShortMonths(); in getFieldStrings() 2521 int monthStamp = stamp[MONTH]; in selectFields()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 189 fieldIndex = Calendar.MONTH; in getText() 261 fieldIndex = Calendar.MONTH; in getTextIterator() 294 case Calendar.MONTH: in getTextIterator() 365 "gregory", Calendar.MONTH, in createStore() 374 "gregory", Calendar.MONTH, textStyle.toCalendarStyle(), locale); in createStore() 385 … "gregory", Calendar.MONTH, month, textStyle.toCalendarStyle(), locale); in createStore()
|
/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/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 | 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 | OldGregorianCalendarTest.java | 62 assertEquals(Calendar.SEPTEMBER, g.get(Calendar.MONTH)); in test_computeFields()
|
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 | 1008 public static final Field MONTH = new Field("month", Calendar.MONTH); field in DateFormat.Field
|
D | SimpleDateFormat.java | 1168 Calendar.MONTH, 1188 Calendar.MONTH, 1234 Field.MONTH, 1254 Field.MONTH, 2772 out.set(Calendar.MONTH, value - 1); in parseMonth() 2782 text, start, Calendar.MONTH, in parseMonth() 2789 text, start, Calendar.MONTH, in parseMonth()
|
/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; }
|