Home | History | Annotate | Download | only in suitebuilder

Lines Matching defs:predicate

22 import com.android.internal.util.Predicate;
30 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));
38 * Return a predicate that checks to see if a {@link TestMethod} has an instance of the supplied
41 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) {
45 private static class HasAnnotation implements Predicate<TestMethod> {
61 * Returns a Predicate that evaluates to true iff the given Predicate
64 public static <T> Predicate<T> not(Predicate<? super T> predicate) {
65 return new NotPredicate<T>(predicate);
68 private static class NotPredicate<T> implements Predicate<T> {
69 private final Predicate<? super T> predicate;
71 private NotPredicate(Predicate<? super T> predicate) {
72 this.predicate = predicate;
76 return !predicate.apply(t);