| /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 | 124 Constructor<?> constructor = SingleParameter.class.getDeclaredConstructor(String.class); in testSingleParameterConstructor() local 125 checkSingleStringParameter(constructor); in testSingleParameterConstructor() 149 Constructor<?> constructor = clazz.getDeclaredConstructor(String.class); in testSingleParameterConstructor_withMetadata() local 150 checkSingleStringParameter_withMetadata(constructor); in testSingleParameterConstructor_withMetadata() 184 Constructor<?> constructor = GenericParameter.class.getDeclaredConstructor(Function.class); in testGenericParameterConstructor() local 185 checkGenericParameter(constructor); in testGenericParameterConstructor() 212 Constructor<?> constructor = clazz.getDeclaredConstructor(Function.class); in testGenericParameterConstructor_withMetadata() local 213 checkGenericParameter_withMetadata(constructor); in testGenericParameterConstructor_withMetadata() 248 Constructor<?> constructor = in testTwoParameterConstructor() local 250 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/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/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/luni/src/test/java/libcore/java/io/ |
| D | ConsoleTest.java | 41 Constructor<Console> constructor = in createConsole() local 43 constructor.setAccessible(true); in createConsole() 44 return constructor.newInstance(inStream, outStream); in createConsole()
|
| /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 | 462 Constructor<T> constructor = null; in engineGetKeySpec() local 465 constructor = keySpec.getConstructor(TestPrivateKey.class); in engineGetKeySpec() 473 constructor = keySpec.getConstructor(TestPublicKey.class); in engineGetKeySpec() 481 if (constructor == null) { in engineGetKeySpec() 486 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
|
| /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/transform/dom/ |
| D | DOMSourceTest.java | 34 public void constructor() { in constructor() method in DOMSourceTest
|
| /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/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/ojluni/src/main/java/java/lang/invoke/ |
| D | MethodHandles.java | 1058 Constructor constructor = refc.getDeclaredConstructor(type.ptypes()); in findConstructor() local 1059 if (constructor == null) { in findConstructor() 1061 "No constructor for " + constructor.getDeclaringClass() + " matching " + type); in findConstructor() 1063 checkAccess(refc, constructor.getDeclaringClass(), constructor.getModifiers(), in findConstructor() 1064 constructor.getName()); in findConstructor() 1066 return createMethodHandleForConstructor(constructor); in findConstructor() 1168 private static Method findStringFactoryMethod(Constructor<String> constructor) { in findStringFactoryMethod() argument 1169 return Objects.requireNonNull(STRING_TO_STRING_FACTORY.get(constructor), in findStringFactoryMethod() 1170 "No mapping for " + constructor); in findStringFactoryMethod() 1174 private MethodHandle createMethodHandleForConstructor(Constructor constructor) { in createMethodHandleForConstructor() argument [all …]
|
| /libcore/luni/src/test/java/libcore/javax/xml/datatype/ |
| D | DatatypeConfigurationExceptionTest.java | 36 public void constructor() { in constructor() method in DatatypeConfigurationExceptionTest
|
| /libcore/ojluni/src/test/java/nio/Buffer/ |
| D | EqualsCompareTest.java | 529 BiFunction<BufferType<Buffer, Buffer>, Integer, Buffer> constructor = (at, s) -> { in testBuffers() local 549 testBufferType(bufferType, constructor, leConstructor); in testBuffers() 606 BiFunction<BufferType.Chars, Integer, CharBuffer> constructor = (at, s) -> { in testCharBuffers() local 614 BiFunction<BufferType.Chars, Integer, CharBuffer> constructorX = constructor. in testCharBuffers() 617 testBufferType(charBufferType, constructor, constructorX); in testCharBuffers()
|