/external/guava/guava-tests/test/com/google/common/base/ |
PredicatesTest.java | 43 * Unit test for {@link Predicates}. 49 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue(); 50 private static final Predicate<Integer> FALSE = Predicates.alwaysFalse(); 89 * Tests for Predicates.alwaysTrue(). 93 assertEvalsToTrue(Predicates.alwaysTrue()); 98 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) 100 .addEqualityGroup(Predicates.alwaysFalse()) 106 checkSerialization(Predicates.alwaysTrue()); 110 * Tests for Predicates.alwaysFalse(). 114 assertEvalsToFalse(Predicates.alwaysFalse()) [all...] |
FunctionsTest.java | 317 Predicate<? super Integer> h = Predicates.equalTo(42); 321 Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f); 322 Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f)); 336 Functions.forPredicate(Predicates.alwaysTrue()); 338 Functions.forPredicate(Predicates.alwaysFalse()); 345 alwaysTrue, Functions.forPredicate(Predicates.alwaysTrue())) 353 checkCanReserialize(Functions.forPredicate(Predicates.equalTo(5)));
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
PredicatesTest.java | 38 * Unit test for {@link Predicates}. 44 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue(); 45 private static final Predicate<Integer> FALSE = Predicates.alwaysFalse(); 84 * Tests for Predicates.alwaysTrue(). 88 assertEvalsToTrue(Predicates.alwaysTrue()); 93 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) 95 .addEqualityGroup(Predicates.alwaysFalse()) 100 * Tests for Predicates.alwaysFalse(). 104 assertEvalsToFalse(Predicates.alwaysFalse()); 109 .addEqualityGroup(FALSE, Predicates.alwaysFalse() [all...] |
FunctionsTest.java | 219 Predicate<? super Integer> h = Predicates.equalTo(42); 223 Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f); 224 Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f)); 238 Functions.forPredicate(Predicates.alwaysTrue()); 240 Functions.forPredicate(Predicates.alwaysFalse()); 247 alwaysTrue, Functions.forPredicate(Predicates.alwaysTrue()))
|
/frameworks/base/core/tests/utiltests/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...] |
/external/droiddriver/src/io/appium/droiddriver/finders/ |
By.java | 40 return new MatchFinder(Predicates.attributeTrue(attribute)); 47 return new MatchFinder(Predicates.attributeFalse(attribute)); 61 return new MatchFinder(Predicates.attributeEquals(Attribute.RESOURCE_ID, resourceId)); 66 return new MatchFinder(Predicates.attributeEquals(Attribute.PACKAGE, name)); 71 return new MatchFinder(Predicates.attributeEquals(Attribute.TEXT, text)); 76 return new MatchFinder(Predicates.attributeMatches(Attribute.TEXT, regex)); 81 return new MatchFinder(Predicates.attributeContains(Attribute.TEXT, substring)); 86 return new MatchFinder(Predicates.attributeEquals(Attribute.CONTENT_DESC, contentDescription)); 91 return new MatchFinder(Predicates.attributeContains(Attribute.CONTENT_DESC, substring)); 96 return new MatchFinder(Predicates.attributeEquals(Attribute.CLASS, className)) 166 Predicate<? super UiElement>[] predicates = new Predicate[finders.length]; local [all...] |
MatchFinder.java | 34 this.predicate = Predicates.any();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/ |
Predicates.java | 19 public class Predicates {
|
/external/guava/guava/src/com/google/common/collect/ |
FilteredMultimapValues.java | 22 import com.google.common.base.Predicates; 78 Predicates.<Entry<K, V>>and(multimap.entryPredicate(), 79 Maps.<V>valuePredicateOnEntries(Predicates.in(c)))); 86 Predicates.<Entry<K, V>>and(multimap.entryPredicate(), 87 Maps.<V>valuePredicateOnEntries(Predicates.not(Predicates.in(c)))));
|
Collections2.java | 21 import static com.google.common.base.Predicates.and; 22 import static com.google.common.base.Predicates.in; 23 import static com.google.common.base.Predicates.not; 32 import com.google.common.base.Predicates; 83 * as {@code Predicates.instanceOf(ArrayList.class)}, which is inconsistent 146 Predicates.<E>and(predicate, newPredicate)); 290 return Iterables.all(c, Predicates.in(self));
|
/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));
|
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/ |
HasAnnotation.java | 19 import static com.android.internal.util.Predicates.or;
|
/external/caliper/caliper/src/main/java/com/google/caliper/memory/ |
ObjectGraphMeasurer.java | 24 import com.google.common.base.Predicates; 149 * <p>Equivalent to {@code measure(rootObject, Predicates.alwaysTrue())}. 155 return measure(rootObject, Predicates.alwaysTrue()); 176 Predicate<Chain> completePredicate = Predicates.and(ImmutableList.of( 179 Predicates.compose(objectAcceptor, ObjectExplorer.chainToObject)
|
/external/guava/guava-tests/test/com/google/common/collect/ |
MultimapsCollectionTest.java | 33 import com.google.common.base.Predicates; 565 Predicates.not(Predicates.in(ImmutableSet.of("foo", "bar")))); 585 Predicates.not(Predicates.in(ImmutableSet.of("foo", "bar")))); 603 multimap = Multimaps.filterKeys(multimap, Predicates.not(Predicates.equalTo("foo"))); 604 return Multimaps.filterKeys(multimap, Predicates.not(Predicates.equalTo("bar"))); 623 Predicates.not(Predicates.in(ImmutableSet.of(314, 159, 265)))) [all...] |
IterablesTest.java | 33 import com.google.common.base.Predicates; 216 Predicate<String> predicate = Predicates.equalTo("pants"); 227 Predicate<String> predicate = Predicates.equalTo("cool"); 238 assertEquals("cool", Iterables.find(list, Predicates.equalTo("cool"))); 239 assertEquals("pants", Iterables.find(list, Predicates.equalTo("pants"))); 241 Iterables.find(list, Predicates.alwaysFalse()); 245 assertEquals("cool", Iterables.find(list, Predicates.alwaysTrue())); 252 Iterables.find(list, Predicates.equalTo("cool"), "woot")); 254 Iterables.find(list, Predicates.equalTo("pants"), "woot")); 256 Predicates.alwaysFalse(), "woot")) [all...] |
IteratorsTest.java | 33 import com.google.common.base.Predicates; 279 Predicates.equalTo("foo")); 288 Predicates.alwaysFalse()); 297 Predicates.alwaysTrue()); 337 Predicate<String> predicate = Predicates.equalTo("pants"); 348 Predicate<String> predicate = Predicates.equalTo("cool"); 360 assertEquals("cool", Iterators.find(iterator, Predicates.equalTo("cool"))); 368 Predicates.equalTo("pants"))); 376 Iterators.find(iterator, Predicates.alwaysFalse()); 386 assertEquals("cool", Iterators.find(iterator, Predicates.alwaysTrue())) [all...] |
MultisetsCollectionTest.java | 24 import com.google.common.base.Predicates; 230 Predicates.not(Predicates.in(ELEMENTS_TO_FILTER_OUT));
|
/external/caliper/caliper/src/main/java/com/google/caliper/platform/dalvik/ |
DalvikPlatform.java | 24 import com.google.common.base.Predicates; 83 return Predicates.alwaysFalse();
|
/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/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
IterablesTest.java | 31 import com.google.common.base.Predicates; 188 Predicate<String> predicate = Predicates.equalTo("pants"); 199 Predicate<String> predicate = Predicates.equalTo("cool"); 210 assertEquals("cool", Iterables.find(list, Predicates.equalTo("cool"))); 211 assertEquals("pants", Iterables.find(list, Predicates.equalTo("pants"))); 213 Iterables.find(list, Predicates.alwaysFalse()); 217 assertEquals("cool", Iterables.find(list, Predicates.alwaysTrue())); 224 Iterables.find(list, Predicates.equalTo("cool"), "woot")); 226 Iterables.find(list, Predicates.equalTo("pants"), "woot")); 228 Predicates.alwaysFalse(), "woot")) [all...] |
IteratorsTest.java | 29 import com.google.common.base.Predicates; 232 Predicates.equalTo("foo")); 241 Predicates.alwaysFalse()); 250 Predicates.alwaysTrue()); 273 Predicate<String> predicate = Predicates.equalTo("pants"); 284 Predicate<String> predicate = Predicates.equalTo("cool"); 296 assertEquals("cool", Iterators.find(iterator, Predicates.equalTo("cool"))); 304 Predicates.equalTo("pants"))); 312 Iterators.find(iterator, Predicates.alwaysFalse()); 322 assertEquals("cool", Iterators.find(iterator, Predicates.alwaysTrue())) [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/config/ |
CaliperConfigLoader.java | 21 import com.google.common.base.Predicates; 85 Iterables.removeIf(map.values(), Predicates.equalTo(""));
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
AbstractPackageSanityTestsTest.java | 21 import com.google.common.base.Predicates; 64 sanityTests.ignoreClasses(Predicates.<Object>equalTo(PublicFoo.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 45 public final class Predicates { 46 private Predicates() {} 128 return new AndPredicate<T>(Predicates.<T>asList( 167 return new OrPredicate<T>(Predicates.<T>asList( 177 ? Predicates.<T>isNull() 190 * Predicates.<Object>in()}. 213 /** @see Predicates#alwaysTrue() */ 219 return "Predicates.alwaysTrue()"; 222 /** @see Predicates#alwaysFalse() * [all...] |
/external/droiddriver/src/io/appium/droiddriver/scroll/ |
SentinelStrategy.java | 28 import io.appium.droiddriver.finders.Predicates; 149 super(Predicates.allOf(original.predicate, extraPredicate));
|