/frameworks/base/core/java/com/android/internal/util/ |
Predicates.java | 23 * {@code Predicate} objects. 31 * Returns a Predicate that evaluates to true iff each of its components 35 public static <T> Predicate<T> and(Predicate<? super T>... components) { 40 * Returns a Predicate that evaluates to true iff each of its components 44 * the behavior of this Predicate. If components is empty, the returned 45 * Predicate will always evaluate to true. 47 public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> components) { 52 * Returns a Predicate that evaluates to true iff any one of its component 115 private final Predicate<? super T> predicate; field in class:Predicates.NotPredicate [all...] |
Predicate.java | 20 * A Predicate can determine a true or false value for any input of its 22 * {@code Predicate<String>}, and return true for any String that matches its 26 * Implementors of Predicate which may cause side effects upon evaluation are 29 public interface Predicate<T> {
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestPredicates.java | 27 import com.android.internal.util.Predicate; 35 public static final Predicate<TestMethod> SELECT_INSTRUMENTATION = 37 public static final Predicate<TestMethod> REJECT_INSTRUMENTATION = 40 public static final Predicate<TestMethod> SELECT_SMOKE = new HasAnnotation(Smoke.class); 41 public static final Predicate<TestMethod> SELECT_SMALL = new HasAnnotation(SmallTest.class); 42 public static final Predicate<TestMethod> SELECT_MEDIUM = new HasAnnotation(MediumTest.class); 43 public static final Predicate<TestMethod> SELECT_LARGE = new HasAnnotation(LargeTest.class); 44 public static final Predicate<TestMethod> REJECT_SUPPRESSED = 46 public static final Predicate<TestMethod> REJECT_PERFORMANCE =
|
AssignableFrom.java | 19 import com.android.internal.util.Predicate; 21 class AssignableFrom implements Predicate<TestMethod> {
|
TestSuiteBuilder.java | 23 import com.android.internal.util.Predicate; 49 private final Set<Predicate<TestMethod>> predicates = new HashSet<Predicate<TestMethod>>(); 124 public TestSuiteBuilder addRequirements(List<Predicate<TestMethod>> predicates) { 160 * call {@link #addRequirements(com.android.internal.util.Predicate[])} to make it clear which 220 public final TestSuiteBuilder addRequirements(Predicate<TestMethod>... predicates) { 221 ArrayList<Predicate<TestMethod>> list = new ArrayList<Predicate<TestMethod>>(); 253 for (Predicate<TestMethod> predicate : predicates) [all...] |
/external/guava/src/com/google/common/base/ |
Predicates.java | 33 * Contains static factory methods for creating {@code Predicate} instances. 49 * Returns a predicate that always evaluates to {@code true}. 53 public static <T> Predicate<T> alwaysTrue() { 54 return (Predicate<T>) AlwaysTruePredicate.INSTANCE; 58 * Returns a predicate that always evaluates to {@code false}. 62 public static <T> Predicate<T> alwaysFalse() { 63 return (Predicate<T>) AlwaysFalsePredicate.INSTANCE; 67 * Returns a predicate that evaluates to {@code true} if the object reference 71 public static <T> Predicate<T> isNull() { 72 return (Predicate<T>) IsNullPredicate.INSTANCE 251 private final Predicate<T> predicate; field in class:Predicates.NotPredicate [all...] |
Predicate.java | 25 * {@code RegexPredicate} might implement {@code Predicate<String>}, and return 35 public interface Predicate<T> { 43 * Applies this predicate to the given object. 45 * @param input the input that the predicate should act on 46 * @return the value of this predicate when applied to the input {@code t} 51 * Indicates whether some other object is equal to this {@code Predicate}. 53 * also a {@code Predicate} and, for every input object {@code input}, it
|
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/ |
HasAnnotation.java | 20 import com.android.internal.util.Predicate; 26 * A predicate that checks to see if a {@link TestMethod} has a specific annotation, either on the 31 public class HasAnnotation implements Predicate<TestMethod> { 33 private Predicate<TestMethod> hasMethodOrClassAnnotation;
|
HasClassAnnotation.java | 22 import com.android.internal.util.Predicate; 25 * A predicate that checks to see if a {@link android.test.suitebuilder.TestMethod} has a specific annotation on the 30 class HasClassAnnotation implements Predicate<TestMethod> {
|
HasMethodAnnotation.java | 19 import com.android.internal.util.Predicate; 25 * A predicate that checks to see if a the method represented by {@link TestMethod} has a certain 30 class HasMethodAnnotation implements Predicate<TestMethod> {
|
/external/webkit/WebCore/xml/ |
XPathPath.h | 39 class Predicate; 44 Filter(Expression*, const Vector<Predicate*>& = Vector<Predicate*>()); 53 Vector<Predicate*> m_predicates;
|
XPathStep.h | 40 class Predicate; 65 Vector<Predicate*>& mergedPredicates() { return m_mergedPredicates; } 66 const Vector<Predicate*>& mergedPredicates() const { return m_mergedPredicates; } 74 Vector<Predicate*> m_mergedPredicates; 77 Step(Axis, const NodeTest& nodeTest, const Vector<Predicate*>& predicates = Vector<Predicate*>()); 97 Vector<Predicate*> m_predicates;
|
XPathPredicate.h | 108 class Predicate : public Noncopyable { 110 Predicate(Expression*); 111 ~Predicate();
|
XPathParser.h | 45 class Predicate; 80 void registerPredicateVector(Vector<Predicate*>*); 81 void deletePredicateVector(Vector<Predicate*>*); 120 HashSet<Vector<Predicate*>*> m_predicateVectors;
|
XPathGrammar.y | 67 Vector<Predicate*>* predList; 98 %type <expr> Predicate 294 Predicate 296 $$ = new Vector<Predicate*>; 297 $$->append(new Predicate($1)); 302 PredicateList Predicate 304 $$->append(new Predicate($2)); 309 Predicate:
|
XPathPredicate.cpp | 256 Predicate::Predicate(Expression* expr) 261 Predicate::~Predicate() 266 bool Predicate::evaluate() const
|
XPathStep.cpp | 44 Step::Step(Axis axis, const NodeTest& nodeTest, const Vector<Predicate*>& predicates) 60 // E.g., there is no need to build a set of all "foo" nodes to evaluate "foo[@bar]", we can check the predicate while enumerating. 61 // This optimization can be applied to predicates that are not context node list sensitive, or to first predicate that is only context position sensitive, e.g. foo[position() mod 2 = 0]. 62 Vector<Predicate*> remainingPredicates; 64 Predicate* predicate = m_predicates[i]; local 65 if ((!predicate->isContextPositionSensitive() || m_nodeTest.mergedPredicates().isEmpty()) && !predicate->isContextSizeSensitive() && remainingPredicates.isEmpty()) { 66 m_nodeTest.mergedPredicates().append(predicate); 68 remainingPredicates.append(predicate); 100 Predicate* predicate = m_predicates[i]; local 106 Predicate* predicate = m_nodeTest.mergedPredicates()[i]; local 123 Predicate* predicate = m_predicates[i]; local 224 Predicate* predicate = mergedPredicates[i]; local [all...] |
/external/webkit/JavaScriptCore/wtf/ |
MessageQueue.h | 62 template<typename Predicate> 63 PassOwnPtr<DataType> waitForMessageFilteredWithTimeout(MessageQueueWaitResult&, Predicate&, double absoluteTime); 65 template<typename Predicate> 66 void removeIf(Predicate&); 128 template<typename Predicate> 129 inline PassOwnPtr<DataType> MessageQueue<DataType>::waitForMessageFilteredWithTimeout(MessageQueueWaitResult& result, Predicate& predicate, double absoluteTime) 135 while (!m_killed && !timedOut && (found = m_queue.findIf(predicate)) == m_queue.end()) 172 template<typename Predicate> 173 inline void MessageQueue<DataType>::removeIf(Predicate& predicate [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
PredicatesTest.java | 26 private static final Predicate<Object> TRUE = new Predicate<Object>() { 32 private static final Predicate<Object> FALSE = new Predicate<Object>() {
|
/external/guava/src/com/google/common/collect/ |
Collections2.java | 22 import com.google.common.base.Predicate; 81 * Returns the elements of {@code unfiltered} that satisfy a predicate. The 89 * predicate is provided. When methods such as {@code removeAll()} and 99 * it may be faster to copy {@code Iterables.filter(unfiltered, predicate)} 103 Collection<E> unfiltered, Predicate<? super E> predicate) { 107 return ((FilteredCollection<E>) unfiltered).createCombined(predicate); 111 checkNotNull(unfiltered), checkNotNull(predicate)); 128 final Predicate<? super E> predicate; field in class:Collections2.FilteredCollection [all...] |
Iterables.java | 24 import com.google.common.base.Predicate; 137 * predicate. 140 * @param predicate a predicate that determines whether an element should 149 Iterable<T> removeFrom, Predicate<? super T> predicate) { 152 (List<T>) removeFrom, checkNotNull(predicate)); 154 return Iterators.removeIf(removeFrom.iterator(), predicate); 158 List<T> list, Predicate<? super T> predicate) { [all...] |
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/ |
uctralgo.h | 40 template <typename Container, typename OutputIterator, typename Predicate> 41 inline OutputIterator copy_if (Container& ctr, OutputIterator result, Predicate pred) 89 template <typename Container, typename Predicate> 90 inline typename Container::const_iterator find_if (const Container& ctr, Predicate pred) 94 template <typename Container, typename Predicate> 95 inline typename Container::iterator find_if (Container& ctr, Predicate pred) 112 /// predicate pred. More precisely, the first version of count_if returns the 116 template <typename Container, typename Predicate> 117 inline size_t count_if (const Container& ctr, Predicate pred) 182 template <typename Container, typename Predicate, typename T [all...] |
upredalgo.h | 25 template <typename InputIterator, typename OutputIterator, typename Predicate> 26 inline OutputIterator copy_if (InputIterator first, InputIterator last, OutputIterator result, Predicate pred) 42 template <typename InputIterator, typename Predicate> 43 inline InputIterator find_if (InputIterator first, InputIterator last, Predicate pred) 89 /// predicate pred. More precisely, the first version of count_if returns the 94 template <typename InputIterator, typename Predicate> 95 inline size_t count_if (InputIterator first, InputIterator last, Predicate pred) 110 template <typename ForwardIterator, typename Predicate, typename T> 111 inline void replace_if (ForwardIterator first, ForwardIterator last, Predicate pred, const T& new_value) 127 template <typename InputIterator, typename OutputIterator, typename Predicate, typename T [all...] |
/cts/tests/core/runner/src/android/test/ |
InstrumentationCtsTestRunner.java | 19 import com.android.internal.util.Predicate; 219 List<Predicate<TestMethod>> getBuilderRequirements() { 220 List<Predicate<TestMethod>> builderRequirements = 222 Predicate<TestMethod> brokenTestPredicate = 226 Predicate<TestMethod> sideEffectPredicate =
|
/frameworks/base/test-runner/src/android/test/ |
InstrumentationCoreTestRunner.java | 24 import com.android.internal.util.Predicate; 199 List<Predicate<TestMethod>> getBuilderRequirements() { 200 List<Predicate<TestMethod>> builderRequirements = 202 Predicate<TestMethod> brokenTestPredicate = 206 Predicate<TestMethod> sideEffectPredicate =
|