Searched refs:invoke (Results 1 - 25 of 36) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
H A DIntrinsicTest.java27 String.class.getMethod("charAt", int.class).invoke("hello", 0);
32 String.class.getMethod("compareTo", String.class).invoke("hello", "world");
37 String.class.getMethod("equals", Object.class).invoke("hello", "world");
42 String.class.getMethod("indexOf", int.class).invoke("hello", 'l');
47 String.class.getMethod("isEmpty").invoke("hello");
52 String.class.getMethod("length").invoke("hello");
57 Math.class.getMethod("abs", int.class).invoke(null, 1);
59 Math.class.getMethod("abs", long.class).invoke(null, 1L);
61 Math.class.getMethod("abs", float.class).invoke(null, 1.0f);
63 Math.class.getMethod("abs", double.class).invoke(nul
[all...]
/libcore/luni/src/main/java/java/lang/reflect/
H A DInvocationHandler.java32 * public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
35 * //invoke the method
36 * Object result = method.invoke(proxy, args);
59 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable; method in interface:InvocationHandler
/libcore/support/src/test/java/tests/io/
H A DMockOs.java46 @Override public Object invoke(Object o, Method method, Object[] args) throws Throwable {
48 return method.invoke(delegate, args);
56 @Override public Object invoke(Object proxy, Method method, Object[] args)
62 return handler.invoke(proxy, method, args);
115 @Override public Object invoke(Object proxy, Method method, Object[] args) throws ErrnoException {
/libcore/benchmarks/src/benchmarks/regression/
H A DReflectionBenchmark.java98 m.invoke(instance);
106 m.invoke(null);
115 m.invoke(instance, 1);
125 m.invoke(instance, one);
133 m.invoke(null, 1);
142 m.invoke(null, one);
H A DPropertyAccessBenchmark.java64 setX.invoke(view, 0.1f);
71 setX.invoke(view, argsBox);
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDatatypeConfigurationException.java145 m.invoke(this, new Object[] {cause});
157 Throwable cause = (Throwable) m1.invoke(this, new Object[] {});
163 m2.invoke(this, new Object[] {causeOnJDK13OrBelow});
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DProxyTest.java55 assertEquals("foo", proxy.getClass().getMethod("echo", String.class).invoke(proxy, "foo"));
63 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { method in class:ProxyTest.TestInvocationHandler
73 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
H A DMethodTest.java27 m.invoke("hello"); // Wrong number of arguments.
33 m.invoke("hello", "world"); // Wrong type.
39 m.invoke("hello", (Object) null); // Null for a primitive argument.
45 m.invoke(new Integer(5)); // Wrong type for 'this'.
51 m.invoke(null); // Null for 'this'.
H A DOldAndroidClassTest.java56 method.invoke(new OldAndroidClassTest(), (Object[]) null);
65 Object ret = method.invoke(new OldAndroidClassTest(), invokeArgs);
72 method.invoke(new OldAndroidClassTest(), (Object[]) null);
/libcore/dom/src/test/java/org/w3c/domts/
H A DLSDocumentBuilderFactory.java138 Object domConfig = domConfigMethod.invoke(parser, new Object[0]);
141 setParameterMethod.invoke(domConfig, new Object[] {parameter, value});
156 Object domConfig = domConfigMethod.invoke(parser, new Object[0]);
159 return getParameterMethod.invoke(domConfig, new Object[] {parameter});
276 Object domRegistry = newInstanceMethod.invoke(null, (Class<?>) null);
279 impl = (DOMImplementation) getDOMImplementationMethod.invoke(domRegistry,
283 parser = createLSParserMethod.invoke(impl,
333 return (Document) parseURIMethod.invoke(parser,
H A DDOM4JTestDocumentBuilderFactory.java72 domFactory = getInstance.invoke(null, new Object[] {});
81 xmlReader = (XMLReader) getReaderMethod.invoke(saxReader, new Object[0]);
113 return (org.w3c.dom.Document) readMethod.invoke(saxReader,
H A DBatikTestDocumentBuilderFactory.java133 return (org.w3c.dom.Document) createDocument.invoke(
163 (DOMImplementation) getImpl.invoke(null, new Object[0]);
H A DJTidyDocumentBuilderFactory.java92 doc = (Document) parseDOMMethod.invoke(tidyObj,
H A DDocumentBuilderSettingStrategy.java174 String val = (String) getAttrMethod.invoke(factory,
H A DXercesHTML2DocumentBuilderFactory.java70 domImpl = (DOMImplementation) method.invoke(null, NO_OBJECTS);
168 return (Document) getHTMLDocumentMethod.invoke(
H A DXercesHTMLDocumentBuilderFactory.java70 domImpl = (DOMImplementation) method.invoke(null, NO_OBJECTS);
168 return (Document) getHTMLDocumentMethod.invoke(
H A DDOMTestDocumentBuilderFactory.java75 return getFeatureMethod.invoke(doc, new Object[] {"XPath", null});
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DProxyTest.java52 public Object invoke(Object proxy, Method method, Object[] args) method in class:ProxyTest.Broken1Invoke
101 public Object invoke(Object proxy, Method method, Object[] args)
118 public Object invoke(Object proxy, Method method, Object[] args)
191 assertTrue("Invalid invoke result", brokenResult == 5.8f);
208 public Object invoke(Object proxy, Method method, Object[] args)
235 public Object invoke(Object proxy, Method method, Object[] args)
306 public Object invoke(Object object, Method method, Object[] args) method in class:ProxyTest.TestProxyHandler
309 return method.invoke(proxied, args);
H A DInvocationTargetExceptionTest.java137 Object ret = mth.invoke(new TestMethod(), new Object[0]);
159 Object ret = mth.invoke(new TestMethod(), new Object[0]);
180 Object ret = mth.invoke(new TestMethod(), new Object[0]);
201 Object ret = mth.invoke(new TestMethod(), new Object[0]);
H A DMethodTest.java642 * java.lang.reflect.Method#invoke(java.lang.Object,
647 // java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object
652 // Get and invoke a static method
654 Object ret = mth.invoke(null, new Object[0]);
658 // Get and invoke an instance method
660 ret = mth.invoke(new TestMethod(), new Object[0]);
664 // Get and attempt to invoke a private method
667 ret = mth.invoke(new TestMethod(), new Object[0]);
671 fail("Exception during invoke test : " + e.getMessage());
678 ret = mth.invoke(ne
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DNewInstance.java70 return (ClassLoader) m.invoke(Thread.currentThread());
/libcore/luni/src/main/java/java/lang/
H A DEnum.java43 return (Object[]) method.invoke((Object[]) null);
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDocumentBuilderSettingStrategy.java134 String val = (String) getAttrMethod.invoke(factory,
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/
H A DAnnotationFactory.java218 Object otherValue = el.definingMethod.invoke(obj);
281 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable method in class:AnnotationFactory
/libcore/luni/src/main/java/java/util/concurrent/
H A DForkJoinTask.java79 * conventions. Method {@link #invoke} is semantically
113 * #inForkJoinPool}). Attempts to invoke them in other contexts
340 * Primary mechanics for invoke, quietlyInvoke.
560 * Report the result of invoke or join; called only upon
586 * {@link #inForkJoinPool}). Attempts to invoke in other contexts
624 public final V invoke() { method in class:ForkJoinTask
646 * {@link #inForkJoinPool}). Attempts to invoke in other contexts
656 t1.invoke();
674 * {@link #inForkJoinPool}). Attempts to invoke in other contexts
723 * {@link #inForkJoinPool}). Attempts to invoke i
[all...]

Completed in 2780 milliseconds

12