/frameworks/testing/androidtestlib/src/com/android/test/runner/junit3/ |
D | AndroidJUnit3Builder.java | 43 public Runner runnerForClass(Class<?> testClass) throws Throwable { in runnerForClass() argument 44 if (mSkipExecution && isJUnit3TestCase(testClass)) { in runnerForClass() 45 return new NonExecutingJUnit3ClassRunner(testClass); in runnerForClass() 46 } else if (isAndroidTestCase(testClass)) { in runnerForClass() 47 return new AndroidJUnit3ClassRunner(testClass, mBundle, mInstr); in runnerForClass() 48 } else if (isInstrumentationTestCase(testClass)) { in runnerForClass() 49 return new AndroidJUnit3ClassRunner(testClass, mBundle, mInstr); in runnerForClass() 50 } else if (isBundleTest(testClass)) { in runnerForClass() 51 return new AndroidJUnit3ClassRunner(testClass, mBundle, mInstr); in runnerForClass() 56 boolean isJUnit3TestCase(Class<?> testClass) { in isJUnit3TestCase() argument [all …]
|
/frameworks/base/test-runner/src/junit/runner/ |
D | LoadingTestCollector.java | 25 Class testClass= classFromFile(classFileName); in isTestClass() local 26 return (testClass != null) && isTestClass(testClass); in isTestClass() 43 boolean isTestClass(Class testClass) { in isTestClass() argument 44 if (hasSuiteMethod(testClass)) in isTestClass() 46 if (Test.class.isAssignableFrom(testClass) && in isTestClass() 47 Modifier.isPublic(testClass.getModifiers()) && in isTestClass() 48 hasPublicConstructor(testClass)) in isTestClass() 53 boolean hasSuiteMethod(Class testClass) { in hasSuiteMethod() argument 55 testClass.getMethod(BaseTestRunner.SUITE_METHODNAME, new Class[0]); in hasSuiteMethod() 62 boolean hasPublicConstructor(Class testClass) { in hasPublicConstructor() argument [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 50 Class testClass = loadTestClass(testClassName); in setTestClassName() local 52 if (shouldRunSingleTestMethod(testMethodName, testClass)) { in setTestClassName() 53 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() 55 mTestClassName = testClass.getSimpleName(); in setTestClassName() 57 setTest(getTest(testClass), testClass); in setTestClassName() local 65 private void setTest(Test test, Class<? extends Test> testClass) { in setTest() argument 67 if (TestSuite.class.isAssignableFrom(testClass)) { in setTest() 70 mTestClassName = testClass.getSimpleName(); in setTest() 94 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() argument 96 Constructor c = testClass.getConstructor(); in buildSingleTestMethod() [all …]
|
D | TestCaseUtil.java | 95 private static Test invokeSuiteMethodIfPossible(Class testClass, in invokeSuiteMethodIfPossible() argument 98 Method suiteMethod = testClass.getMethod( in invokeSuiteMethodIfPossible() 107 && !seen.contains(testClass)) { in invokeSuiteMethodIfPossible() 108 seen.add(testClass); in invokeSuiteMethodIfPossible() 155 public static TestSuite createTestSuite(Class<? extends Test> testClass) in createTestSuite() argument 158 Test test = invokeSuiteMethodIfPossible(testClass, in createTestSuite() 161 return new TestSuite(testClass); in createTestSuite()
|
D | InstrumentationTestRunner.java | 423 for (String testClass : testClasses) { in parseTestClasses() 424 parseTestClass(testClass, testSuiteBuilder); in parseTestClasses() 761 String testClass = test.getClass().getName(); in startTest() local 764 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass); in startTest() 768 if (testClass != null && !testClass.equals(mTestClass)) { in startTest() 770 String.format("\n%s:", testClass)); in startTest() 771 mTestClass = testClass; in startTest()
|
D | InstrumentationCoreTestRunner.java | 149 private void printMemory(Class<? extends Test> testClass) { in getAndroidTestRunner() 159 Log.d(TAG, "Now executing : " + testClass.getName()); in getAndroidTestRunner()
|
/frameworks/testing/androidtestlib/src/com/android/test/runner/junit4/ |
D | AndroidJUnit4Builder.java | 46 public Runner runnerForClass(Class<?> testClass) throws Throwable { in runnerForClass() argument 48 return new NonExecutingJUnit4ClassRunner(testClass); in runnerForClass() 50 if (hasInjectedFields(testClass)) { in runnerForClass() 51 return new AndroidJUnit4ClassRunner(testClass, mInstrumentation, mBundle); in runnerForClass() 56 private boolean hasInjectedFields(Class<?> testClass) { in hasInjectedFields() argument 59 Class<?> superClass = testClass; in hasInjectedFields()
|
/frameworks/testing/androidtestlib/src/com/android/test/runner/listener/ |
D | InstrumentationResultPrinter.java | 116 String testClass = description.getClassName(); in testStarted() local 119 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass); in testStarted() 123 if (testClass != null && !testClass.equals(mTestClass)) { in testStarted() 125 String.format("\n%s:", testClass)); in testStarted() 126 mTestClass = testClass; in testStarted()
|
/frameworks/testing/androidtestlib/src/com/android/test/runner/ |
D | AndroidRunnerBuilder.java | 44 public Runner runnerForClass(Class<?> testClass) throws Throwable { in runnerForClass() argument 45 Runner runner = mAndroidJUnit3Builder.safeRunnerForClass(testClass); in runnerForClass() 49 runner = mAndroidJUnit4Builder.safeRunnerForClass(testClass); in runnerForClass() 53 return super.runnerForClass(testClass); in runnerForClass()
|
D | TestRequestBuilder.java | 125 final Class<?> testClass = description.getTestClass(); in shouldRun() local 128 if (testClass == null) { in shouldRun() 132 if (testClass.isAnnotationPresent(mAnnotationClass) || in shouldRun()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 47 Class testClass = null; in runTest() local 53 testClass = getClass(); in runTest() 54 method = testClass.getMethod(fName, (Class[]) null); in runTest() 90 testClass.isAnnotationPresent(BandwidthTest.class)) { in runTest()
|
/frameworks/base/core/java/android/test/ |
D | InstrumentationTestSuite.java | 59 public void addTestSuite(Class testClass) { in addTestSuite() argument 60 addTest(new InstrumentationTestSuite(testClass, mInstrumentation)); in addTestSuite()
|
/frameworks/testing/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | UiAutomatorTestRunner.java | 278 String testClass = test.getClass().getName(); in startTest() local 281 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass); in startTest() 285 if (testClass != null && !testClass.equals(mTestClass)) { in startTest() 287 String.format("\n%s:", testClass)); in startTest() 288 mTestClass = testClass; in startTest()
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 162 for (Class<?> testClass : select(allClasses, in selectTestClasses() 164 testClasses.add((Class<? extends TestCase>) testClass); in selectTestClasses()
|