HomeSort by relevance Sort by last modified time
    Searched defs:predicate (Results 1 - 8 of 8) sorted by null

  /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...]
  /external/astl/tests/
test_algorithm.cpp 123 bool predicate(const Left2&, const Right2&) {return true;} function in namespace:android
133 EXPECT_TRUE(std::equal(&left2, &left2, &right2, predicate));
  /external/webkit/WebCore/xml/
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/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...]
  /external/guava/src/com/google/common/base/
Functions.java 217 * predicate for all inputs.
219 public static <T> Function<T, Boolean> forPredicate(Predicate<T> predicate) {
220 return new PredicateFunction<T>(predicate);
226 private final Predicate<T> predicate; field in class:Functions.PredicateFunction
228 private PredicateFunction(Predicate<T> predicate) {
229 this.predicate = checkNotNull(predicate);
    [all...]
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...]
  /external/kernel-headers/original/asm-arm/
ptrace.h 155 #define predicate(x) ((x) & 0xf0000000) macro
  /libcore/luni/src/main/java/org/apache/xpath/compiler/
Compiler.java 656 * Compile a location step predicate expression.
660 * @return the contained predicate expression.
664 public Expression predicate(int opPos) throws TransformerException method in class:Compiler
941 * @param opPos The position of the first predicate the m_opMap array.
968 * @param opPos The position of the first predicate the m_opMap array.
992 * @param opPos The position of the first predicate the m_opMap array.
1004 predicates[i] = predicate(opPos);
    [all...]

Completed in 120 milliseconds