/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ConstructorTest.java | 24 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]); 25 Class[] exceptions = constructor.getExceptionTypes(); 30 exceptions = constructor.getExceptionTypes(); 37 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); 38 Class[] parameters = constructor.getParameterTypes(); 43 parameters = constructor.getParameterTypes(); 49 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor((Class[]) null); 50 assertEquals(0, constructor.getParameterTypes().length); 70 Constructor<?> constructor = ConstructorTestHelper.class.getDeclaredConstructor( 72 assertEquals(2, constructor [all...] |
H A D | GenericExceptionsTest.java | 43 Constructor constructor = Thrower.class.getConstructor(); 45 Arrays.asList(constructor.getGenericExceptionTypes())); 49 Constructor constructor = Thrower.class.getConstructor(List.class); 51 Arrays.asList(constructor.getGenericExceptionTypes())); 55 Constructor constructor = ThrowerT.class.getConstructor(); 56 TypeVariable typeVariable = getOnlyValue(constructor.getGenericExceptionTypes(),
|
H A D | AnnotationsTest.java | 43 Constructor<Type> constructor = Type.class.getConstructor(); 44 assertAnnotatedElement(constructor, AnnotationA.class, AnnotationC.class);
|
H A D | ClassLoaderReflectionTest.java | 108 Constructor<?> constructor = fClass.getDeclaredConstructors()[0]; 109 Type[] parameters = constructor.getGenericParameterTypes();
|
H A D | OldAndroidClassTest.java | 90 Constructor constructor = helloClass.getConstructor((Class[]) null); 91 assertNotNull(constructor);
|
H A D | OldGenericTypesTest.java | 68 Constructor<?> constructor = clazz.getDeclaredConstructor(Object.class); 69 Type[] genericParameterTypes = constructor.getGenericParameterTypes(); 192 //constructor
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | XalanDOMTestDocumentBuilderFactory.java | 46 * factory will be mutated in constructor and should be released 71 Constructor constructor = xpathClass.getConstructor(new Class[] {Document.class}); 72 return constructor.newInstance(new Object[] {doc});
|
H A D | JUnitTestCaseAdapter.java | 85 Constructor<?> constructor = clazz.getConstructor(new Class<?>[] { 89 test = (DOMTestCase)constructor.newInstance(new Object[] {
|
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
H A D | TypeVariableTest.java | 64 Constructor<?> constructor = clazz.getDeclaredConstructor(); 65 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); 68 assertEquals(constructor, typeVariable.getGenericDeclaration()); 115 Constructor<?> constructor = clazz.getDeclaredConstructor(); 117 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); 120 assertEquals(constructor, typeParameters[0].getGenericDeclaration()); 123 assertEquals(constructor, typeParameters[1].getGenericDeclaration()); 126 assertEquals(constructor, typeParameters[2].getGenericDeclaration());
|
H A D | ConstructorTest.java | 94 // This class has no public constructor. 97 // Used to test synthetic constructor. 145 assertTrue("Vararg constructor not recognized", varArgCtor.isVarArgs()); 149 assertFalse("Non vararg constructor recognized as vararg constructor", 154 Constructor<ConstructorTestHelper> constructor = ConstructorTestHelper.class 157 "The constructor's hashCode is not equal to the hashCode of the name of the declaring class", 158 ConstructorTestHelper.class.getName().hashCode(), constructor 327 Constructor<GenericConstructorTestHelper> constructor = GenericConstructorTestHelper.class 329 types = constructor [all...] |
/libcore/luni/src/main/java/javax/security/cert/ |
H A D | X509Certificate.java | 48 private static Constructor constructor; field in class:X509Certificate 53 constructor = cl.getConstructor(new Class[] {InputStream.class}); 79 if (constructor != null) { 82 constructor.newInstance(new Object[] {inStream});
|
/libcore/luni/src/main/native/ |
H A D | java_io_ObjectStreamClass.cpp | 40 static jobject ObjectStreamClass_getConstructorSignature(JNIEnv* env, jclass, jobject constructor) { argument 41 return getSignature(env, JniConstants::constructorClass, constructor);
|
/libcore/benchmarks/src/benchmarks/ |
H A D | XmlParseBenchmark.java | 133 private int testXmlPull(Constructor<? extends XmlPullParser> constructor, int reps) argument 138 XmlPullParser xmlPullParser = constructor.newInstance();
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | ReflectionBenchmark.java | 55 Constructor constructor = klass.getConstructor(); 57 constructor.newInstance(); 164 // A non-empty constructor so we don't get optimized away.
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyFactoryTest.java | 458 Constructor<T> constructor = null; 461 constructor = keySpec.getConstructor(TestPrivateKey.class); 469 constructor = keySpec.getConstructor(TestPublicKey.class); 477 if (constructor == null) { 482 return constructor.newInstance(key);
|
/libcore/luni/src/main/java/java/io/ |
H A D | ObjectStreamClass.java | 177 // MethodID for deserialization constructor 178 private transient long constructor = CONSTRUCTOR_IS_NOT_RESOLVED; field in class:ObjectStreamClass 181 constructor = newConstructor; 185 return constructor; 525 Constructor<?> constructor = constructors[i]; 526 int modifiers = constructor.getModifiers() 534 * constructor.getName() returns the constructor name as 540 getConstructorSignature(constructor)).replace('/', 600 * method/constructor signatur [all...] |
/libcore/support/src/test/java/tests/resources/ |
H A D | junit4-4.3.1.jar | META-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ... |
/libcore/benchmarks/libs/ |
H A D | caliper.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ... |