/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | MethodTest.java | 234 Method m1 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", new Class[0]); in test_getDeclaredMethod() 235 Method m2 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", (Class[]) null); in test_getDeclaredMethod() 302 mth = cl.getDeclaredMethod("prstatic", new Class[0]); in test_getModifiers() 310 mth = cl.getDeclaredMethod("pustatsynch", new Class[0]); in test_getModifiers() 318 mth = cl.getDeclaredMethod("pustatsynchnat", new Class[0]); in test_getModifiers() 328 mth = cl.getDeclaredMethod("puabs", new Class[0]); in test_getModifiers() 360 mth = TestMethod.class.getDeclaredMethod("publicVoidArray", in test_isVarArgs() 403 Method method = TestMethod.class.getDeclaredMethod( in test_getParameterAnnotations() 435 Method method = TestMethod.class.getDeclaredMethod("annotatedMethod"); in test_getDeclaredAnnotations() 452 Method method = TestAnno.class.getDeclaredMethod("value"); in test_getDefaultValue() [all …]
|
D | InvocationTargetExceptionTest.java | 134 Method mth = TestMethod.class.getDeclaredMethod( in test_ConstructorLjava_lang_Throwable() 156 Method mth = TestMethod.class.getDeclaredMethod( in test_ConstructorLjava_lang_ThrowableLjava_lang_String() 177 Method mth = TestMethod.class.getDeclaredMethod( in test_getTargetException() 198 Method mth = TestMethod.class.getDeclaredMethod( in test_getCause()
|
D | TypeVariableTest.java | 50 Method method = clazz.getDeclaredMethod("b"); in testSimpleTypeVariableOnMethod() 107 Method method = clazz.getDeclaredMethod("e"); in testMultipleTypeVariablesOnMethod()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldGenericTypesTest.java | 80 Method method = clazz.getDeclaredMethod("staticMethodGenericType", Object.class); in testStaticMethodGenericType() 93 Method method = clazz.getDeclaredMethod("hidingMethodGenericType", Object.class); in testHidingMethodGenericType() 121 …Method multipleGenericTypesT = clazz.getDeclaredMethod("multipleGenericTypesT", new Class[]{Object… in testMultipleGenericTypes() 128 …Method multipleGenericTypesS = clazz.getDeclaredMethod("multipleGenericTypesS", new Class[]{Object… in testMultipleGenericTypes() 135 …Method multipleGenericTypesTS = clazz.getDeclaredMethod("multipleGenericTypesTS", new Class[]{Obje… in testMultipleGenericTypes() 204 Method declaredMethods = innerClazz.getDeclaredMethod("innerMethod", Object.class); in testInnerClassTest() 216 Method method = clazz.getDeclaredMethod("exceptionTest"); in testException() 227 Method declaredMethods = innerClazz.getDeclaredMethod("innerExceptionTest"); in testException()
|
D | MethodTest.java | 104 ImplementsC.class.getDeclaredMethod("a").getDeclaringClass(); in testGetDeclaredMethodReturnsIndirectlyImplementedInterface() 109 ExtendsImplementsC.class.getDeclaredMethod("a").getDeclaringClass(); in testGetDeclaredMethodReturnsIndirectlyImplementedInterface() 150 Method method = Super.class.getDeclaredMethod("a"); in testGetDeclaredMethodReturnsPrivateMethods() 156 Sub.class.getDeclaredMethod("a"); in testGetDeclaredMethodDoesNotReturnSuperclassMethods() 164 InterfaceB.class.getDeclaredMethod("a"); in testGetDeclaredMethodDoesNotReturnImplementedInterfaceMethods() 205 Method method = anonymous.getClass().getDeclaredMethod("a"); in testGetDeclaredMethodReturnsPrivateMethodOfAnonymousClass() 364 Method declaredMethod = InterfaceWithStatic.class.getDeclaredMethod("staticMethod"); in testStaticInterfaceMethod_getDeclaredMethod() 400 Method defaultMethod = interfaceWithDefaultClass.getDeclaredMethod("defaultMethod"); in testDefaultMethod_getDeclaredMethod_interface() 408 Method defaultMethod = interfaceWithDefaultClass.getDeclaredMethod("defaultMethod"); in testDefaultMethod_inheritance() 430 Method defaultMethod = interfaceWithDefaultClass.getDeclaredMethod("defaultMethod"); in testDefaultMethod_override() [all …]
|
D | ParameterTest.java | 114 Method method = SingleParameter.class.getDeclaredMethod("oneParameter", String.class); in testSingleParameterMethod() 138 Method method = clazz.getDeclaredMethod("oneParameter", String.class); in testSingleParameterMethod_withMetadata() 170 Method method = GenericParameter.class.getDeclaredMethod( in testGenericParameterMethod() 197 Method method = clazz.getDeclaredMethod("genericParameter", Function.class); in testGenericParameterMethod_withMetadata() 231 Method method = TwoParameters.class.getDeclaredMethod( in testTwoParameterMethod() 260 Method method = clazz.getDeclaredMethod("twoParameters", String.class, Integer.class); in testTwoParameterMethod_withMetadata() 298 Method method = FinalParameter.class.getDeclaredMethod("finalParameter", String.class); in testFinalParameterMethod() 322 Method method = clazz.getDeclaredMethod("finalParameter", String.class); in testFinalParameterMethod_withMetdata() 541 Method method = TestEnum.class.getDeclaredMethod("valueOf", String.class); in testEnumValueOf() 556 Method method = clazz.getDeclaredMethod("valueOf", String.class); in testEnumValueOf_withMetadata() [all …]
|
D | OldGenericReflectionCornerCases.java | 42 Method method = clazz.getDeclaredMethod("wildcardEquality", Pair.class); in testWildcardEquality() 85 Method method = clazz.getDeclaredMethod("wildcardUnEquality", Pair.class); in testWildcardUnEquality() 130 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardUnEquality", Pair.class); in testMultipleBoundedWildcardUnEquality() 182 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardEquality", Pair.class); in testMultipleBoundedWildcard()
|
D | MissingClassesTest.java | 56 loadableClass.getDeclaredMethod("method", Unloadable.class); in testGetMethodFails()
|
D | OldAndroidClassTest.java | 55 Method method = helloClass.getDeclaredMethod("method", (Class[]) null); in testGetDeclaredMethod() 61 Method method = helloClass.getDeclaredMethod("methodWithArgs", Object.class); in testGetDeclaredMethodWithArgs() 71 Method method = helloClass.getDeclaredMethod("privateMethod", (Class[]) null); in testGetDeclaredMethodPrivate()
|
D | ReflectionTest.java | 146 Method methodOne = C.class.getDeclaredMethod("methodOne", A.class, C.class); in testMethodToString() 152 Method methodTwo = C.class.getDeclaredMethod("methodTwo", List.class); in testMethodToString() 160 Method methodThree = C.class.getDeclaredMethod("methodThree", A.class, Set.class); in testMethodToString() 168 Method methodFour = C.class.getDeclaredMethod("methodFour", Set.class); in testMethodToString() 176 TypeVariable t = C.class.getDeclaredMethod("methodFour", Set.class).getTypeParameters()[0]; in testTypeVariableWithMultipleBounds() 511 assertEquals(Foo.class.getDeclaredMethod("foo", String.class), in testClassEnclosedByMethod()
|
D | ClassLoaderReflectionTest.java | 115 Method method = fClass.getDeclaredMethod("method", bClass, List.class); in testMethodGenericReturnType() 120 Method method = fClass.getDeclaredMethod("method", bClass, List.class); in testMethodGenericParameterTypes()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | ExecutableParameterTest.java | 85 return AnnotatedMethodClass.class.getDeclaredMethod("noAnnotation", String.class); in getMethodWithoutAnnotations() 89 return AnnotatedMethodClass.class.getDeclaredMethod( in getMethodMultipleAnnotationOddity() 94 return AnnotatedMethodClass.class.getDeclaredMethod( in getMethodMultipleAnnotationExplicitSingle() 99 return AnnotatedMethodClass.class.getDeclaredMethod("multipleAnnotation", String.class); in getMethodMultipleAnnotation() 103 return AnnotatedMethodClass.class.getDeclaredMethod("singleAnnotation", String.class); in getMethodSingleAnnotation() 107 return AnnotatedMethodClass.class.getDeclaredMethod("staticSingleAnnotation", in getMethodStaticSingleAnnotation() 116 return AnnotatedMethodAbstractClass.class.getDeclaredMethod( in getMethodAbstractSingleAnnotation()
|
D | AnnotatedElementParameterTest.java | 54 Parameter[] parameters = c.getDeclaredMethod( in testMethodParameterAnnotations() 63 Parameter[] parameters = c.getDeclaredMethod( in testMethodParameterAnnotations() 121 return AnnotatedMethodClass.class.getDeclaredMethod("noAnnotation", String.class); in getMethodWithoutAnnotations() 125 return AnnotatedMethodClass.class.getDeclaredMethod( in getMethodMultipleAnnotationOddity() 130 return AnnotatedMethodClass.class.getDeclaredMethod( in getMethodMultipleAnnotationExplicitSingle() 135 return AnnotatedMethodClass.class.getDeclaredMethod("multipleAnnotation", String.class); in getMethodMultipleAnnotation() 139 return AnnotatedMethodClass.class.getDeclaredMethod("singleAnnotation", String.class); in getMethodSingleAnnotation() 143 return AnnotatedMethodClass.class.getDeclaredMethod("staticSingleAnnotation", in getMethodStaticSingleAnnotation() 152 return AnnotatedMethodAbstractClass.class.getDeclaredMethod( in getMethodAbstractSingleAnnotation()
|
D | MethodTest.java | 89 Method method = c.getDeclaredMethod(methodName); in checkDeclaredAnnotation() 125 Method method = c.getDeclaredMethod(methodName); in assertGetDeclaredAnnotationsByType() 157 Method method = c.getDeclaredMethod(methodName); in assertGetAnnotationsByType()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | CharacterTest.java | 197 Method m = Character.class.getDeclaredMethod("isDigit" + "Impl", int.class); in test_isDigit_against_icu4c() 206 Method m = Character.class.getDeclaredMethod("isIdentifierIgnorable" + "Impl", int.class); in test_isIdentifierIgnorable_against_icu4c() 215 Method m = Character.class.getDeclaredMethod("isLetter" + "Impl", int.class); in test_isLetter_against_icu4c() 224 Method m = Character.class.getDeclaredMethod("isLetterOrDigit" + "Impl", int.class); in test_isLetterOrDigit_against_icu4c() 233 Method m = Character.class.getDeclaredMethod("isLowerCase" + "Impl", int.class); in test_isLowerCase_against_icu4c() 242 Method m = Character.class.getDeclaredMethod("isSpaceChar" + "Impl", int.class); in test_isSpaceChar_against_icu4c() 258 Method m = Character.class.getDeclaredMethod("isUpperCase" + "Impl", int.class); in test_isUpperCase_against_icu4c() 267 Method m = Character.class.getDeclaredMethod("isWhitespace" + "Impl", int.class); in test_isWhitespace_against_icu4c()
|
D | OldRuntimeTest.java | 532 Runtime.class.getDeclaredMethod("load", String.class, ClassLoader.class); in test_loadDeprecated_targetSdkVersion_24() 548 Runtime.class.getDeclaredMethod("load", String.class, ClassLoader.class); in test_loadDeprecated_targetSdkVersion_25() 564 Runtime.class.getDeclaredMethod("loadLibrary", String.class, ClassLoader.class); in test_loadLibraryDeprecated_targetSdkVersion_24() 580 Runtime.class.getDeclaredMethod("loadLibrary", String.class, ClassLoader.class); in test_loadLibraryDeprecated_targetSdkVersion_25()
|
/libcore/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 86 siSetOption = clazz.getDeclaredMethod( in initMethods() 92 siGetOption = clazz.getDeclaredMethod( in initMethods() 97 dsiSetOption = clazz.getDeclaredMethod( in initMethods() 103 dsiGetOption = clazz.getDeclaredMethod( in initMethods()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FileSystemsTest.java | 134 assertSame(stubURI, fs.getClass().getDeclaredMethod("getURI").invoke(fs)); in test_newFileSystem$URI$Map$ClassLoader_customClassLoader() 135 assertSame(stubEnv, fs.getClass().getDeclaredMethod("getEnv").invoke(fs)); in test_newFileSystem$URI$Map$ClassLoader_customClassLoader() 172 Path pathValue = (Path)fs.getClass().getDeclaredMethod("getPath").invoke(fs); in test_newFileSystem$Path$ClassLoader_customClassLoader()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | DeserializeMethodTest.java | 41 Method m = clazz.getDeclaredMethod("$deserializeLambda$", SerializedLambda.class); in assertDeserializeMethod()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectStreamClassTest.java | 274 Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod( in getConstructorIdMethod() 281 Method newInstance = ObjectStreamClass.class.getDeclaredMethod("newInstance", in getNewInstanceMethod()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | MessageDigestTest.java | 84 mdClass.getDeclaredMethod(spiMethod.getName(), spiMethod.getParameterTypes()); in testMessageDigestDelegateOverridesAllMethods()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | PropertyAccessBenchmark.java | 33 setX = View.class.getDeclaredMethod("setX", float.class); in setUp()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotatedElements.java | 94 valuesMethod = annotation.getClass().getDeclaredMethod("value"); in insertAnnotationValues()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | CpuFeatures.java | 102 Method EVP_has_aes_hardware = nativeCrypto.getDeclaredMethod("EVP_has_aes_hardware"); in isAesHardwareAccelerated()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | ObjectStreamClassTest.java | 143 ObjectStreamClass.class.getDeclaredMethod("computeDefaultSUID", Class.class); in checkSerialVersionUID()
|