/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/icu/ |
D | DateIntervalFormatTest.java | 30 private static final long MONTH = 31 * DAY; field in DateIntervalFormatTest 31 private static final long YEAR = 12 * MONTH; 38 c.set(Calendar.MONTH, Calendar.JANUARY); in test_formatDateInterval() 82 …/2009 – 4/22/2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR … in test_formatDateInterval() 87 …2009 – 22.04.2009", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR … in test_formatDateInterval() 92 …assertEquals("19/1/2009–22/4/2009", formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * MONTH, F… in test_formatDateInterval() 97 …assertEquals("19/1/2009–22/4/2009", formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * MONTH, F… in test_formatDateInterval() 107 …ls("January 19 – April 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, 0)); in test_formatDateInterval() 108 …19 – Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_DATE … in test_formatDateInterval() 109 …Wed, Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_WEEKD… in test_formatDateInterval() [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateUtilsBridge.java | 160 c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) || in fallOnDifferentDates() 165 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()
|
D | Support_MessageFormat.java | 91 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 697 this.set(MONTH, month); in GregorianCalendar() 922 } else if (field == MONTH) { 923 int month = internalGet(MONTH) + amount; 956 set(MONTH, (int) (month % 12)); 963 set(MONTH, JANUARY + month); 1179 internalGet(MONTH) + 1, in roll() 1204 case MONTH: in roll() 1211 int mon = (internalGet(MONTH) + amount) % 12; in roll() 1215 set(MONTH, mon); in roll() 1227 int yearLength = getActualMaximum(MONTH) + 1; in roll() [all …]
|
D | Calendar.java | 398 public final static int MONTH = 2; field in Calendar 914 final static int MONTH_MASK = (1 << MONTH); 1226 set(MONTH, month); in set() 1250 set(MONTH, month); in set() 1278 set(MONTH, month); in set() 1516 case MONTH: in getFieldStrings() 1725 int monthStamp = stamp[MONTH]; in selectFields()
|
D | Formatter.java | 4023 int i = t.get(Calendar.MONTH); 4067 case DateTime.MONTH: { // 'm' (01 - 12) 4068 int i = t.get(Calendar.MONTH) + 1; 4109 print(sb, t, DateTime.MONTH, l).append(sep); 4117 print(sb, t, DateTime.MONTH, l).append(sep); 4460 static final char MONTH = 'm'; // (01 - 12) 4508 case MONTH:
|
/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 | 154 assertEquals(month, calendar.get(Calendar.MONTH)); in testSetSelfConsistent() 201 assertEquals("month", month, calendar.get(Calendar.MONTH)); in assertCalendarEquals() 230 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 | 121 assertEquals(Calendar.DECEMBER, gc.get(Calendar.MONTH)); in test_fieldsAffectedByGregorianCutOver() 142 assertEquals(Calendar.JANUARY, gc.get(Calendar.MONTH)); in test_fieldsAffectedByGregorianCutOver()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 86 … assertEquals(Calendar.JUNE, parseDate(en, "yyyy-MMMM-dd", "1980-June-12").get(Calendar.MONTH)); in testStandAloneNames() 87 … assertEquals(Calendar.JUNE, parseDate(en, "yyyy-LLLL-dd", "1980-June-12").get(Calendar.MONTH)); in testStandAloneNames() 88 … assertEquals(Calendar.JUNE, parseDate(pl, "yyyy-MMMM-dd", "1980-czerwca-12").get(Calendar.MONTH)); in testStandAloneNames() 89 …assertEquals(Calendar.JUNE, parseDate(pl, "yyyy-LLLL-dd", "1980-czerwiec-12").get(Calendar.MONTH)); in testStandAloneNames()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 915 public final static Field MONTH = new Field("month", Calendar.MONTH); field in DateFormat.Field
|
D | SimpleDateFormat.java | 1025 Calendar.ERA, Calendar.YEAR, Calendar.MONTH, Calendar.DATE, 1037 Calendar.MONTH, 1061 Field.ERA, Field.YEAR, Field.MONTH, Field.DAY_OF_MONTH, 1071 Field.MONTH, 2178 out.set(Calendar.MONTH, value - 1); in parseMonth() 2188 text, start, Calendar.MONTH, in parseMonth() 2195 text, start, Calendar.MONTH, in parseMonth()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfo.java | 1142 calendar.set(Calendar.MONTH, month); 1152 month = calendar.get(Calendar.MONTH);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore2Test.java | 682 int monthExpected = Calendar.getInstance().get(Calendar.MONTH); in test_getCreationDate() 689 int monthActual1 = Calendar.getInstance().get(Calendar.MONTH); in test_getCreationDate() 703 int monthActual2 = Calendar.getInstance().get(Calendar.MONTH); in test_getCreationDate()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CertificateTest.java | 432 cal.add(Calendar.MONTH, -6); in checkValidity()
|