/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/mockito/cglib-and-asm/src/org/mockito/cglib/core/ |
Predicate.java | 18 public interface Predicate {
|
/external/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 24 /// getICmpCode - Encode a icmp predicate into a three bit mask. These bits 51 /// predicate for a new ICmp instruction. The sign is passed in to determine 52 /// which kind of predicate to use in the new icmp instruction. 54 /// NULL return means a new ICmp is needed. The predicate for which is 57 CmpInst::Predicate &NewICmpPred); 61 bool PredicatesFoldable(CmpInst::Predicate p1, CmpInst::Predicate p2);
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
PPCPredicates.h | 1 //===-- PPCPredicates.h - PPC Branch Predicate Information ------*- C++ -*-===// 26 /// Predicate - These are "(BI << 5) | BO" for various predicates. 27 enum Predicate { 67 /// Invert the specified predicate. != -> ==, < -> >=. 68 Predicate InvertPredicate(Predicate Opcode); 70 /// Assume the condition register is set by MI(a,b), return the predicate if 72 Predicate getSwappedPredicate(Predicate Opcode);
|
/libcore/ojluni/src/main/java/java/util/function/ |
Predicate.java | 30 * Represents a predicate (boolean-valued function) of one argument. 35 * @param <T> the type of the input to the predicate 40 public interface Predicate<T> { 43 * Evaluates this predicate on the given argument. 46 * @return {@code true} if the input argument matches the predicate, 52 * Returns a composed predicate that represents a short-circuiting logical 53 * AND of this predicate and another. When evaluating the composed 54 * predicate, if this predicate is {@code false}, then the {@code other} 55 * predicate is not evaluated [all...] |
/external/droiddriver/src/io/appium/droiddriver/finders/ |
Predicates.java | 24 * Static utility methods pertaining to {@code Predicate} instances. 29 private static final Predicate<Object> ANY = new Predicate<Object>() { 42 * Returns a predicate that always evaluates to {@code true}. 45 public static <T> Predicate<T> any() { 46 return (Predicate<T>) ANY; 50 * Returns a predicate that is the negation of the provided {@code predicate}. 52 public static <T> Predicate<T> not(final Predicate<T> predicate) [all...] |
Predicate.java | 33 public interface Predicate<T> { 35 * Returns the result of applying this predicate to {@code input}. 44 * Predicate.
|
/external/libcxx/test/support/ |
counting_predicates.hpp | 14 template <typename Predicate, typename Arg> 17 unary_counting_predicate(Predicate p) : p_(p), count_(0) {} 25 Predicate p_; 30 template <typename Predicate, typename Arg1, typename Arg2=Arg1> 34 binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {} 42 Predicate p_;
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
Predicate.java | 22 * {@code RegexPredicate} might implement {@code Predicate<String>}, and return 31 public interface Predicate<T> { 39 * Applies this predicate to the given object. 41 * @param input the input that the predicate should act on 42 * @return the value of this predicate when applied to the input {@code t} 47 * Indicates whether some other object is equal to this {@code Predicate}. 49 * also a {@code Predicate} and, for every input object {@code input}, it
|
/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. 39 * use of {@code Predicate}</a>. 52 * Returns a predicate that always evaluates to {@code true}. 55 public static <T> Predicate<T> alwaysTrue() { 60 * Returns a predicate that always evaluates to {@code false}. 63 public static <T> Predicate<T> alwaysFalse() { 68 * Returns a predicate that evaluates to {@code true} if the object reference 72 public static <T> Predicate<T> isNull() { 77 * Returns a predicate that evaluates to {@code true} if the object reference 81 public static <T> Predicate<T> notNull() 258 final Predicate<T> predicate; field in class:Predicates.NotPredicate [all...] |
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
AssignableFrom.java | 19 import com.android.internal.util.Predicate; 21 class AssignableFrom implements Predicate<TestMethod> {
|
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 =
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/mpl/aux_/ |
find_if_pred.hpp | 19 template< typename Predicate > 25 typedef not_< aux::iter_apply1<Predicate,Iterator> > type;
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/ |
FieldUtil.java | 34 import com.google.common.base.Predicate; 42 public static Predicate<Field> FIELD_IS_STATIC = new Predicate<Field>() { 48 public static Predicate<Field> FIELD_IS_INSTANCE = new Predicate<Field>() {
|
/external/v8/src/ |
unicode-cache.h | 33 unibrow::Predicate<IdentifierStart, 128> kIsIdentifierStart; 34 unibrow::Predicate<IdentifierPart, 128> kIsIdentifierPart; 35 unibrow::Predicate<unibrow::LineTerminator, 128> kIsLineTerminator; 36 unibrow::Predicate<WhiteSpace, 128> kIsWhiteSpace; 37 unibrow::Predicate<WhiteSpaceOrLineTerminator, 128>
|
/external/guava/guava/src/com/google/common/base/ |
Predicates.java | 35 * Static utility methods pertaining to {@code Predicate} instances. 42 * use of {@code Predicate}</a>. 55 * Returns a predicate that always evaluates to {@code true}. 58 public static <T> Predicate<T> alwaysTrue() { 63 * Returns a predicate that always evaluates to {@code false}. 66 public static <T> Predicate<T> alwaysFalse() { 71 * Returns a predicate that evaluates to {@code true} if the object reference 75 public static <T> Predicate<T> isNull() { 80 * Returns a predicate that evaluates to {@code true} if the object reference 84 public static <T> Predicate<T> notNull() 321 final Predicate<T> predicate; field in class:Predicates.NotPredicate [all...] |
/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/guava/guava/src/com/google/common/collect/ |
FilteredMultimap.java | 20 import com.google.common.base.Predicate; 33 Predicate<? super Entry<K, V>> entryPredicate();
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
SerializedLambdaTest.java | 43 import java.util.function.Predicate; 73 private void assertNotSerial(Predicate<String> p, Consumer<Predicate<String>> asserter) 102 Predicate<String> pred = (Predicate<String> & Serializable) s -> true; 105 assertTrue(p instanceof Predicate); 111 interface SerPredicate<T> extends Predicate<T>, Serializable { } 118 assertTrue(p instanceof Predicate); 128 Predicate<String> pred = (Predicate<String>) s -> true [all...] |
/libcore/luni/src/test/java/libcore/java/util/function/ |
PredicateTest.java | 22 import java.util.function.Predicate; 36 Predicate<Object> alwaysTrue = 38 Predicate<Object> alwaysTrue2 = 40 Predicate<Object> alwaysFalse = 42 Predicate<Object> alwaysFalse2 = 68 Predicate<Object> alwaysTrue = x -> { assertSame(arg, x); return true; }; 76 Predicate<Object> alwaysTrue = x -> true; 79 Predicate<Object> alwaysFalse = x -> false; 93 Predicate<Object> alwaysTrue = 95 Predicate<Object> alwaysTrue2 [all...] |
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/ |
remove_if.pass.cpp | 12 // template <class Predicate> void remove_if(Predicate pred); 31 typedef unary_counting_predicate<bool(*)(T), T> Predicate; 37 Predicate cp(g); 44 typedef unary_counting_predicate<bool(*)(T), T> Predicate; 49 Predicate cp(g); 56 typedef unary_counting_predicate<bool(*)(T), T> Predicate; 62 Predicate cp(g); 69 typedef unary_counting_predicate<bool(*)(T), T> Predicate; 73 Predicate cp(g) [all...] |
/external/guava/guava-tests/test/com/google/common/base/ |
PredicatesTest.java | 49 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue(); 50 private static final Predicate<Integer> FALSE = Predicates.alwaysFalse(); 51 private static final Predicate<Integer> NEVER_REACHED = 52 new Predicate<Integer>() { 56 "This predicate should never have been evaluated"); 60 /** Instantiable predicate with reasonable hashCode() and equals() methods. */ 61 static class IsOdd implements Predicate<Integer>, Serializable { 79 * Generates a new Predicate per call. 81 * <p>Creating a new Predicate each time helps catch cases where code is 131 * Tests for Predicates.not(predicate) 306 Predicate<Object> predicate = Predicates.and(array); local 314 Predicate<Object> predicate = Predicates.and(list); local 328 Predicate<Object> predicate = Predicates.and(iterable); local 474 Predicate<Object> predicate = Predicates.or(array); local 482 Predicate<Object> predicate = Predicates.or(list); local 496 Predicate<Object> predicate = Predicates.or(iterable); local 642 Predicate<Class<?>> predicate = local 938 assertEvalsLike(isOdd(), predicate); local [all...] |