/libcore/benchmarks/src/benchmarks/regression/ |
H A D | ReflectionBenchmark.java | 71 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 D | PropertyAccessBenchmark.java | 32 setX = View.class.getDeclaredMethod("setX", float.class);
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | MissingClassesTest.java | 56 loadableClass.getDeclaredMethod("method", Unloadable.class);
|
H A D | OldGenericTypesTest.java | 80 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 D | MethodTest.java | 95 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 D | OldGenericReflectionCornerCases.java | 42 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 D | ReflectionTest.java | 117 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 D | OldAndroidClassTest.java | 55 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 D | ClassLoaderReflectionTest.java | 115 Method method = fClass.getDeclaredMethod("method", bClass, List.class); 120 Method method = fClass.getDeclaredMethod("method", bClass, List.class);
|
H A D | MethodOverridesTest.java | 67 assertEquals(Sub.class, Sub.class.getDeclaredMethod("unchanged").getDeclaringClass());
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | CharacterTest.java | 197 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 D | OldClassTest.java | 687 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 D | MethodTest.java | 230 * 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 D | InvocationTargetExceptionTest.java | 134 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 D | TypeVariableTest.java | 48 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 D | AnnotationTest.java | 45 .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 D | Enum.java | 41 Method method = enumType.getDeclaredMethod("values", EmptyArray.CLASS);
|
H A D | Class.java | 621 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 D | SHA1PRNG_SecureRandomTest.java | 412 Method nextBytesMethod = srClass.getDeclaredMethod("engineNextBytes", byte[].class);
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
H A D | ECDHKeyAgreementTest.java | 355 method = getClass().getDeclaredMethod(invokedMethodName, Provider.class);
|
/libcore/luni/src/main/java/java/io/ |
H A D | ObjectStreamClass.java | 1109 method = search.getDeclaredMethod(methodName, (Class[]) null); 1135 Method method = cl.getDeclaredMethod(methodName, param);
|
/libcore/libdvm/src/main/java/java/lang/ |
H A D | Class.java | 638 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 D | AnnotationAccess.java | 635 : declaringClass.getDeclaredMethod(name, parametersArray);
|