Searched refs:mt (Results 1 - 25 of 136) sorted by relevance

123456

/openjdk10/jdk/test/java/awt/image/
H A DImageIconHang.java36 MediaTracker mt = new MediaTracker(new Component() {});
37 mt.addImage(image, 1);
38 mt.waitForID(1, 5000);
40 int status = mt.statusID(1, false);
/openjdk10/jdk/test/java/lang/invoke/lambda/
H A DT8032697.java50 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); } method in class:T8032697
51 private static MethodType mt(Class<?> k, Class<?> k2) { return MethodType.methodType(k, k2); } method in class:T8032697
63 h = l.findVirtual(T8032697_A.class, "f", mt(int.class));
64 if (mf(mt(I.class, T8032697.class), mt(int.class))) throw new AssertionError("Error: Should work");
65 if (mf(mt(IA.class), mt(int.class, T8032697.class))) throw new AssertionError("Error: Should work");
66 if (!mf(mt(I.class, T8032697_A.class), mt(int.class))) throw new AssertionError("Error: Should fail");
67 if (!mf(mt(I
[all...]
H A DInheritedMethodTest.java34 public static MethodType mt(Class<?> ret, Class<?>... params) { return MethodType.methodType(ret, params); } method in class:InheritedMethodTest
56 test(lookup.findVirtual(C.class, "toString", mt(String.class)), "a");
57 test(lookup.findVirtual(C.class, "iString", mt(String.class)), "b");
58 test(lookup.findVirtual(J.class, "toString", mt(String.class)), "a");
59 test(lookup.findVirtual(J.class, "iString", mt(String.class)), "b");
60 test(lookup.findVirtual(I.class, "toString", mt(String.class)), "a");
61 test(lookup.findVirtual(I.class, "iString", mt(String.class)), "b");
70 CallSite cs = LambdaMetafactory.metafactory(lookup, "get", mt(StringFactory.class, D.class), mt(String.class),
71 implMethod, mt(Strin
[all...]
H A DT8032704.java41 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); } method in class:T8032704
45 mt(Closeable.class),mt(void.class),h,mt(void.class));
54 h = ll.findStatic(T8032704.class, "here", mt(void.class));
H A DT8032711.java45 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); } method in class:T8032711
49 mt(I.class),mt(k),h,mt(void.class));
58 h = l.findStatic(T8032711.class, "here", mt(void.class));
H A DLambdaReceiverBridge.java49 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); } method in class:LambdaReceiverBridge
50 private static MethodType mt(Class<?> k, Class<?> k2) { return MethodType.methodType(k, k2); } method in class:LambdaReceiverBridge
56 h = l.findVirtual(LambdaReceiver_A.class, "f", mt(int.class));
57 MethodType X = mt(int.class, LambdaReceiverBridge.class);
58 MethodType A = mt(int.class, LambdaReceiver_A.class);
59 MethodType mti = mt(IA.class);
H A DLambdaReceiver.java49 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); } method in class:LambdaReceiver
50 private static MethodType mt(Class<?> k, Class<?> k2) { return MethodType.methodType(k, k2); } method in class:LambdaReceiver
56 h = l.findVirtual(LambdaReceiver_A.class, "f", mt(int.class));
57 MethodType X = mt(int.class, LambdaReceiver.class);
58 MethodType A = mt(int.class, LambdaReceiver_A.class);
59 MethodType mti = mt(IA.class);
H A DMetafactoryDescriptorTest.java36 static MethodType mt(Class<?> ret, Class<?>... params) { method in class:MetafactoryDescriptorTest
70 return lookup.findStatic(C.class, "m_" + c.getSimpleName(), mt(c, String.class));
80 return lookup.findStatic(C.class, "n_" + c.getSimpleName(), mt(String.class, c));
99 test(correctRet, m, mt(t[i], String.class), mt(t[j], String.class));
100 testBridge(correctRet, m, mt(t[i], String.class), mt(t[i], String.class),
101 mt(t[j], Object.class));
102 testBridge(correctRet, m, mt(t[i], String.class), mt(
[all...]
H A DLambdaReturn.java47 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); } method in class:LambdaReturn
48 private static MethodType mt(Class<?> k, Class<?> k2) { return MethodType.methodType(k, k2); } method in class:LambdaReturn
50 MethodType mti = mt(I.class);
63 MethodHandle hV = l.findStatic(LambdaReturn.class, "hereV", mt(void.class));
64 MethodHandle hS = l.findStatic(LambdaReturn.class, "hereS", mt(String.class));
66 MethodType V = mt(void.class);
67 MethodType S = mt(String.class);
68 MethodType O = mt(Object.class);
69 MethodType I = mt(int.class);
/openjdk10/jdk/src/java.base/share/classes/java/lang/invoke/
H A DSimpleMethodHandle.java51 /*non-public*/ BoundMethodHandle copyWith(MethodType mt, LambdaForm lf) { argument
52 return make(mt, lf);
66 /*non-public*/ final BoundMethodHandle copyWithExtendL(MethodType mt, LambdaForm lf, Object narg) { argument
67 return BoundMethodHandle.bindSingle(mt, lf, narg); // Use known fast path.
70 /*non-public*/ final BoundMethodHandle copyWithExtendI(MethodType mt, LambdaForm lf, int narg) { argument
72 return (BoundMethodHandle) SPECIES_DATA.extendWith(I_TYPE).constructor().invokeBasic(mt, lf, narg);
78 /*non-public*/ final BoundMethodHandle copyWithExtendJ(MethodType mt, LambdaForm lf, long narg) { argument
80 return (BoundMethodHandle) SPECIES_DATA.extendWith(J_TYPE).constructor().invokeBasic(mt, lf, narg);
86 /*non-public*/ final BoundMethodHandle copyWithExtendF(MethodType mt, LambdaForm lf, float narg) { argument
88 return (BoundMethodHandle) SPECIES_DATA.extendWith(F_TYPE).constructor().invokeBasic(mt, l
94 copyWithExtendD(MethodType mt, LambdaForm lf, double narg) argument
[all...]
/openjdk10/jdk/test/java/awt/Modal/SupportedTest/
H A DSupportedTest.java47 for (Dialog.ModalityType mt : Dialog.ModalityType.values())
49 if (!tk.isModalityTypeSupported(mt))
51 Dialog d = new Dialog(f, "D", mt);
54 System.err.println("Error: modality type " + mt + " is not supported\n" +
/openjdk10/jdk/src/java.desktop/windows/native/libawt/java2d/d3d/
H A DD3DPaints.cpp176 D3DMATRIX mt;
177 ZeroMemory(&mt, sizeof(mt));
178 mt._11 = (float)p0;
179 mt._21 = (float)p1;
180 mt._31 = (float)0.0;
181 mt._41 = (float)p3;
182 mt._12 = 0.0f;
183 mt._22 = 1.0f;
184 mt
229 D3DMATRIX mt; local
282 D3DMATRIX mt; local
408 D3DMATRIX mt; local
[all...]
/openjdk10/jdk/test/java/lang/invoke/
H A DTestPrivateMember.java48 MethodType mt = MethodType.methodType(void.class);
53 MethodHandle mh = lookup.findStatic(checkInittedHolder, "checkInitted", mt);
H A DObjectMethodInInterfaceTest.java39 MethodType mt = MethodType.methodType(Object.class, CharSequence.class);
40 mh = mh.asType(mt);
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/
H A DTypeMap.java77 MethodType mt = MethodType.methodType(returnType.getTypeClass());
79 mt = mt.appendParameterTypes(ScriptFunction.class);
82 mt = mt.appendParameterTypes(Object.class); //this
88 mt = mt.appendParameterTypes(type.getTypeClass());
91 return mt;
/openjdk10/hotspot/test/compiler/profiling/
H A DTestUnexpectedProfilingMismatch.java58 MethodType mt = MethodType.methodType(void.class, A.class);
61 res = lookup.findStatic(TestUnexpectedProfilingMismatch.class, "mA", mt);
66 mt = MethodType.methodType(void.class, B.class);
68 res = lookup.findStatic(TestUnexpectedProfilingMismatch.class, "mB", mt);
H A DTestMethodHandleInvokesIntrinsic.java47 MethodType mt = MethodType.methodType(long.class);
50 MH = lookup.findStatic(System.class, "nanoTime", mt);
60 mt = MethodType.methodType(Class.class);
63 MH = lookup.findVirtual(Object.class, "getClass", mt);
/openjdk10/jdk/test/java/lang/invoke/VarHandles/
H A DVarHandleBaseTest.java224 static MethodHandle toMethodHandle(VarHandle vh, TestAccessMode tam, MethodType mt) { argument
228 static MethodHandle findVirtual(VarHandle vh, TestAccessMode tam, MethodType mt) { argument
234 mt);
238 return bind(vh, mh, mt);
241 static MethodHandle varHandleInvoker(VarHandle vh, TestAccessMode tam, MethodType mt) { argument
244 mt);
246 return bind(vh, mh, mt);
249 static MethodHandle varHandleExactInvoker(VarHandle vh, TestAccessMode tam, MethodType mt) { argument
252 mt);
254 return bind(vh, mh, mt);
301 apply(VarHandle vh, TestAccessMode am, MethodType mt) argument
362 get(TestAccessMode am, MethodType mt) argument
[all...]
/openjdk10/nashorn/test/src/jdk/dynalink/test/
H A DDynamicLinkerFactoryTest.java73 final MethodType mt = MethodType.methodType(Object.class, Object.class);
76 MethodHandles.publicLookup(), op, mt)));
78 Assert.assertEquals(cs.type(), mt);
96 final MethodType mt = MethodType.methodType(Object.class);
98 MethodHandles.publicLookup(), myOperation, mt)));
128 final MethodType mt = MethodType.methodType(Object.class);
130 MethodHandles.publicLookup(), myOperation, mt)));
166 final MethodType mt = MethodType.methodType(Object.class);
168 MethodHandles.publicLookup(), myOperation, mt)));
195 final MethodType mt
[all...]
/openjdk10/hotspot/test/compiler/jsr292/
H A DContinuousCallSiteTargetChange.java96 static MethodHandle findStatic(Class<?> cls, String name, MethodType mt) { argument
98 return MethodHandles.lookup().findStatic(cls, name, mt);
105 static final MethodType mt = MethodType.methodType(void.class); field in class:ContinuousCallSiteTargetChange.RecompilationTest
106 static final CallSite cs = new MutableCallSite(mt);
122 MethodHandle mh1 = findStatic(RecompilationTest.class, "f", mt);
139 static final MethodType mt = MethodType.methodType(void.class); field in class:ContinuousCallSiteTargetChange.PingPongTest
140 static final CallSite cs = new MutableCallSite(mt);
144 static final MethodHandle ping = findStatic(PingPongTest.class, "ping", mt);
145 static final MethodHandle pong = findStatic(PingPongTest.class, "pong", mt);
H A DLongReferenceCastingTest.java45 MethodType mt = MethodType.methodType(String.class, long.class, Object.class, String.class);
46 MH = lookup.findVirtual(LongReferenceCastingTest.class, "myMethod", mt);
/openjdk10/jdk/test/java/lang/invoke/7196190/
H A DClassForNameTest.java41 final MethodType mt = MethodType.methodType(Class.class, String.class);
43 .findStatic(Class.class, "forName", mt);
56 final MethodType mt = MethodType.methodType(Object.class, Object.class, Object[].class);
58 .findVirtual(Method.class, "invoke", mt)
72 final MethodType mt = MethodType.methodType(Object.class, Object.class, Object[].class);
75 .bind(fnMethod, "invoke", mt);
/openjdk10/nashorn/test/src/jdk/dynalink/support/test/
H A DCallSiteTest.java52 final MethodType mt = MethodType.methodType(Object.class, Object.class);
55 MethodHandles.publicLookup(), GET_PROPERTY.named("DO_NOT_CARE"), mt)) {
70 final MethodType mt = MethodType.methodType(Object.class, Object.class);
73 MethodHandles.publicLookup(), GET_PROPERTY.named("class"), mt)) {
94 final MethodType mt = MethodType.methodType(Object.class, Object.class);
97 MethodHandles.publicLookup(), GET_PROPERTY.named("length"), mt)) {
/openjdk10/hotspot/test/compiler/runtime/cr8015436/
H A DTest8015436.java66 MethodType mt = MethodType.methodType(void.class, String.class);
67 MethodHandle mh = lookup.findVirtual(Test8015436.class, "defaultMethod", mt);
/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/com/sun/java/swing/ui/
H A DSplashScreen.java42 MediaTracker mt = new MediaTracker(this);
43 mt.addImage(screen.getImage(), 0);
46 mt.waitForAll();

Completed in 97 milliseconds

123456