Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 21 of 21) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DConstructorTest.java24 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]); in test_getExceptionTypes() local
25 Class[] exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes()
30 exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes()
37 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterTypes() local
38 Class[] parameters = constructor.getParameterTypes(); in test_getParameterTypes()
43 parameters = constructor.getParameterTypes(); in test_getParameterTypes()
49 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor((Class[]) null); in testGetConstructorWithNullArgumentsArray() local
50 assertEquals(0, constructor.getParameterTypes().length); in testGetConstructorWithNullArgumentsArray()
70 Constructor<?> constructor = ConstructorTestHelper.class.getDeclaredConstructor( in testGetDeclaredConstructorReturnsPrivateConstructor() local
72 assertEquals(2, constructor.getParameterTypes().length); in testGetDeclaredConstructorReturnsPrivateConstructor()
DGenericExceptionsTest.java43 Constructor constructor = Thrower.class.getConstructor(); in testGenericExceptionsOfConstructorsWithTypeParameters() local
45 Arrays.asList(constructor.getGenericExceptionTypes())); in testGenericExceptionsOfConstructorsWithTypeParameters()
49 Constructor constructor = Thrower.class.getConstructor(List.class); in testGenericExceptionsOfConstructorsWithGenericParameters() local
51 Arrays.asList(constructor.getGenericExceptionTypes())); in testGenericExceptionsOfConstructorsWithGenericParameters()
55 Constructor constructor = ThrowerT.class.getConstructor(); in testConstructorThrowingTypeVariable() local
56 TypeVariable typeVariable = getOnlyValue(constructor.getGenericExceptionTypes(), in testConstructorThrowingTypeVariable()
DClassLoaderReflectionTest.java108 Constructor<?> constructor = fClass.getDeclaredConstructors()[0]; in testConstructorGenericType() local
109 Type[] parameters = constructor.getGenericParameterTypes(); in testConstructorGenericType()
DOldAndroidClassTest.java90 Constructor constructor = helloClass.getConstructor((Class[]) null); in testGetConstructor() local
91 assertNotNull(constructor); in testGetConstructor()
DOldGenericTypesTest.java68 Constructor<?> constructor = clazz.getDeclaredConstructor(Object.class); in testConstructorGenericType() local
69 Type[] genericParameterTypes = constructor.getGenericParameterTypes(); in testConstructorGenericType()
DAnnotationsTest.java48 Constructor<Type> constructor = Type.class.getConstructor(); in testConstructorAnnotations() local
49 assertAnnotatedElement(constructor, AnnotationA.class, AnnotationC.class); in testConstructorAnnotations()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DTypeVariableTest.java64 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testSimpleTypeVariableOnConstructor() local
65 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); in testSimpleTypeVariableOnConstructor()
68 assertEquals(constructor, typeVariable.getGenericDeclaration()); in testSimpleTypeVariableOnConstructor()
115 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testMultipleTypeVariablesOnConstructor() local
117 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); in testMultipleTypeVariablesOnConstructor()
120 assertEquals(constructor, typeParameters[0].getGenericDeclaration()); in testMultipleTypeVariablesOnConstructor()
123 assertEquals(constructor, typeParameters[1].getGenericDeclaration()); in testMultipleTypeVariablesOnConstructor()
126 assertEquals(constructor, typeParameters[2].getGenericDeclaration()); in testMultipleTypeVariablesOnConstructor()
DConstructorTest.java153 Constructor<ConstructorTestHelper> constructor = ConstructorTestHelper.class in test_hashCode() local
157 ConstructorTestHelper.class.getName().hashCode(), constructor in test_hashCode()
326 … Constructor<GenericConstructorTestHelper> constructor = GenericConstructorTestHelper.class in test_getGenericParameterTypes() local
328 types = constructor.getGenericParameterTypes(); in test_getGenericParameterTypes()
357 … Constructor<GenericConstructorTestHelper> constructor = GenericConstructorTestHelper.class in test_getGenericExceptionTypes() local
359 types = constructor.getGenericExceptionTypes(); in test_getGenericExceptionTypes()
/libcore/dom/src/test/java/org/w3c/domts/
DXalanDOMTestDocumentBuilderFactory.java71 Constructor constructor = xpathClass.getConstructor(new Class[] {Document.class}); in createXPathEvaluator() local
72 return constructor.newInstance(new Object[] {doc}); in createXPathEvaluator()
DJUnitTestCaseAdapter.java85 Constructor<?> constructor = clazz.getConstructor(new Class<?>[] { in setName() local
89 test = (DOMTestCase)constructor.newInstance(new Object[] { in setName()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DConsoleTest.java49 Constructor<Console> constructor = in setUp() local
51 constructor.setAccessible(true); in setUp()
52 console = constructor.newInstance(in, out); in setUp()
/libcore/luni/src/main/java/javax/security/cert/
DX509Certificate.java48 private static Constructor constructor; field in X509Certificate
53 constructor = cl.getConstructor(new Class[] {InputStream.class});
79 if (constructor != null) { in getInstance()
82 constructor.newInstance(new Object[] {inStream}); in getInstance()
/libcore/luni/src/main/native/
Djava_io_ObjectStreamClass.cpp40 static jobject ObjectStreamClass_getConstructorSignature(JNIEnv* env, jclass, jobject constructor) { in ObjectStreamClass_getConstructorSignature() argument
41 return getSignature(env, JniConstants::constructorClass, constructor); in ObjectStreamClass_getConstructorSignature()
/libcore/benchmarks/src/benchmarks/
DDeepArrayOpsBenchmark.java111 Constructor<V> constructor = type.getDeclaredConstructor(String.class); in new16ElementArray() local
113 array[i] = (T) constructor.newInstance(String.valueOf(i + 1000)); in new16ElementArray()
DXmlParseBenchmark.java133 private int testXmlPull(Constructor<? extends XmlPullParser> constructor, int reps) in testXmlPull() argument
138 XmlPullParser xmlPullParser = constructor.newInstance(); in testXmlPull()
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java178 private transient long constructor = CONSTRUCTOR_IS_NOT_RESOLVED; field in ObjectStreamClass
181 constructor = newConstructor; in setConstructor()
185 return constructor; in getConstructor()
545 Constructor<?> constructor = constructors[i]; in computeSerialVersionUID() local
546 int modifiers = constructor.getModifiers() in computeSerialVersionUID()
560 getConstructorSignature(constructor)).replace('/', in computeSerialVersionUID()
701 Constructor<?> constructor = null; in resolveConstructorClass() local
704 constructor = constructorClass.getDeclaredConstructor(EmptyArray.CLASS); in resolveConstructorClass()
710 if (constructor == null) { in resolveConstructorClass()
715 int constructorModifiers = constructor.getModifiers(); in resolveConstructorClass()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactoryTest.java458 Constructor<T> constructor = null; in engineGetKeySpec() local
461 constructor = keySpec.getConstructor(TestPrivateKey.class); in engineGetKeySpec()
469 constructor = keySpec.getConstructor(TestPublicKey.class); in engineGetKeySpec()
477 if (constructor == null) { in engineGetKeySpec()
482 return constructor.newInstance(key); in engineGetKeySpec()
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java55 Constructor constructor = klass.getConstructor(); in timeClass_newInstance() local
57 constructor.newInstance(); in timeClass_newInstance()
/libcore/luni/src/main/java/java/util/logging/
Dlogging.properties46 # Specify a class names list, these classes' default constructor will be executed
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...