/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectStreamFieldTest.java | 170 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 …]
|
D | ObjectStreamClassTest.java | 75 .getField("bam").getTypeCode()); in test_getFieldLjava_lang_String() 77 .getField("wham")); in test_getFieldLjava_lang_String()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_GetPutFieldsDefaulted.java | 45 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 …]
|
D | Support_GetPutFields.java | 34 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 …]
|
D | Support_GetPutFieldsDeprecated.java | 36 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/ |
D | FieldTest.java | 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()
|
D | ReflectionTest.java | 190 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/ |
D | Duration.java | 400 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/ |
D | FieldPositionTest.java | 31 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/ |
D | OldObjectStreamFieldTest.java | 174 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()
|
D | OldObjectInputStreamGetFieldTest.java | 100 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/ |
D | ReflectionBenchmark.java | 34 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/ |
D | AccessibleObjectTest.java | 96 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()
|
D | FieldTest.java | 241 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/ |
D | MethodInvocationBenchmark.java | 30 private int getField() { in getField() method in MethodInvocationBenchmark.C 37 result = getField(); in timeInternalGetter()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ClassTest.java | 105 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()
|
D | OldClassTest.java | 735 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/ |
D | ObjectStreamField.java | 90 java.lang.reflect.Field getField() { in getField() method in ObjectStreamField
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | EllipticCurve.java | 130 public ECField getField() { in getField() method in EllipticCurve
|
/libcore/ojluni/src/main/java/java/text/ |
D | FieldPosition.java | 164 public int getField() { in getField() method in FieldPosition
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | HttpsURLConnection.java | 204 .getField("INSTANCE").get(null);
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EllipticCurveTest.java | 444 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/ |
D | ObjectStreamField.java | 282 Field getField() { in getField() method in ObjectStreamField
|
D | ObjectStreamClass.java | 309 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/ |
D | PatternSyntaxExceptionTest.java | 116 assertNotNull(objectStreamClass.getField("desc")); in test_objectStreamField()
|