Home
last modified time | relevance | path

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

123

/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;
59 t_FormatWithField(1, format, objects, null, Field.ARGUMENT, 3, 15); in t_format_with_FieldPosition()
62 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, in t_format_with_FieldPosition()
65 NumberFormat.Field.FRACTION, 0, 0); in t_format_with_FieldPosition()
68 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); in t_format_with_FieldPosition()
70 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition()
86 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
87 v.add(new FieldContainer(3, 6, Field.ARGUMENT, 4)); in getMessageVector1()
88 v.add(new FieldContainer(6, 7, Field.ARGUMENT, 4)); in getMessageVector1()
89 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/luni/src/main/java/java/text/
DDateFormat.java690 public static class Field extends Format.Field { class in DateFormat
694 private static Hashtable<Integer, Field> table = new Hashtable<Integer, Field>();
699 public static final Field ERA = new Field("era", Calendar.ERA);
704 public static final Field YEAR = new Field("year", Calendar.YEAR);
709 public static final Field MONTH = new Field("month", Calendar.MONTH);
714 public static final Field HOUR_OF_DAY0 = new Field("hour of day", Calendar.HOUR_OF_DAY);
719 public static final Field HOUR_OF_DAY1 = new Field("hour of day 1", -1);
724 public static final Field MINUTE = new Field("minute", Calendar.MINUTE);
729 public static final Field SECOND = new Field("second", Calendar.SECOND);
734 public static final Field MILLISECOND = new Field("millisecond", Calendar.MILLISECOND);
[all …]
DNumberFormat.java762 public static class Field extends Format.Field {
769 public static final Field SIGN = new Field("sign");
774 public static final Field INTEGER = new Field("integer");
779 public static final Field FRACTION = new Field("fraction");
784 public static final Field EXPONENT = new Field("exponent");
789 public static final Field EXPONENT_SIGN = new Field("exponent sign");
794 public static final Field EXPONENT_SYMBOL = new Field("exponent symbol");
799 public static final Field DECIMAL_SEPARATOR = new Field("decimal separator");
804 public static final Field GROUPING_SEPARATOR = new Field("grouping separator");
809 public static final Field PERCENT = new Field("percent");
[all …]
DFieldPosition.java37 private Format.Field attribute;
49 public FieldPosition(Format.Field attribute) { in FieldPosition()
57 public FieldPosition(Format.Field attribute, int field) { in FieldPosition()
100 public Format.Field getFieldAttribute() { in getFieldAttribute()
/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/dex/src/main/java/com/android/dex/
DClassData.java20 private final Field[] staticFields;
21 private final Field[] instanceFields;
25 public ClassData(Field[] staticFields, Field[] instanceFields, in ClassData()
33 public Field[] getStaticFields() { in getStaticFields()
37 public Field[] getInstanceFields() { in getInstanceFields()
49 public Field[] allFields() { in allFields()
50 Field[] result = new Field[staticFields.length + instanceFields.length]; in allFields()
63 public static class Field { class in ClassData
67 public Field(int fieldIndex, int accessFlags) { in Field() method in ClassData.Field
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DFieldTest.java19 import java.lang.reflect.Field;
27 Field field = getClass().getDeclaredField("MY_LONG"); in testLongFieldReflection()
32 Field f1 = FieldTestHelper.class.getField("a"); in testEqualConstructorEqualsAndHashCode()
33 Field f2 = FieldTestHelper.class.getField("a"); in testEqualConstructorEqualsAndHashCode()
39 Field f1 = FieldTestHelper.class.getField("a"); in testHashCodeSpec()
44 Field f1 = FieldTestHelper.class.getField("a"); in testDifferentConstructorEqualsAndHashCode()
45 Field f2 = FieldTestHelper.class.getField("b"); in testDifferentConstructorEqualsAndHashCode()
DReflectionTest.java21 import java.lang.reflect.Field;
95 Field fieldOne = C.class.getDeclaredField("fieldOne"); in testFieldToString()
100 Field fieldTwo = C.class.getDeclaredField("fieldTwo"); in testFieldToString()
106 Field fieldThree = C.class.getDeclaredField("fieldThree"); in testFieldToString()
112 Field fieldFour = C.class.getDeclaredField("fieldFour"); in testFieldToString()
119 Field fieldFive = C.class.getDeclaredField("fieldFive"); in testFieldToString()
215 Field field = D.class.getField("fieldOne"); in testGetFieldIsRecursive()
254 Field field = ExtendsImplementsDefinesMember.class.getField("field"); in testGetFieldViaExtendsThenImplements()
259 Field field = ImplementsExtendsDefinesMember.class.getField("field"); in testGetFieldViaImplementsThenExtends()
264 Field[] fields = ExtendsImplementsDefinesMember.class.getFields(); in testGetFieldsViaExtendsThenImplements()
[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 {
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/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 …]
DGenericArrayTypeTest.java19 import java.lang.reflect.Field;
36 Field field = clazz.getDeclaredField("array"); in testGetGenericComponentType()
53 Field field = clazz.getDeclaredField("array"); in testParameterizedComponentType()
/libcore/libart/src/main/java/java/lang/
DClass.java45 import java.lang.reflect.Field;
884 public Field getDeclaredField(String name) throws NoSuchFieldException { in getDeclaredField()
888 Field result = getDeclaredFieldInternal(name); in getDeclaredField()
905 public Field[] getDeclaredFields() { in getDeclaredFields()
908 ArrayList<Field> fields = new ArrayList(initial_size); in getDeclaredFields()
910 Field[] result = fields.toArray(new Field[fields.size()]); in getDeclaredFields()
911 for (Field f : result) { in getDeclaredFields()
925 public void getDeclaredFieldsUnchecked(boolean publicOnly, List<Field> fields) { in getDeclaredFieldsUnchecked()
929 fields.add(new Field(f)); in getDeclaredFieldsUnchecked()
936 fields.add(new Field(f)); in getDeclaredFieldsUnchecked()
[all …]
/libcore/luni/src/main/java/libcore/icu/
DNativeDecimalFormat.java97 private static final Format.Field[] ICU4C_FIELD_IDS = {
102 NumberFormat.Field.INTEGER, // 0 UNUM_INTEGER_FIELD
103 NumberFormat.Field.FRACTION, // 1 UNUM_FRACTION_FIELD
104 NumberFormat.Field.DECIMAL_SEPARATOR, // 2 UNUM_DECIMAL_SEPARATOR_FIELD
105 NumberFormat.Field.EXPONENT_SYMBOL, // 3 UNUM_EXPONENT_SYMBOL_FIELD
106 NumberFormat.Field.EXPONENT_SIGN, // 4 UNUM_EXPONENT_SIGN_FIELD
107 NumberFormat.Field.EXPONENT, // 5 UNUM_EXPONENT_FIELD
108 NumberFormat.Field.GROUPING_SEPARATOR, // 6 UNUM_GROUPING_SEPARATOR_FIELD
109 NumberFormat.Field.CURRENCY, // 7 UNUM_CURRENCY_FIELD
110 NumberFormat.Field.PERCENT, // 8 UNUM_PERCENT_FIELD
[all …]
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java22 import java.lang.reflect.Field;
174 private transient HashMap<ObjectStreamField, Field> reflectionFields =
175 new HashMap<ObjectStreamField, Field>();
196 Field checkAndGetReflectionField(ObjectStreamField osf) { in checkAndGetReflectionField()
198 Field field = reflectionFields.get(osf); in checkAndGetReflectionField()
206 Field field; in checkAndGetReflectionField()
271 Field[] declaredFields = null; in createClassDesc()
339 void buildFieldDescriptors(Field[] declaredFields) { in buildFieldDescriptors()
342 final Field f = ObjectStreamClass.fieldSerialPersistentFields(this.forClass()); in buildFieldDescriptors()
365 for (Field declaredField : declaredFields) { in buildFieldDescriptors()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketImplFactoryTest.java6 import java.lang.reflect.Field;
19 Field factoryField = null;
65 Field [] fields = Socket.class.getDeclaredFields(); in setUp()
67 for (Field field : fields) { in setUp()
DOldDatagramSocketImplFactoryTest.java20 import java.lang.reflect.Field;
34 Field factoryField = null;
84 Field [] fields = DatagramSocket.class.getDeclaredFields(); in setUp()
86 for (Field field : fields) { in setUp()
/libcore/libart/src/main/java/java/lang/reflect/
DField.java47 public final class Field extends AccessibleObject implements Member { class
54 public static final Comparator<Field> ORDER_BY_NAME_AND_DECLARING_CLASS
55 = new Comparator<Field>() {
56 @Override public int compare(Field a, Field b) {
79 public Field(ArtField artField) { in Field() method in Field
170 if (!(other instanceof Field)) { in equals()
174 return this.artField == ((Field) other).artField; in equals()

123