/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/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 | 61 .getField("bam").getTypeCode()); in test_getFieldLjava_lang_String() 63 .getField("wham")); in test_getFieldLjava_lang_String()
|
/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 | 184 D.class.getField("noField"); in testGetFieldNotFound() 200 D.class.getField(null); in testGetFieldNull() 215 Field field = D.class.getField("fieldOne"); in testGetFieldIsRecursive() 228 C.class.getField("fieldOne"); // public in testGetFieldIsPublicOnly() 230 C.class.getField("fieldTwo"); // private in testGetFieldIsPublicOnly() 235 C.class.getField("fieldThree"); // protected in testGetFieldIsPublicOnly() 240 C.class.getField("fieldFour"); // package-private in testGetFieldIsPublicOnly() 254 Field field = ExtendsImplementsDefinesMember.class.getField("field"); in testGetFieldViaExtendsThenImplements() 259 Field field = ImplementsExtendsDefinesMember.class.getField("field"); in testGetFieldViaImplementsThenExtends()
|
/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/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/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/ |
D | MethodInvocationBenchmark.java | 34 private int getField() { in getField() method in MethodInvocationBenchmark.C 41 result = getField(); in timeInternalGetter()
|
/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/regression/ |
D | ReflectionBenchmark.java | 35 klass.getField("f"); in timeClass_getField() 175 R.class.getField("mtextAppearanceLargePopupMenu"); in timeGetInstanceField() 181 R.class.getField("weekNumberColor"); in timeGetStaticField()
|
D | AnnotatedElementBenchmark.java | 34 field = Type.class.getField("field"); in setUp()
|
/libcore/luni/src/main/java/java/text/ |
D | FieldPosition.java | 93 public int getField() { in getField() method in FieldPosition
|
/libcore/luni/src/test/java/libcore/java/lang/ |
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/luni/src/main/java/javax/net/ssl/ |
D | HttpsURLConnection.java | 117 .getField("INSTANCE").get(null);
|
/libcore/luni/src/main/java/java/security/spec/ |
D | EllipticCurve.java | 141 public ECField getField() { in getField() method in EllipticCurve
|
/libcore/luni/src/main/java/java/io/ |
D | EmulatedFieldsForDumping.java | 202 Class<?> type = slot.getField().getType(); in write()
|
D | EmulatedFields.java | 50 public ObjectStreamField getField() { in getField() method in EmulatedFields.ObjectSlot
|
/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/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternSyntaxExceptionTest.java | 114 assertNotNull(objectStreamClass.getField("desc")); in test_objectStreamField()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassTest.java | 318 Field f = TestClass.class.getField("pubField"); in test_getFieldLjava_lang_String() 321 f = TestClass.class.getField("privField"); in test_getFieldLjava_lang_String()
|