Home
last modified time | relevance | path

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

/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/tests/api/java/io/
DObjectStreamFieldTest.java318 ObjectStreamField field = oc.getField("i"); in test_getType_Deserialized()
361 ObjectStreamField field = oc.getField("i"); in test_getType_MockObjectInputStream()
407 ObjectInputStream.GetField getField = newObj.getGetField(); in test_isUnshared() local
408 ObjectStreamClass objectStreamClass = getField.getObjectStreamClass(); in test_isUnshared()
410 assertTrue(objectStreamClass.getField("i").isUnshared()); in test_isUnshared()
411 assertFalse(objectStreamClass.getField("d").isUnshared()); in test_isUnshared()
412 assertTrue(objectStreamClass.getField("s").isUnshared()); in test_isUnshared()
414 assertEquals(1000, getField.get("i", null)); in test_isUnshared()
415 assertEquals(SerializableObject2.today, getField.get("d", null)); in test_isUnshared()
416 assertEquals("Richard", getField.get("s", null)); in test_isUnshared()
[all …]
DObjectInputStreamGetFieldTest.java173 ObjectInputStream.GetField fields = object.getField; in test_defaultedLjava_lang_String()
187 fields = defaultedObject.getField; in test_defaultedLjava_lang_String()
255 ObjectInputStream.GetField fields = object.getField; in test_getException()
380 object.getField.getObjectStreamClass()); in test_getObjectStreamClass()
DObjectStreamClassTest.java65 .getField("bam").getTypeCode()); in test_getFieldLjava_lang_String()
67 .getField("wham")); in test_getFieldLjava_lang_String()
/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()
896 BigInteger years = (BigInteger) getField(DatatypeConstants.YEARS); in toString()
901 BigInteger months = (BigInteger) getField(DatatypeConstants.MONTHS); in toString()
906 BigInteger days = (BigInteger) getField(DatatypeConstants.DAYS); in toString()
911 BigInteger hours = (BigInteger) getField(DatatypeConstants.HOURS); in toString()
912 BigInteger minutes = (BigInteger) getField(DatatypeConstants.MINUTES); in toString()
913 BigDecimal seconds = (BigDecimal) getField(DatatypeConstants.SECONDS); in toString()
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DAccessibleObjectTest.java114 AccessibleObject ao = TestClass.class.getField("aField"); in test_isAccessible()
136 AccessibleObject ao = TestClass.class.getField("aField"); in test_setAccessible$Ljava_lang_reflect_AccessibleObjectZ()
157 AccessibleObject ao = TestClass.class.getField("aField"); in test_setAccessible()
DFieldTest.java271 Object getField(char primitiveType, Object o, Field f, in getField() method in FieldTest.SupportSubClass
649 subclass.getField(type, subclass, field, in testProtectedFieldAccess()
653 subclass.getField(type, subclass, field, null); in testProtectedFieldAccess()
654 subclass.getField(type, otherSubclass, field, null); in testProtectedFieldAccess()
655 subclass.getField(type, parentClass, field, in testProtectedFieldAccess()
657 subclass.getField(type, plainObject, field, in testProtectedFieldAccess()
664 subclass.getField(type, subclass, field, in testProtectedFieldAccess()
670 subclass.getField('Z', subclass, booleanField, null); in testProtectedFieldAccess()
671 subclass.getField('Z', otherSubclass, booleanField, null); in testProtectedFieldAccess()
672 subclass.getField('Z', parentClass, booleanField, in testProtectedFieldAccess()
[all …]
/libcore/luni/src/main/java/java/text/
DFieldPosition.java122 public int getField() { in getField() method in FieldPosition
DSimpleDateFormat.java705 .getFieldAttribute() == null && position.getField() == index)) in append()
/libcore/luni/src/main/java/org/apache/xalan/xslt/
DEnvironmentCheck.java847 Field f = clazz.getField("PRODUCT"); in checkProcessorVersion()
852 f = clazz.getField("LANGUAGE"); in checkProcessorVersion()
857 f = clazz.getField("S_VERSION"); in checkProcessorVersion()
880 Field f = clazz.getField("S_VERSION"); in checkProcessorVersion()
934 Field f = clazz.getField("fVersion"); in checkParserVersion()
953 Field f = clazz.getField("fVersion"); in checkParserVersion()
/libcore/luni/src/main/java/java/security/spec/
DEllipticCurve.java141 public ECField getField() { in getField() method in EllipticCurve
/libcore/luni/src/main/java/java/io/
DEmulatedFieldsForDumping.java200 Class<?> type = slot.getField().getType(); in write()
DEmulatedFields.java50 public ObjectStreamField getField() { in getField() method in EmulatedFields.ObjectSlot
DObjectStreamClass.java677 public ObjectStreamField getField(String name) { in getField() method in ObjectStreamClass
DObjectOutputStream.java1034 Class<?> type = slot.getField().getType(); in writeFieldValues()
DObjectInputStream.java1281 ObjectStreamField field = classDesc.getField(fieldName); in readFieldValues()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DClassTest.java1078 Field f = TestClass.class.getField("pubField"); in test_getFieldLjava_lang_String()
1081 f = PublicTestClass.class.getField("TEST_FIELD"); in test_getFieldLjava_lang_String()
1085 f = PublicTestClass.class.getField("TEST_INTERFACE_FIELD"); in test_getFieldLjava_lang_String()
1090 f = TestClass.class.getField("privField"); in test_getFieldLjava_lang_String()
1097 TestClass.class.getField(null); in test_getFieldLjava_lang_String()
1137 Cls3.class.getField("field1")); in test_getFields2()
1151 Cls3.class.getField("field2")); in test_getFields2()
1182 assertEquals(expected, Cls2.class.getField("field1")); in test_getFields()
/libcore/luni/src/main/java/java/lang/reflect/
DField.java237 return getField(object, declaringClass, type, slot, flag); in get()
850 private native Object getField(Object o, Class<?> declaringClass, Class<?> type, int slot, in getField() method in Field
/libcore/luni/src/test/java/tests/security/spec/
DEllipticCurveTest.java516 assertEquals("incorrect size", ec.getField().getFieldSize(), 2); in testEllipticCurveECFieldBigIntegerBigInteger05()
563 assertEquals(f, c.getField()); in testGetField()
564 assertSame(f, c.getField()); in testGetField()
/libcore/luni/src/main/java/com/ibm/icu4jni/text/
DNativeDecimalFormat.java514 if (fp != null && fp.getField() != -1) { in forFieldPosition()
527 int id = fp.getField(); in getNativeFieldPositionId()
/libcore/luni/src/main/java/java/lang/
DClass.java860 public Field getField(String name) throws NoSuchFieldException, SecurityException { in getField() method in Class