Home
last modified time | relevance | path

Searched refs:Predicates (Results 1 – 25 of 80) sorted by relevance

1234

/external/guava/guava-tests/test/com/google/common/base/
DPredicatesTest.java46 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue();
47 private static final Predicate<Integer> FALSE = Predicates.alwaysFalse();
90 assertEvalsToTrue(Predicates.alwaysTrue()); in testAlwaysTrue_apply()
95 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testAlwaysTrue_equality()
97 .addEqualityGroup(Predicates.alwaysFalse()) in testAlwaysTrue_equality()
103 checkSerialization(Predicates.alwaysTrue()); in testAlwaysTrue_serialization()
111 assertEvalsToFalse(Predicates.alwaysFalse()); in testAlwaysFalse_apply()
116 .addEqualityGroup(FALSE, Predicates.alwaysFalse()) in testAlwaysFalse_equality()
118 .addEqualityGroup(Predicates.alwaysTrue()) in testAlwaysFalse_equality()
124 checkSerialization(Predicates.alwaysFalse()); in testAlwaysFalse_serialization()
[all …]
DFunctionsTest.java316 Predicate<? super Integer> h = Predicates.equalTo(42); in testComposeOfPredicateAndFunctionIsAssociative()
320 Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f); in testComposeOfPredicateAndFunctionIsAssociative()
321 Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f)); in testComposeOfPredicateAndFunctionIsAssociative()
335 Functions.forPredicate(Predicates.alwaysTrue()); in testForPredicate()
337 Functions.forPredicate(Predicates.alwaysFalse()); in testForPredicate()
344 alwaysTrue, Functions.forPredicate(Predicates.alwaysTrue())) in testForPredicate()
352 checkCanReserialize(Functions.forPredicate(Predicates.equalTo(5))); in testForPredicateSerializable()
DCharMatcherTest.java108 doTestEmpty(forPredicate(Predicates.equalTo('c'))); in testEmpty()
123 doTestNull(forPredicate(Predicates.equalTo('c'))); in testNull()
172 doTestNoMatches(forPredicate(Predicates.equalTo('c')), "abe"); in testNoMatches()
200 doTestAllMatches(forPredicate(Predicates.equalTo('c')), "ccc"); in testAllMatches()
/external/droiddriver/src/com/google/android/droiddriver/scroll/
DAbstractSentinelStrategy.java23 import com.google.common.base.Predicates;
65 super(Predicates.and(original.predicate, extraPredicate), extraDescription in MorePredicateGetStrategy()
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(),
/external/guava/guava-tests/test/com/google/common/collect/
DIterablesTest.java33 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 …]
DIteratorsTest.java33 import com.google.common.base.Predicates;
230 Predicates.equalTo("foo")); in testFilterSimple()
239 Predicates.alwaysFalse()); in testFilterNoMatch()
248 Predicates.alwaysTrue()); in testFilterMatchAll()
289 Predicate<String> predicate = Predicates.equalTo("pants"); in testAny()
300 Predicate<String> predicate = Predicates.equalTo("cool"); in testAll()
312 assertEquals("cool", Iterators.find(iterator, Predicates.equalTo("cool"))); in testFind_firstElement()
320 Predicates.equalTo("pants"))); in testFind_lastElement()
328 Iterators.find(iterator, Predicates.alwaysFalse()); in testFind_notPresent()
338 assertEquals("cool", Iterators.find(iterator, Predicates.alwaysTrue())); in testFind_matchAlways()
[all …]
/external/llvm/lib/Target/Mips/
DMipsInstrFPU.td260 let Predicates = [IsFP64bit, HasStdEnc], DecoderNamespace = "Mips64" in {
286 let Predicates = [NotFP64bit, HasStdEnc] in {
295 let Predicates = [IsFP64bit, HasStdEnc], DecoderNamespace = "Mips64" in {
316 let Predicates = [NoNaNsFPMath, HasStdEnc] in {
356 let Predicates = [IsN64, HasStdEnc], DecoderNamespace = "Mips64" in {
371 let Predicates = [NotN64, HasStdEnc] in {
376 let Predicates = [NotN64, HasMips64, HasStdEnc],
382 let Predicates = [NotN64, NotMips64, HasStdEnc] in {
392 let Predicates = [HasFPIdx, HasStdEnc] in {
399 let Predicates = [HasMips32r2, NotMips64, HasStdEnc] in {
[all …]
DMipsCondMov.td109 let Predicates = [HasStdEnc], isCodeGenOnly = 1 in {
121 let Predicates = [HasStdEnc], isCodeGenOnly = 1 in {
144 let Predicates = [NotFP64bit, HasStdEnc] in {
151 let Predicates = [IsFP64bit, HasStdEnc], isCodeGenOnly = 1 in {
181 let Predicates = [NotFP64bit, HasStdEnc] in {
187 let Predicates = [IsFP64bit, HasStdEnc], isCodeGenOnly = 1 in {
198 let Predicates = [HasMips64, HasStdEnc] in {
213 let Predicates = [HasMips64, HasStdEnc] in {
222 let Predicates = [HasMips64, HasStdEnc] in {
229 let Predicates = [NotFP64bit, HasStdEnc] in {
[all …]
DMips64InstrInfo.td51 let usesCustomInserter = 1, Predicates = [HasStdEnc],
127 let Predicates = [HasMips64r2, HasStdEnc] in {
165 let Predicates = [NotN64, HasStdEnc] in {
170 let Predicates = [IsN64, HasStdEnc], isCodeGenOnly = 1 in {
254 let Predicates = [NotN64, HasStdEnc] in {
260 let Predicates = [IsN64, HasStdEnc] in {
DMipsInstrInfo.td187 let Predicates = [HasStdEnc];
593 let Predicates = [RelocPIC, HasStdEnc];
753 let Predicates = [HasSEInReg, HasStdEnc];
760 let Predicates = [HasSwap, HasStdEnc];
775 let Predicates = [HasMips32r2, HasStdEnc];
783 let Predicates = [HasMips32r2, HasStdEnc];
940 let Predicates = [HasMips32r2, HasStdEnc] in {
977 let Predicates = [NotN64, HasStdEnc] in {
982 let Predicates = [IsN64, HasStdEnc], DecoderNamespace = "Mips64" in {
1195 let Predicates = [HasStdEnc, NotDSP] in {
[all …]
/external/llvm/lib/Target/Sparc/
DSparcInstr64Bit.td18 let Predicates = [Is64Bit] in {
25 } // Predicates = [Is64Bit]
38 let Predicates = [Is64Bit] in {
50 } // Predicates = [Is64Bit]
141 let Predicates = [Is64Bit] in {
176 } // Predicates = [Is64Bit]
183 let Predicates = [Is64Bit] in {
215 } // Predicates = [Is64Bit]
229 let Predicates = [Is64Bit] in {
298 } // Predicates = [Is64Bit]
[all …]
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DPredicates.java41 public final class Predicates { class
42 private Predicates() {} in Predicates() method in Predicates
124 return new AndPredicate<T>(Predicates.<T>asList( in and()
163 return new OrPredicate<T>(Predicates.<T>asList( in or()
173 ? Predicates.<T>isNull() in equalTo()
/external/droiddriver/src/com/google/android/droiddriver/base/
DAbstractUiElement.java33 import com.google.common.base.Predicates;
139 predicate = Predicates.and(Predicates.notNull(), predicate); in getChildren()
/external/llvm/utils/TableGen/
DFixedLenDecoderEmitter.cpp73 PredicateSet Predicates; member
104 PredicateSet &Predicates,
875 emitPredicateFunction(formatted_raw_ostream &OS, PredicateSet &Predicates, in emitPredicateFunction() argument
882 if (!Predicates.empty()) { in emitPredicateFunction()
886 for (PredicateSet::const_iterator I = Predicates.begin(), E = Predicates.end(); in emitPredicateFunction()
1150 ListInit *Predicates = in emitPredicateMatch() local
1152 for (unsigned i = 0; i < Predicates->getSize(); ++i) { in emitPredicateMatch()
1153 Record *Pred = Predicates->getElementAsRecord(i); in emitPredicateMatch()
1174 return Predicates->getSize() > 0; in emitPredicateMatch()
1178 ListInit *Predicates = in doesOpcodeNeedPredicate() local
[all …]
/external/llvm/lib/Target/X86/
DX86InstrSSE.td302 let Predicates = [HasSSE2] in {
337 let Predicates = [HasAVX] in {
407 isPseudo = 1, Predicates = [HasAVX], SchedRW = [WriteZero] in {
412 let Predicates = [HasAVX] in
415 let Predicates = [HasAVX2] in {
424 let Predicates = [HasAVX1Only] in {
448 let Predicates = [HasAVX2] in
529 let Predicates = [HasAVX] in {
678 let Predicates = [UseSSE1] in {
712 let Predicates = [UseSSE2] in {
[all …]
DX86InstrAVX512.td3 let Predicates = [HasAVX512] in {
453 let Predicates = [HasAVX512] in {
508 let Predicates = [HasAVX512] in {
515 let Predicates = [HasAVX512] in {
530 let Predicates = [HasAVX512] in {
546 let Predicates = [HasAVX512] in
573 let Predicates = [HasAVX512] in
600 let Predicates = [HasAVX512] in
614 let Predicates = [HasAVX512] in
630 let Predicates = [HasAVX512] in
[all …]
DX86InstrCMovSetCC.td18 let Uses = [EFLAGS], Predicates = [HasCMov], Constraints = "$src1 = $dst",
40 let Uses = [EFLAGS], Predicates = [HasCMov], Constraints = "$src1 = $dst",
58 } // Uses = [EFLAGS], Predicates = [HasCMov], Constraints = "$src1 = $dst"
/external/guava/guava/src/com/google/common/base/
DPredicates.java44 public final class Predicates { class
45 private Predicates() {} in Predicates() method in Predicates
127 return new AndPredicate<T>(Predicates.<T>asList( in and()
166 return new OrPredicate<T>(Predicates.<T>asList( in or()
176 ? Predicates.<T>isNull() in equalTo()
/external/llvm/lib/Target/ARM/
DARMInstrFormats.td358 list<Predicate> Predicates = [IsARM];
366 list<Predicate> Predicates = [IsThumb];
374 list<Predicate> Predicates = [IsThumb2];
407 list<Predicate> Predicates = [IsARM];
421 list<Predicate> Predicates = [IsARM];
441 list<Predicate> Predicates = [IsARM];
453 list<Predicate> Predicates = [IsARM];
905 list<Predicate> Predicates = [IsARM];
908 list<Predicate> Predicates = [IsARM, HasV5T];
911 list<Predicate> Predicates = [IsARM, HasV5TE];
[all …]
/external/llvm/lib/Transforms/Scalar/
DStructurizeCFG.cpp175 PredMap Predicates; member in __anon8b7bec230111::StructurizeCFG
358 BBPredicates &Pred = Predicates[BB]; in gatherPredicates()
421 Predicates.clear(); in collectInfos()
464 BBPredicates &Preds = Loops ? LoopPreds[SuccFalse] : Predicates[SuccTrue]; in insertConditions()
680 BBPredicates &Preds = Predicates[Node->getEntry()]; in dominatesPredicates()
692 BBPredicates &Preds = Predicates[Node->getEntry()]; in isPredictableTrue()
867 Predicates.clear(); in runOnRegion()
/external/guava/guava/src/com/google/common/collect/
DSortedMaps.java33 import com.google.common.base.Predicates;
323 = Predicates.and(map.predicate, entryPredicate); in filterFiltered()
DSets.java29 import com.google.common.base.Predicates;
646 final Predicate<Object> inSet2 = Predicates.in(set2);
683 final Predicate<Object> notInSet2 = Predicates.not(Predicates.in(set2));
758 = Predicates.<E>and(filtered.predicate, predicate);
820 = Predicates.<E>and(filtered.predicate, predicate);
DCollections2.java26 import com.google.common.base.Predicates;
114 Predicates.<E>and(predicate, newPredicate)); in createCombined()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DSets.java28 import com.google.common.base.Predicates;
634 final Predicate<Object> inSet2 = Predicates.in(set2);
671 final Predicate<Object> notInSet2 = Predicates.not(Predicates.in(set2));
746 = Predicates.<E>and(filtered.predicate, predicate);
808 = Predicates.<E>and(filtered.predicate, predicate);
/external/guava/guava-testlib/src/com/google/common/testing/
DNullPointerTester.java23 import com.google.common.base.Predicates;
88 setDefault(Predicate.class, Predicates.alwaysTrue()); in setCommonDefaults()

1234