/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 151 MethodHandle mh = explicitCastArgumentToIdentity(Child.class, Parent.class); in explicitCastArgumentParentToChild() local 160 MethodHandle mh = explicitCastArgumentToIdentity(Child.class, Parent.class); in explicitCastArgumentNullParentToChild() local 167 MethodHandle mh = explicitCastArgumentToIdentity(Parent.class, Child.class); in explicitCastArgumentChildToParent() local 174 MethodHandle mh = explicitCastArgumentToIdentity(Parent.class, Child.class); in explicitCastArgumentNullChildToParent() local 181 MethodHandle mh = explicitCastReturnValueFromIdentity(Parent.class, Child.class); in explicitCastReturnValueNullParentToChild() local 188 MethodHandle mh = explicitCastReturnValueFromIdentity(Parent.class, Child.class); in explicitCastReturnValueParentToChild() local 197 MethodHandle mh = explicitCastReturnValueFromIdentity(Child.class, Parent.class); in explicitCastReturnValueNullChildToParent() local 204 MethodHandle mh = explicitCastReturnValueFromIdentity(Child.class, Parent.class); in explicitCastReturnValueChildToParent() local 211 MethodHandle mh = explicitCastArgumentToIdentity(ParentInterface.class, Parent.class); in explicitCastArgumentOfInterfaceType_doesNotThrow() local 232 MethodHandle mh = explicitCastReturnValueFromIdentity(Parent.class, in explicitCastReturnValueOfInterfaceType_doesNotThrow() local [all …]
|
D | MethodHandlesTest.java | 383 MethodHandle mh = MethodHandles.lookup().findSpecial(F.class /* refC */, "callInner", in testfindSpecial_invokeSuperInterfaceBehaviour() local 537 MethodHandle mh = BarImpl.lookup.findVirtual( in testfindVirtual() local 697 MethodHandle mh = MethodHandles.lookup().unreflect(publicMethod); in testUnreflects_publicMethods() local 717 MethodHandle mh = UnreflectTester.lookup.unreflectSpecial(privateMethod, in testUnreflects_privateMethods() local 750 MethodHandle mh = UnreflectTester.lookup.unreflectSpecial(overridenMethod, in testUnreflectSpecial_superCalls() local 765 MethodHandle mh = MethodHandles.lookup().unreflectConstructor(privateConstructor); in testUnreflects_constructors() local 781 MethodHandle mh = MethodHandles.lookup().unreflectGetter(publicField); in testUnreflects_publicFields() local 816 MethodHandle mh = MethodHandles.lookup().unreflectGetter(privateField); in testUnreflects_privateFields() local 855 MethodHandle mh = MethodHandles.lookup().findVirtual(String.class, in testAsType() local 897 MethodHandle mh = in testConstructors() local [all …]
|
D | MethodHandleCombinersTest.java | 1675 private static void invokeMultiThreaded(final MethodHandle mh) throws Throwable { in invokeMultiThreaded() 1714 MethodHandle mh = MethodHandles.dropArguments(delegate, 0, int.class, Object.class); in testDropInsertArgumentsMultithreaded() local 1743 private static void testTargetAndFallback_delegate(MethodHandle mh) throws Throwable { in testTargetAndFallback_delegate() 1788 MethodHandle mh = MethodHandles.lookup().findStatic( in testReferenceArrayGetterMultiThreaded() local 1797 private static void checkConstant_delegate(MethodHandle mh, double value) throws Throwable { in checkConstant_delegate() 1804 MethodHandle mh = MethodHandles.lookup().findStatic( in testConstantMultithreaded() local 1811 private static void checkIdentity_delegate(MethodHandle mh, char value) throws Throwable { in checkIdentity_delegate() 1818 MethodHandle mh = MethodHandles.lookup().findStatic( in testIdentityMultiThreaded() local 1827 private static void assertMethodHandleInvokeEquals(MethodHandle mh, int value) throws Throwable{ in assertMethodHandleInvokeEquals() 1840 MethodHandle mh = MethodHandles.lookup().findStatic( in testFilterReturnValueMultiThreaded() local [all …]
|
D | CallSitesTest.java | 36 final MethodHandle mh = in test_ConstantCallSite() local
|
D | MethodHandleAccessorsTest.java | 722 MethodHandle mh = lookup.findStaticGetter(ValueHolder.class, "s_fi", int.class); in testLookup() local 727 MethodHandle mh = lookup.findStaticSetter(ValueHolder.class, "s_i", int.class); in testLookup() local
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandle.java | 888 MethodHandle mh = duplicate(); in asTypeUncached() local 1380 MethodHandle mh = this; in asFixedArity() local
|
D | MethodHandles.java | 813 MethodHandle mh = new MethodHandleImpl(method.getArtMethod(), handleKind, methodType); in createMethodHandle() local 896 MethodHandle mh = findVirtualForMH(name, type); in findVirtual() local 902 MethodHandle mh = findVirtualForVH(name, type); in findVirtual() local 1000 MethodHandle mh; in createMethodHandleForConstructor() local
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserFactoryTest.java | 233 MyHandler mh = new MyHandler(); in test_setNamespaceAwareZ() local
|