Home
last modified time | relevance | path

Searched refs:Field (Results 1 – 25 of 114) sorted by relevance

12345

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_SimpleDateFormat.java23 import java.text.DateFormat.Field;
75 t_FormatWithField(0, format, date, null, Field.ERA, 0, 2); in t_format_with_FieldPosition()
76 t_FormatWithField(1, format, date, null, Field.YEAR, 6, 10); in t_format_with_FieldPosition()
77 t_FormatWithField(2, format, date, null, Field.MONTH, 19, 20); in t_format_with_FieldPosition()
78 t_FormatWithField(3, format, date, null, Field.DAY_OF_MONTH, 38, 40); in t_format_with_FieldPosition()
79 t_FormatWithField(4, format, date, null, Field.HOUR_OF_DAY1, 48, 50); in t_format_with_FieldPosition()
80 t_FormatWithField(5, format, date, null, Field.HOUR_OF_DAY0, 58, 60); in t_format_with_FieldPosition()
81 t_FormatWithField(6, format, date, null, Field.HOUR1, 68, 69); in t_format_with_FieldPosition()
82 t_FormatWithField(7, format, date, null, Field.MINUTE, 77, 79); in t_format_with_FieldPosition()
83 t_FormatWithField(8, format, date, null, Field.SECOND, 84, 85); in t_format_with_FieldPosition()
[all …]
DSupport_DecimalFormat.java45 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, 0, 1); in t_format_with_FieldPosition()
46 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, 1, 11); in t_format_with_FieldPosition()
47 t_FormatWithField(2, format, number, text, NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); in t_format_with_FieldPosition()
48 t_FormatWithField(3, format, number, text, NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); in t_format_with_FieldPosition()
49 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, 12, 14); in t_format_with_FieldPosition()
52 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, 0); in t_format_with_FieldPosition()
53 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, 0, 0); in t_format_with_FieldPosition()
54 t_FormatWithField(7, format, number, text, NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition()
55 t_FormatWithField(8, format, number, text, NumberFormat.Field.EXPONENT_SYMBOL, 0, 0); in t_format_with_FieldPosition()
56 t_FormatWithField(9, format, number, text, NumberFormat.Field.PERCENT, 0, 0); in t_format_with_FieldPosition()
[all …]
DDataFormatFieldTest.java28 import java.text.DateFormat.Field;
43 DateFormat.Field realField = DateFormat.Field in test_ConstructorLjava_lang_StringLjava_lang_String()
46 DateFormat.Field.ERA, realField); in test_ConstructorLjava_lang_StringLjava_lang_String()
48 DateFormat.Field realField2 = DateFormat.Field in test_ConstructorLjava_lang_StringLjava_lang_String()
51 DateFormat.Field.DAY_OF_MONTH, realField2); in test_ConstructorLjava_lang_StringLjava_lang_String()
54 static class MyField extends DateFormat.Field {
76 DateFormat.Field realField = DateFormat.Field in test_ConstructorLjava_lang_StringI()
79 DateFormat.Field.DAY_OF_WEEK, realField); in test_ConstructorLjava_lang_StringI()
92 DateFormat.Field realField = DateFormat.Field in test_Constructor2()
95 DateFormat.Field.ERA, realField); in test_Constructor2()
[all …]
DSupport_MessageFormat.java23 import java.text.MessageFormat.Field;
61 t_FormatWithField(1, format, objects, null, Field.ARGUMENT, 3, 15); in t_format_with_FieldPosition()
64 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
67 NumberFormat.Field.FRACTION, 0, 0); in t_format_with_FieldPosition()
70 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
72 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition()
91 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
92 v.add(new FieldContainer(3, 6, Field.ARGUMENT, 4)); in getMessageVector1()
93 v.add(new FieldContainer(6, 7, Field.ARGUMENT, 4)); in getMessageVector1()
94 v.add(new FieldContainer(7, 9, DateFormat.Field.DAY_OF_MONTH)); in getMessageVector1()
[all …]
DFieldPositionTest.java39 public void test_ConstructorLjava_text_Format$Field() { in test_ConstructorLjava_text_Format$Field()
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()
61 FieldPosition fpos2 = new FieldPosition(DateFormat.Field.HOUR1, in test_ConstructorLjava_text_Format$FieldI()
64 DateFormat.Field.HOUR1, fpos2.getFieldAttribute()); in test_ConstructorLjava_text_Format$FieldI()
68 FieldPosition fpos3 = new FieldPosition(DateFormat.Field.TIME_ZONE, in test_ConstructorLjava_text_Format$FieldI()
71 DateFormat.Field.TIME_ZONE, fpos3.getFieldAttribute()); in test_ConstructorLjava_text_Format$FieldI()
99 FieldPosition fpos3 = new FieldPosition(DateFormat.Field.ERA, 1); in test_equalsLjava_lang_Object()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_DecimalFormat.java47 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, in t_format_with_FieldPosition()
49 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, in t_format_with_FieldPosition()
52 NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); in t_format_with_FieldPosition()
54 NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); in t_format_with_FieldPosition()
55 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, in t_format_with_FieldPosition()
59 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, in t_format_with_FieldPosition()
61 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, in t_format_with_FieldPosition()
64 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition()
66 NumberFormat.Field.EXPONENT_SYMBOL, 0, 0); in t_format_with_FieldPosition()
67 t_FormatWithField(9, format, number, text, NumberFormat.Field.PERCENT, in t_format_with_FieldPosition()
[all …]
DSupport_MessageFormat.java23 import java.text.MessageFormat.Field;
58 t_FormatWithField(1, format, objects, null, Field.ARGUMENT, 3, 15); in t_format_with_FieldPosition()
61 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
64 NumberFormat.Field.FRACTION, 0, 0); in t_format_with_FieldPosition()
67 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
69 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition()
87 v.add(new FieldContainer(3, 6, Field.ARGUMENT, 4)); in getMessageVector1()
88 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
89 v.add(new FieldContainer(6, 7, Field.ARGUMENT, 4)); in getMessageVector1()
90 v.add(new FieldContainer(7, 9, Field.ARGUMENT, 4)); in getMessageVector1()
[all …]
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java849 public static class Field extends Format.Field { class in DateFormat
855 private static final Map<String, Field> instanceMap = new HashMap<>(18);
858 private static final Field[] calendarToFieldMapping =
859 new Field[Calendar.FIELD_COUNT];
876 public static Field ofCalendarField(int calendarField) { in ofCalendarField()
895 protected Field(String name, int calendarField) { in Field() method in DateFormat.Field
898 if (this.getClass() == DateFormat.Field.class) { in Field()
930 if (this.getClass() != DateFormat.Field.class) { in readResolve()
949 public final static Field ERA = new Field("era", Calendar.ERA);
954 public final static Field YEAR = new Field("year", Calendar.YEAR);
[all …]
DNumberFormat.java1107 public static class Field extends Format.Field { class in NumberFormat
1113 private static final Map<String, Field> instanceMap = new HashMap<>(11);
1121 protected Field(String name) { in Field() method in NumberFormat.Field
1123 if (this.getClass() == NumberFormat.Field.class) { in Field()
1136 if (this.getClass() != NumberFormat.Field.class) { in readResolve()
1151 public static final Field INTEGER = new Field("integer");
1156 public static final Field FRACTION = new Field("fraction");
1161 public static final Field EXPONENT = new Field("exponent");
1166 public static final Field DECIMAL_SEPARATOR =
1167 new Field("decimal separator");
[all …]
DDecimalFormat.java520 Format.Field fieldAttribute = fp.getFieldAttribute(); in getIcuFieldPosition()
523 android.icu.text.NumberFormat.Field attribute; in getIcuFieldPosition()
524 if (fieldAttribute == Field.INTEGER) { in getIcuFieldPosition()
525 attribute = android.icu.text.NumberFormat.Field.INTEGER; in getIcuFieldPosition()
526 } else if (fieldAttribute == Field.FRACTION) { in getIcuFieldPosition()
527 attribute = android.icu.text.NumberFormat.Field.FRACTION; in getIcuFieldPosition()
528 } else if (fieldAttribute == Field.DECIMAL_SEPARATOR) { in getIcuFieldPosition()
529 attribute = android.icu.text.NumberFormat.Field.DECIMAL_SEPARATOR; in getIcuFieldPosition()
530 } else if (fieldAttribute == Field.EXPONENT_SYMBOL) { in getIcuFieldPosition()
531 attribute = android.icu.text.NumberFormat.Field.EXPONENT_SYMBOL; in getIcuFieldPosition()
[all …]
DFieldPosition.java96 private Format.Field attribute;
122 public FieldPosition(Format.Field attribute) { in FieldPosition()
142 public FieldPosition(Format.Field attribute, int fieldID) { in FieldPosition()
155 public Format.Field getFieldAttribute() { in getFieldAttribute()
263 private boolean matchesField(Format.Field attribute) { in matchesField()
275 private boolean matchesField(Format.Field attribute, int field) { in matchesField()
296 public void formatted(Format.Field attr, Object value, int start, in formatted()
305 public void formatted(int fieldID, Format.Field attr, Object value, in formatted()
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeConstants.java129 public static final Field YEARS = new Field("YEARS", 0);
134 public static final Field MONTHS = new Field("MONTHS", 1);
139 public static final Field DAYS = new Field("DAYS", 2);
144 public static final Field HOURS = new Field("HOURS", 3);
149 public static final Field MINUTES = new Field("MINUTES", 4);
154 public static final Field SECONDS = new Field("SECONDS", 5);
160 public static final class Field { class in DatatypeConstants
179 private Field(final String str, final int id) { in Field() method in DatatypeConstants.Field
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java231 public static class Field extends java.text.Format.Field { class in DateFormat
233 protected Field(java.lang.String name, int calendarField) { in Field() method in DateFormat.Field
238 public static java.text.DateFormat.Field ofCalendarField(int calendarField) { in ofCalendarField()
250 public static final java.text.DateFormat.Field AM_PM;
256 public static final java.text.DateFormat.Field DAY_OF_MONTH;
262 public static final java.text.DateFormat.Field DAY_OF_WEEK;
268 public static final java.text.DateFormat.Field DAY_OF_WEEK_IN_MONTH;
274 public static final java.text.DateFormat.Field DAY_OF_YEAR;
280 public static final java.text.DateFormat.Field ERA;
286 public static final java.text.DateFormat.Field HOUR0;
[all …]
DNumberFormat.java257 public static class Field extends java.text.Format.Field { class in NumberFormat
259 protected Field(java.lang.String name) { in Field() method in NumberFormat.Field
268 public static final java.text.NumberFormat.Field CURRENCY;
274 public static final java.text.NumberFormat.Field DECIMAL_SEPARATOR;
280 public static final java.text.NumberFormat.Field EXPONENT;
286 public static final java.text.NumberFormat.Field EXPONENT_SIGN;
292 public static final java.text.NumberFormat.Field EXPONENT_SYMBOL;
298 public static final java.text.NumberFormat.Field FRACTION;
304 public static final java.text.NumberFormat.Field GROUPING_SEPARATOR;
310 public static final java.text.NumberFormat.Field INTEGER;
[all …]
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java166 public static class Field extends java.text.Format.Field { class in DateFormat
168 protected Field(java.lang.String name, int calendarField) { super(null); throw new RuntimeException… in Field() method in DateFormat.Field
170 public static java.text.DateFormat.Field ofCalendarField(int calendarField) { throw new RuntimeExce… in ofCalendarField()
176 public static final java.text.DateFormat.Field AM_PM;
179 public static final java.text.DateFormat.Field DAY_OF_MONTH;
182 public static final java.text.DateFormat.Field DAY_OF_WEEK;
185 public static final java.text.DateFormat.Field DAY_OF_WEEK_IN_MONTH;
188 public static final java.text.DateFormat.Field DAY_OF_YEAR;
191 public static final java.text.DateFormat.Field ERA;
194 public static final java.text.DateFormat.Field HOUR0;
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DFieldTest.java19 import java.lang.reflect.Field;
29 Field field = getClass().getDeclaredField("MY_LONG"); in testLongFieldReflection()
34 Field f1 = FieldTestHelper.class.getField("a"); in testEqualConstructorEqualsAndHashCode()
35 Field f2 = FieldTestHelper.class.getField("a"); in testEqualConstructorEqualsAndHashCode()
41 Field f1 = FieldTestHelper.class.getField("a"); in testHashCodeSpec()
46 Field f1 = FieldTestHelper.class.getField("a"); in testDifferentConstructorEqualsAndHashCode()
47 Field f2 = FieldTestHelper.class.getField("b"); in testDifferentConstructorEqualsAndHashCode()
54 Field valuesField = Thread.State.class.getDeclaredField("$VALUES"); in testSyntheticModifier()
64 Field blockedField = Thread.State.class.getDeclaredField("BLOCKED"); in testEnumValueField()
80 Field transientField = ClassWithATransientField.class.getDeclaredField("transientField"); in testTransientModifier()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/text/
DDateFormat.annotated.java161 public static class Field extends java.text.Format.Field { class in DateFormat
163 protected Field(@libcore.util.NonNull java.lang.String name, int calendarField) { super(null); thro… in Field() method in DateFormat.Field
165 @libcore.util.NonNull public static java.text.DateFormat.Field ofCalendarField(int calendarField) {… in ofCalendarField()
171 @libcore.util.NonNull public static final java.text.DateFormat.Field AM_PM;
174 @libcore.util.NonNull public static final java.text.DateFormat.Field DAY_OF_MONTH;
177 @libcore.util.NonNull public static final java.text.DateFormat.Field DAY_OF_WEEK;
180 @libcore.util.NonNull public static final java.text.DateFormat.Field DAY_OF_WEEK_IN_MONTH;
183 @libcore.util.NonNull public static final java.text.DateFormat.Field DAY_OF_YEAR;
186 @libcore.util.NonNull public static final java.text.DateFormat.Field ERA;
189 @libcore.util.NonNull public static final java.text.DateFormat.Field HOUR0;
[all …]
DNumberFormat.annotated.java134 public static class Field extends java.text.Format.Field { class in NumberFormat
136 protected Field(@libcore.util.NonNull java.lang.String name) { super(null); throw new RuntimeExcept… in Field() method in NumberFormat.Field
140 @libcore.util.NonNull public static final java.text.NumberFormat.Field CURRENCY;
143 @libcore.util.NonNull public static final java.text.NumberFormat.Field DECIMAL_SEPARATOR;
146 @libcore.util.NonNull public static final java.text.NumberFormat.Field EXPONENT;
149 @libcore.util.NonNull public static final java.text.NumberFormat.Field EXPONENT_SIGN;
152 @libcore.util.NonNull public static final java.text.NumberFormat.Field EXPONENT_SYMBOL;
155 @libcore.util.NonNull public static final java.text.NumberFormat.Field FRACTION;
158 @libcore.util.NonNull public static final java.text.NumberFormat.Field GROUPING_SEPARATOR;
161 @libcore.util.NonNull public static final java.text.NumberFormat.Field INTEGER;
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DFieldTest.java28 import java.lang.reflect.Field;
163 Field f = null; in test_equalsLjava_lang_Object()
187 Field f = TestField.class.getDeclaredField("doubleField"); in test_getLjava_lang_Object()
241 Object getField(char primitiveType, Object o, Field f, in getField()
289 void setField(char primitiveType, Object o, Field f, in setField()
362 Field objectField = null; in testProtectedFieldAccess()
363 Field booleanField = null; in testProtectedFieldAccess()
364 Field byteField = null; in testProtectedFieldAccess()
365 Field charField = null; in testProtectedFieldAccess()
366 Field shortField = null; in testProtectedFieldAccess()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldNumberFormatFieldTest.java50 NumberFormat.Field nfield = NumberFormat.Field.CURRENCY; in test_readResolve()
58 NumberFormat.Field nfield2 = (NumberFormat.Field) in.readObject(); in test_readResolve()
71 static class MyNumberFormat extends NumberFormat.Field {
DDecimalFormatTest.java134 assertFieldPosition4Types(df, 123, NumberFormat.Field.INTEGER, "123", 0, 3); in testFieldPosition()
135 assertFieldPosition4Types(df, 123, NumberFormat.Field.FRACTION, "123", 3, 3); in testFieldPosition()
136 assertFieldPosition4Types(df, 123, NumberFormat.Field.CURRENCY, "123", 0, 0); in testFieldPosition()
137 assertFieldPosition4Types(df, 123, NumberFormat.Field.DECIMAL_SEPARATOR, "123", 0, 0); in testFieldPosition()
138 assertFieldPosition4Types(df, 123, NumberFormat.Field.EXPONENT, "123", 0, 0); in testFieldPosition()
139 assertFieldPosition4Types(df, 123, NumberFormat.Field.EXPONENT_SIGN, "123", 0, 0); in testFieldPosition()
140 assertFieldPosition4Types(df, 123, NumberFormat.Field.EXPONENT_SYMBOL, "123", 0, 0); in testFieldPosition()
141 assertFieldPosition4Types(df, 123, NumberFormat.Field.GROUPING_SEPARATOR, "123", 0, 0); in testFieldPosition()
142 assertFieldPosition4Types(df, 123, NumberFormat.Field.PERCENT, "123", 0, 0); in testFieldPosition()
143 assertFieldPosition4Types(df, 123, NumberFormat.Field.PERMILLE, "123", 0, 0); in testFieldPosition()
[all …]
DOldMessageFormatFieldTest.java52 MessageFormat.Field mfield, mfield2; in test_readResolve()
55 mfield = MessageFormat.Field.ARGUMENT; in test_readResolve()
66 mfield2 = (MessageFormat.Field) in.readObject(); in test_readResolve()
93 static class MyMessageFormat extends MessageFormat.Field {
DAttributedCharacterIteratorAttributeTest.java35 assertSameReserialized(DateFormat.Field.ERA); in testSerialization()
36 assertSameReserialized(DateFormat.Field.TIME_ZONE); in testSerialization()
37 assertSameReserialized(NumberFormat.Field.INTEGER); in testSerialization()
/libcore/libart/src/main/java/java/lang/invoke/
DFieldVarHandle.java19 import java.lang.reflect.Field;
29 private FieldVarHandle(Field field, Class<?> declaringClass) { in FieldVarHandle()
34 private FieldVarHandle(Field field) { in FieldVarHandle()
39 static FieldVarHandle create(Field field) { in create()
/libcore/ojluni/src/main/java/java/time/temporal/
DJulianFields.java141 public static final TemporalField JULIAN_DAY = Field.JULIAN_DAY;
182 public static final TemporalField MODIFIED_JULIAN_DAY = Field.MODIFIED_JULIAN_DAY;
202 public static final TemporalField RATA_DIE = Field.RATA_DIE;
214 private static enum Field implements TemporalField { enum in JulianFields
227 private Field(String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, long offset) { in Field() method in JulianFields.Field

12345