Home
last modified time | relevance | path

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

/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.java290 Method[] methods = ExtendsImplementsDefinesMember.class.getMethods(); in testGetMethodsViaExtendsThenImplements() local
291 assertTrue(names(methods).contains("method")); in testGetMethodsViaExtendsThenImplements()
295 Method[] methods = ImplementsExtendsDefinesMember.class.getMethods(); in testGetMethodsViaImplementsThenExtends() local
296 assertTrue(names(methods).contains("method")); in testGetMethodsViaImplementsThenExtends()
300 Method[] methods = ExtendsAndImplementsDefinesMember.class.getMethods(); in testGetMethodsContainsNoDuplicates() local
301 assertEquals(1, count(names(methods), "method")); in testGetMethodsContainsNoDuplicates()
411 private List<String> names(Member[] methods) { in names() argument
413 for (Member method : methods) { in names()
/libcore/ojluni/src/main/java/java/lang/reflect/
DProxy.java678 List<Method> methods = getMethods(interfaces); in apply() local
679 Collections.sort(methods, ORDER_BY_SIGNATURE_AND_SUBTYPE); in apply()
680 validateReturnTypes(methods); in apply()
681 List<Class<?>[]> exceptions = deduplicateAndGetExceptions(methods); in apply()
683 Method[] methodsArray = methods.toArray(new Method[methods.size()]); in apply()
706 private static List<Class<?>[]> deduplicateAndGetExceptions(List<Method> methods) { in deduplicateAndGetExceptions() argument
707 List<Class<?>[]> exceptions = new ArrayList<Class<?>[]>(methods.size()); in deduplicateAndGetExceptions()
709 for (int i = 0; i < methods.size(); ) { in deduplicateAndGetExceptions()
710 Method method = methods.get(i); in deduplicateAndGetExceptions()
713 if (i > 0 && Method.ORDER_BY_SIGNATURE.compare(method, methods.get(i - 1)) == 0) { in deduplicateAndGetExceptions()
[all …]
/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/ojluni/src/main/java/java/net/
DHttpURLConnection.java519 private static final String[] methods = { field in HttpURLConnection
634 for (int i = 0; i < methods.length; i++) { in setRequestMethod()
635 if (methods[i].equals(method)) { in setRequestMethod()
/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/ojluni/annotations/hiddenapi/java/lang/reflect/
DProxy.java54 java.util.List<java.lang.reflect.Method> methods) { in deduplicateAndGetExceptions() argument
63 private static void validateReturnTypes(java.util.List<java.lang.reflect.Method> methods) { in validateReturnTypes() argument
73 java.lang.Class<?>[] interfaces, java.util.List<java.lang.reflect.Method> methods) { in getMethodsRecursive() argument
81 java.lang.reflect.Method[] methods, in generateProxy() argument
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java835 Method[] methods = Cls2.class.getMethods(); in test_getMethods() local
836 for (Method method : methods) { in test_getMethods()
848 methods = Cls3.class.getMethods(); in test_getMethods()
849 for (Method method : methods) { in test_getMethods()
861 methods = Cls3.class.getMethods(); in test_getMethods()
862 for (Method method : methods) { in test_getMethods()
/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/mmodules/core_platform_api/
DAndroid.bp29 + "--skip-annotation-instance-methods=false ",
/libcore/mmodules/intracoreapi/
DAndroid.bp30 + "--skip-annotation-instance-methods=false ",
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1750 Method[] methods = cl.getDeclaredMethods(); in computeDefaultSUID() local
1752 classMods = (methods.length > 0) ? in computeDefaultSUID()
1850 MemberSignature[] methSigs = new MemberSignature[methods.length]; in computeDefaultSUID()
1851 for (int i = 0; i < methods.length; i++) { in computeDefaultSUID()
1852 methSigs[i] = new MemberSignature(methods[i]); in computeDefaultSUID()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java511 Method[] methods = testClass.getDeclaredMethods(); in testMethodNames() local
512 ArrayList<String> names = new ArrayList<String>(methods.length); in testMethodNames()
513 for (Method method : methods) { in testMethodNames()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DClass.java446 private transient long methods; field in Class
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/
DMetadataVariations.smali23 # virtual methods
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...
/libcore/ojluni/src/main/native/
Djvm.h994 unsigned int methods; member
/libcore/
DJavaLibrary.bp341 // contains lambdas. This contains all classes / methods required by javac