Home
last modified time | relevance | path

Searched refs:TestMethod (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestSuiteBuilder.java48 private final Set<Predicate<TestMethod>> predicates = new HashSet<Predicate<TestMethod>>();
124 public TestSuiteBuilder addRequirements(List<Predicate<TestMethod>> predicates) { in addRequirements()
183 for (TestMethod test : testGrouping.getTests()) { in build()
190 if (satisfiesAllPredicates(new TestMethod(testCase))) { in build()
221 public final TestSuiteBuilder addRequirements(Predicate<TestMethod>... predicates) { in addRequirements()
222 ArrayList<Predicate<TestMethod>> list = new ArrayList<Predicate<TestMethod>>(); in addRequirements()
248 private boolean satisfiesAllPredicates(TestMethod test) { in satisfiesAllPredicates()
249 for (Predicate<TestMethod> predicate : predicates) { in satisfiesAllPredicates()
257 private void addTest(TestMethod testMethod) throws Exception { in addTest()
DTestPredicates.java30 static final Predicate<TestMethod> REJECT_INSTRUMENTATION =
33 static final Predicate<TestMethod> SELECT_SMOKE = hasAnnotation(Smoke.class);
35 static final Predicate<TestMethod> REJECT_SUPPRESSED = not(hasAnnotation(Suppress.class));
41 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation()
45 private static class HasAnnotation implements Predicate<TestMethod> {
54 public boolean apply(TestMethod testMethod) { in apply()
DTestMethod.java34 public class TestMethod { class
40 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod() method in TestMethod
44 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() method in TestMethod
50 public TestMethod(TestCase testCase) { in TestMethod() method in TestMethod
123 TestMethod that = (TestMethod) o; in equals()
DAssignableFrom.java21 class AssignableFrom implements Predicate<TestMethod> {
29 public boolean apply(TestMethod testMethod) { in apply()
DTestGrouping.java68 public List<TestMethod> getTests() { in getTests()
69 List<TestMethod> testMethods = new ArrayList<TestMethod>(); in getTests()
72 testMethods.add(new TestMethod(testMethod, testCase)); in getTests()
/frameworks/base/test-runner/src/android/test/
DInstrumentationTestRunner.java28 import android.test.suitebuilder.TestMethod;
198 private static final Predicate<TestMethod> SELECT_SMALL = hasAnnotation(SmallTest.class);
200 private static final Predicate<TestMethod> SELECT_MEDIUM = hasAnnotation(MediumTest.class);
202 private static final Predicate<TestMethod> SELECT_LARGE = hasAnnotation(LargeTest.class);
322 Predicate<TestMethod> testSizePredicate = null; in onCreate()
323 Predicate<TestMethod> testAnnotationPredicate = null; in onCreate()
324 Predicate<TestMethod> testNotAnnotationPredicate = null; in onCreate()
420 List<Predicate<TestMethod>> getBuilderRequirements() { in getBuilderRequirements()
421 return new ArrayList<Predicate<TestMethod>>(); in getBuilderRequirements()
467 private Predicate<TestMethod> getSizePredicateFromArg(String sizeArg) { in getSizePredicateFromArg()
[all …]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
DAssignableFromTest.java52 private TestMethod testMethodFor(Class<? extends TestCase> aClass) in testMethodFor()
55 return new TestMethod(method, aClass); in testMethodFor()
DTestPredicatesTest.java47 TestMethod testMethod = new TestMethod(method, aClass); in hasExampleAnnotation()
DTestSuiteBuilderTest.java172 private Predicate<TestMethod> testsWhoseNameContains(final String string) { in testsWhoseNameContains()
173 return new Predicate<TestMethod>() { in testsWhoseNameContains()
174 public boolean apply(TestMethod testMethod) { in testsWhoseNameContains()
DTestGroupingTest.java42 List<TestMethod> tests = mGrouping.getTests(); in testGetTests_noPublicConstructor()
/frameworks/base/test-runner/api/
Dcurrent.txt269 @Deprecated public class TestMethod {
270 …ctor @Deprecated public TestMethod(java.lang.reflect.Method, Class<? extends junit.framework.TestC…
271 ctor @Deprecated public TestMethod(String, Class<? extends junit.framework.TestCase>);
272 ctor @Deprecated public TestMethod(junit.framework.TestCase);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt29417 public class TestMethod {
29418 …ctor public TestMethod(java.lang.reflect.Method, java.lang.Class<? extends junit.framework.TestCas…
29419 ctor public TestMethod(java.lang.String, java.lang.Class<? extends junit.framework.TestCase>);
29420 ctor public TestMethod(junit.framework.TestCase);
29431 …rements(java.util.List<com.android.internal.util.Predicate<android.test.suitebuilder.TestMethod>>);
29432 …lder addRequirements(com.android.internal.util.Predicate<android.test.suitebuilder.TestMethod>...);