/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[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 | 68 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
|
D | SimpleDateFormatTest.java | 570 cal.set(Calendar.ERA, GregorianCalendar.BC); in test_parseLjava_lang_StringLjava_text_ParsePosition()
|
/libcore/luni/src/main/java/java/util/ |
D | GregorianCalendar.java | 369 if (field == ERA) { in add() 371 if (fields[ERA] == AD) { in add() 375 set(ERA, BC); in add() 380 set(ERA, AD); in add() 548 fields[ERA] = BC; in fullFieldsCalc() 551 fields[ERA] = AD; in fullFieldsCalc() 649 if (isSet[ERA] && fields[ERA] == BC in computeTime() 682 if (isSet[ERA]) { in computeTime() 684 if (fields[ERA] != BC && fields[ERA] != AD) { in computeTime() 687 if (fields[ERA] == BC) { in computeTime() [all …]
|
D | Calendar.java | 468 public static final int ERA = 0; field in Calendar 1310 case ERA: in getDisplayNameArray()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | AttributedCharacterIteratorAttributeTest.java | 35 assertSameReserialized(DateFormat.Field.ERA); in testSerialization()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldGregorianCalendarTest.java | 60 assertEquals(1, g.get(Calendar.ERA)); in test_computeFields()
|
/libcore/luni/src/main/java/java/text/ |
D | DateFormat.java | 699 public static final Field ERA = new Field("era", Calendar.ERA); field in DateFormat.Field
|
D | SimpleDateFormat.java | 579 dateFormatField = Field.ERA; in append() 580 buffer.append(formatData.eras[calendar.get(Calendar.ERA)]); in append() 859 return parseText(string, offset, formatData.eras, Calendar.ERA); in parse()
|
/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()
|