Home
last modified time | relevance | path

Searched refs:ERA (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDataFormatFieldTest.java37 MyField field = new MyField("day of month", Calendar.ERA); in test_ConstructorLjava_lang_StringLjava_lang_String()
40 assertEquals("field has wrong Calendar field number", Calendar.ERA, in test_ConstructorLjava_lang_StringLjava_lang_String()
44 .ofCalendarField(Calendar.ERA); in test_ConstructorLjava_lang_StringLjava_lang_String()
46 DateFormat.Field.ERA, realField); in test_ConstructorLjava_lang_StringLjava_lang_String()
86 MyField field = new MyField("day of month", Calendar.ERA); in test_Constructor2()
89 assertEquals("field has wrong Calendar field number", Calendar.ERA, in test_Constructor2()
93 .ofCalendarField(Calendar.ERA); in test_Constructor2()
95 DateFormat.Field.ERA, realField); in test_Constructor2()
DFieldPositionTest.java99 FieldPosition fpos3 = new FieldPosition(DateFormat.Field.ERA, 1); in test_equalsLjava_lang_Object()
227 FieldPosition fpos2 = new FieldPosition(DateFormat.Field.ERA); in test_toString()
231 "java.text.FieldPosition[field=-1,attribute=" + DateFormat.Field.ERA in test_toString()
DSupport_SimpleDateFormat.java75 t_FormatWithField(0, format, date, null, Field.ERA, 0, 2); in t_format_with_FieldPosition()
106 t_FormatWithField(24, format, date, null, Field.ERA, 0, 0); in t_format_with_FieldPosition()
208 v.add(new FieldContainer(0, 2, Field.ERA)); in getDateVector4()
209 v.add(new FieldContainer(3, 5, Field.ERA)); in getDateVector4()
DSupport_MessageFormat.java70 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
DSimpleDateFormatTest.java568 cal.set(Calendar.ERA, GregorianCalendar.BC); in test_parseLjava_lang_StringLjava_text_ParsePosition()
/libcore/luni/src/test/java/libcore/java/text/
DAttributedCharacterIteratorAttributeTest.java35 assertSameReserialized(DateFormat.Field.ERA); in testSerialization()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java908 set(ERA, BCE);
918 set(ERA, CE);
940 set(ERA, BCE);
950 set(ERA, CE);
966 } else if (field == ERA) {
967 int era = internalGet(ERA) + amount;
974 set(ERA, era);
1150 case ERA: in roll()
1424 set(ERA, (d.getNormalizedYear() <= 0 ? BCE : CE)); in roll()
2151 int era = gc.get(ERA); in setWeekDate()
[all …]
DCalendar.java369 public final static int ERA = 0; field in Calendar
912 final static int ERA_MASK = (1 << ERA);
1464 if (field == ERA || field == AM_PM) { in getDisplayNames()
1512 case ERA: in getFieldStrings()
1709 if (stamp[ERA] != UNSET) { in selectFields()
/libcore/luni/src/test/java/libcore/java/util/
DOldGregorianCalendarTest.java60 assertEquals(1, g.get(Calendar.ERA)); in test_computeFields()
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java905 public final static Field ERA = new Field("era", Calendar.ERA); field in DateFormat.Field
DSimpleDateFormat.java1025 Calendar.ERA, Calendar.YEAR, Calendar.MONTH, Calendar.DATE,
1061 Field.ERA, Field.YEAR, Field.MONTH, Field.DAY_OF_MONTH,
1878 … if ((index = matchString(text, start, Calendar.ERA, formatData.getEras(), calb)) > 0) { in subParse()
/libcore/support/src/test/java/tests/support/
DSupport_MessageFormat.java67 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java815 case Calendar.ERA: in test_getDisplayNameIILjava_util_Locale()
816 cal.set(Calendar.ERA, GregorianCalendar.BC); in test_getDisplayNameIILjava_util_Locale()
822 cal.set(Calendar.ERA, GregorianCalendar.AD); in test_getDisplayNameIILjava_util_Locale()
912 if (field == Calendar.AM_PM || field == Calendar.ERA in test_getDisplayNameIILjava_util_Locale()
966 case Calendar.ERA: in test_getDisplayNamesIILjava_util_Locale()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java1762 DateFormat.Field.DAY_OF_MONTH, DateFormat.Field.ERA, in test_writeObject_DateFormat_Field()