Home
last modified time | relevance | path

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

/frameworks/base/test-runner/src/android/test/suitebuilder/
DAssignableFrom.java29 public boolean apply(TestMethod testMethod) { in apply() argument
30 return root.isAssignableFrom(testMethod.getEnclosingClass()); in apply()
DTestSuiteBuilder.java258 private void addTest(TestMethod testMethod) throws Exception { in addTest() argument
259 addSuiteIfNecessary(testMethod.getEnclosingClassname()); in addTest()
260 suiteForCurrentClass.addTest(testMethod.createTest()); in addTest()
DTestGrouping.java73 for (Method testMethod : getTestMethods(testCase)) { in getTests()
74 testMethods.add(new TestMethod(testMethod, testCase)); in getTests()
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/
DHasMethodAnnotation.java38 public boolean apply(TestMethod testMethod) { in apply() argument
39 return testMethod.getAnnotation(annotationClass) != null; in apply()
DHasClassAnnotation.java38 public boolean apply(TestMethod testMethod) { in apply() argument
39 return testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
DHasAnnotation.java41 public boolean apply(TestMethod testMethod) { in apply() argument
42 return hasMethodOrClassAnnotation.apply(testMethod); in apply()
/frameworks/testing/support/src/android/support/test/internal/runner/
DTestLoader.java164 for (Method testMethod : loadedClass.getMethods()) { in isTestClass()
165 if (testMethod.isAnnotationPresent(org.junit.Test.class)) { in isTestClass()
190 for (Method testMethod : loadedClass.getMethods()) { in hasJUnit3TestMethod()
191 if (isPublicTestMethod(testMethod)) { in hasJUnit3TestMethod()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/
DHasClassAnnotationTest.java41 TestMethod testMethod = new TestMethod(method, aClass); in classHasAnnotation() local
42 return new HasClassAnnotation(expectedClassification).apply(testMethod); in classHasAnnotation()
DHasMethodAnnotationTest.java43 TestMethod testMethod = new TestMethod(method, aClass); in methodHasAnnotation() local
44 return new HasMethodAnnotation(expectedClassification).apply(testMethod); in methodHasAnnotation()
DHasAnnotationTest.java47 TestMethod testMethod = new TestMethod(method, aClass); in hasExampleAnnotation() local
48 return new HasAnnotation(Example.class).apply(testMethod); in hasExampleAnnotation()
/frameworks/base/test-runner/src/android/test/
DInstrumentationTestRunner.java777 Method testMethod = null; in startTest() local
779 testMethod = test.getClass().getMethod(testName); in startTest()
781 if (testMethod.isAnnotationPresent(RepetitiveTest.class)) { in startTest()
782 int numIterations = testMethod.getAnnotation( in startTest()
809 if (testMethod != null && testMethod.isAnnotationPresent(TimedTest.class)) { in startTest()
811 mIncludeDetailedStats = testMethod.getAnnotation( in startTest()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java75 final Method testMethod = method; in runTest() local
80 runMethod(testMethod, tolerance, repetitive); in runTest()
/frameworks/testing/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestRunner.java293 Method testMethod = null; in startTest() local
295 testMethod = test.getClass().getMethod(testName); in startTest()
297 if (testMethod.isAnnotationPresent(RepetitiveTest.class)) { in startTest()
298 int numIterations = testMethod.getAnnotation(RepetitiveTest.class) in startTest()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaRecorderStateUnitTestTemplate.java55 public void runTestOnMethod(MediaRecorderMethodUnderTest testMethod) { in runTestOnMethod() argument
56 mMethodUnderTest = testMethod; in runTestOnMethod()
DMediaPlayerStateUnitTestTemplate.java79 public void runTestOnMethod(MediaPlayerMethodUnderTest testMethod) { in runTestOnMethod() argument
80 mMethodUnderTest = testMethod; in runTestOnMethod()
/frameworks/base/core/java/android/test/
DInstrumentationTestCase.java184 final Method testMethod = method; in runTest() local
189 runMethod(testMethod, tolerance, repetitive); in runTest()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
DTestSuiteBuilderTest.java161 public boolean apply(TestMethod testMethod) { in testsWhoseNameContains()
162 return testMethod.getName().contains(string); in testsWhoseNameContains()