Home
last modified time | relevance | path

Searched refs:getField (Results 1 – 25 of 37) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamFieldTest.java170 ObjectStreamField field = oc.getField("i"); in test_getType_Deserialized()
191 ObjectStreamField field = oc.getField("i"); in test_getType_MockObjectInputStream()
208 ObjectInputStream.GetField getField = newObj.getGetField(); in test_isUnshared() local
209 ObjectStreamClass objectStreamClass = getField.getObjectStreamClass(); in test_isUnshared()
211 assertTrue(objectStreamClass.getField("i").isUnshared()); in test_isUnshared()
212 assertFalse(objectStreamClass.getField("d").isUnshared()); in test_isUnshared()
213 assertTrue(objectStreamClass.getField("s").isUnshared()); in test_isUnshared()
215 assertEquals(1000, getField.get("i", null)); in test_isUnshared()
216 assertEquals(SerializableObject2.today, getField.get("d", null)); in test_isUnshared()
217 assertEquals("Richard", getField.get("s", null)); in test_isUnshared()
[all …]
DObjectStreamClassTest.java75 .getField("bam").getTypeCode()); in test_getFieldLjava_lang_String()
77 .getField("wham")); in test_getFieldLjava_lang_String()
/libcore/support/src/test/java/tests/support/
DSupport_GetPutFieldsDefaulted.java45 public ObjectInputStream.GetField getField; field in Support_GetPutFieldsDefaulted
118 getField = ois.readFields(); in readObject()
119 booleanValue = getField.get("booleanValue", true); in readObject()
120 byteValue = getField.get("byteValue", (byte) 0x0b); in readObject()
121 charValue = getField.get("charValue", (char) 'D'); in readObject()
122 doubleValue = getField.get("doubleValue", 523452.4532); in readObject()
123 floatValue = getField.get("floatValue", 298.54f); in readObject()
124 longValue = getField.get("longValue", (long) 1234567890L); in readObject()
125 intValue = getField.get("intValue", 999999); in readObject()
127 getField.get("objectValue", in readObject()
[all …]
DSupport_GetPutFields.java34 public ObjectInputStream.GetField getField; field in Support_GetPutFields
107 getField = ois.readFields(); in readObject()
108 booleanValue = getField.get("booleanValue", false); in readObject()
109 byteValue = getField.get("byteValue", (byte) 0); in readObject()
110 charValue = getField.get("charValue", (char) 0); in readObject()
111 doubleValue = getField.get("doubleValue", 0.0); in readObject()
112 floatValue = getField.get("floatValue", 0.0f); in readObject()
113 longValue = getField.get("longValue", (long) 0); in readObject()
114 intValue = getField.get("intValue", 0); in readObject()
116 getField.get("objectValue", (Object) null); in readObject()
[all …]
DSupport_GetPutFieldsDeprecated.java36 public ObjectInputStream.GetField getField; field in Support_GetPutFieldsDeprecated
109 booleanValue = getField.get("booleanValue", false); in readObject()
110 byteValue = getField.get("byteValue", (byte) 0); in readObject()
111 charValue = getField.get("charValue", (char) 0); in readObject()
112 doubleValue = getField.get("doubleValue", 0.0); in readObject()
113 floatValue = getField.get("floatValue", 0.0f); in readObject()
114 longValue = getField.get("longValue", (long) 0); in readObject()
115 intValue = getField.get("intValue", 0); in readObject()
117 getField.get("objectValue", (Object) null); in readObject()
118 shortValue = getField.get("shortValue", (short) 0); in readObject()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DFieldTest.java34 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()
DReflectionTest.java190 D.class.getField("noField"); in testGetFieldNotFound()
206 D.class.getField(null); in testGetFieldNull()
221 Field field = D.class.getField("fieldOne"); in testGetFieldIsRecursive()
234 C.class.getField("fieldOne"); // public in testGetFieldIsPublicOnly()
236 C.class.getField("fieldTwo"); // private in testGetFieldIsPublicOnly()
241 C.class.getField("fieldThree"); // protected in testGetFieldIsPublicOnly()
246 C.class.getField("fieldFour"); // package-private in testGetFieldIsPublicOnly()
260 Field field = ExtendsImplementsDefinesMember.class.getField("field"); in testGetFieldViaExtendsThenImplements()
265 Field field = ImplementsExtendsDefinesMember.class.getField("field"); in testGetFieldViaImplementsThenExtends()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java400 public abstract Number getField(final DatatypeConstants.Field field); in getField() method in Duration
413 Number n = getField(field); in getFieldValueAsInt()
892 BigInteger years = (BigInteger) getField(DatatypeConstants.YEARS); in toString()
897 BigInteger months = (BigInteger) getField(DatatypeConstants.MONTHS); in toString()
902 BigInteger days = (BigInteger) getField(DatatypeConstants.DAYS); in toString()
907 BigInteger hours = (BigInteger) getField(DatatypeConstants.HOURS); in toString()
908 BigInteger minutes = (BigInteger) getField(DatatypeConstants.MINUTES); in toString()
909 BigDecimal seconds = (BigDecimal) getField(DatatypeConstants.SECONDS); in toString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DFieldPositionTest.java31 DateFormat.MONTH_FIELD, fpos.getField()); in test_ConstructorI()
45 fpos.getField()); in test_ConstructorLjava_text_Format$Field()
58 DateFormat.MONTH_FIELD, fpos.getField()); in test_ConstructorLjava_text_Format$FieldI()
66 DateFormat.HOUR1_FIELD, fpos2.getField()); in test_ConstructorLjava_text_Format$FieldI()
73 DateFormat.MONTH_FIELD, fpos3.getField()); in test_ConstructorLjava_text_Format$FieldI()
138 65, fpos.getField()); in test_getField()
141 -1, fpos2.getField()); in test_getField()
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectStreamFieldTest.java174 bamField = osc.getField("bam"); in setUp()
175 samField = osc.getField("sam"); in setUp()
176 hamField = osc.getField("ham"); in setUp()
177 holaField = osc.getField("hola"); in setUp()
DOldObjectInputStreamGetFieldTest.java100 ObjectInputStream.GetField fields = object.getField; in test_defaultedLjava_lang_String()
114 fields = defaultedObject.getField; in test_defaultedLjava_lang_String()
124 ObjectInputStream.GetField fields = object.getField; in test_getException()
241 object.getField.getObjectStreamClass()); in test_getObjectStreamClass()
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java34 klass.getField("f"); in timeClass_getField()
182 R.class.getField("mtextAppearanceLargePopupMenu"); in timeGetInstanceField()
188 R.class.getField("weekNumberColor"); in timeGetStaticField()
194 F.class.getField("sf"); in timeGetInterfaceStaticField()
200 G.class.getField("f"); in timeGetSuperClassField()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DAccessibleObjectTest.java96 AccessibleObject ao = TestClass.class.getField("aField"); in test_isAccessible()
112 AccessibleObject ao = TestClass.class.getField("aField"); in test_setAccessible$Ljava_lang_reflect_AccessibleObjectZ()
127 AccessibleObject ao = TestClass.class.getField("aField"); in test_setAccessible()
DFieldTest.java241 Object getField(char primitiveType, Object o, Field f, in getField() method in FieldTest.SupportSubClass
511 subclass.getField(type, subclass, field, in testProtectedFieldAccess()
515 subclass.getField(type, subclass, field, null); in testProtectedFieldAccess()
516 subclass.getField(type, otherSubclass, field, null); in testProtectedFieldAccess()
517 subclass.getField(type, parentClass, field, in testProtectedFieldAccess()
519 subclass.getField(type, plainObject, field, in testProtectedFieldAccess()
526 subclass.getField(type, subclass, field, in testProtectedFieldAccess()
532 subclass.getField('Z', subclass, booleanField, null); in testProtectedFieldAccess()
533 subclass.getField('Z', otherSubclass, booleanField, null); in testProtectedFieldAccess()
534 subclass.getField('Z', parentClass, booleanField, in testProtectedFieldAccess()
[all …]
/libcore/benchmarks/src/benchmarks/
DMethodInvocationBenchmark.java30 private int getField() { in getField() method in MethodInvocationBenchmark.C
37 result = getField(); in timeInternalGetter()
/libcore/luni/src/test/java/libcore/java/lang/
DClassTest.java105 assertEquals(A.class.getField("name"), X.class.getField("name")); in test_getField()
110 assertEquals(B.class.getField("name"), Y.class.getField("name")); in test_getField()
DOldClassTest.java735 Field f = TestClass.class.getField("pubField"); in test_getFieldLjava_lang_String()
738 f = PublicTestClass.class.getField("TEST_FIELD"); in test_getFieldLjava_lang_String()
742 f = PublicTestClass.class.getField("TEST_INTERFACE_FIELD"); in test_getFieldLjava_lang_String()
747 TestClass.class.getField(null); in test_getFieldLjava_lang_String()
778 Cls3.class.getField("field1")); in test_getFields2()
792 Cls3.class.getField("field2")); in test_getFields2()
807 assertEquals(expected, Cls2.class.getField("field1")); in test_getFields()
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectStreamField.java90 java.lang.reflect.Field getField() { in getField() method in ObjectStreamField
/libcore/ojluni/src/main/java/java/security/spec/
DEllipticCurve.java130 public ECField getField() { in getField() method in EllipticCurve
/libcore/ojluni/src/main/java/java/text/
DFieldPosition.java164 public int getField() { in getField() method in FieldPosition
/libcore/ojluni/src/main/java/javax/net/ssl/
DHttpsURLConnection.java204 .getField("INSTANCE").get(null);
/libcore/luni/src/test/java/tests/security/spec/
DEllipticCurveTest.java444 assertEquals("incorrect size", ec.getField().getFieldSize(), 2); in testEllipticCurveECFieldBigIntegerBigInteger05()
479 assertEquals(f, c.getField()); in testGetField()
480 assertSame(f, c.getField()); in testGetField()
/libcore/ojluni/src/main/java/java/io/
DObjectStreamField.java282 Field getField() { in getField() method in ObjectStreamField
DObjectStreamClass.java309 public ObjectStreamField getField(String name) { in getField() method in ObjectStreamClass
310 return getField(name, null); in getField()
543 if (fields[i].getField() == null) { in ObjectStreamClass()
865 ObjectStreamField getField(String name, Class<?> type) { in getField() method in ObjectStreamClass
2023 Field rf = f.getField(); in FieldReflector()
2208 Field f = fields[i].getField(); in setObjFieldValues()
2379 if (lf.getField() != null) { in matchFields()
2381 lf.getField(), lf.isUnshared(), false); in matchFields()
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternSyntaxExceptionTest.java116 assertNotNull(objectStreamClass.getField("desc")); in test_objectStreamField()

12