Home
last modified time | relevance | path

Searched refs:invoke (Results 1 – 25 of 86) sorted by relevance

1234

/libcore/luni/src/test/java/libcore/java/lang/
DIntrinsicTest.java27 String.class.getMethod("charAt", int.class).invoke("hello", 0); in testString_charAt()
32 String.class.getMethod("compareTo", String.class).invoke("hello", "world"); in testString_compareTo()
37 String.class.getMethod("equals", Object.class).invoke("hello", "world"); in testString_equals()
42 String.class.getMethod("indexOf", int.class).invoke("hello", 'l'); in testString_fastIndexOf_II()
47 String.class.getMethod("isEmpty").invoke("hello"); in testString_isEmpty()
52 String.class.getMethod("length").invoke("hello"); in testString_length()
57 Math.class.getMethod("abs", int.class).invoke(null, 1); in testMath_abs()
59 Math.class.getMethod("abs", long.class).invoke(null, 1L); in testMath_abs()
61 Math.class.getMethod("abs", float.class).invoke(null, 1.0f); in testMath_abs()
63 Math.class.getMethod("abs", double.class).invoke(null, 1.0); in testMath_abs()
[all …]
DCharacterTest.java200 assertEquals(m.invoke(null, i), Character.isDigit(i)); in test_isDigit_against_icu4c()
209 assertEquals(m.invoke(null, i), Character.isIdentifierIgnorable(i)); in test_isIdentifierIgnorable_against_icu4c()
218 assertEquals(m.invoke(null, i), Character.isLetter(i)); in test_isLetter_against_icu4c()
227 assertEquals(m.invoke(null, i), Character.isLetterOrDigit(i)); in test_isLetterOrDigit_against_icu4c()
236 assertEquals(m.invoke(null, i), Character.isLowerCase(i)); in test_isLowerCase_against_icu4c()
249 assertFalse((Boolean) m.invoke(null, i)); in test_isSpaceChar_against_icu4c()
251 assertEquals("Failed for character " + i, m.invoke(null, i), Character.isSpaceChar(i)); in test_isSpaceChar_against_icu4c()
261 assertEquals(m.invoke(null, i), Character.isUpperCase(i)); in test_isUpperCase_against_icu4c()
274 assertFalse((Boolean) m.invoke(null, i)); in test_isWhitespace_against_icu4c()
276 assertEquals("Failed for character " + i, m.invoke(null, i), Character.isWhitespace(i)); in test_isWhitespace_against_icu4c()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java228 assertEquals(1189998819991197253L, getConstructorId.invoke(null, Object.class)); in testBug28106822()
229 assertEquals(1189998819991197253L, getConstructorId.invoke(null, String.class)); in testBug28106822()
235 Object obj = newInstance.invoke(null, String.class, 0 /* ignored */); in testBug28106822()
267 hasStaticInitializer.invoke(null, ClinitParent.class, in testHasClinit()
274 hasStaticInitializer.invoke(null, NoClinitChildWithClinitParent.class, in testHasClinit()
277 hasStaticInitializer.invoke(null, NoClinitParent.class, in testHasClinit()
280 hasStaticInitializer.invoke(null, NoClinitChildWithNoClinitParent.class, in testHasClinit()
285 hasStaticInitializer.invoke(null, ClinitParent.class, in testHasClinit()
288 hasStaticInitializer.invoke(null, NoClinitChildWithClinitParent.class, in testHasClinit()
291 hasStaticInitializer.invoke(null, NoClinitParent.class, in testHasClinit()
[all …]
/libcore/support/src/test/java/tests/io/
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 { in enqueueFault()
/libcore/dom/src/test/java/org/w3c/domts/
DLSDocumentBuilderFactory.java138 Object domConfig = domConfigMethod.invoke(parser, new Object[0]); in setParameter()
141 setParameterMethod.invoke(domConfig, new Object[] {parameter, value}); in setParameter()
156 Object domConfig = domConfigMethod.invoke(parser, new Object[0]); in getParameter()
159 return getParameterMethod.invoke(domConfig, new Object[] {parameter}); in getParameter()
276 Object domRegistry = newInstanceMethod.invoke(null, (Class<?>) null); in LSDocumentBuilderFactory()
279 impl = (DOMImplementation) getDOMImplementationMethod.invoke(domRegistry, in LSDocumentBuilderFactory()
283 parser = createLSParserMethod.invoke(impl, in LSDocumentBuilderFactory()
333 return (Document) parseURIMethod.invoke(parser, in load()
DDOM4JTestDocumentBuilderFactory.java72 domFactory = getInstance.invoke(null, new Object[] {}); in DOM4JTestDocumentBuilderFactory()
81 xmlReader = (XMLReader) getReaderMethod.invoke(saxReader, new Object[0]); in DOM4JTestDocumentBuilderFactory()
113 return (org.w3c.dom.Document) readMethod.invoke(saxReader, in load()
/libcore/luni/src/test/java/libcore/java/math/
DRunCSVTestsStrict.java28 Object returnValue = m.invoke(null, input); in runTest()
50 returnValue = m.invoke(null, input1, (int) input2); in run2InputTest()
53 returnValue = m.invoke(null, input1, input2); in run2InputTest()
DRunCSVTests.java58 Object returnValue = m.invoke(null, input); in runTest()
88 returnValue = m.invoke(null, input1, (int) input2); in run2InputTest()
91 returnValue = m.invoke(null, input1, input2); in run2InputTest()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DProxyTest.java55 public Object invoke(Object proxy, Method method, Object[] args) in invoke() method in ProxyTest.Broken1Invoke
104 public Object invoke(Object proxy, Method method, Object[] args) in test_ProxyLjava_lang_reflect_InvocationHandler()
122 public Object invoke(Object proxy, Method method, Object[] args) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
196 public Object invoke(Object proxy, Method method, Object[] args) in test_isProxyClassLjava_lang_Class()
221 public Object invoke(Object proxy, Method method, Object[] args) in test_getInvocationHandlerLjava_lang_Object()
303 public Object invoke(Object object, Method method, Object[] args) in invoke() method in ProxyTest.TestProxyHandler
306 return method.invoke(proxied, args); in invoke()
DMethodTest.java654 Object ret = mth.invoke(null, new Object[0]); in test_invokeLjava_lang_Object$Ljava_lang_Object()
660 ret = mth.invoke(new TestMethod(), new Object[0]); in test_invokeLjava_lang_Object$Ljava_lang_Object()
667 ret = mth.invoke(new TestMethod(), new Object[0]); in test_invokeLjava_lang_Object$Ljava_lang_Object()
678 ret = mth.invoke(new TestMethod(), args); in test_invokeLjava_lang_Object$Ljava_lang_Object()
689 ret = mth.invoke(null, new Object[0]); in test_invokeLjava_lang_Object$Ljava_lang_Object()
699 ret = mth.invoke(new TestMethod(), new Object[0]); in test_invokeLjava_lang_Object$Ljava_lang_Object()
713 methods[i].invoke(testMethod, new Object[] { new Byte( in test_invokeLjava_lang_Object$Ljava_lang_Object()
729 methods[i].invoke(testMethod, new Object[] { new Short( in test_invokeLjava_lang_Object$Ljava_lang_Object()
745 methods[i].invoke(testMethod, in test_invokeLjava_lang_Object$Ljava_lang_Object()
761 methods[i].invoke(testMethod, new Object[] { new Long(1) }); in test_invokeLjava_lang_Object$Ljava_lang_Object()
[all …]
DInvocationTargetExceptionTest.java137 Object ret = mth.invoke(new TestMethod(), new Object[0]); in test_ConstructorLjava_lang_Throwable()
159 Object ret = mth.invoke(new TestMethod(), new Object[0]); in test_ConstructorLjava_lang_ThrowableLjava_lang_String()
180 Object ret = mth.invoke(new TestMethod(), new Object[0]); in test_getTargetException()
201 Object ret = mth.invoke(new TestMethod(), new Object[0]); in test_getCause()
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java97 m.invoke(instance); in timeMethod_invokeV()
105 m.invoke(null); in timeMethod_invokeStaticV()
114 m.invoke(instance, 1); in timeMethod_invokeI()
124 m.invoke(instance, one); in timeMethod_invokePreBoxedI()
132 m.invoke(null, 1); in timeMethod_invokeStaticI()
141 m.invoke(null, one); in timeMethod_invokeStaticPreBoxedI()
DPropertyAccessBenchmark.java65 setX.invoke(view, 0.1f); in timeReflectionSetterAndTwoBoxes()
72 setX.invoke(view, argsBox); in timeReflectionSetterAndOneBox()
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeConfigurationException.java145 m.invoke(this, new Object[] {cause}); in initCauseByReflection()
157 Throwable cause = (Throwable) m1.invoke(this, new Object[] {}); in readObject()
163 m2.invoke(this, new Object[] {causeOnJDK13OrBelow}); in readObject()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandleInfo.java26 package java.lang.invoke;
28 import java.lang.invoke.MethodHandles.Lookup;
DMethodHandle.java26 package java.lang.invoke;
34 public final Object invoke(Object... args) throws Throwable { return null; } in invoke() method in MethodHandle
DCallSite.java26 package java.lang.invoke;
DLambdaConversionException.java26 package java.lang.invoke;
/libcore/ojluni/src/main/java/sun/nio/ch/
DReflect.java68 static Object invoke(Constructor c, Object[] args) { in invoke() method in Reflect
96 static Object invoke(Method m, Object ob, Object[] args) { in invoke() method in Reflect
98 return m.invoke(ob, args); in invoke()
110 return m.invoke(ob, args); in invokeIO()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/
DDeserializeMethodTest.java23 package org.openjdk.tests.java.lang.invoke;
28 import java.lang.invoke.SerializedLambda;
DSerializedLambdaTest.java23 package org.openjdk.tests.java.lang.invoke;
32 import java.lang.invoke.CallSite;
33 import java.lang.invoke.LambdaMetafactory;
34 import java.lang.invoke.MethodHandle;
35 import java.lang.invoke.MethodHandles;
36 import java.lang.invoke.MethodType;
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DProxyTest.java34 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
66 assertEquals("foo", proxy.getClass().getMethod("echo", String.class).invoke(proxy, "foo")); in testClassLoaderDoesNotNeedToSeeInvocationHandlerLoader()
249 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testEquals()
262 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testHashCode()
272 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testToString()
282 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testReturnTypeDoesNotSatisfyAllConstraintsWithLenientCaller()
294 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testReturnTypeDoesNotSatisfyAllConstraintsWithStrictCaller()
395 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { in invoke() method in ProxyTest.TestInvocationHandler
405 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { in test24846()
/libcore/ojluni/src/main/java/java/lang/reflect/
DInvocationHandler.java93 public Object invoke(Object proxy, Method method, Object[] args) in invoke() method
/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/src/main/java/sun/net/www/protocol/http/
DNTLMAuthenticationProxy.java89 return (Boolean)supportsTA.invoke(null); in supportsTransparentAuth()
102 return (Boolean)isTrustedSite.invoke(null, url); in isTrustedSite()

1234