Searched refs:getDeclaredMethod (Results 1 - 23 of 23) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
H A DReflectionBenchmark.java71 klass.getDeclaredMethod("m");
95 Method m = klass.getDeclaredMethod("m");
104 Method m = klass.getDeclaredMethod("sm");
112 Method m = klass.getDeclaredMethod("setField", int.class);
121 Method m = klass.getDeclaredMethod("setField", int.class);
131 Method m = klass.getDeclaredMethod("setStaticField", int.class);
139 Method m = klass.getDeclaredMethod("setStaticField", int.class);
H A DPropertyAccessBenchmark.java32 setX = View.class.getDeclaredMethod("setX", float.class);
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DMissingClassesTest.java56 loadableClass.getDeclaredMethod("method", Unloadable.class);
H A DOldGenericTypesTest.java80 Method method = clazz.getDeclaredMethod("staticMethodGenericType", Object.class);
93 Method method = clazz.getDeclaredMethod("hidingMethodGenericType", Object.class);
121 Method multipleGenericTypesT = clazz.getDeclaredMethod("multipleGenericTypesT", new Class[]{Object.class});
128 Method multipleGenericTypesS = clazz.getDeclaredMethod("multipleGenericTypesS", new Class[]{Object.class});
135 Method multipleGenericTypesTS = clazz.getDeclaredMethod("multipleGenericTypesTS", new Class[]{Object.class, Object.class});
204 Method declaredMethods = innerClazz.getDeclaredMethod("innerMethod", Object.class);
216 Method method = clazz.getDeclaredMethod("exceptionTest");
227 Method declaredMethods = innerClazz.getDeclaredMethod("innerExceptionTest");
H A DMethodTest.java95 ImplementsC.class.getDeclaredMethod("a").getDeclaringClass();
100 ExtendsImplementsC.class.getDeclaredMethod("a").getDeclaringClass();
141 Method method = Super.class.getDeclaredMethod("a");
147 Sub.class.getDeclaredMethod("a");
155 InterfaceB.class.getDeclaredMethod("a");
196 Method method = anonymous.getClass().getDeclaredMethod("a");
H A DOldGenericReflectionCornerCases.java42 Method method = clazz.getDeclaredMethod("wildcardEquality", Pair.class);
85 Method method = clazz.getDeclaredMethod("wildcardUnEquality", Pair.class);
130 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardUnEquality", Pair.class);
182 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardEquality", Pair.class);
H A DReflectionTest.java117 Method methodOne = C.class.getDeclaredMethod("methodOne", A.class, C.class);
123 Method methodTwo = C.class.getDeclaredMethod("methodTwo", List.class);
131 Method methodThree = C.class.getDeclaredMethod("methodThree", A.class, Set.class);
139 Method methodFour = C.class.getDeclaredMethod("methodFour", Set.class);
147 TypeVariable t = C.class.getDeclaredMethod("methodFour", Set.class).getTypeParameters()[0];
H A DOldAndroidClassTest.java55 Method method = helloClass.getDeclaredMethod("method", (Class[]) null);
61 Method method = helloClass.getDeclaredMethod("methodWithArgs", Object.class);
71 Method method = helloClass.getDeclaredMethod("privateMethod", (Class[]) null);
H A DClassLoaderReflectionTest.java115 Method method = fClass.getDeclaredMethod("method", bClass, List.class);
120 Method method = fClass.getDeclaredMethod("method", bClass, List.class);
H A DMethodOverridesTest.java67 assertEquals(Sub.class, Sub.class.getDeclaredMethod("unchanged").getDeclaringClass());
/libcore/luni/src/test/java/libcore/java/lang/
H A DCharacterTest.java197 Method m = Character.class.getDeclaredMethod("isDigit" + "Impl", int.class);
206 Method m = Character.class.getDeclaredMethod("isIdentifierIgnorable" + "Impl", int.class);
215 Method m = Character.class.getDeclaredMethod("isLetter" + "Impl", int.class);
224 Method m = Character.class.getDeclaredMethod("isLetterOrDigit" + "Impl", int.class);
233 Method m = Character.class.getDeclaredMethod("isLowerCase" + "Impl", int.class);
242 Method m = Character.class.getDeclaredMethod("isSpaceChar" + "Impl", int.class);
251 Method m = Character.class.getDeclaredMethod("isUpperCase" + "Impl", int.class);
260 Method m = Character.class.getDeclaredMethod("isWhitespace" + "Impl", int.class);
H A DOldClassTest.java687 TestClass.class.getDeclaredMethod(null, new Class[0]);
694 TestClass.class.getDeclaredMethod("NonExistentMethod", new Class[0]);
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DMethodTest.java230 * java.lang.Class#getDeclaredMethod(java.lang.String, java.lang.Class[])
233 // Check that getDeclaredMethod treats null parameterTypes the same as an empty array.
234 Method m1 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", new Class[0]);
235 Method m2 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", (Class[]) null);
302 mth = cl.getDeclaredMethod("prstatic", new Class[0]);
310 mth = cl.getDeclaredMethod("pustatsynch", new Class[0]);
318 mth = cl.getDeclaredMethod("pustatsynchnat", new Class[0]);
328 mth = cl.getDeclaredMethod("puabs", new Class[0]);
360 mth = TestMethod.class.getDeclaredMethod("publicVoidArray",
403 Method method = TestMethod.class.getDeclaredMethod(
[all...]
H A DInvocationTargetExceptionTest.java134 Method mth = TestMethod.class.getDeclaredMethod(
156 Method mth = TestMethod.class.getDeclaredMethod(
177 Method mth = TestMethod.class.getDeclaredMethod(
198 Method mth = TestMethod.class.getDeclaredMethod(
H A DTypeVariableTest.java48 Method method = clazz.getDeclaredMethod("b");
96 Method method = clazz.getDeclaredMethod("e");
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DAnnotationTest.java45 .getDeclaredMethod("a", new Class[] {});
47 .getDeclaredMethod("b", new Class[] {});
66 mlist.add(AnnotatedClass.class.getDeclaredMethod(name, new Class[] {}));
107 Method m1 = AnnotatedClass.class.getDeclaredMethod("e34c", new Class[] {});
123 Method m2 = AnnotatedClass3.class.getDeclaredMethod("a", new Class[] {});
133 Annotation[][] annotations = c.getDeclaredMethod("test35304_method", parameterTypes).getParameterAnnotations();
/libcore/libart/src/main/java/java/lang/
H A DEnum.java41 Method method = enumType.getDeclaredMethod("values", EmptyArray.CLASS);
H A DClass.java621 public Method getDeclaredMethod(String name, Class<?>... parameterTypes) method in class:Class
637 * @see #getDeclaredMethod(String, Class[])
/libcore/luni/src/test/java/org/apache/harmony/security/tests/provider/crypto/
H A DSHA1PRNG_SecureRandomTest.java412 Method nextBytesMethod = srClass.getDeclaredMethod("engineNextBytes", byte[].class);
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DECDHKeyAgreementTest.java355 method = getClass().getDeclaredMethod(invokedMethodName, Provider.class);
/libcore/luni/src/main/java/java/io/
H A DObjectStreamClass.java1109 method = search.getDeclaredMethod(methodName, (Class[]) null);
1135 Method method = cl.getDeclaredMethod(methodName, param);
/libcore/libdvm/src/main/java/java/lang/
H A DClass.java638 public Method getDeclaredMethod(String name, Class<?>... parameterTypes) method in class:Class
851 * <p>Use {@link #getDeclaredMethod} if you don't want to search superclasses.
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationAccess.java635 : declaringClass.getDeclaredMethod(name, parametersArray);

Completed in 1139 milliseconds