Home
last modified time | relevance | path

Searched refs:alwaysTrue (Results 1 – 16 of 16) sorted by relevance

/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DFunctionsTest.java237 Function<Object, Boolean> alwaysTrue = in testForPredicate() local
238 Functions.forPredicate(Predicates.alwaysTrue()); in testForPredicate()
242 assertTrue(alwaysTrue.apply(0)); in testForPredicate()
247 alwaysTrue, Functions.forPredicate(Predicates.alwaysTrue())) in testForPredicate()
DPredicatesTest.java44 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue();
88 assertEvalsToTrue(Predicates.alwaysTrue()); in testAlwaysTrue_apply()
93 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testAlwaysTrue_equality()
111 .addEqualityGroup(Predicates.alwaysTrue()) in testAlwaysFalse_equality()
135 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testNot_equalityForNotOfKnownValues()
259 array[0] = Predicates.alwaysTrue(); in testAnd_arrayDefensivelyCopied()
396 array[0] = Predicates.alwaysTrue(); in testOr_arrayDefensivelyCopied()
404 list.add(Predicates.alwaysTrue()); in testOr_listDefensivelyCopied()
418 list.add(Predicates.alwaysTrue()); in testOr_iterableDefensivelyCopied()
/external/guava/guava-tests/test/com/google/common/base/
DPredicatesTest.java49 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue();
93 assertEvalsToTrue(Predicates.alwaysTrue()); in testAlwaysTrue_apply()
98 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testAlwaysTrue_equality()
106 checkSerialization(Predicates.alwaysTrue()); in testAlwaysTrue_serialization()
121 .addEqualityGroup(Predicates.alwaysTrue()) in testAlwaysFalse_equality()
150 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testNot_equalityForNotOfKnownValues()
308 array[0] = Predicates.alwaysTrue(); in testAnd_arrayDefensivelyCopied()
476 array[0] = Predicates.alwaysTrue(); in testOr_arrayDefensivelyCopied()
484 list.add(Predicates.alwaysTrue()); in testOr_listDefensivelyCopied()
498 list.add(Predicates.alwaysTrue()); in testOr_iterableDefensivelyCopied()
[all …]
DFunctionsTest.java335 Function<Object, Boolean> alwaysTrue = in testForPredicate() local
336 Functions.forPredicate(Predicates.alwaysTrue()); in testForPredicate()
340 assertTrue(alwaysTrue.apply(0)); in testForPredicate()
345 alwaysTrue, Functions.forPredicate(Predicates.alwaysTrue())) in testForPredicate()
/external/guava/guava-tests/test/com/google/common/io/
DCharStreamsTest.java90 LineProcessor<Integer> alwaysTrue = new LineProcessor<Integer>() { in testReadLines_withLineProcessor() local
103 CharStreams.readLines(r, alwaysTrue).intValue()); in testReadLines_withLineProcessor()
/external/libbackup/src/com/google/android/libraries/backup/
DBackupKeyPredicates.java161 public static BackupKeyPredicate alwaysTrue() {
/external/caliper/caliper/src/main/java/com/google/caliper/memory/
DObjectGraphMeasurer.java155 return measure(rootObject, Predicates.alwaysTrue()); in measure()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DIteratorsTest.java250 Predicates.alwaysTrue()); in testFilterMatchAll()
322 assertEquals("cool", Iterators.find(iterator, Predicates.alwaysTrue())); in testFind_matchAlways()
361 Iterators.find(iterator, Predicates.alwaysTrue(), "woot")); in testFind_withDefault_matchAlways()
383 Iterators.tryFind(iterator, Predicates.alwaysTrue()).get()); in testTryFind_alwaysTrue()
DIterablesTest.java217 assertEquals("cool", Iterables.find(list, Predicates.alwaysTrue()));
231 Iterables.find(list, Predicates.alwaysTrue(), "woot"));
242 Iterables.tryFind(list, Predicates.alwaysTrue()));
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DPredicates.java55 public static <T> Predicate<T> alwaysTrue() { in alwaysTrue() method in Predicates
/external/guava/guava-tests/test/com/google/common/collect/
DIteratorsTest.java297 Predicates.alwaysTrue()); in testFilterMatchAll()
386 assertEquals("cool", Iterators.find(iterator, Predicates.alwaysTrue())); in testFind_matchAlways()
425 Iterators.find(iterator, Predicates.alwaysTrue(), "woot")); in testFind_withDefault_matchAlways()
447 Iterators.tryFind(iterator, Predicates.alwaysTrue()).get()); in testTryFind_alwaysTrue()
DIterablesTest.java245 assertEquals("cool", Iterables.find(list, Predicates.alwaysTrue()));
259 Iterables.find(list, Predicates.alwaysTrue(), "woot"));
270 Iterables.tryFind(list, Predicates.alwaysTrue()));
DFluentIterableTest.java256 assertEquals(Optional.of("cool"), iterable.firstMatch(Predicates.alwaysTrue())); in testFirstMatch()
/external/guava/guava/src/com/google/common/collect/
DStandardTable.java20 import static com.google.common.base.Predicates.alwaysTrue;
467 removeFromColumnIf(alwaysTrue());
/external/guava/guava/src/com/google/common/base/
DPredicates.java58 public static <T> Predicate<T> alwaysTrue() { in alwaysTrue() method in Predicates
/external/guava/guava-testlib/src/com/google/common/testing/
DArbitraryInstances.java213 .put(Predicate.class, Predicates.alwaysTrue())