/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ConstructorTest.java | 25 import java.lang.reflect.Constructor; 106 Constructor<ConstructorTestHelper> ctor1 = ConstructorTestHelper.class in test_getParameterAnnotations() 126 Constructor<ConstructorTestHelper> ctor1 = null; in test_getDeclaredAnnotations() 142 Constructor<ConstructorTestHelper> varArgCtor = ConstructorTestHelper.class in test_isVarArgs() 146 Constructor<ConstructorTestHelper> nonVarArgCtor = ConstructorTestHelper.class in test_isVarArgs() 153 Constructor<ConstructorTestHelper> constructor = ConstructorTestHelper.class in test_hashCode() 163 Constructor<GenericConstructorTestHelper> genericCtor = GenericConstructorTestHelper.class in test_toGenericString() 169 Constructor<GenericConstructorTestHelper> ctor = GenericConstructorTestHelper.class in test_toGenericString() 178 Constructor<ConstructorTestHelper> ctor1 = null, ctor2 = null; in test_equalsLjava_lang_Object() 193 Constructor<? extends ConstructorTestHelper> ctor = pclass.getConstructor(new Class[0]); in test_getDeclaringClass() [all …]
|
D | MalformedParameterizedTypeExceptionTests.java | 3 import java.lang.reflect.Constructor; 13 … Constructor<MalformedParameterizedTypeException> ctor = MalformedParameterizedTypeException.class in test_Constructor()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ConstructorTest.java | 19 import java.lang.reflect.Constructor; 26 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]); in test_getExceptionTypes() 39 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterTypes() 56 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterCount() 67 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameters() 87 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor((Class[]) null); in testGetConstructorWithNullArgumentsArray() 108 Constructor<?> constructor = ConstructorTestHelper.class.getDeclaredConstructor( in testGetDeclaredConstructorReturnsPrivateConstructor() 114 Constructor<?> c1 = ConstructorTestHelper.class.getConstructor(); in testEqualConstructorEqualsAndHashCode() 115 Constructor<?> c2 = ConstructorTestHelper.class.getConstructor(); in testEqualConstructorEqualsAndHashCode() 121 Constructor<?> c1 = ConstructorTestHelper.class.getConstructor(); in testHashCodeSpec() [all …]
|
D | ParameterTest.java | 28 import java.lang.reflect.Constructor; 109 Constructor<?> constructor = SingleParameter.class.getDeclaredConstructor(String.class); in testSingleParameterConstructor() 132 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class); in testSingleParameterConstructor_withMetadata() 165 Constructor<?> constructor = GenericParameter.class.getDeclaredConstructor(Function.class); in testGenericParameterConstructor() 191 Constructor<?> constructor = clazz.getDeclaredConstructor(Function.class); in testGenericParameterConstructor_withMetadata() 225 Constructor<?> constructor = in testTwoParameterConstructor() 254 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class, Integer.class); in testTwoParameterConstructor_withMetadata() 293 Constructor<?> constructor = FinalParameter.class.getDeclaredConstructor(String.class); in testFinalParameterConstructor() 316 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class); in testFinalParameterConstructor_withMetdata() 356 Constructor<?> constructor = innerClass.getDeclaredConstructor(outerClass); in testInnerClassSingleParameter() [all …]
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Constructor.java | 56 public final class Constructor<T> extends Executable { class 67 private Constructor() { in Constructor() method in Constructor 71 private Constructor(Class<?> serializationCtor, in Constructor() method in Constructor 80 public Constructor<T> serializationCopy(Class<?> ctor, Class<?> cl) { in serializationCopy() 81 return new Constructor<T>(ctor, cl); in serializationCopy() 125 public TypeVariable<Constructor<T>>[] getTypeParameters() { in getTypeParameters() 128 return (TypeVariable<Constructor<T>>[]) info.formalTypeParameters.clone(); in getTypeParameters() 194 if (obj != null && obj instanceof Constructor) { in equals() 195 Constructor<?> other = (Constructor<?>)obj; in equals()
|
D | AccessibleObject.java | 140 if (obj instanceof Constructor && flag == true) { in setAccessible0() 141 Constructor<?> c = (Constructor<?>)obj; in setAccessible0()
|
/libcore/benchmarks/src/benchmarks/ |
D | XmlSerializeBenchmark.java | 22 import java.lang.reflect.Constructor; 37 private Constructor<? extends XmlSerializer> kxmlConstructor; 38 private Constructor<? extends XmlSerializer> fastConstructor; 40 private void serializeRandomXml(Constructor<? extends XmlSerializer> ctor, long seed) in serializeRandomXml() 84 kxmlConstructor = (Constructor) Class.forName("com.android.org.kxml2.io.KXmlSerializer") in setUp() 86 fastConstructor = (Constructor) Class.forName("com.android.internal.util.FastXmlSerializer") in setUp() 95 private void internalTimeSerializer(Constructor<? extends XmlSerializer> ctor, int reps) in internalTimeSerializer()
|
D | XmlParseBenchmark.java | 25 import java.lang.reflect.Constructor; 52 private Constructor<? extends XmlPullParser> kxmlConstructor; 53 private Constructor<? extends XmlPullParser> expatConstructor; 68 kxmlConstructor = (Constructor) Class.forName("com.android.org.kxml2.io.KXmlParser") in setUp() 70 expatConstructor = (Constructor) Class.forName("org.apache.harmony.xml.ExpatPullParser") in setUp() 134 private int testXmlPull(Constructor<? extends XmlPullParser> constructor, int reps) in testXmlPull()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | ExecutableParameterTest.java | 22 import java.lang.reflect.Constructor; 156 Constructor constructorWithoutAnnotatedParameters = in testConstructorGetParameterAnnotations() 163 Constructor constructorWithAnnotatedParameters = in testConstructorGetParameterAnnotations() 185 static Constructor<?> getConstructorWithoutAnnotations() throws Exception { in getConstructorWithoutAnnotations() 189 static Constructor<?> getConstructorMultipleAnnotationOddity() throws Exception { in getConstructorMultipleAnnotationOddity() 193 static Constructor<?> getConstructorMultipleAnnotationExplicitSingle() in getConstructorMultipleAnnotationExplicitSingle() 198 static Constructor<?> getConstructorMultipleAnnotation() throws Exception { in getConstructorMultipleAnnotation() 202 static Constructor<?> getConstructorSingleAnnotation() throws Exception { in getConstructorSingleAnnotation() 235 Constructor<InnerClass> constructor = in testImplicitConstructorParameters_innerClass() 257 Constructor<? extends AnonymousBaseClass> constructor = in testImplicitConstructorParameters_anonymousClass() [all …]
|
D | ConstructorTest.java | 22 import java.lang.reflect.Constructor; 42 Constructor<Type> constructor = Type.class.getConstructor(); in testConstructorAnnotations() 87 Constructor constructor = getConstructor(c, constructorArgCount); in checkDeclaredAnnotation() 121 Constructor<?> constructor = getConstructor(c, constructorArgCount); in assertGetDeclaredAnnotationsByType() 147 Constructor<?> constructor = getConstructor(c, constructorArgCount); in assertGetAnnotationsByType() 152 private static Constructor<?> getConstructor(Class<?> c, int constructorArgCount) in getConstructor()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/ |
D | Constructor.java | 32 public final class Constructor<T> extends java.lang.reflect.Executable { class 34 private Constructor() { in Constructor() method in Constructor 38 private Constructor( in Constructor() method in Constructor 44 public java.lang.reflect.Constructor<T> serializationCopy( in serializationCopy() 65 public java.lang.reflect.TypeVariable<java.lang.reflect.Constructor<T>>[] getTypeParameters() { in getTypeParameters()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | AbstractTest.java | 66 import java.lang.reflect.Constructor; 99 Constructor<?>[] cons = cls.getDeclaredConstructors(); in assertImmutable() 100 for (Constructor<?> con : cons) { in assertImmutable()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandleImpl.java | 24 import java.lang.reflect.Constructor; 90 if (member instanceof Constructor) { in getReferenceKind() 121 if (member instanceof Constructor) { in getName() 139 if (member instanceof Constructor) { in getMethodType()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/ |
D | Constructor.annotated.java | 32 public final class Constructor<T> extends java.lang.reflect.Executable { class 34 Constructor() { throw new RuntimeException("Stub!"); } in Constructor() method in Constructor 42 public java.lang.reflect.TypeVariable<java.lang.reflect.Constructor<T>>[] getTypeParameters() { thr… in getTypeParameters()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | TestDefaultParserAltConfig.java | 16 import java.lang.reflect.Constructor; 43 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
D | TestDefaultParser.java | 16 import java.lang.reflect.Constructor; 40 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/level1/html/ |
D | TestXercesHTML.java | 16 import java.lang.reflect.Constructor; 30 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/events/ |
D | TestDefaultParserAltConfig.java | 16 import java.lang.reflect.Constructor; 30 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
D | TestDefaultParser.java | 16 import java.lang.reflect.Constructor; 30 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/level3/validation/ |
D | TestDefaultParser.java | 16 import java.lang.reflect.Constructor; 40 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/level3/core/ |
D | TestDefaultParser.java | 16 import java.lang.reflect.Constructor; 40 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
D | TestDefaultParserAltConfig.java | 16 import java.lang.reflect.Constructor; 43 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/html/ |
D | TestXercesHTML.java | 16 import java.lang.reflect.Constructor; 30 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | TestDefaultParser.java | 16 import java.lang.reflect.Constructor; 30 …Constructor testConstructor = testClass.getConstructor(new Class[] { DOMTestDocumentBuilderFactory… in suite()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | XalanDOMTestDocumentBuilderFactory.java | 29 import java.lang.reflect.Constructor; 71 Constructor constructor = xpathClass.getConstructor(new Class[] {Document.class}); in createXPathEvaluator()
|