/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 | 432 for (String testClass : testClasses) { in parseTestClasses() 433 parseTestClass(testClass, testSuiteBuilder); in parseTestClasses() 767 String testClass = test.getClass().getName(); in startTest() local 770 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass); in startTest() 774 if (testClass != null && !testClass.equals(mTestClass)) { in startTest() 776 String.format("\n%s:", testClass)); in startTest() 777 mTestClass = testClass; in startTest()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/ |
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/apct-tests/perftests/windowmanager/src/com/android/server/wm/test/filters/ |
D | FrameworksTestsFilter.java | 34 final Class<?> testClass = description.getTestClass(); in shouldRun() local 37 mShouldRun = (mShouldRun && testClass == null) || testClass == RelayoutPerfTest.class; in shouldRun()
|
/frameworks/layoutlib/bridge/bridge_client/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/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/test-junit/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/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/ |
D | RavenwoodRuleImpl.java | 213 final var testClass = description.getTestClass(); in validateTestRunner() local 214 final var runWith = testClass.getAnnotation(RunWith.class); in validateTestRunner() 222 var message = "Test " + testClass.getCanonicalName() + " uses deprecated" in validateTestRunner() 235 final var testClass = description.getTestClass(); in validateTestAnnotations() local 240 for (Method m : collectMethods(testClass)) { in validateTestAnnotations() 268 assertFalse("Problem(s) detected in class " + testClass.getCanonicalName() + ":" in validateTestAnnotations()
|
/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/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/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-junit/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/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/base/packages/SystemUI/tests/utils/src/com/android/systemui/flags/ |
D | SceneContainerRule.kt | 86 this?.testClass?.getAnnotation(T::class.java) != null || in <lambda>()
|
/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()
|
/frameworks/base/test-junit/src/junit/framework/ |
D | TestSuite.java | 208 public void addTestSuite(Class<? extends TestCase> testClass) { 209 addTest(new TestSuite(testClass));
|
/frameworks/base/tools/lint/global/checks/src/test/java/com/google/android/lint/aidl/ |
D | SimpleManualPermissionEnforcementDetectorTest.kt | 34 fun testClass() { in getDetector() method
|
/frameworks/base/tests/FlickerTests/Rotation/src/com/android/server/wm/flicker/rotation/ |
D | SeamlessAppRotationTest.kt | 254 .forClass(originalScenario.testClass) in <lambda>()
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
D | ExtendedMockitoRuleTest.java | 631 private static Description newTestMethod(Class<?> testClass, Annotation... annotations) { in newTestMethod() argument 632 return Description.createTestDescription(testClass, TEST_METHOD_BEING_EXECUTED, in newTestMethod()
|