/libcore/luni/src/test/java/libcore/java/lang/ |
D | IntrinsicTest.java | 27 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 …]
|
D | CharacterTest.java | 200 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/support/src/test/java/tests/io/ |
D | MockOs.java | 46 @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/ |
D | LSDocumentBuilderFactory.java | 138 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()
|
D | DOM4JTestDocumentBuilderFactory.java | 72 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()
|
D | BatikTestDocumentBuilderFactory.java | 133 return (org.w3c.dom.Document) createDocument.invoke( in load() 163 (DOMImplementation) getImpl.invoke(null, new Object[0]); in getDOMImplementation()
|
D | XercesHTML2DocumentBuilderFactory.java | 70 domImpl = (DOMImplementation) method.invoke(null, NO_OBJECTS); in XercesHTML2DocumentBuilderFactory() 168 return (Document) getHTMLDocumentMethod.invoke( in getHTMLDocument()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ReflectionBenchmark.java | 98 m.invoke(instance); in timeMethod_invokeV() 106 m.invoke(null); in timeMethod_invokeStaticV() 115 m.invoke(instance, 1); in timeMethod_invokeI() 125 m.invoke(instance, one); in timeMethod_invokePreBoxedI() 133 m.invoke(null, 1); in timeMethod_invokeStaticI() 142 m.invoke(null, one); in timeMethod_invokeStaticPreBoxedI()
|
D | PropertyAccessBenchmark.java | 64 setX.invoke(view, 0.1f); in timeReflectionSetterAndTwoBoxes() 71 setX.invoke(view, argsBox); in timeReflectionSetterAndOneBox()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | RunCSVTestsStrict.java | 28 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()
|
D | RunCSVTests.java | 58 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/ |
D | ProxyTest.java | 55 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()
|
D | MethodTest.java | 654 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 …]
|
D | InvocationTargetExceptionTest.java | 137 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/luni/src/main/java/javax/xml/datatype/ |
D | DatatypeConfigurationException.java | 145 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/luni/src/test/java/libcore/java/lang/reflect/ |
D | ProxyTest.java | 34 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()
|
D | OldAndroidClassTest.java | 56 method.invoke(new OldAndroidClassTest(), (Object[]) null); in testGetDeclaredMethod() 65 Object ret = method.invoke(new OldAndroidClassTest(), invokeArgs); in testGetDeclaredMethodWithArgs() 72 method.invoke(new OldAndroidClassTest(), (Object[]) null); in testGetDeclaredMethodPrivate()
|
/libcore/luni/src/main/java/java/lang/reflect/ |
D | InvocationHandler.java | 59 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable; in invoke() method
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | README.txt | 1 These classes are tied to the VM, e.g. the VM may invoke some of the methods.
|
/libcore/libart/src/main/java/java/lang/reflect/ |
D | Method.java | 370 public Object invoke(Object receiver, Object... args) in invoke() method in Method 372 return invoke(receiver, args, isAccessible()); in invoke() 375 private native Object invoke(Object receiver, Object[] args, boolean accessible) in invoke() method in Method
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | NewInstance.java | 70 return (ClassLoader) m.invoke(Thread.currentThread()); in getClassLoader()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | RecursiveTaskTest.java | 41 T result = pool.invoke(a); in testInvokeOnPool() 228 Integer r = f.invoke(); in testInvoke() 342 f.invoke(); in testAbnormalInvoke() 453 Integer r = f.invoke(); in testCancelledInvoke() 561 assertSame(NoResult, a.invoke()); in testGetPool2() 585 assertSame(NoResult, a.invoke()); in testInForkJoinPool2() 599 assertSame(NoResult, a.invoke()); in testSetRawResult() 612 Integer r = f.invoke(); in testReinitialize() 635 f.invoke(); in testReinitializeAbnormal() 657 Integer r = f.invoke(); in testCompleteExceptionally() [all …]
|
D | RecursiveActionTest.java | 44 assertNull(pool.invoke(a)); in testInvokeOnPool() 210 assertNull(f.invoke()); in testInvoke() 514 f.invoke(); in testAbnormalInvoke() 619 f.invoke(); in testCancelledInvoke() 720 assertNull(a.invoke()); in testGetPool2() 742 assertNull(a.invoke()); in testInForkJoinPool2() 784 assertNull(a.invoke()); in testSetRawResult() 797 assertNull(f.invoke()); in testReinitialize() 818 f.invoke(); in testReinitializeAbnormal() 839 f.invoke(); in testCompleteExceptionally() [all …]
|
D | ForkJoinTaskTest.java | 52 assertNull(pool.invoke(a)); in testInvokeOnPool() 384 assertNull(f.invoke()); in testInvoke() 508 f.invoke(); in testAbnormalInvoke() 613 f.invoke(); in testCancelledInvoke() 714 assertNull(a.invoke()); in testGetPool2() 736 assertNull(a.invoke()); in testInForkJoinPool2() 748 assertNull(a.invoke()); in testSetRawResult() 760 f.invoke(); in testCompleteExceptionally() 1108 assertNull(f.invoke()); in testInvokeSingleton() 1232 f.invoke(); in testAbnormalInvokeSingleton() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | SerializationTest.java | 374 public Object invoke(Object proxy, Method method, Object[] args) { in invoke() method in SerializationTest.SerializableInvocationHandler 406 public Object invoke(Object proxy, Method method, Object[] args) { in invoke() method in SerializationTest.WasSerializableInvocationHandler
|