/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> {
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Predicates.java | 32 * Static utility methods pertaining to {@code Predicate} instances. 48 * Returns a predicate that always evaluates to {@code true}. 51 public static <T> Predicate<T> alwaysTrue() { 56 * Returns a predicate that always evaluates to {@code false}. 59 public static <T> Predicate<T> alwaysFalse() { 64 * Returns a predicate that evaluates to {@code true} if the object reference 68 public static <T> Predicate<T> isNull() { 73 * Returns a predicate that evaluates to {@code true} if the object reference 77 public static <T> Predicate<T> notNull() { 82 * Returns a predicate that evaluates to {@code true} if the given predicat 238 final Predicate<T> predicate; field in class:Predicates.NotPredicate [all...] |
/external/guava/guava-tests/test/com/google/common/base/ |
PredicatesTest.java | 46 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue(); 47 private static final Predicate<Integer> FALSE = Predicates.alwaysFalse(); 48 private static final Predicate<Integer> NEVER_REACHED = 49 new Predicate<Integer>() { 52 fail("This predicate should never have been evaluated"); 57 /** Instantiable predicate with reasonable hashCode() and equals() methods. */ 58 static class IsOdd implements Predicate<Integer>, Serializable { 76 * Generates a new Predicate per call. 78 * <p>Creating a new Predicate each time helps catch cases where code is 128 * Tests for Predicates.not(predicate) 303 Predicate<Object> predicate = Predicates.and(array); local 312 Predicate<Object> predicate = Predicates.and(list); local 327 Predicate<Object> predicate = Predicates.and(iterable); local 473 Predicate<Object> predicate = Predicates.or(array); local 482 Predicate<Object> predicate = Predicates.or(list); local 497 Predicate<Object> predicate = Predicates.or(iterable); local 643 Predicate<Class<?>> predicate = local 930 assertEvalsLike(isOdd(), predicate); local [all...] |
/external/guava/guava/src/com/google/common/base/ |
Predicates.java | 35 * Static utility methods pertaining to {@code Predicate} instances. 51 * Returns a predicate that always evaluates to {@code true}. 54 public static <T> Predicate<T> alwaysTrue() { 59 * Returns a predicate that always evaluates to {@code false}. 62 public static <T> Predicate<T> alwaysFalse() { 67 * Returns a predicate that evaluates to {@code true} if the object reference 71 public static <T> Predicate<T> isNull() { 76 * Returns a predicate that evaluates to {@code true} if the object reference 80 public static <T> Predicate<T> notNull() { 85 * Returns a predicate that evaluates to {@code true} if the given predicat 301 final Predicate<T> predicate; field in class:Predicates.NotPredicate [all...] |
Predicate.java | 30 public interface Predicate<T> { 32 * Returns the result of applying this predicate to {@code input}. This method is <i>generally 38 * Objects.equal}{@code (a, b)} implies that {@code predicate.apply(a) == 39 * predicate.apply(b))}. 42 * @throws NullPointerException if {@code input} is null and this predicate does not accept null 48 * Indicates whether another object is equal to this predicate. 52 * {@link Predicate} that it considers <i>interchangeable</i> with this one. "Interchangeable"
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRFailedPredicateException.m | 32 @synthesize predicate; 35 + (ANTLRFailedPredicateException *) newException:(NSString *)theRuleName predicate:(NSString *)thePredicate stream:(id<ANTLRIntStream>)theStream 37 return [[ANTLRFailedPredicateException alloc] initWithRuleName:theRuleName predicate:thePredicate stream:theStream]; 40 - (ANTLRFailedPredicateException *) initWithRuleName:(NSString *)theRuleName predicate:(NSString *)thePredicate stream:(id<ANTLRIntStream>)theStream 62 [desc appendFormat:@" rule: %@ predicate failed: %@", ruleName, predicate]; 69 return predicate; 74 if (thePredicate != predicate) { 76 if ( predicate ) [predicate release] [all...] |
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestPredicates.java | 26 import com.android.internal.util.Predicate; 34 public static final Predicate<TestMethod> SELECT_INSTRUMENTATION = 36 public static final Predicate<TestMethod> REJECT_INSTRUMENTATION = 39 public static final Predicate<TestMethod> SELECT_SMOKE = new HasAnnotation(Smoke.class); 40 public static final Predicate<TestMethod> SELECT_SMALL = new HasAnnotation(SmallTest.class); 41 public static final Predicate<TestMethod> SELECT_MEDIUM = new HasAnnotation(MediumTest.class); 42 public static final Predicate<TestMethod> SELECT_LARGE = new HasAnnotation(LargeTest.class); 43 public static final Predicate<TestMethod> REJECT_SUPPRESSED =
|
AssignableFrom.java | 19 import com.android.internal.util.Predicate; 21 class AssignableFrom implements Predicate<TestMethod> {
|
/external/guava/guava/src/com/google/common/collect/ |
Collections2.java | 25 import com.google.common.base.Predicate; 49 * Returns the elements of {@code unfiltered} that satisfy a predicate. The 55 * doesn't satisfy the predicate, the collection's {@code add()} and {@code 67 * it may be faster to copy {@code Iterables.filter(unfiltered, predicate)} 70 * <p><b>Warning:</b> {@code predicate} must be <i>consistent with equals</i>, 71 * as documented at {@link Predicate#apply}. Do not provide a predicate such 79 Collection<E> unfiltered, Predicate<? super E> predicate) { 83 return ((FilteredCollection<E>) unfiltered).createCombined(predicate); 104 final Predicate<? super E> predicate; field in class:Collections2.FilteredCollection [all...] |
/external/chromium/testing/gtest/test/ |
gtest_pred_impl_unittest.cc | 39 // This is intended as a regression test for the Google Test predicate 73 // Sample functions/functors for testing unary predicate assertions. 75 // A unary predicate function. 91 // A unary predicate functor. 99 // A unary predicate-formatter function. 112 // A unary predicate-formatter functor. 132 // Verifies that each of the predicate's arguments was evaluated 135 "The predicate assertion didn't evaluate argument 2 " 140 FAIL() << "The predicate assertion unexpactedly aborted the test."; 142 FAIL() << "The failed predicate assertion didn't abort the test [all...] |
/external/gtest/test/ |
gtest_pred_impl_unittest.cc | 39 // This is intended as a regression test for the Google Test predicate 73 // Sample functions/functors for testing unary predicate assertions. 75 // A unary predicate function. 91 // A unary predicate functor. 99 // A unary predicate-formatter function. 112 // A unary predicate-formatter functor. 132 // Verifies that each of the predicate's arguments was evaluated 135 "The predicate assertion didn't evaluate argument 2 " 140 FAIL() << "The predicate assertion unexpactedly aborted the test."; 142 FAIL() << "The failed predicate assertion didn't abort the test [all...] |
/external/protobuf/gtest/test/ |
gtest_pred_impl_unittest.cc | 39 // This is intended as a regression test for the Google Test predicate 73 // Sample functions/functors for testing unary predicate assertions. 75 // A unary predicate function. 91 // A unary predicate functor. 99 // A unary predicate-formatter function. 113 // A unary predicate-formatter functor. 133 // Verifies that each of the predicate's arguments was evaluated 136 "The predicate assertion didn't evaluate argument 2 " 141 FAIL() << "The predicate assertion unexpactedly aborted the test."; 143 FAIL() << "The failed predicate assertion didn't abort the test [all...] |
/external/llvm/include/llvm/ADT/ |
DeltaAlgorithm.h | 18 /// for minimizing arbitrary sets using a predicate function. 21 /// guaranteed to satisfy the predicate, assuming that the input set did. For 23 /// removing any single element would falsify the predicate. 25 /// For best results the predicate function *should* (but need not) satisfy 27 /// (1) The predicate should return false on an empty set and true on the full 29 /// (2) If the predicate returns true for a set of changes, it should return 32 /// It is not an error to provide a predicate that does not satisfy these 35 /// predicate. 64 /// removed from \arg Changes while still satisfying the predicate. 67 /// predicate [all...] |
DAGDeltaAlgorithm.h | 18 /// directed acyclic graphs using a predicate function. 21 /// guaranteed to satisfy the predicate, assuming that the input set did. For 24 /// elements would falsify the predicate. 27 /// likely to hold across the predicate function. That is, for a particular 28 /// changeset S and predicate P: 36 /// for more information on the properties which the predicate function itself 54 /// predicate and the input \arg Dependencies. 70 /// ExecuteOneTest - Execute a single test predicate on the change set \arg S.
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
PPCPredicates.h | 1 //===-- PPCPredicates.h - PPC Branch Predicate Information ------*- C++ -*-===// 19 /// Predicate - These are "(BI << 5) | BO" for various predicates. 20 enum Predicate { 32 /// Invert the specified predicate. != -> ==, < -> >=. 33 Predicate InvertPredicate(Predicate Opcode);
|
/external/mesa3d/src/glsl/ |
ir_expression_flattening.cpp | 28 * assignments of the leaves to temporaries, according to a predicate. 44 ir_expression_flattening_visitor(bool (*predicate)(ir_instruction *ir)) 46 this->predicate = predicate; 55 bool (*predicate)(ir_instruction *ir); member in class:ir_expression_flattening_visitor 60 bool (*predicate)(ir_instruction *ir)) 62 ir_expression_flattening_visitor v(predicate); 78 if (!ir || !this->predicate(ir))
|
/external/webkit/Source/JavaScriptCore/wtf/ |
NonCopyingSort.h | 34 template<typename RandomAccessIterator, typename Predicate> 35 inline void siftDown(RandomAccessIterator array, ptrdiff_t start, ptrdiff_t end, Predicate compareLess) 52 template<typename RandomAccessIterator, typename Predicate> 53 inline void heapify(RandomAccessIterator array, ptrdiff_t count, Predicate compareLess) 63 template<typename RandomAccessIterator, typename Predicate> 64 void heapSort(RandomAccessIterator start, RandomAccessIterator end, Predicate compareLess) 77 template<typename RandomAccessIterator, typename Predicate> 78 inline void nonCopyingSort(RandomAccessIterator start, RandomAccessIterator end, Predicate compareLess)
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/parallel/ |
algobase.h | 61 typename Predicate> 64 Predicate pred, __gnu_parallel::sequential_tag) 69 typename Predicate, typename IteratorTag1, typename IteratorTag2> 72 InputIterator2 begin2, Predicate pred, IteratorTag1, 78 typename Predicate> 81 RandomAccessIterator2 begin2, Predicate pred, 116 typename Predicate> 119 Predicate pred) 139 typename Predicate> 142 Predicate pred, __gnu_parallel::sequential_tag [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
FailedPredicateException.js | 1 /** A semantic predicate failed during validation. Validation of predicates 3 * Disambiguating predicate evaluation occurs when we hoist a predicate into 9 * @param {String} predicateText the predicate that failed.
|
/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;
|
/external/webkit/Source/WebCore/xml/ |
XPathStep.h | 40 class Predicate; 67 Vector<Predicate*>& mergedPredicates() { return m_mergedPredicates; } 68 const Vector<Predicate*>& mergedPredicates() const { return m_mergedPredicates; } 76 Vector<Predicate*> m_mergedPredicates; 79 Step(Axis, const NodeTest& nodeTest, const Vector<Predicate*>& predicates = Vector<Predicate*>()); 99 Vector<Predicate*> m_predicates;
|
/external/guava/guava-tests/test/com/google/common/collect/ |
MultimapsFilterEntriesAsMapTest.java | 20 import com.google.common.base.Predicate; 34 private static final Predicate<Map.Entry<String, Integer>> PREDICATE 35 = new Predicate<Map.Entry<String, Integer>>() { 50 return Multimaps.filterEntries(unfiltered, PREDICATE);
|
/external/llvm/lib/Target/Hexagon/ |
HexagonImmediates.td | 224 // immS16 predicate - True if the immediate fits in a 16-bit sign extended 231 // s32_24ImmPred predicate - True if the immediate fits in a 32-bit sign 238 // s32_16s8ImmPred predicate - True if the immediate fits in a 32-bit sign 245 // immS16 predicate - True if the immediate fits in a 16-bit sign extended 253 // immS13 predicate - True if the immediate fits in a 13-bit sign extended 261 // immS16 predicate - True if the immediate fits in a 16-bit sign extended 268 // immS16 predicate - True if the immediate fits in a 16-bit sign extended 276 // immS16 predicate - True if the immediate fits in a 16-bit sign extended 284 // immS16 predicate - True if the immediate fits in a 16-bit sign extended 292 // immS16 predicate - True if the immediate fits in a 16-bit sign extende [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/ |
PropertyChangeTransform.java | 23 * single GL State variable. An optional predicate provides the ability to perform 24 * the change only if the predicate succeeds. 42 * check if the predicate function accepts the current value, and if so modify its 46 IPredicate predicate) { 49 mPredicate = predicate; 60 // if predicate is not null, then first check if the current value 61 // passes the predicate function. 95 // if the value doesn't match the predicate, then this property
|