/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 54 Class testClass = loadTestClass(testClassName); in setTestClassName() local 56 if (shouldRunSingleTestMethod(testMethodName, testClass)) { in setTestClassName() 57 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() 60 mTestClassName = testClass.getSimpleName(); in setTestClassName() 62 setTest(getTest(testClass), testClass); in setTestClassName() local 70 private void setTest(Test test, Class<? extends Test> testClass) { in setTest() argument 72 if (TestSuite.class.isAssignableFrom(testClass)) { in setTest() 75 mTestClassName = testClass.getSimpleName(); in setTest() 99 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() argument 101 Constructor c = testClass.getConstructor(); in buildSingleTestMethod() [all …]
|
D | TestCaseUtil.java | 85 static Test invokeSuiteMethodIfPossible(Class testClass, in invokeSuiteMethodIfPossible() argument 88 Method suiteMethod = testClass.getMethod( in invokeSuiteMethodIfPossible() 97 && !seen.contains(testClass)) { in invokeSuiteMethodIfPossible() 98 seen.add(testClass); in invokeSuiteMethodIfPossible()
|
D | InstrumentationTestRunner.java | 433 for (String testClass : testClasses) { in parseTestClasses() 434 parseTestClass(testClass, testSuiteBuilder); in parseTestClasses() 768 String testClass = test.getClass().getName(); in startTest() local 771 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass); in startTest() 775 if (testClass != null && !testClass.equals(mTestClass)) { in startTest() 777 String.format("\n%s:", testClass)); in startTest() 778 mTestClass = testClass; in startTest()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | OptionalClassRunner.java | 48 public OptionalClassRunner(Class<?> testClass) throws InitializationError { in OptionalClassRunner() argument 49 OptionalClass annotation = testClass.getAnnotation(OptionalClass.class); in OptionalClassRunner() 52 "No " + OptionalClass.class.getName() + " annotation found on " + testClass); in OptionalClassRunner() 60 delegate = new JUnit4(testClass); in OptionalClassRunner() 64 delegate = new ClassNotFoundRunner(testClass, className); in OptionalClassRunner() 94 ClassNotFoundRunner(Class<?> testClass, String className) in ClassNotFoundRunner() argument 96 super(testClass); in ClassNotFoundRunner() 97 this.mChildren = Collections.singletonList(new ChildRunner(testClass, className)); in ClassNotFoundRunner() 121 ChildRunner(Class<?> testClass, String className) { in ChildRunner() argument 122 this.mTestClass = testClass; in ChildRunner()
|
/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/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | PerformanceRunner.java | 40 public PerformanceRunner(Class<?> testClass) throws InitializationError { in PerformanceRunner() argument 41 super(testClass); in PerformanceRunner() 43 Configuration classConfig = testClass.getAnnotation(Configuration.class); in PerformanceRunner()
|
/frameworks/base/test-runner/src/junit/textui/ |
D | TestRunner.java | 61 static public void run(Class<? extends TestCase> testClass) { in run() argument 62 run(new TestSuite(testClass)); in run() 187 Class<? extends TestCase> testClass= loadSuiteClass(testCase).asSubclass(TestCase.class); in runSingleMethod() local 188 Test test= TestSuite.createTest(testClass, method); in runSingleMethod()
|
/frameworks/base/test-base/src/android/test/ |
D | InstrumentationTestSuite.java | 65 public void addTestSuite(Class testClass) { in addTestSuite() argument 66 addTest(new InstrumentationTestSuite(testClass, mInstrumentation)); in addTestSuite()
|
/frameworks/rs/tests/java_api/RsMinimalTest/src/com/android/rs/minimaltest/ |
D | RsMinimalTest.java | 55 for (Class<? extends UnitTest> testClass : testClasses) { in getParams() 56 UnitTest test = testClass.getDeclaredConstructor(Context.class).newInstance(ctx); in getParams()
|
/frameworks/rs/tests/java_api/RSTest_CompatLib19/src/com/android/rs/testcompat/ |
D | RSSupportLibTests.java | 56 for (Class<? extends UnitTest> testClass : testClasses) { in getParams() 57 UnitTest test = testClass.getDeclaredConstructor(Context.class).newInstance(ctx); in getParams()
|
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/testcompat/ |
D | RSSupportLibTests.java | 56 for (Class<? extends UnitTest> testClass : testClasses) { in getParams() 57 UnitTest test = testClass.getDeclaredConstructor(Context.class).newInstance(ctx); in getParams()
|
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/ |
D | RSTest.java | 57 for (Class<? extends UnitTest> testClass : testClasses) { in getParams() 58 UnitTest test = testClass.getDeclaredConstructor(Context.class).newInstance(ctx); in getParams()
|
/frameworks/rs/tests/java_api/RSTestForward/src/com/android/rs/testforward/ |
D | RSForwardCompatibilityTests.java | 57 for (Class<? extends UnitTest> testClass : testClasses) { in getParams() 58 UnitTest test = testClass.getDeclaredConstructor(Context.class).newInstance(ctx); in getParams()
|
/frameworks/base/cmds/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/junit/runner/ |
D | BaseTestRunner.java | 99 Class<?> testClass= null; in getTest() local 101 testClass= loadSuiteClass(suiteClassName); in getTest() 114 suiteMethod= testClass.getMethod(SUITE_METHODNAME, new Class[0]); in getTest() 118 return new TestSuite(testClass); in getTest()
|
/frameworks/rs/tests/java_api/RSTestBackward/src/com/android/rs/testbackward/ |
D | RSBackwardCompatibilityTests.java | 66 for (Class<? extends UnitTest> testClass : testClasses) { in getParams() 67 UnitTest test = testClass.getDeclaredConstructor(Context.class).newInstance(ctx); in getParams()
|
/frameworks/rs/tests/java_api/RSTestBackward19/src/com/android/rs/testbackward19/ |
D | RSBackward19CompatibilityTests.java | 80 for (Class<? extends UnitTest> testClass : testClasses) { in getParams() 81 UnitTest test = testClass.getDeclaredConstructor(Context.class).newInstance(ctx); in getParams()
|
/frameworks/rs/tests/java_api/RSUnitTests/gui/com/android/rs/unittest/ |
D | RSListActivity.java | 34 for (Class<? extends UnitTest> testClass : testClasses) { in onCreate() 35 UnitTest test = testClass.getDeclaredConstructor(Context.class).newInstance(this); in onCreate()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | ExtensionRegistryFactoryTest.java | 198 private void runTestMethod(ClassLoader classLoader, Class<? extends RegistryTests> testClass) in runTestMethod() argument 201 Class<?> test = classLoader.loadClass(testClass.getName()); in runTestMethod()
|
/frameworks/base/test-base/src/junit/framework/ |
D | TestSuite.java | 208 public void addTestSuite(Class<? extends TestCase> testClass) { 209 addTest(new TestSuite(testClass));
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 140 for (Class<?> testClass : select(allClasses, in selectTestClasses() 142 testClasses.add((Class<? extends TestCase>) testClass); in selectTestClasses()
|