Home
last modified time | relevance | path

Searched refs:methodName (Results 1 – 25 of 35) sorted by relevance

12

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBusinessLogicTestCase.java58 String methodName = mTestCase.getMethodName(); in executeBusinessLogic() local
60 + "remote configuration.", methodName), mCanReadBusinessLogic); in executeBusinessLogic()
61 if (methodName.contains(PARAM_START)) { in executeBusinessLogic()
63 methodName = methodName.substring(0, methodName.lastIndexOf(PARAM_START)); in executeBusinessLogic()
65 String testName = String.format("%s#%s", this.getClass().getName(), methodName); in executeBusinessLogic()
DBusinessLogicDeviceExecutor.java59 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) in getResolvedMethod() argument
61 List<Method> nameMatches = getMethodsWithName(cls, methodName); in getResolvedMethod()
97 "BusinessLogic: Failed to invoke action method %s with args: %s", methodName, in getResolvedMethod()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DParentProfileTest.java103 String methodName = method.getName(); in testParentProfileApiDisabled() local
104 if (SUPPORTED_APIS.contains(methodName)) { in testParentProfileApiDisabled()
123 methodName + " throws exception other than SecurityException.", e); in testParentProfileApiDisabled()
128 failedMethods.add(methodName); in testParentProfileApiDisabled()
129 Log.e(LOG_TAG, methodName + " failed to throw SecurityException"); in testParentProfileApiDisabled()
DPasswordMinimumRestrictionsTest.java185 private void invokeSetMethod(String methodName, DevicePolicyManager dpm, in invokeSetMethod() argument
187 final Method setMethod = DevicePolicyManager.class.getMethod(setMethodName(methodName), in invokeSetMethod()
195 private int invokeGetMethod(String methodName, DevicePolicyManager dpm, in invokeGetMethod() argument
198 DevicePolicyManager.class.getMethod(getMethodName(methodName), ComponentName.class); in invokeGetMethod()
202 private String setMethodName(String methodName) { in setMethodName() argument
203 return "set" + methodName; in setMethodName()
206 private String getMethodName(String methodName) { in getMethodName() argument
207 return "get" + methodName; in getMethodName()
/cts/tests/core/runner/src/com/android/cts/core/runner/support/
DSingleTestNgTestExecutor.java40 public static Result execute(Class<?> klass, String methodName) { in execute() argument
45 if (methodName == null) { in execute()
59 TestNG testng = createTestNG(klass.getName(), methodName, listener); in execute()
65 Log.w("TestNgExec", "execute class " + klass.getName() + ", method " + methodName + in execute()
DTestNgRunner.java105 String methodName = child.getMethodName(); in run() local
117 SingleTestNgTestExecutor.Result result = SingleTestNgTestExecutor.execute(klass, methodName); in run()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java161 private void runTestAsPrimaryUser(String className, String methodName) throws Exception { in runTestAsPrimaryUser() argument
162 runTestAsUser(className, methodName, getDevice().getPrimaryUserId()); in runTestAsPrimaryUser()
165 private void runTestAsSecondaryUser(String className, String methodName) throws Exception { in runTestAsSecondaryUser() argument
166 runTestAsUser(className, methodName, mSecondaryUserId); in runTestAsSecondaryUser()
169 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser() argument
171 className, methodName, userId); in runTestAsUser()
178 testRunner.setMethodName(NUMBER_BLOCKING_TESTS_PKG + "." + className, methodName); in runTestAsUser()
/cts/tests/core/runner/src/com/android/cts/core/runner/
DExpectationBasedFilter.java102 String methodName = testDescription.getMethodName(); in shouldRun() local
103 String testName = className + "#" + methodName; in shouldRun()
133 String methodName = child.getMethodName(); in getTestDescription() local
134 if ("initializationError".equals(methodName)) { in getTestDescription()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java87 private TestResult(String packageName, String componentName, String methodName, in TestResult() argument
92 mMethodName = methodName; in TestResult()
137 private String methodName; field in TestResult.Builder
154 methodName = _methodName; in setMethodName()
174 return new TestResult(packageName, componentName, methodName, in build()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DDeviceAtomTestCase.java67 String methodName, int atom, int key, int stateOn, int stateOff, in doDeviceMethodOnOff() argument
72 List<EventMetricData> data = doDeviceMethod(methodName, conf); in doDeviceMethodOnOff()
89 protected List<EventMetricData> doDeviceMethod(String methodName, StatsdConfig.Builder cfg) in doDeviceMethod() argument
95 LogUtil.CLog.d("\nPerforming device-side test of " + methodName + " for uid " + appUid); in doDeviceMethod()
96 runDeviceTests(DEVICE_SIDE_TEST_PACKAGE, ".AtomTests", methodName); in doDeviceMethod()
/cts/hostsidetests/backup/src/android/cts/backup/
DAllowBackupHostSideTest.java126 private void checkAllowBackupDeviceTest(String methodName) in checkAllowBackupDeviceTest() argument
129 methodName); in checkAllowBackupDeviceTest()
DKeyValueBackupRestoreHostSideTest.java157 private void checkDeviceTest(String methodName) in checkDeviceTest() argument
160 methodName); in checkDeviceTest()
DFullBackupOnlyHostSideTest.java171 private void checkFullBackupOnlyDeviceTest(String methodName) in checkFullBackupOnlyDeviceTest() argument
174 methodName); in checkFullBackupOnlyDeviceTest()
DRestoreAnyVersionHostSideTest.java175 private void checkRestoreAnyVersionDeviceTest(String methodName) in checkRestoreAnyVersionDeviceTest() argument
178 methodName); in checkRestoreAnyVersionDeviceTest()
DSuccessNotificationHostSideTest.java231 private void checkDeviceTest(String methodName) throws DeviceNotAvailableException { in checkDeviceTest() argument
233 methodName); in checkDeviceTest()
/cts/tools/utils/
Drerun.py80 [className, methodName] = failure.split('#')
84 command += " --class " + className + " --method " + methodName
/cts/tests/tests/telecom2/src/android/telecom/cts/
DDefaultDialerOperationsNoPermissionsTest.java145 private void verifyForReadPhoneStateOrDefaultDialer(Runnable runnable, String methodName) in verifyForReadPhoneStateOrDefaultDialer() argument
149 fail("TelecomManager." + methodName + " should throw SecurityException if no " in verifyForReadPhoneStateOrDefaultDialer()
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/
DDalvikTestRunner.java145 String methodName = String.format("%s#%s", className, parts[0]); in shouldCollect() local
157 if (excludes.contains(methodName)) { in shouldCollect()
162 || includes.contains(methodName) in shouldCollect()
391 String methodName = String.format("%s#%s", className, parts[0]);
403 if (mExcludes.contains(methodName)) {
408 || mIncludes.contains(methodName)
/cts/hostsidetests/net/src/com/android/cts/net/
DHostsideNetworkTestCase.java128 protected void runDeviceTests(String packageName, String testClassName, String methodName) in runDeviceTests() argument
134 if (methodName != null) { in runDeviceTests()
135 testRunner.setMethodName(testClassName, methodName); in runDeviceTests()
/cts/suite/cts/utils/
Dget_csv_report.py66 methodName = test.getAttribute("name")
68 if methodName == "testAndroidTestCaseSetupProperly":
70 caseName = str(className + "#" + methodName)
/cts/tests/signature/src/android/signature/cts/
DCurrentApi.java94 String methodName = parser.getAttributeValue(null, ATTRIBUTE_NAME); in loadMethodInfo() local
97 return new JDiffMethod(methodName, modifier, returnType); in loadMethodInfo()
/cts/tests/tests/telephony/src/android/telephony/embms/cts/
DMbmsStreamingTestBase.java147 protected List<List<Object>> getMiddlewareCalls(String methodName) throws RemoteException { in getMiddlewareCalls() argument
149 .filter((elem) -> elem.get(0).equals(methodName)) in getMiddlewareCalls()
DMbmsDownloadTestBase.java183 protected List<Bundle> getMiddlewareCalls(String methodName) throws RemoteException { in getMiddlewareCalls() argument
185 .filter((elem) -> elem.getString(CtsDownloadService.METHOD_NAME).equals(methodName)) in getMiddlewareCalls()
/cts/hostsidetests/incident/src/com/android/server/cts/
DSettingsIncidentTest.java136 private static <T> T invoke(GeneratedMessage instance, String methodName, Object... args) in invoke() argument
142 instance.getClass().getDeclaredMethod(methodName, inputParamTypes), in invoke()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCtsApiCoverage.java434 String methodName = method.getName(); in addCddApkCoverage() local
436 cddCoverage, moduleName, className, methodName, method.getAnnotations()); in addCddApkCoverage()
443 String methodName, Set<? extends Annotation> annotations) { in handleAnnotations() argument
452 moduleName, dexToJavaName(className), methodName); in handleAnnotations()

12