/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ConstructorTest.java | 24 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()
|
D | GenericExceptionsTest.java | 43 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()
|
D | ClassLoaderReflectionTest.java | 108 Constructor<?> constructor = fClass.getDeclaredConstructors()[0]; in testConstructorGenericType() local 109 Type[] parameters = constructor.getGenericParameterTypes(); in testConstructorGenericType()
|
D | OldAndroidClassTest.java | 90 Constructor constructor = helloClass.getConstructor((Class[]) null); in testGetConstructor() local 91 assertNotNull(constructor); in testGetConstructor()
|
D | OldGenericTypesTest.java | 68 Constructor<?> constructor = clazz.getDeclaredConstructor(Object.class); in testConstructorGenericType() local 69 Type[] genericParameterTypes = constructor.getGenericParameterTypes(); in testConstructorGenericType()
|
D | AnnotationsTest.java | 48 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/ |
D | TypeVariableTest.java | 64 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()
|
D | ConstructorTest.java | 153 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/ |
D | XalanDOMTestDocumentBuilderFactory.java | 71 Constructor constructor = xpathClass.getConstructor(new Class[] {Document.class}); in createXPathEvaluator() local 72 return constructor.newInstance(new Object[] {doc}); in createXPathEvaluator()
|
D | JUnitTestCaseAdapter.java | 85 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/ |
D | ConsoleTest.java | 49 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/ |
D | X509Certificate.java | 48 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/ |
D | java_io_ObjectStreamClass.cpp | 40 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/ |
D | DeepArrayOpsBenchmark.java | 111 Constructor<V> constructor = type.getDeclaredConstructor(String.class); in new16ElementArray() local 113 array[i] = (T) constructor.newInstance(String.valueOf(i + 1000)); in new16ElementArray()
|
D | XmlParseBenchmark.java | 133 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/ |
D | ObjectStreamClass.java | 178 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/ |
D | KeyFactoryTest.java | 458 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/ |
D | ReflectionBenchmark.java | 55 Constructor constructor = klass.getConstructor(); in timeClass_newInstance() local 57 constructor.newInstance(); in timeClass_newInstance()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | logging.properties | 46 # Specify a class names list, these classes' default constructor will be executed
|
/libcore/support/src/test/java/tests/resources/ |
D | junit4-4.3.1.jar | META-INF/
META-INF/MANIFEST.MF
junit/
junit/extensions/
junit/ ... |
/libcore/benchmarks/libs/ |
D | caliper.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |