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

/libcore/luni/src/test/java/tests/api/org/xml/sax/support/
H A DMethodLogger.java29 * The names of the invoked methods, in order.
31 private List<String> methods = new ArrayList<String>(); field in class:MethodLogger
34 * The parameter lists of the invoked methods, in order.
45 methods.add(method);
53 return methods.size();
60 return methods.get(index);
91 methods.clear();
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DAnnotationTypeMismatchExceptionTest.java38 Method[] methods = Class.forName("java.lang.String").getMethods();
39 Method m = methods[0];
/libcore/libart/src/main/java/java/lang/reflect/
H A DProxy.java32 * {@code Proxy} defines methods for creating dynamic proxy classes and instances.
46 * Orders methods by their name, parameters, return type and inheritance relationship.
160 List<Method> methods = getMethods(interfaces);
161 Collections.sort(methods, ORDER_BY_SIGNATURE_AND_SUBTYPE);
162 validateReturnTypes(methods);
163 List<Class<?>[]> exceptions = deduplicateAndGetExceptions(methods);
165 ArtMethod[] methodsArray = new ArtMethod[methods.size()];
167 methodsArray[i] = methods.get(i).getArtMethod();
279 * Fills {@code proxiedMethods} with the methods of {@code interfaces} and
282 private static void getMethodsRecursive(Class<?>[] interfaces, List<Method> methods) { argument
296 validateReturnTypes(List<Method> methods) argument
324 deduplicateAndGetExceptions(List<Method> methods) argument
367 generateProxy(String name, Class<?>[] interfaces, ClassLoader loader, ArtMethod[] methods, Class<?>[][] exceptions) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DOldAndroidClassTest.java141 Method[] methods = ArrayList.class.getMethods();
144 for (Method method : methods) {
173 // Check if we also reflect methods from interfaces
175 Method[] methods = MyInterface.class.getMethods();
176 assertTrue(hasMethod(methods, ".foo("));
178 methods = MyOtherInterface.class.getMethods();
179 assertTrue(hasMethod(methods, ".foo("));
180 assertTrue(hasMethod(methods, ".bar("));
182 methods = MyClass.class.getMethods();
183 assertTrue(hasMethod(methods, "
192 hasMethod(Method[] methods, String signature) argument
[all...]
H A DMethodOverridesTest.java98 Method[] methods = Sub.class.getMethods();
100 for (Method method : methods) {
115 Method[] methods = PublicSub.class.getMethods();
117 for (Method method : methods) {
166 private Set<String> signatures(Method[] methods) { argument
168 for (Method method : methods) {
H A DReflectionTest.java261 Method[] methods = ExtendsImplementsDefinesMember.class.getMethods();
262 assertTrue(names(methods).contains("method"));
266 Method[] methods = ImplementsExtendsDefinesMember.class.getMethods();
267 assertTrue(names(methods).contains("method"));
271 Method[] methods = ExtendsAndImplementsDefinesMember.class.getMethods();
272 assertEquals(1, count(names(methods), "method"));
350 private List<String> names(Member[] methods) { argument
352 for (Member method : methods) {
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DMethodTest.java522 Method[] methods = null;
547 // Test same method. but this time pull it from the list of methods
549 methods = cl.getDeclaredMethods();
552 for (i = 0; i < methods.length; i++)
553 if (methods[i].getName().equals("parmTest")) {
554 mth = methods[i];
555 i = methods.length + 1;
557 if (i < methods.length) {
707 Method methods[] = cl.getMethods();
708 for (int i = 0; i < methods
[all...]
/libcore/libart/src/main/java/java/lang/
H A DClass.java140 /** static, private, and &lt;init&gt; methods. */
155 * interface methods. There is one pair per interface supported by this class. That
165 * methods for the methods in the interface.
181 /** Virtual methods defined in this class; invoked through vtable. */
186 * is copied in, and virtual methods from our class either replace those from the super or are
187 * appended. For abstract classes, methods may be created in the vtable that aren't in
188 * virtual_ methods_ for miranda methods.
697 // methods with the same name and parameter types. Prefer to
700 // escalated visibility. We never return miranda methods tha
779 getDeclaredMethods(boolean publicOnly, List<Method> methods) argument
[all...]
/libcore/libdvm/src/main/java/java/lang/
H A DClass.java648 * Returns an array containing {@code Method} objects for all methods
650 * methods or if this {@code Class} represents an array class, a primitive
660 * Returns the list of methods. If no methods exist, an empty array is returned.
865 * Returns an array containing {@code Method} objects for all public methods
870 * <p>If there are no public methods or if this {@code Class} represents a
876 List<Method> methods = new ArrayList<Method>();
877 getPublicMethodsRecursive(methods);
880 * Remove methods defined by multiple types, preferring to keep methods
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldClassTest.java822 assertEquals("Incorrect number of methods", 10,
824 assertEquals("Incorrect number of methods", 11,
828 Method[] methods = Cls2.class.getMethods();
829 for (Method method : methods) {
836 fail("getMethods() did not return all methods");
841 methods = Cls3.class.getMethods();
842 for (Method method : methods) {
849 fail("getMethods() did not return all methods");
854 methods = Cls3.class.getMethods();
855 for (Method method : methods) {
[all...]
/libcore/luni/src/main/java/java/io/
H A DObjectStreamClass.java496 * Normally constructors come before methods (because <init> <
546 Method[] methods = cl.getDeclaredMethods();
547 if (methods.length > 1) {
560 Arrays.sort(methods, methodComparator);
564 for (int i = 0; i < methods.length; i++) {
565 Method method = methods[i];
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DAnnotationTest.java53 List<Method> methods = Arrays.asList(AnnotatedClass.class.getDeclaredMethods());
56 for (Method m : methods) {
/libcore/support/src/test/java/tests/resources/
H A Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 8377 milliseconds