Home
last modified time | relevance | path

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

/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java71 klass.getDeclaredMethod("m"); in timeClass_getDeclaredMethod()
95 Method m = klass.getDeclaredMethod("m"); in timeMethod_invokeV()
104 Method m = klass.getDeclaredMethod("sm"); in timeMethod_invokeStaticV()
112 Method m = klass.getDeclaredMethod("setField", int.class); in timeMethod_invokeI()
121 Method m = klass.getDeclaredMethod("setField", int.class); in timeMethod_invokePreBoxedI()
131 Method m = klass.getDeclaredMethod("setStaticField", int.class); in timeMethod_invokeStaticI()
139 Method m = klass.getDeclaredMethod("setStaticField", int.class); in timeMethod_invokeStaticPreBoxedI()
DPropertyAccessBenchmark.java32 setX = View.class.getDeclaredMethod("setX", float.class); in setUp()
/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/luni/src/test/java/libcore/java/lang/reflect/
DMethodTest.java59 ImplementsC.class.getDeclaredMethod("a").getDeclaringClass(); in testGetDeclaredMethodReturnsIndirectlyImplementedInterface()
64 ExtendsImplementsC.class.getDeclaredMethod("a").getDeclaringClass(); in testGetDeclaredMethodReturnsIndirectlyImplementedInterface()
105 Method method = Super.class.getDeclaredMethod("a"); in testGetDeclaredMethodReturnsPrivateMethods()
111 Sub.class.getDeclaredMethod("a"); in testGetDeclaredMethodDoesNotReturnSuperclassMethods()
119 InterfaceB.class.getDeclaredMethod("a"); in testGetDeclaredMethodDoesNotReturnImplementedInterfaceMethods()
160 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()
DAnnotationsTest.java170 assertEquals(Foo.class.getDeclaredMethod("foo", String.class), in testClassEnclosedByMethod()
/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()
DOldClassTest.java687 TestClass.class.getDeclaredMethod(null, new Class[0]); in test_getDeclaredMethodLjava_lang_String$Ljava_lang_Class()
694 TestClass.class.getDeclaredMethod("NonExistentMethod", new Class[0]); in test_getDeclaredMethodLjava_lang_String$Ljava_lang_Class()
/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/libart/src/main/java/java/lang/
DEnum.java41 Method method = enumType.getDeclaredMethod("values", EmptyArray.CLASS);
DClass.java624 public Method getDeclaredMethod(String name, Class<?>... parameterTypes) in getDeclaredMethod() method in Class
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java291 Method m = TestClass.class.getDeclaredMethod("pubMethod", new Class[0]); in test_getDeclaredMethodLjava_lang_String$Ljava_lang_Class()
294 m = TestClass.class.getDeclaredMethod("privMethod", new Class[0]); in test_getDeclaredMethodLjava_lang_String$Ljava_lang_Class()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/provider/crypto/
DSHA1PRNG_SecureRandomTest.java412 Method nextBytesMethod = srClass.getDeclaredMethod("engineNextBytes", byte[].class); in testSeedIsFullLength()
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java1128 method = search.getDeclaredMethod(methodName, (Class[]) null); in findMethod()
1154 Method method = cl.getDeclaredMethod(methodName, param); in findPrivateMethod()
/libcore/luni/src/test/java/libcore/javax/crypto/
DECDHKeyAgreementTest.java355 method = getClass().getDeclaredMethod(invokedMethodName, Provider.class); in invokeCallingMethodForEachKeyAgreementProvider()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationAccess.java606 : declaringClass.getDeclaredMethod(name, parametersArray); in indexToMethod()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollectionsTest.java1988 Method m = Collections.class.getDeclaredMethod("checkType", Object.class, Class.class); in test_checkType_Ljava_lang_Object_Ljava_lang_Class()