| /libcore/luni/src/test/java/libcore/java/lang/reflect/ |
| D | ConstructorTest.java | 26 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(new Class[0]); in test_getExceptionTypes() local 27 Class[] exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes() 32 exceptions = constructor.getExceptionTypes(); in test_getExceptionTypes() 39 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterTypes() local 40 assertEquals(0, constructor.getParameterTypes().length); in test_getParameterTypes() 43 constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterTypes() 44 Class[] parameters = constructor.getParameterTypes(); in test_getParameterTypes() 49 parameters = constructor.getParameterTypes(); in test_getParameterTypes() 56 Constructor<?> constructor = ConstructorTestHelper.class.getConstructor(expectedParameters); in test_getParameterCount() local 57 assertEquals(0, constructor.getParameterCount()); in test_getParameterCount() [all …]
|
| D | ParameterTest.java | 109 Constructor<?> constructor = SingleParameter.class.getDeclaredConstructor(String.class); in testSingleParameterConstructor() local 110 checkSingleStringParameter(constructor); in testSingleParameterConstructor() 132 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class); in testSingleParameterConstructor_withMetadata() local 133 checkSingleStringParameter_withMetadata(constructor); in testSingleParameterConstructor_withMetadata() 165 Constructor<?> constructor = GenericParameter.class.getDeclaredConstructor(Function.class); in testGenericParameterConstructor() local 166 checkGenericParameter(constructor); in testGenericParameterConstructor() 191 Constructor<?> constructor = clazz.getDeclaredConstructor(Function.class); in testGenericParameterConstructor_withMetadata() local 192 checkGenericParameter_withMetadata(constructor); in testGenericParameterConstructor_withMetadata() 225 Constructor<?> constructor = in testTwoParameterConstructor() local 227 checkTwoParameters(constructor); in testTwoParameterConstructor() [all …]
|
| 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 | GenericSignatureFormatErrorTest.java | 33 public void constructor() { in constructor() method in GenericSignatureFormatErrorTest
|
| D | ClassLoaderReflectionTest.java | 108 Constructor<?> constructor = fClass.getDeclaredConstructors()[0]; in testConstructorGenericType() local 109 Type[] parameters = constructor.getGenericParameterTypes(); in testConstructorGenericType()
|
| /libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
| D | ConstructorTest.java | 42 Constructor<Type> constructor = Type.class.getConstructor(); in testConstructorAnnotations() local 43 checkAnnotatedElementPresentMethods(constructor, AnnotationA.class, AnnotationC.class); in testConstructorAnnotations() 87 Constructor constructor = getConstructor(c, constructorArgCount); in checkDeclaredAnnotation() local 90 assertIsAnnotationPresent(constructor, annotationType, in checkDeclaredAnnotation() 94 assertGetDeclaredAnnotation(constructor, annotationType, expectedAnnotationString); in checkDeclaredAnnotation() 121 Constructor<?> constructor = getConstructor(c, constructorArgCount); in assertGetDeclaredAnnotationsByType() local 123 constructor, annotationType, expectedAnnotationStrings); in assertGetDeclaredAnnotationsByType() 147 Constructor<?> constructor = getConstructor(c, constructorArgCount); in assertGetAnnotationsByType() local 149 constructor, annotationType, expectedAnnotationStrings); in assertGetAnnotationsByType()
|
| D | ExecutableParameterTest.java | 235 Constructor<InnerClass> constructor = in testImplicitConstructorParameters_innerClass() local 240 Annotation[][] annotations = getParameterAnnotations(constructor, 2); in testImplicitConstructorParameters_innerClass() 257 Constructor<? extends AnonymousBaseClass> constructor = in testImplicitConstructorParameters_anonymousClass() local 261 Annotation[][] annotations = getParameterAnnotations(constructor, 2); in testImplicitConstructorParameters_anonymousClass() 276 Constructor<StaticInnerClass> constructor = in testImplicitConstructorParameters_staticInnerClass() local 278 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_staticInnerClass() 281 Annotation[][] annotations = getParameterAnnotations(constructor, 1); in testImplicitConstructorParameters_staticInnerClass()
|
| D | AnnotatedElementParameterTest.java | 453 Constructor<InnerClass> constructor = in testImplicitConstructorParameters_innerClass() local 456 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_innerClass() 494 Constructor<? extends AnonymousBaseClass> constructor = in testImplicitConstructorParameters_anonymousClass() local 497 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_anonymousClass() 533 Constructor<StaticInnerClass> constructor = in testImplicitConstructorParameters_staticInnerClass() local 535 Parameter[] parameters = constructor.getParameters(); in testImplicitConstructorParameters_staticInnerClass()
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
| D | TypeVariableTest.java | 68 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testSimpleTypeVariableOnConstructor() local 69 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); in testSimpleTypeVariableOnConstructor() 72 assertEquals(constructor, typeVariable.getGenericDeclaration()); in testSimpleTypeVariableOnConstructor() 132 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testMultipleTypeVariablesOnConstructor() local 134 TypeVariable<?>[] typeParameters = constructor.getTypeParameters(); in testMultipleTypeVariablesOnConstructor() 137 assertEquals(constructor, typeParameters[0].getGenericDeclaration()); in testMultipleTypeVariablesOnConstructor() 142 assertEquals(constructor, typeParameters[1].getGenericDeclaration()); in testMultipleTypeVariablesOnConstructor() 147 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/luni/src/test/java/libcore/java/io/ |
| D | ConsoleTest.java | 40 Constructor<Console> constructor = in createConsole() local 42 constructor.setAccessible(true); in createConsole() 43 return constructor.newInstance(inStream, outStream); in createConsole()
|
| /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()
|
| /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/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 | 134 private int testXmlPull(Constructor<? extends XmlPullParser> constructor, int reps) in testXmlPull() argument 139 XmlPullParser xmlPullParser = constructor.newInstance(); in testXmlPull()
|
| /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/luni/src/test/java/libcore/java/lang/invoke/ |
| D | WrongMethodTypeExceptionTest.java | 33 public void constructor() { in constructor() method in WrongMethodTypeExceptionTest
|
| D | LambdaConversionExceptionTest.java | 35 public void constructor() { in constructor() method in LambdaConversionExceptionTest
|
| /libcore/luni/src/test/resources/tests/api/java/io/ |
| D | sameFieldNames.smali | 13 .method public constructor <init>()V
|
| /libcore/luni/src/test/java/libcore/javax/xml/datatype/ |
| D | DatatypeConfigurationExceptionTest.java | 30 public void constructor() { in constructor() method in DatatypeConfigurationExceptionTest
|
| /libcore/luni/src/test/java/libcore/javax/xml/transform/dom/ |
| D | DOMSourceTest.java | 34 public void constructor() { in constructor() method in DOMSourceTest
|
| /libcore/luni/src/test/java/libcore/javax/xml/transform/ |
| D | TransformerFactoryConfigurationErrorTest.java | 31 public void constructor() { in constructor() method in TransformerFactoryConfigurationErrorTest
|
| D | TransformerConfigurationExceptionTest.java | 32 public void constructor() { in constructor() method in TransformerConfigurationExceptionTest
|
| /libcore/benchmarks/src/benchmarks/regression/ |
| D | ReflectionBenchmark.java | 54 Constructor constructor = klass.getConstructor(); in timeClass_newInstance() local 56 constructor.newInstance(); in timeClass_newInstance()
|
| /libcore/luni/src/test/java/libcore/java/lang/ |
| D | BootstrapMethodErrorTest.java | 33 public void constructor() { in constructor() method in BootstrapMethodErrorTest
|