Home
last modified time | relevance | path

Searched defs:method (Results 1 – 25 of 39) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMethodOverridesTest.java30 Method method = StringBuilder.class.getMethod("append", char.class); in testName() local
35 Method method = StringBuilder.class.getMethod("append", char.class); in testParameterTypes() local
41 Method method = StringBuilder.class.getMethod("append", char.class); in testDeclaringClass() local
46 Method method = StringBuilder.class.getMethod("append", char.class); in testReturnType() local
51 Method method = StringBuilder.class.getMethod("append", char.class); in testThrownExceptions() local
82 Method method = Sub.class.getMethod("returner"); in testGetMethodsIncludesSyntheticMethods() local
92 Method method = Sub.class.getMethod("returner"); in testGetDeclaredMethodsIncludesSyntheticMethods() local
109 Method method = Sub.class.getMethod("visibility"); in testSubclassChangesVisibility() local
126 Method method = PublicSub.class.getMethod("unchanged"); in testMoreVisibleSubclassChangesVisibility() local
160 private String signature(Method method) { in signature()
DGenericExceptionsTest.java31 Method method = Thrower.class.getMethod("parameterizedMethod"); in testGenericExceptionsOfMethodsWithTypeParameters() local
37 Method method = Thrower.class.getMethod("genericParameters", List.class); in testGenericExceptionsOfMethodsWithGenericParameters() local
63 Method method = ThrowerT.class.getMethod("throwsTypeVariable"); in testMethodThrowingTypeVariable() local
71 Method method = ThrowerT.class.getMethod("throwsMethodTypeParameter"); in testThrowingMethodTypeParameter() local
79 Method method = ThrowerT.class.getMethod("throwsEverything"); in testThrowingMethodThrowsEverything() local
DMethodTest.java60 Method method = MethodTestHelper.class.getMethod("m1", new Class[0]); in test_getExceptionTypes() local
73 Method method = MethodTestHelper.class.getMethod("m2", expectedParameters); in test_getParameterTypes() local
141 Method method = Super.class.getDeclaredMethod("a"); in testGetDeclaredMethodReturnsPrivateMethods() local
166 Method method = anonymous.getClass().getMethod("a"); in testImplementedInterfaceMethodOfAnonymousClass() local
175 Method method = anonymous.getClass().getMethod("a"); in testPublicMethodOfAnonymousClass() local
196 Method method = anonymous.getClass().getDeclaredMethod("a"); in testGetDeclaredMethodReturnsPrivateMethodOfAnonymousClass() local
DAnnotationsTest.java53 Method method = Type.class.getMethod("method", String.class, String.class); in testMethodAnnotations() local
58 Method method = Type.class.getMethod("method", String.class, String.class); in testParameterAnnotations() local
84 @AnnotationB @AnnotationC public void method(@AnnotationB @AnnotationD String parameter1, in method() method in AnnotationsTest.Type
DOldAndroidClassTest.java55 Method method = helloClass.getDeclaredMethod("method", (Class[]) null); in testGetDeclaredMethod() local
61 Method method = helloClass.getDeclaredMethod("methodWithArgs", Object.class); in testGetDeclaredMethodWithArgs() local
71 Method method = helloClass.getDeclaredMethod("privateMethod", (Class[]) null); in testGetDeclaredMethodPrivate() local
128 public void method() { in method() method in OldAndroidClassTest
DOldGenericReflectionCornerCases.java42 Method method = clazz.getDeclaredMethod("wildcardEquality", Pair.class); in testWildcardEquality() local
85 Method method = clazz.getDeclaredMethod("wildcardUnEquality", Pair.class); in testWildcardUnEquality() local
130 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardUnEquality", Pair.class); in testMultipleBoundedWildcardUnEquality() local
182 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardEquality", Pair.class); in testMultipleBoundedWildcard() local
DMissingClassesTest.java72 void method(Unloadable unloadable) {} in method() method in MissingClassesTest.Loadable
DClassLoaderReflectionTest.java115 Method method = fClass.getDeclaredMethod("method", bClass, List.class); in testMethodGenericReturnType() local
120 Method method = fClass.getDeclaredMethod("method", bClass, List.class); in testMethodGenericParameterTypes() local
142 B<String> method(B<String> parameter, List<A> anotherParameter) { in method() method in ClassLoaderReflectionTest.F
DProxyTest.java62 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { in invoke()
DOldGenericTypesTest.java80 Method method = clazz.getDeclaredMethod("staticMethodGenericType", Object.class); in testStaticMethodGenericType() local
93 Method method = clazz.getDeclaredMethod("hidingMethodGenericType", Object.class); in testHidingMethodGenericType() local
216 Method method = clazz.getDeclaredMethod("exceptionTest"); in testException() local
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DGenericMethodsTests.java55 private void checkTypeParameter(Method method) { in checkTypeParameter()
66 private void checkParameterType(Method method) { in checkParameterType()
79 private void checkReturnType(Method method) { in checkReturnType()
87 Method method = clazz.getMethod("noParamNoReturn"); in testNoParamNoReturn() local
92 Method method = clazz.getMethod("paramNoReturn", Object.class); in testParamNoReturn() local
98 Method method = clazz.getMethod("noParamReturn"); in testNoParamReturn() local
104 Method method = clazz.getMethod("paramReturn", Object.class); in testParamReturn() local
DBoundedGenericMethodsTests.java50 private void checkBoundedTypeParameter(Method method) { in checkBoundedTypeParameter()
68 private void parameterType(Method method) { in parameterType()
84 private void checkReturnType(Method method) { in checkReturnType()
108 Method method = clazz.getMethod("noParamNoReturn"); in testNoParamNoReturn() local
112 Method method = clazz.getMethod("paramNoReturn", BoundedGenericMethods.class); in testUnboundedParamNoReturn() local
117 Method method = clazz.getMethod("noParamReturn"); in testNoParamReturn() local
123 Method method = clazz.getMethod("paramReturn", BoundedGenericMethods.class); in testUnboundedParamReturn() local
DWildcardTypeTest.java57 private void checkBoundedTypeParameter(Method method) { in checkBoundedTypeParameter()
68 private void checkLowerBoundedParameter(Method method) { in checkLowerBoundedParameter()
89 private void checkUpperBoundedParameter(Method method) { in checkUpperBoundedParameter()
109 private void checkReturnType(Method method) { in checkReturnType()
125 …Method method = clazz.getMethod("upperBoundedParamNoReturn", BoundedWildcardsGenericMethods.class); in testUpperBoundedParamNoReturn() local
131 … Method method = clazz.getMethod("lowerBoundedParamReturn", BoundedWildcardsGenericMethods.class); in testLowerBoundedParamReturn() local
138 … Method method = clazz.getMethod("upperBoundedParamReturn", BoundedWildcardsGenericMethods.class); in testUpperBoundedParamReturn() local
145 …Method method = clazz.getMethod("lowerBoundedParamNoReturn", BoundedWildcardsGenericMethods.class); in testLowerBoundedParamNoReturn() local
DProxyTest.java48 public float method(float _number0, float _number1); in method() method
52 public Object invoke(Object proxy, Method method, Object[] args) in invoke()
306 public Object invoke(Object object, Method method, Object[] args) in invoke()
DMethodTest.java403 Method method = TestMethod.class.getDeclaredMethod( in test_getParameterAnnotations() local
435 Method method = TestMethod.class.getDeclaredMethod("annotatedMethod"); in test_getDeclaredAnnotations() local
452 Method method = TestAnno.class.getDeclaredMethod("value"); in test_getDefaultValue() local
461 Method method = ExceptionTest.class.getDeclaredMethod("exceptionTest"); in test_getGenericExceptionTypes() local
475 Method method = GenericReturnType.class in test_getGenericReturnType() local
491 Method method = GenericString.class.getDeclaredMethod("genericString", in test_toGenericString() local
DGenericReflectionTestsBase.java33 public TypeVariable<Method> getTypeParameter(Method method) { in getTypeParameter()
DTypeVariableTest.java48 Method method = clazz.getDeclaredMethod("b"); in testSimpleTypeVariableOnMethod() local
96 Method method = clazz.getDeclaredMethod("e"); in testMultipleTypeVariablesOnMethod() local
/libcore/luni/src/test/java/tests/api/java/io/
DSerializationTestClass.java238 public void method() { in method() method in SerializationTestClass.TestMethodPublic
244 private void method() { in method() method in SerializationTestClass.TestMehodPrivate
249 protected void method() { in method() method in SerializationTestClass.TestMethodProtected
254 strictfp void method() { in method() method in SerializationTestClass.TestMethodStrict
259 static void method() { in method() method in SerializationTestClass.TestMethodStatic
264 final void method() { in method() method in SerializationTestClass.TestMethodFinal
269 synchronized void method() { in method() method in SerializationTestClass.TestMethodSynchronized
274 native void method(); in method() method in SerializationTestClass.TestMethodNative
279 abstract void method(); in method() method in SerializationTestClass.TestMethodAbstractHelper
285 void method() { in method() method in SerializationTestClass.TestMethodAbstract
[all …]
/libcore/luni/src/main/java/java/lang/
DVoid.java40 Method method = Runnable.class.getMethod("run", EmptyArray.CLASS); in lookupType() local
DStackTraceElement.java60 public StackTraceElement(String cls, String method, String file, int line) { in StackTraceElement()
/libcore/luni/src/main/java/java/lang/reflect/
DInvocationHandler.java59 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable; in invoke()
/libcore/dalvik/src/main/java/dalvik/annotation/
DTestTargetNew.java39 String method() default ""; in method() method
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/
DMethodLogger.java41 public void add(String method, Object ... args) { in add()
/libcore/luni/src/main/java/java/net/
DHttpURLConnection.java280 protected String method = HttpEngine.GET; field in HttpURLConnection
664 public void setRequestMethod(String method) throws ProtocolException { in setRequestMethod()
/libcore/luni/src/main/native/
Djava_util_regex_Pattern.cpp66 static jmethodID method = env->GetMethodID(JniConstants::patternSyntaxExceptionClass, in throwPatternSyntaxException() local

12