/external/junit-params/src/main/java/junitparams/internal/parameters/ |
D | ParametersFromExternalClassProvideMethod.java | 23 Class<?> sourceClass = annotation.source(); in getParameters() local 24 return fillResultWithAllParamProviderMethods(sourceClass); in getParameters() 34 private Object[] fillResultWithAllParamProviderMethods(Class<?> sourceClass) { in fillResultWithAllParamProviderMethods() argument 35 if (sourceClass.isEnum()) { in fillResultWithAllParamProviderMethods() 36 return sourceClass.getEnumConstants(); in fillResultWithAllParamProviderMethods() 39 List<Object> result = getParamsFromSourceHierarchy(sourceClass); in fillResultWithAllParamProviderMethods() 43 + sourceClass.getName()); in fillResultWithAllParamProviderMethods() 48 private List<Object> getParamsFromSourceHierarchy(Class<?> sourceClass) { in getParamsFromSourceHierarchy() argument 50 while (sourceClass.getSuperclass() != null) { in getParamsFromSourceHierarchy() 51 result.addAll(gatherParamsFromAllMethodsFrom(sourceClass)); in getParamsFromSourceHierarchy() [all …]
|
D | ParamsFromMethodCommon.java | 20 Object[] paramsFromMethod(Class<?> sourceClass) { in paramsFromMethod() argument 24 return invokeMethodWithParams(defaultMethodName(), sourceClass); in paramsFromMethod() 29 for (Object param : invokeMethodWithParams(methodName.trim(), sourceClass)) in paramsFromMethod() 40 boolean containsDefaultParametersProvidingMethod(Class<?> sourceClass) { in containsDefaultParametersProvidingMethod() argument 41 return findMethodInTestClassHierarchy(defaultMethodName(), sourceClass) != null; in containsDefaultParametersProvidingMethod() 49 private Object[] invokeMethodWithParams(String methodName, Class<?> sourceClass) { in invokeMethodWithParams() argument 50 Method providerMethod = findMethodInTestClassHierarchy(methodName, sourceClass); in invokeMethodWithParams() 55 return invokeParamsProvidingMethod(providerMethod, sourceClass); in invokeMethodWithParams() 59 private Object[] invokeParamsProvidingMethod(Method provideMethod, Class<?> sourceClass) { in invokeParamsProvidingMethod() argument 61 Object testObject = sourceClass.newInstance(); in invokeParamsProvidingMethod() [all …]
|
D | ParametersFromExternalClassMethod.java | 17 Class<?> sourceClass = annotation.source(); in getParameters() local 18 return paramsFromMethodCommon.paramsFromMethod(sourceClass); in getParameters()
|
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
D | GenericTypeExtractor.java | 60 private static Type findGenericInterface(Class<?> sourceClass, Class<?> targetBaseInterface) { in findGenericInterface() argument 61 for (int i = 0; i < sourceClass.getInterfaces().length; i++) { in findGenericInterface() 62 Class<?> inter = sourceClass.getInterfaces()[i]; in findGenericInterface() 64 return sourceClass.getGenericInterfaces()[0]; in findGenericInterface()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | ClassUtil.java | 8 public static Class loadClass(Class sourceClass, final String className) in loadClass() argument 12 ClassLoader loader = sourceClass.getClassLoader(); in loadClass()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | ClassUtil.java | 12 public static Class loadClass(Class sourceClass, final String className) in loadClass() argument 16 ClassLoader loader = sourceClass.getClassLoader(); in loadClass()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | ClassUtil.java | 12 public static Class loadClass(Class sourceClass, final String className) in loadClass() argument 16 ClassLoader loader = sourceClass.getClassLoader(); in loadClass()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | DuckTypedPSKKeyManager.java | 53 Class<?> sourceClass = obj.getClass(); in getInstance() local 60 sourceClass.getMethod(targetMethod.getName(), targetMethod.getParameterTypes()); in getInstance()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | DuckTypedPSKKeyManager.java | 52 Class<?> sourceClass = obj.getClass(); in getInstance() local 59 sourceClass.getMethod(targetMethod.getName(), targetMethod.getParameterTypes()); in getInstance()
|
/external/testng/src/main/java/org/testng/internal/ |
D | XmlMethodSelector.java | 172 private boolean assignable(Class sourceClass, Class targetClass) { in assignable() argument 173 return sourceClass.isAssignableFrom(targetClass) || targetClass.isAssignableFrom(sourceClass); in assignable()
|