/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DataFormatFieldTest.java | 37 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()
|
D | FieldPositionTest.java | 99 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()
|
D | Support_SimpleDateFormat.java | 75 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()
|
D | Support_MessageFormat.java | 70 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
|
D | SimpleDateFormatTest.java | 568 cal.set(Calendar.ERA, GregorianCalendar.BC); in test_parseLjava_lang_StringLjava_text_ParsePosition()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | AttributedCharacterIteratorAttributeTest.java | 35 assertSameReserialized(DateFormat.Field.ERA); in testSerialization()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 908 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 …]
|
D | Calendar.java | 369 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/ |
D | OldGregorianCalendarTest.java | 60 assertEquals(1, g.get(Calendar.ERA)); in test_computeFields()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormat.java | 905 public final static Field ERA = new Field("era", Calendar.ERA); field in DateFormat.Field
|
D | SimpleDateFormat.java | 1025 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/ |
D | Support_MessageFormat.java | 67 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/ |
D | CalendarTest.java | 815 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/ |
D | SerializationStressTest4.java | 1762 DateFormat.Field.DAY_OF_MONTH, DateFormat.Field.ERA, in test_writeObject_DateFormat_Field()
|