Home
last modified time | relevance | path

Searched refs:mt (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodTypeTest.java36 MethodType mt = MethodType.methodType(int.class, in test_methodType_basicTestsReturnTypeAndParameterClassArray() local
39 assertEquals(int.class, mt.returnType()); in test_methodType_basicTestsReturnTypeAndParameterClassArray()
40 assertParameterTypes(mt, String.class, long.class); in test_methodType_basicTestsReturnTypeAndParameterClassArray()
62 MethodType mt = MethodType.methodType(int.class, Arrays.asList(String.class, long.class)); in test_methodType_basicTestsReturnTypeAndParameterClassList() local
64 assertEquals(int.class, mt.returnType()); in test_methodType_basicTestsReturnTypeAndParameterClassList()
65 assertParameterTypes(mt, String.class, long.class); in test_methodType_basicTestsReturnTypeAndParameterClassList()
87 MethodType mt = MethodType.methodType(int.class, String.class, long.class); in test_methodType_basicTestsReturnTypeAndVarargsParameters() local
89 assertEquals(int.class, mt.returnType()); in test_methodType_basicTestsReturnTypeAndVarargsParameters()
90 assertParameterTypes(mt, String.class, long.class); in test_methodType_basicTestsReturnTypeAndVarargsParameters()
112 MethodType mt = MethodType.methodType(int.class); in test_methodType_basicTestsReturnTypeOnly() local
[all …]
DExplicitCastArgumentsTest.java101 MethodType mt = MethodType.methodType(identityClass, argClass); in explicitCastArgumentToIdentity() local
102 return MethodHandles.explicitCastArguments(identity, mt); in explicitCastArgumentToIdentity()
110 MethodType mt = MethodType.methodType(retClass, identityClass); in explicitCastReturnValueFromIdentity() local
111 return MethodHandles.explicitCastArguments(identity, mt); in explicitCastReturnValueFromIdentity()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DMacFunctionalTest.java25 MacThread mt = new MacThread(algArray); in test_Mac() local
26 mt.launcher(); in test_Mac()
28 assertEquals(mt.getFailureMessages(), 0, mt.getTotalFailuresNumber()); in test_Mac()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodType.java306 MethodType mt = internTable.get(new MethodType(ptypes, rtype)); in makeImpl() local
307 if (mt != null) in makeImpl()
308 return mt; in makeImpl()
312 mt = new MethodType(rtype, ptypes, trusted); in makeImpl()
314 mt.form = MethodTypeForm.findForm(mt); in makeImpl()
315 return internTable.add(mt); in makeImpl()
332 MethodType mt; in genericMethodType() local
337 mt = objectOnlyTypes[ootIndex]; in genericMethodType()
338 if (mt != null) return mt; in genericMethodType()
343 mt = makeImpl(Object.class, ptypes, true); in genericMethodType()
[all …]
DMethodTypeForm.java323 static MethodTypeForm findForm(MethodType mt) { in findForm() argument
324 MethodType erased = canonicalize(mt, ERASE, ERASE); in findForm()
327 return new MethodTypeForm(mt); in findForm()
350 public static MethodType canonicalize(MethodType mt, int howRet, int howArgs) { in canonicalize() argument
351 Class<?>[] ptypes = mt.ptypes(); in canonicalize()
353 Class<?> rtype = mt.returnType(); in canonicalize()