/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/ |
D | SensorCtsVerifierTestActivity.java | 26 import java.lang.reflect.Method; 74 Iterator<Method> testMethodIt = findTestMethods().iterator(); in executeTests() 76 Method testMethod = testMethodIt.next(); in executeTests() 109 private List<Method> findTestMethods() { in findTestMethods() 110 ArrayList<Method> testMethods = new ArrayList<>(); in findTestMethods() 111 for (Method method : mTestClass.getDeclaredMethods()) { in findTestMethods() 122 private SensorTestDetails executeTest(Method testMethod) throws InterruptedException { in executeTest() 162 private final Method mTestMethod; 164 public TestNode(Method testMethod) { in TestNode()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CurrentApiHelperTest.java | 26 import java.lang.reflect.Method; 36 private Set<Method> mPublicApis; 53 Method publicMethod = mClazz.getMethod("lockNow"); in testGetPublicApisIncludeMethods() 70 Method privateMethod = mClazz.getDeclaredMethod("throwIfParentInstance", String.class); in testGetPublicApisExcludeMethods() 72 Method hiddenMethod = mClazz.getMethod("isDeviceProvisioned"); in testGetPublicApisExcludeMethods() 74 Method systemMethod = mClazz.getMethod("getProfileOwnerNameAsUser", int.class); in testGetPublicApisExcludeMethods()
|
D | ParentProfileTest.java | 27 import java.lang.reflect.Method; 127 List<Method> methods = CurrentApiHelper.getPublicApis(PACKAGE_NAME, CLASS_NAME); in testParentProfileApiDisabled() 132 for (Method method : methods) { in testParentProfileApiDisabled() 166 private void assertValidMethodNames(Collection<String> names, Collection<Method> allMethods) { in assertValidMethodNames() 168 .map(Method::getName) in assertValidMethodNames()
|
/cts/tests/tests/instantapp/src/android/cts/instantapp/resolver/ |
D | ResolverServiceMethodFallbackTest.kt | 44 private typealias Method = InstantAppResolverService.(InstantAppRequestInfo) -> Unit in <lambda>() typealias 50 private val methodList: List<Method>, in <lambda>() 83 private val infoOne: Method = { onGetInstantAppResolveInfo(testArray, testToken, in <lambda>() 85 private val infoTwo: Method = { onGetInstantAppResolveInfo(it.intent, testArray, testToken, in <lambda>() 87 private val infoThree: Method = { onGetInstantAppResolveInfo(it.intent, testArray, testUser, in <lambda>() 89 private val infoFour: Method = { onGetInstantAppResolveInfo(it, testResolutionCallback) } in <lambda>() 91 private val filterOne: Method = { onGetInstantAppIntentFilter(testArray, testToken, in <lambda>() 93 private val filterTwo: Method = { onGetInstantAppIntentFilter(it.intent, testArray, in <lambda>() 95 private val filterThree: Method = { onGetInstantAppIntentFilter(it.intent, testArray, in <lambda>() 97 private val filterFour: Method = { onGetInstantAppIntentFilter(it, testResolutionCallback) } in <lambda>()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | RemoteControllerTest.java | 41 import java.lang.reflect.Method; 158 Map<String, List<Method>> methodMap = new HashMap<String, List<Method>>(); in testOnClientUpdateListenerUnchanged() 159 for (Method method : sListener.getClass().getDeclaredMethods()) { in testOnClientUpdateListenerUnchanged() 161 methodMap.put(method.getName(), new ArrayList<Method>()); in testOnClientUpdateListenerUnchanged() 166 for (Method method : OnClientUpdateListener.class.getDeclaredMethods()) { in testOnClientUpdateListenerUnchanged() 169 List<Method> implementedMethodList = methodMap.get(method.getName()); in testOnClientUpdateListenerUnchanged() 175 private static boolean matchMethod(Method method, List<Method> potentialMatches) { in matchMethod() 176 for (Method potentialMatch : potentialMatches) { in matchMethod()
|
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/ |
D | MainMethodRunner.java | 27 import java.lang.reflect.Method; 39 Method m = getMainMethod(); in computeTestMethods() 61 Method m = getMainMethod(clazz); 104 public Method getMainMethod() { 108 public static Method getMainMethod(Class<?> target) { 110 Method method = target.getMethod("main", String[].class);
|
D | TestNgRunnerBuilder.java | 23 import java.lang.reflect.Method; 57 for (Method m : cls.getDeclaredMethods()) { in isTestNgTestClass()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | SmallStructsTest.java | 23 import java.lang.reflect.Method; 98 Method getInitialValueSetter(String type) throws Exception { in getInitialValueSetter() 161 Method set_bytes = scriptFieldClass.getMethod("set_bytes", in testSmallStructsOfCharArray() 174 Method modify = ScriptC_small_structs.class.getMethod( in testSmallStructsOfCharArray() 178 Method verify = ScriptC_small_structs.class.getMethod( in testSmallStructsOfCharArray() 224 Method fieldASetter = scriptFieldClass.getMethod("set_a", in testSmallStructsOfHeterogeneousTypes() 230 Method fieldBSetter = scriptFieldClass.getMethod("set_b", in testSmallStructsOfHeterogeneousTypes() 236 Method modify = ScriptC_small_structs.class.getMethod( in testSmallStructsOfHeterogeneousTypes() 240 Method verify = ScriptC_small_structs.class.getMethod( in testSmallStructsOfHeterogeneousTypes()
|
D | ThunkerCreateTest.java | 21 import java.lang.reflect.Method; 35 Method create = javaRS.getDeclaredMethod("create", signature); in testCreateReflection()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | InterfaceChecker.java | 18 import java.lang.reflect.Method; 119 List<Method> methods = checkInterfaceMethodCompliance(classDescription, runtimeClass); in checkQueued() 125 … + methods.stream().map(Method::toGenericString).collect(Collectors.joining("\n\t"))); in checkQueued() 140 private List<Method> checkInterfaceMethodCompliance( in checkInterfaceMethodCompliance() 144 .filter(not(Method::isDefault)) in checkInterfaceMethodCompliance() 145 .filter(not(Method::isSynthetic)) in checkInterfaceMethodCompliance() 146 .filter(not(Method::isBridge)) in checkInterfaceMethodCompliance() 153 private boolean findMethod(JDiffClassDescription classDescription, Method method) { in findMethod()
|
D | AnnotationChecker.java | 21 import java.lang.reflect.Method; 38 private final Map<String, Set<Method>> annotatedMethodsMap = new HashMap<>(); 62 Set<Method> methods = ReflectionHelper.getAnnotatedMethods(clazz, annotationSpec); in AnnotationChecker() 81 public boolean skip(Method m); in skip() 100 for (Set<Method> set : annotatedMethodsMap.values()) { in checkDeferred() 101 for (Method m : set) { in checkDeferred() 165 JDiffClassDescription.JDiffMethod methodDescription, Method method) { in checkMethod() 177 Set<Method> annotatedMethods = annotatedMethodsMap.get(runtimeClass.getName()); in checkMethod()
|
D | ReflectionHelper.java | 27 import java.lang.reflect.Method; 246 static Method findMatchingMethod( in findMatchingMethod() 247 Class<?> runtimeClass, JDiffMethod method, Map<Method, String> mismatchReasons) { in findMatchingMethod() argument 256 static Method findMatchingMethodImpl( in findMatchingMethodImpl() 257 Class<?> runtimeClass, JDiffMethod method, Map<Method, String> mismatchReasons) { in findMatchingMethodImpl() argument 265 Method[] reflectedMethods = currentClass.getDeclaredMethods(); in findMatchingMethodImpl() 267 for (Method reflectedMethod : reflectedMethods) { in findMatchingMethodImpl() 292 Method reflectedMethod) { in matches() 298 Map<Method, String> ignoredReasons = new HashMap<>(); in matches() 311 static boolean matchesSignature(JDiffMethod jDiffMethod, Method reflectedMethod, in matchesSignature() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | NetdTest.java | 30 import java.lang.reflect.Method; 56 Method mSMMethod = mSMClass.getDeclaredMethod("getService", String.class); in testThrottleSanitization() 57 … Method mStubMethod = mDeclaredClasses[0].getDeclaredMethod("asInterface", IBinder.class); in testThrottleSanitization() 58 …Method mINMSMethod = mINMSClass.getDeclaredMethod("setInterfaceThrottle", String.class, int.class,… in testThrottleSanitization()
|
D | PutOverflowTest.java | 21 import java.lang.reflect.Method; 36 Method getInstance = keystoreClass.getMethod("getInstance"); in testCrash() 37 Method put = keystoreClass.getMethod("put", in testCrash()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | PutOverflowTest.java | 23 import java.lang.reflect.Method; 34 Method getInstance = keystoreClass.getMethod("getInstance"); in testCrash() 35 Method put = keystoreClass.getMethod("put", in testCrash()
|
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | DeviceOwnerHelper.java | 41 import java.lang.reflect.Method; 101 Method method = findMethod(managerClass, methodName, parameterTypes); in runManagerMethod() 161 private static Method findMethod(Class<?> clazz, String methodName, Class<?>[] parameterTypes) in findMethod() 184 Method method = findMethodWithNullParameterCall(clazz, methodName, parameterTypes); in findMethod() 192 private static Method findMethodWithNullParameterCall(Class<?> clazz, String methodName, in findMethodWithNullParameterCall() 211 List<Method> methods = new ArrayList<>(); in findMethodWithNullParameterCall() 212 for (Method method : clazz.getDeclaredMethods()) { in findMethodWithNullParameterCall() 231 private static Method findBestMethod(List<Method> methods, Class<?>[] parameterTypes) { in findBestMethod() 235 Method bestMethod = null; in findBestMethod() 237 _methods: for (Method method : methods) { in findBestMethod()
|
/cts/tests/app/src/android/app/cts/ |
D | KeyguardManagerTest.java | 26 import java.lang.reflect.Method; 50 Method set = KeyguardManager.class.getMethod( in testPrivateNotificationsAllowed() 52 Method get = KeyguardManager.class.getMethod("getPrivateNotificationsAllowed"); in testPrivateNotificationsAllowed()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | UserDeviceInfo.java | 24 import java.lang.reflect.Method; 38 Method method = UserManager.class.getMethod("getMaxSupportedUsers"); in getMaxSupportedUsers()
|
/cts/tests/tests/libcoreapievolution/src/android/apievolution/cts/ |
D | ApiEvolutionTest.java | 30 import java.lang.reflect.Method; 167 Method declaredMethod = clazz.getDeclaredMethod(methodName, parameterTypes); in assertSyntheticMethodOverloadExists() 171 Method original = null; in assertSyntheticMethodOverloadExists() 172 Method synthetic = null; in assertSyntheticMethodOverloadExists() 173 for (Method method : clazz.getDeclaredMethods()) { in assertSyntheticMethodOverloadExists() 229 private static boolean methodMatches(String methodName, Class[] parameterTypes, Method method) { in methodMatches()
|
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/ |
D | SystemInfoParser.java | 22 import java.lang.reflect.Method; 35 Method m = mType.getMethod("parse", String.class); in apply()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | TvUtil.java | 22 import java.lang.reflect.Method; 44 Method getStringMethod = in getHdmiDeviceType()
|
/cts/hostsidetests/compilation/app_using_other_app/src/android/compilation/cts/appusingotherapp/ |
D | UsingOtherAppTest.java | 30 import java.lang.reflect.Method; 48 Method m = c.getMethod("publicMethod"); in useOtherApp()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BusinessLogicDeviceExecutor.java | 23 import java.lang.reflect.Method; 79 List<Method> nameMatches = getMethodsWithName(cls, methodName); in getResolvedMethod() 80 for (Method m : nameMatches) { in getResolvedMethod()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | TestHelper.java | 42 import java.lang.reflect.Method; 67 private static Method getTestMethod() { in getTestMethod() 71 final Method method = clazz.getDeclaredMethod(stackTraceElement.getMethodName()); in getTestMethod() 87 final Method testMethod = getTestMethod(); in TestHelper()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | TestCaseReport.java | 28 import com.android.tools.smali.dexlib2.iface.Method; 235 for (Method method : classDef.getMethods()) { in parseApkTestCase() 243 TestSuite.Package.Class.Method.Builder methodBuilder = in parseApkTestCase() 244 TestSuite.Package.Class.Method.newBuilder(); in parseApkTestCase() 258 for (Method method : classDef.getMethods()) { in parseApkTestCase() 261 TestSuite.Package.Class.Method.Builder methodBuilder = in parseApkTestCase() 262 TestSuite.Package.Class.Method.newBuilder(); in parseApkTestCase() 275 for (Method method : classDef.getMethods()) { in parseApkTestCase() 278 TestSuite.Package.Class.Method.Builder methodBuilder = in parseApkTestCase() 279 TestSuite.Package.Class.Method.newBuilder(); in parseApkTestCase() [all …]
|