Home
last modified time | relevance | path

Searched refs:testMethod (Results 1 – 25 of 28) sorted by relevance

12

/cts/hostsidetests/appsearch/src/android/appsearch/cts/
DAppSearchHostTestBase.java47 protected void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId) in runDeviceTestAsUserInPkgA() argument
49 assertWithMessage(testMethod + " failed").that( in runDeviceTestAsUserInPkgA()
50 runDeviceTests(getDevice(), TARGET_PKG_A, TEST_CLASS_A, testMethod, userId, in runDeviceTestAsUserInPkgA() local
54 protected void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId, in runDeviceTestAsUserInPkgA() argument
58 .setTestMethodName(testMethod) in runDeviceTestAsUserInPkgA()
64 assertWithMessage(testMethod + " failed").that( in runDeviceTestAsUserInPkgA()
68 protected void runStorageAugmenterDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId) in runStorageAugmenterDeviceTestAsUserInPkgA() argument
70 assertWithMessage(testMethod + " failed").that( in runStorageAugmenterDeviceTestAsUserInPkgA()
72 testMethod, userId, DEFAULT_INSTRUMENTATION_TIMEOUT_MS)).isTrue(); in runStorageAugmenterDeviceTestAsUserInPkgA() local
75 protected void runContactsIndexerDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId, in runContactsIndexerDeviceTestAsUserInPkgA() argument
[all …]
DAppSearchInstantAppTest.java52 private void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId) in runDeviceTestAsUserInPkgA() argument
54 assertWithMessage(testMethod + " failed").that( in runDeviceTestAsUserInPkgA()
55 runDeviceTests(getDevice(), TARGET_PKG_A, TEST_CLASS_A, testMethod, userId, in runDeviceTestAsUserInPkgA() local
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DTestInfo.java28 public final String testMethod; field in TestInfo
30 public TestInfo(String testPackage, String testClass, String testMethod) { in TestInfo() argument
33 this.testMethod = testMethod; in TestInfo()
42 return testClass + "#" + testMethod; in getTestName()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsVerifierTestActivity.java76 Method testMethod = testMethodIt.next(); in executeTests() local
78 getTestLogger().logTestStart(testMethod.getName()); in executeTests()
79 SensorTestDetails testDetails = executeTest(testMethod); in executeTests()
93 testDetails = executeTest(testMethod); in executeTests()
122 private SensorTestDetails executeTest(Method testMethod) throws InterruptedException { in executeTest() argument
123 String testMethodName = testMethod.getName(); in executeTest()
125 mCurrentTestNode = new TestNode(testMethod); in executeTest()
129 String testSummary = (String) testMethod.invoke(this); in executeTest()
164 public TestNode(Method testMethod) { in TestNode() argument
165 mTestMethod = testMethod; in TestNode()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCddCoverage.java42 public void addCoverage(String cddRequirementId, TestMethod testMethod) { in addCoverage() argument
47 requirements.get(cddRequirementId).addTestMethod(testMethod); in addCoverage()
82 public void addTestMethod(TestMethod testMethod) { in addTestMethod() argument
83 mtestMethods.add(testMethod); in addTestMethod()
96 TestMethod(String testModule, String testClass, String testMethod) { in TestMethod() argument
99 this.mTestMethod = testMethod; in TestMethod()
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DBaseBlobStoreHostTest.java63 protected void runDeviceTest(String testPkg, String testClass, String testMethod) in runDeviceTest() argument
65 runDeviceTest(testPkg, testClass, testMethod, null); in runDeviceTest()
68 protected void runDeviceTestAsUser(String testPkg, String testClass, String testMethod, in runDeviceTestAsUser() argument
70 runDeviceTestAsUser(testPkg, testClass, testMethod, null, userId); in runDeviceTestAsUser()
73 protected void runDeviceTest(String testPkg, String testClass, String testMethod, in runDeviceTest() argument
75 runDeviceTestAsUser(testPkg, testClass, testMethod, instrumentationArgs, -1); in runDeviceTest()
78 protected void runDeviceTestAsUser(String testPkg, String testClass, String testMethod, in runDeviceTestAsUser() argument
82 .setTestMethodName(testMethod) in runDeviceTestAsUser()
92 assertWithMessage(testMethod + " failed").that( in runDeviceTestAsUser()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DOverlayHostTest.java147 String testMethod)
162 runDeviceTests(TEST_APP_PACKAGE, TEST_APP_CLASS, testMethod, false /* instant */);
269 String testMethod = "testSameSignatureNoOverlayableSucceeds";
271 OVERLAY_ALL_PACKAGE, testMethod);
280 String testMethod = "testOverlayPolicyAll";
282 testMethod);
287 String testMethod = "testOverlayCodeNotLoaded";
289 testMethod);
320 String testMethod = "testFrameworkDoesNotDefineOverlayable";
321 runDeviceTests(TEST_APP_PACKAGE, TEST_APP_CLASS, testMethod, false /* instant */);
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/powermanager/
DPowerManagerStatsTests.java100 final String testMethod = "testGetThermalHeadroom"; in testThermalHeadroomCalledIsPushed() local
102 DEVICE_TEST_PKG + DEVICE_TEST_CLASS + "#" + testMethod); in testThermalHeadroomCalledIsPushed()
106 DEVICE_TEST_CLASS, testMethod); in testThermalHeadroomCalledIsPushed()
129 final String testMethod = "testGetCurrentThermalStatus"; in testThermalStatusCalledIsPushed() local
131 DEVICE_TEST_PKG + DEVICE_TEST_CLASS + "#" + testMethod); in testThermalStatusCalledIsPushed()
135 DEVICE_TEST_CLASS, testMethod); in testThermalStatusCalledIsPushed()
155 final String testMethod = "testGetThermalHeadroomThresholds"; in testThermalHeadroomThresholdsCalledIsPushed() local
157 DEVICE_TEST_PKG + DEVICE_TEST_CLASS + "#" + testMethod); in testThermalHeadroomThresholdsCalledIsPushed()
161 DEVICE_TEST_CLASS, testMethod); in testThermalHeadroomThresholdsCalledIsPushed()
/cts/tools/cts-api-coverage/src/com/android/cts/apicommon/
DApiClass.java119 List<String> parameterTypes, String testMethod) { in markConstructorCoveredTest() argument
122 mSuperClass.markConstructorCoveredTest(parameterTypes, testMethod); in markConstructorCoveredTest()
125 apiConstructor.ifPresent(constructor -> constructor.setCoveredTest(testMethod)); in markConstructorCoveredTest()
131 String name, List<String> parameterTypes, String testMethod) { in markMethodCoveredTest() argument
134 mSuperClass.markMethodCoveredTest(name, parameterTypes, testMethod); in markMethodCoveredTest()
140 mInterface.markMethodCoveredTest(name, parameterTypes, testMethod); in markMethodCoveredTest()
145 apiMethod.ifPresent(method -> method.setCoveredTest(testMethod)); in markMethodCoveredTest()
DApiConstructor.java76 public void setCoveredTest(String testMethod) { in setCoveredTest() argument
77 mCoveredTests.put(testMethod, true); in setCoveredTest()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DHeadlessSystemUserDeviceOwnerTest.java61 private void executeDeviceTest(String testMethod) throws Exception { in executeDeviceTest() argument
62 executeDeviceTestMethod(".HeadlessSystemUserTest", testMethod); in executeDeviceTest()
DManagedProfilePasswordTest.java215 final String testMethod = in verifyUnifiedPassword() local
218 testMethod, mProfileUserId); in verifyUnifiedPassword()
DDeviceOwnerTest.java1130 private void executeCreateAndManageUserTest(String testMethod) throws Exception { in executeCreateAndManageUserTest() argument
1136 executeDeviceOwnerTestMethod(".CreateAndManageUserTest", testMethod); in executeCreateAndManageUserTest()
1139 private void executeListForegroundAffiliatedUsersTest(String testMethod) throws Exception { in executeListForegroundAffiliatedUsersTest() argument
1145 executeDeviceOwnerTestMethod(".ListForegroundAffiliatedUsersTest", testMethod); in executeListForegroundAffiliatedUsersTest()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/performancehintmanager/
DPerformanceHintManagerStatsTests.java120 final String testMethod = "testCreateHintSession"; in testCreateHintSessionStatsdApp() local
122 DEVICE_TEST_PKG + DEVICE_TEST_CLASS + "#" + testMethod); in testCreateHintSessionStatsdApp()
126 DEVICE_TEST_CLASS, testMethod); in testCreateHintSessionStatsdApp()
170 final String testMethod = "testCreateHintSession"; in testCreateHintSessionStatsdGame() local
172 DEVICE_TEST_PKG + DEVICE_TEST_CLASS + "#" + testMethod); in testCreateHintSessionStatsdGame()
176 DEVICE_TEST_CLASS, testMethod); in testCreateHintSessionStatsdGame()
239 final String testMethod = "testAdpfTidCleanup"; in testAdpfHintSessionTidCleanupIsPushed() local
241 DEVICE_TEST_PKG + DEVICE_TEST_CLASS + "#" + testMethod); in testAdpfHintSessionTidCleanupIsPushed()
245 DEVICE_TEST_CLASS, testMethod); in testAdpfHintSessionTidCleanupIsPushed()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/projection/
DMediaProjectionAtomsTests.java111 final String testMethod = "testCallbackOnStop"; in testMediaProjectionStateChanged_stoppedCapture() local
113 TestDescription.fromString(TEST_PKG + testClass + "#" + testMethod); in testMediaProjectionStateChanged_stoppedCapture()
116 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, testClass, testMethod); in testMediaProjectionStateChanged_stoppedCapture()
156 final String testMethod = "testCallbackOnStop"; in testMediaProjectionTargetChanged_stoppedCapture() local
158 TestDescription.fromString(TEST_PKG + testClass + "#" + testMethod); in testMediaProjectionTargetChanged_stoppedCapture()
161 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, testClass, testMethod); in testMediaProjectionTargetChanged_stoppedCapture()
190 final String testMethod = "testMediaProjectionPermissionDialogCancel"; in testMediaProjectionStateChanged_setupCancelled() local
192 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), testClass, testMethod); in testMediaProjectionStateChanged_setupCancelled() local
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/
DAppCloningBaseHostTest.java187 protected void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId, in runDeviceTestAsUserInPkgA() argument
190 runDeviceTestAsUser(APP_A_PACKAGE, TEST_CLASS_A, testMethod, userId, args); in runDeviceTestAsUserInPkgA()
194 @Nonnull String testMethod, int userId, @Nonnull Map<String, String> args) in runDeviceTestAsUser() argument
198 .setTestMethodName(testMethod) in runDeviceTestAsUser()
205 assertWithMessage(testMethod + " failed").that( in runDeviceTestAsUser()
/cts/hostsidetests/angle/src/android/angle/cts/
DCtsAngleDeveloperOptionHostTest.java167 final String testMethod = getTestMethod(getDevice()); in testUseDefaultDriver() local
175 testMethod); in testUseDefaultDriver()
221 final String testMethod = getTestMethod(getDevice()); in testSettingsLengthMismatch() local
231 testMethod); in testSettingsLengthMismatch()
234 ANGLE_DRIVER_TEST_SEC_PKG + "." + ANGLE_DRIVER_TEST_CLASS, testMethod); in testSettingsLengthMismatch()
244 final String testMethod = getTestMethod(getDevice()); in testUseInvalidDriverSetting() local
251 testMethod); in testUseInvalidDriverSetting()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DEndToEndImeTestBase.java126 final Method testMethod; in verifyAppModeConsistency() local
128 testMethod = thisClass.getMethod(testMethodName); in verifyAppModeConsistency()
133 final boolean hasAppModeFull = testMethod.getAnnotation(AppModeFull.class) != null; in verifyAppModeConsistency()
134 final boolean hasAppModeInstant = testMethod.getAnnotation(AppModeInstant.class) != null; in verifyAppModeConsistency()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DTestHelper.java87 final Method testMethod = getTestMethod(); in TestHelper() local
88 final Class<?> testClass = testMethod.getDeclaringClass(); in TestHelper()
91 testMethod.getName()); in TestHelper()
/cts/tests/tests/content/HelloWorldApp/src_res_hardening/com/example/helloworld/
DTestActivity.java58 final Method testMethod = TestUtils.class.getMethod(testName, Resources.class, in runTest() local
60 testMethod.invoke(null, getResources(), in runTest()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DTarJan.java52 public TarJan(MethodProfile testMethod, Set<String> resolvedMethods) { in TarJan() argument
54 tarjan(testMethod); in TarJan()
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DAppCloningMediaProviderHostTest.java184 protected void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId, in runDeviceTestAsUserInPkgA() argument
190 .setTestMethodName(testMethod) in runDeviceTestAsUserInPkgA()
196 assertWithMessage(testMethod + " failed").that( in runDeviceTestAsUserInPkgA()
/cts/hostsidetests/usb/src/com/android/cts/usb/
DTestUsbTest.java95 private void runTestOnDevice(String testMethod) throws DeviceNotAvailableException { in runTestOnDevice() argument
99 testRunner.setMethodName(TEST_CLASS_NAME, testMethod); in runTestOnDevice()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appexit/
DAppExitHostTest.java126 private void performLogStatsdTest(String testMethod, String targetPackage, int expectedSize, in performLogStatsdTest() argument
135 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, TEST_CLASS, testMethod); in performLogStatsdTest() local
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DShellCommandFromAppTest.java54 .setTestMethodName(testInfo.testMethod)); in runDeviceTestMethodWithoutHiddenApiCheck()

12