Home
last modified time | relevance | path

Searched refs:getDeclaredMethod (Results 1 – 25 of 39) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DMethodTest.java234 Method m1 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", new Class[0]); in test_getDeclaredMethod()
235 Method m2 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", (Class[]) null); in test_getDeclaredMethod()
302 mth = cl.getDeclaredMethod("prstatic", new Class[0]); in test_getModifiers()
310 mth = cl.getDeclaredMethod("pustatsynch", new Class[0]); in test_getModifiers()
318 mth = cl.getDeclaredMethod("pustatsynchnat", new Class[0]); in test_getModifiers()
328 mth = cl.getDeclaredMethod("puabs", new Class[0]); in test_getModifiers()
360 mth = TestMethod.class.getDeclaredMethod("publicVoidArray", in test_isVarArgs()
403 Method method = TestMethod.class.getDeclaredMethod( in test_getParameterAnnotations()
435 Method method = TestMethod.class.getDeclaredMethod("annotatedMethod"); in test_getDeclaredAnnotations()
452 Method method = TestAnno.class.getDeclaredMethod("value"); in test_getDefaultValue()
[all …]
DInvocationTargetExceptionTest.java134 Method mth = TestMethod.class.getDeclaredMethod( in test_ConstructorLjava_lang_Throwable()
156 Method mth = TestMethod.class.getDeclaredMethod( in test_ConstructorLjava_lang_ThrowableLjava_lang_String()
177 Method mth = TestMethod.class.getDeclaredMethod( in test_getTargetException()
198 Method mth = TestMethod.class.getDeclaredMethod( in test_getCause()
DTypeVariableTest.java48 Method method = clazz.getDeclaredMethod("b"); in testSimpleTypeVariableOnMethod()
96 Method method = clazz.getDeclaredMethod("e"); in testMultipleTypeVariablesOnMethod()
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java70 klass.getDeclaredMethod("m"); in timeClass_getDeclaredMethod()
94 Method m = klass.getDeclaredMethod("m"); in timeMethod_invokeV()
103 Method m = klass.getDeclaredMethod("sm"); in timeMethod_invokeStaticV()
111 Method m = klass.getDeclaredMethod("setField", int.class); in timeMethod_invokeI()
120 Method m = klass.getDeclaredMethod("setField", int.class); in timeMethod_invokePreBoxedI()
130 Method m = klass.getDeclaredMethod("setStaticField", int.class); in timeMethod_invokeStaticI()
138 Method m = klass.getDeclaredMethod("setStaticField", int.class); in timeMethod_invokeStaticPreBoxedI()
DPropertyAccessBenchmark.java33 setX = View.class.getDeclaredMethod("setX", float.class); in setUp()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMethodTest.java60 ImplementsC.class.getDeclaredMethod("a").getDeclaringClass(); in testGetDeclaredMethodReturnsIndirectlyImplementedInterface()
65 ExtendsImplementsC.class.getDeclaredMethod("a").getDeclaringClass(); in testGetDeclaredMethodReturnsIndirectlyImplementedInterface()
106 Method method = Super.class.getDeclaredMethod("a"); in testGetDeclaredMethodReturnsPrivateMethods()
112 Sub.class.getDeclaredMethod("a"); in testGetDeclaredMethodDoesNotReturnSuperclassMethods()
120 InterfaceB.class.getDeclaredMethod("a"); in testGetDeclaredMethodDoesNotReturnImplementedInterfaceMethods()
161 Method method = anonymous.getClass().getDeclaredMethod("a"); in testGetDeclaredMethodReturnsPrivateMethodOfAnonymousClass()
DOldGenericTypesTest.java80 Method method = clazz.getDeclaredMethod("staticMethodGenericType", Object.class); in testStaticMethodGenericType()
93 Method method = clazz.getDeclaredMethod("hidingMethodGenericType", Object.class); in testHidingMethodGenericType()
121 …Method multipleGenericTypesT = clazz.getDeclaredMethod("multipleGenericTypesT", new Class[]{Object… in testMultipleGenericTypes()
128 …Method multipleGenericTypesS = clazz.getDeclaredMethod("multipleGenericTypesS", new Class[]{Object… in testMultipleGenericTypes()
135 …Method multipleGenericTypesTS = clazz.getDeclaredMethod("multipleGenericTypesTS", new Class[]{Obje… in testMultipleGenericTypes()
204 Method declaredMethods = innerClazz.getDeclaredMethod("innerMethod", Object.class); in testInnerClassTest()
216 Method method = clazz.getDeclaredMethod("exceptionTest"); in testException()
227 Method declaredMethods = innerClazz.getDeclaredMethod("innerExceptionTest"); in testException()
DOldGenericReflectionCornerCases.java42 Method method = clazz.getDeclaredMethod("wildcardEquality", Pair.class); in testWildcardEquality()
85 Method method = clazz.getDeclaredMethod("wildcardUnEquality", Pair.class); in testWildcardUnEquality()
130 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardUnEquality", Pair.class); in testMultipleBoundedWildcardUnEquality()
182 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardEquality", Pair.class); in testMultipleBoundedWildcard()
DMissingClassesTest.java56 loadableClass.getDeclaredMethod("method", Unloadable.class); in testGetMethodFails()
DReflectionTest.java140 Method methodOne = C.class.getDeclaredMethod("methodOne", A.class, C.class); in testMethodToString()
146 Method methodTwo = C.class.getDeclaredMethod("methodTwo", List.class); in testMethodToString()
154 Method methodThree = C.class.getDeclaredMethod("methodThree", A.class, Set.class); in testMethodToString()
162 Method methodFour = C.class.getDeclaredMethod("methodFour", Set.class); in testMethodToString()
170 TypeVariable t = C.class.getDeclaredMethod("methodFour", Set.class).getTypeParameters()[0]; in testTypeVariableWithMultipleBounds()
DOldAndroidClassTest.java55 Method method = helloClass.getDeclaredMethod("method", (Class[]) null); in testGetDeclaredMethod()
61 Method method = helloClass.getDeclaredMethod("methodWithArgs", Object.class); in testGetDeclaredMethodWithArgs()
71 Method method = helloClass.getDeclaredMethod("privateMethod", (Class[]) null); in testGetDeclaredMethodPrivate()
DClassLoaderReflectionTest.java115 Method method = fClass.getDeclaredMethod("method", bClass, List.class); in testMethodGenericReturnType()
120 Method method = fClass.getDeclaredMethod("method", bClass, List.class); in testMethodGenericParameterTypes()
DMethodOverridesTest.java67 assertEquals(Sub.class, Sub.class.getDeclaredMethod("unchanged").getDeclaringClass()); in testGetDeclaringClassReturnsOverridingClass()
/libcore/luni/src/test/java/libcore/java/lang/
DCharacterTest.java197 Method m = Character.class.getDeclaredMethod("isDigit" + "Impl", int.class); in test_isDigit_against_icu4c()
206 Method m = Character.class.getDeclaredMethod("isIdentifierIgnorable" + "Impl", int.class); in test_isIdentifierIgnorable_against_icu4c()
215 Method m = Character.class.getDeclaredMethod("isLetter" + "Impl", int.class); in test_isLetter_against_icu4c()
224 Method m = Character.class.getDeclaredMethod("isLetterOrDigit" + "Impl", int.class); in test_isLetterOrDigit_against_icu4c()
233 Method m = Character.class.getDeclaredMethod("isLowerCase" + "Impl", int.class); in test_isLowerCase_against_icu4c()
242 Method m = Character.class.getDeclaredMethod("isSpaceChar" + "Impl", int.class); in test_isSpaceChar_against_icu4c()
258 Method m = Character.class.getDeclaredMethod("isUpperCase" + "Impl", int.class); in test_isUpperCase_against_icu4c()
267 Method m = Character.class.getDeclaredMethod("isWhitespace" + "Impl", int.class); in test_isWhitespace_against_icu4c()
DOldSystemTest.java328 final Method m = ClassLoader.class.getDeclaredMethod("findLibrary", String.class); in test_load()
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DAnnotationTest.java45 .getDeclaredMethod("a", new Class[] {}); in test_equals()
47 .getDeclaredMethod("b", new Class[] {}); in test_equals()
66 mlist.add(AnnotatedClass.class.getDeclaredMethod(name, new Class[] {})); in test_equals()
107 Method m1 = AnnotatedClass.class.getDeclaredMethod("e34c", new Class[] {}); in test_hashCode()
123 Method m2 = AnnotatedClass3.class.getDeclaredMethod("a", new Class[] {}); in test_hashCode()
133 …Annotation[][] annotations = c.getDeclaredMethod("test35304_method", parameterTypes).getParameterA… in test35304()
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
DNTLMAuthenticationProxy.java129 supportsTA = cl.getDeclaredMethod(supportsTAStr); in tryLoadNTLMAuthentication()
130 isTrustedSite = cl.getDeclaredMethod(isTrustedSiteStr, java.net.URL.class); in tryLoadNTLMAuthentication()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java224 Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod( in testBug28106822()
231 Method newInstance = ObjectStreamClass.class.getDeclaredMethod("newInstance", in testBug28106822()
262 ObjectStreamClass.class.getDeclaredMethod("hasStaticInitializer", Class.class, in testHasClinit()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/
DDeserializeMethodTest.java41 Method m = clazz.getDeclaredMethod("$deserializeLambda$", SerializedLambda.class); in assertDeserializeMethod()
/libcore/support/src/test/java/libcore/java/security/
DCpuFeatures.java49 Method EVP_has_aes_hardware = nativeCrypto.getDeclaredMethod("EVP_has_aes_hardware"); in isAESHardwareAccelerated()
/libcore/ojluni/src/main/java/java/lang/
DEnum.java265 Method method = enumType.getDeclaredMethod("values", EmptyArray.CLASS);
DThread.java1674 cl.getDeclaredMethod("getContextClassLoader", new Class[0]); in auditSubclass()
1680 cl.getDeclaredMethod("setContextClassLoader", params); in auditSubclass()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotatedElements.java124 valuesMethod = annotation.getClass().getDeclaredMethod("value"); in insertAnnotationValues()
/libcore/ojluni/src/main/java/sun/nio/ch/
DReflect.java86 Method m = cl.getDeclaredMethod(methodName, paramTypes); in lookupMethod()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java294 Method m = TestClass.class.getDeclaredMethod("pubMethod", new Class[0]); in test_getDeclaredMethodLjava_lang_String$Ljava_lang_Class()
297 m = TestClass.class.getDeclaredMethod("privMethod", new Class[0]); in test_getDeclaredMethodLjava_lang_String$Ljava_lang_Class()

12