/external/guava/guava-tests/test/com/google/common/base/ |
PredicatesTest.java | 40 * Unit test for {@link Predicates}. 46 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue(); 47 private static final Predicate<Integer> FALSE = Predicates.alwaysFalse(); 86 * Tests for Predicates.alwaysTrue(). 90 assertEvalsToTrue(Predicates.alwaysTrue()); 95 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) 97 .addEqualityGroup(Predicates.alwaysFalse()) 103 checkSerialization(Predicates.alwaysTrue()); 107 * Tests for Predicates.alwaysFalse(). 111 assertEvalsToFalse(Predicates.alwaysFalse()) [all...] |
FunctionsTest.java | 316 Predicate<? super Integer> h = Predicates.equalTo(42); 320 Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f); 321 Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f)); 335 Functions.forPredicate(Predicates.alwaysTrue()); 337 Functions.forPredicate(Predicates.alwaysFalse()); 344 alwaysTrue, Functions.forPredicate(Predicates.alwaysTrue())) 352 checkCanReserialize(Functions.forPredicate(Predicates.equalTo(5)));
|
CharMatcherTest.java | 108 doTestEmpty(forPredicate(Predicates.equalTo('c'))); 123 doTestNull(forPredicate(Predicates.equalTo('c'))); 172 doTestNoMatches(forPredicate(Predicates.equalTo('c')), "abe"); 200 doTestAllMatches(forPredicate(Predicates.equalTo('c')), "ccc");
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
PredicatesTest.java | 39 assertTrue(Predicates.and(newArrayList(TRUE)).apply(null)); 40 assertTrue(Predicates.and(newArrayList(TRUE, TRUE)).apply(null)); 44 assertFalse(Predicates.and(newArrayList(FALSE, TRUE, TRUE)).apply(null)); 45 assertFalse(Predicates.and(newArrayList(TRUE, FALSE, TRUE)).apply(null)); 46 assertFalse(Predicates.and(newArrayList(TRUE, TRUE, FALSE)).apply(null)); 50 assertTrue(Predicates.or(newArrayList(TRUE, TRUE, TRUE)).apply(null)); 54 assertFalse(Predicates.or(newArrayList(FALSE, FALSE, FALSE)).apply(null)); 58 assertTrue(Predicates.or(newArrayList(TRUE, FALSE, FALSE)).apply(null)); 59 assertTrue(Predicates.or(newArrayList(FALSE, TRUE, FALSE)).apply(null)); 60 assertTrue(Predicates.or(newArrayList(FALSE, FALSE, TRUE)).apply(null)) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/ |
Predicates.java | 19 public class Predicates {
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestPredicates.java | 27 import com.android.internal.util.Predicates; 37 Predicates.not(SELECT_INSTRUMENTATION); 44 Predicates.not(new HasAnnotation(Suppress.class));
|
/external/droiddriver/src/com/google/android/droiddriver/scroll/ |
AbstractSentinelStrategy.java | 23 import com.google.common.base.Predicates; 65 super(Predicates.and(original.predicate, extraPredicate), extraDescription 79 public static final GetStrategy FIRST_CHILD_GETTER = new GetStrategy(Predicates.alwaysTrue(), 90 public static final GetStrategy LAST_CHILD_GETTER = new GetStrategy(Predicates.alwaysTrue(), 102 public static final GetStrategy SECOND_CHILD_GETTER = new GetStrategy(Predicates.alwaysTrue(),
|
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/ |
HasAnnotation.java | 19 import static com.android.internal.util.Predicates.or;
|
/frameworks/base/core/java/com/android/internal/util/ |
Predicates.java | 22 * Predicates contains static methods for creating the standard set of 25 public class Predicates { 27 private Predicates() {
|
/external/droiddriver/src/com/google/android/droiddriver/base/ |
AbstractUiElement.java | 33 import com.google.common.base.Predicates; 139 predicate = Predicates.and(Predicates.notNull(), predicate);
|
/frameworks/base/test-runner/src/android/test/ |
InstrumentationCoreTestRunner.java | 25 import com.android.internal.util.Predicates; 201 Predicates.not(new HasAnnotation(BrokenTest.class)); 205 Predicates.not(new HasAnnotation(SideEffect.class));
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Predicates.java | 34 * <p>All methods returns serializable predicates as long as they're given 41 public final class Predicates { 42 private Predicates() {} 124 return new AndPredicate<T>(Predicates.<T>asList( 163 return new OrPredicate<T>(Predicates.<T>asList( 173 ? Predicates.<T>isNull() 186 * Predicates.<Object>in()}. 230 @SuppressWarnings("unchecked") // these Object predicates work for any T 236 /** @see Predicates#not(Predicate) */ 265 /** @see Predicates#and(Iterable) * [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
IterablesTest.java | 33 import com.google.common.base.Predicates; 216 Predicates.equalTo("foo")); 227 Predicate<String> predicate = Predicates.equalTo("pants"); 238 Predicate<String> predicate = Predicates.equalTo("cool"); 249 assertEquals("cool", Iterables.find(list, Predicates.equalTo("cool"))); 250 assertEquals("pants", Iterables.find(list, Predicates.equalTo("pants"))); 252 Iterables.find(list, Predicates.alwaysFalse()); 256 assertEquals("cool", Iterables.find(list, Predicates.alwaysTrue())); 263 Iterables.find(list, Predicates.equalTo("cool"), "woot")); 265 Iterables.find(list, Predicates.equalTo("pants"), "woot")) [all...] |
IteratorsTest.java | 33 import com.google.common.base.Predicates; 230 Predicates.equalTo("foo")); 239 Predicates.alwaysFalse()); 248 Predicates.alwaysTrue()); 289 Predicate<String> predicate = Predicates.equalTo("pants"); 300 Predicate<String> predicate = Predicates.equalTo("cool"); 312 assertEquals("cool", Iterators.find(iterator, Predicates.equalTo("cool"))); 320 Predicates.equalTo("pants"))); 328 Iterators.find(iterator, Predicates.alwaysFalse()); 338 assertEquals("cool", Iterators.find(iterator, Predicates.alwaysTrue())) [all...] |
/cts/tests/core/runner/src/android/test/ |
InstrumentationCtsTestRunner.java | 20 import com.android.internal.util.Predicates; 236 Predicates.not(new HasAnnotation(BrokenTest.class)); 241 Predicates.not(new HasAnnotation(SideEffect.class));
|
/external/guava/guava/src/com/google/common/base/ |
Predicates.java | 37 * <p>All methods returns serializable predicates as long as they're given 44 public final class Predicates { 45 private Predicates() {} 127 return new AndPredicate<T>(Predicates.<T>asList( 166 return new OrPredicate<T>(Predicates.<T>asList( 176 ? Predicates.<T>isNull() 189 * <p><b>Warning:</b> contrary to the typical assumptions about predicates (as 222 * Predicates.<Object>in()}. 293 @SuppressWarnings("unchecked") // these Object predicates work for any T 299 /** @see Predicates#not(Predicate) * [all...] |
/external/llvm/utils/TableGen/ |
FixedLenDecoderEmitter.cpp | 73 PredicateSet Predicates; 104 PredicateSet &Predicates, 436 // Emits code to check the Predicates member of an instruction are true. 875 emitPredicateFunction(formatted_raw_ostream &OS, PredicateSet &Predicates, 882 if (!Predicates.empty()) { 886 for (PredicateSet::const_iterator I = Predicates.begin(), E = Predicates.end(); [all...] |
CodeGenDAGPatterns.h | 244 /// TreePredicateFn - This is an abstraction that represents the predicates on 654 : SrcRecord(srcrecord), Predicates(preds), SrcPattern(src), DstPattern(dst), 658 ListInit *Predicates; // Top level predicate conditions to match. 666 ListInit *getPredicates() const { return Predicates; }
|
/external/guava/guava/src/com/google/common/collect/ |
Collections2.java | 26 import com.google.common.base.Predicates; 72 * as {@code Predicates.instanceOf(ArrayList.class)}, which is inconsistent 114 Predicates.<E>and(predicate, newPredicate));
|
SortedMaps.java | 33 import com.google.common.base.Predicates; 215 * predicate such as {@code Predicates.instanceOf(ArrayList.class)}, which is 259 * predicate such as {@code Predicates.instanceOf(ArrayList.class)}, which is 323 = Predicates.and(map.predicate, entryPredicate);
|
Sets.java | 29 import com.google.common.base.Predicates; 646 final Predicate<Object> inSet2 = Predicates.in(set2); 683 final Predicate<Object> notInSet2 = Predicates.not(Predicates.in(set2)); 743 * as {@code Predicates.instanceOf(ArrayList.class)}, which is inconsistent 758 = Predicates.<E>and(filtered.predicate, predicate); 805 * {@code Predicates.instanceOf(ArrayList.class)}, which is inconsistent with 820 = Predicates.<E>and(filtered.predicate, predicate); [all...] |
/external/llvm/lib/Transforms/Scalar/ |
StructurizeCFG.cpp | 175 PredMap Predicates; 354 /// \brief Analyze the predecessors of each block and build up predicates 358 BBPredicates &Pred = Predicates[BB]; 421 Predicates.clear(); 464 BBPredicates &Preds = Loops ? LoopPreds[SuccFalse] : Predicates[SuccTrue]; 678 /// \brief Does BB dominate all the predicates of Node ? 680 BBPredicates &Preds = Predicates[Node->getEntry()]; 692 BBPredicates &Preds = Predicates[Node->getEntry()]; 867 Predicates.clear();
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
NullPointerTester.java | 23 import com.google.common.base.Predicates; 88 setDefault(Predicate.class, Predicates.alwaysTrue());
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
Sets.java | 28 import com.google.common.base.Predicates; 634 final Predicate<Object> inSet2 = Predicates.in(set2); 671 final Predicate<Object> notInSet2 = Predicates.not(Predicates.in(set2)); 731 * as {@code Predicates.instanceOf(ArrayList.class)}, which is inconsistent 746 = Predicates.<E>and(filtered.predicate, predicate); 793 * {@code Predicates.instanceOf(ArrayList.class)}, which is inconsistent with 808 = Predicates.<E>and(filtered.predicate, predicate); [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
tgsi_exec.h | 262 struct tgsi_exec_vector *Predicates;
|