Home
last modified time | relevance | path

Searched refs:methods (Results 1 – 14 of 14) sorted by relevance

/libcore/libart/src/main/java/java/lang/reflect/
DProxy.java165 List<Method> methods = getMethods(interfaces); in getProxyClass() local
166 Collections.sort(methods, ORDER_BY_SIGNATURE_AND_SUBTYPE); in getProxyClass()
167 validateReturnTypes(methods); in getProxyClass()
168 List<Class<?>[]> exceptions = deduplicateAndGetExceptions(methods); in getProxyClass()
170 ArtMethod[] methodsArray = new ArtMethod[methods.size()]; in getProxyClass()
172 methodsArray[i] = methods.get(i).getArtMethod(); in getProxyClass()
300 private static void getMethodsRecursive(Class<?>[] interfaces, List<Method> methods) { in getMethodsRecursive() argument
302 getMethodsRecursive(i.getInterfaces(), methods); in getMethodsRecursive() local
303 Collections.addAll(methods, i.getDeclaredMethods()); in getMethodsRecursive()
314 private static void validateReturnTypes(List<Method> methods) { in validateReturnTypes() argument
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DMethodLogger.java31 private List<String> methods = new ArrayList<String>(); field in MethodLogger
45 methods.add(method); in add()
53 return methods.size(); in size()
60 return methods.get(index); in getMethod()
91 methods.clear(); in clear()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DMethodTest.java522 Method[] methods = null; in test_getParameterTypes() local
549 methods = cl.getDeclaredMethods(); in test_getParameterTypes()
552 for (i = 0; i < methods.length; i++) in test_getParameterTypes()
553 if (methods[i].getName().equals("parmTest")) { in test_getParameterTypes()
554 mth = methods[i]; in test_getParameterTypes()
555 i = methods.length + 1; in test_getParameterTypes()
557 if (i < methods.length) { in test_getParameterTypes()
707 Method methods[] = cl.getMethods(); in test_invokeLjava_lang_Object$Ljava_lang_Object() local
708 for (int i = 0; i < methods.length; i++) { in test_invokeLjava_lang_Object$Ljava_lang_Object()
709 if (methods[i].getName().startsWith("invokeCastTest1")) { in test_invokeLjava_lang_Object$Ljava_lang_Object()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidClassTest.java141 Method[] methods = ArrayList.class.getMethods(); in testClassGetMethodsNoDupes() local
144 for (Method method : methods) { in testClassGetMethodsNoDupes()
175 Method[] methods = MyInterface.class.getMethods(); in testGetMethodsInterfaces() local
176 assertTrue(hasMethod(methods, ".foo(")); in testGetMethodsInterfaces()
178 methods = MyOtherInterface.class.getMethods(); in testGetMethodsInterfaces()
179 assertTrue(hasMethod(methods, ".foo(")); in testGetMethodsInterfaces()
180 assertTrue(hasMethod(methods, ".bar(")); in testGetMethodsInterfaces()
182 methods = MyClass.class.getMethods(); in testGetMethodsInterfaces()
183 assertTrue(hasMethod(methods, ".foo(")); in testGetMethodsInterfaces()
184 assertTrue(hasMethod(methods, ".bar(")); in testGetMethodsInterfaces()
[all …]
DMethodOverridesTest.java98 Method[] methods = Sub.class.getMethods(); in testSubclassChangesVisibility() local
100 for (Method method : methods) { in testSubclassChangesVisibility()
115 Method[] methods = PublicSub.class.getMethods(); in testMoreVisibleSubclassChangesVisibility() local
117 for (Method method : methods) { in testMoreVisibleSubclassChangesVisibility()
166 private Set<String> signatures(Method[] methods) { in signatures() argument
168 for (Method method : methods) { in signatures()
DReflectionTest.java284 Method[] methods = ExtendsImplementsDefinesMember.class.getMethods(); in testGetMethodsViaExtendsThenImplements() local
285 assertTrue(names(methods).contains("method")); in testGetMethodsViaExtendsThenImplements()
289 Method[] methods = ImplementsExtendsDefinesMember.class.getMethods(); in testGetMethodsViaImplementsThenExtends() local
290 assertTrue(names(methods).contains("method")); in testGetMethodsViaImplementsThenExtends()
294 Method[] methods = ExtendsAndImplementsDefinesMember.class.getMethods(); in testGetMethodsContainsNoDuplicates() local
295 assertEquals(1, count(names(methods), "method")); in testGetMethodsContainsNoDuplicates()
405 private List<String> names(Member[] methods) { in names() argument
407 for (Member method : methods) { in names()
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DAnnotationTypeMismatchExceptionTest.java38 Method[] methods = Class.forName("java.lang.String").getMethods(); in test_constructorLjava_lang_reflect_MethodLjava_lang_String() local
39 Method m = methods[0]; in test_constructorLjava_lang_reflect_MethodLjava_lang_String()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DREADME.txt1 These classes are tied to the VM, e.g. the VM may invoke some of the methods.
/libcore/libart/src/main/java/java/lang/
DClass.java766 ArrayList<Method> methods = new ArrayList<Method>(initial_size); in getDeclaredMethods() local
767 getDeclaredMethodsUnchecked(false, methods); in getDeclaredMethods()
768 Method[] result = methods.toArray(new Method[methods.size()]); in getDeclaredMethods()
786 public void getDeclaredMethodsUnchecked(boolean publicOnly, List<Method> methods) { in getDeclaredMethodsUnchecked() argument
793 methods.add(new Method(m)); in getDeclaredMethodsUnchecked()
804 methods.add(new Method(m)); in getDeclaredMethodsUnchecked()
823 List<Method> methods = new ArrayList<Method>(); in getMethods() local
824 getPublicMethodsInternal(methods); in getMethods()
830 CollectionUtils.removeDuplicates(methods, Method.ORDER_BY_SIGNATURE); in getMethods()
831 return methods.toArray(new Method[methods.size()]); in getMethods()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java840 Method[] methods = Cls2.class.getMethods(); in test_getMethods() local
841 for (Method method : methods) { in test_getMethods()
853 methods = Cls3.class.getMethods(); in test_getMethods()
854 for (Method method : methods) { in test_getMethods()
866 methods = Cls3.class.getMethods(); in test_getMethods()
867 for (Method method : methods) { in test_getMethods()
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java566 Method[] methods = cl.getDeclaredMethods(); in computeSerialVersionUID() local
567 if (methods.length > 1) { in computeSerialVersionUID()
580 Arrays.sort(methods, methodComparator); in computeSerialVersionUID()
584 for (int i = 0; i < methods.length; i++) { in computeSerialVersionUID()
585 Method method = methods[i]; in computeSerialVersionUID()
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DAnnotationTest.java53 List<Method> methods = Arrays.asList(AnnotatedClass.class.getDeclaredMethods()); in test_equals() local
56 for (Method m : methods) { in test_equals()
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...