/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...] |
/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...] |
/external/droiddriver/src/com/google/android/droiddriver/finders/ |
By.java | 37 return new MatchFinder(Predicates.attributeTrue(attribute)); 44 return new MatchFinder(Predicates.attributeFalse(attribute)); 49 return new MatchFinder(Predicates.attributeEquals(Attribute.RESOURCE_ID, resourceId)); 54 return new MatchFinder(Predicates.attributeEquals(Attribute.PACKAGE, name)); 59 return new MatchFinder(Predicates.attributeEquals(Attribute.TEXT, text)); 64 return new MatchFinder(Predicates.attributeMatches(Attribute.TEXT, regex)); 69 return new MatchFinder(Predicates.attributeContains(Attribute.TEXT, substring)); 74 return new MatchFinder(Predicates.attributeEquals(Attribute.CONTENT_DESC, contentDescription)); 79 return new MatchFinder(Predicates.attributeContains(Attribute.CONTENT_DESC, substring)); 84 return new MatchFinder(Predicates.attributeEquals(Attribute.CLASS, className)) 154 Predicate<? super UiElement>[] predicates = new Predicate[finders.length]; local [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/hoistedPredicates/ |
T.g | 1 /** Demonstrates how semantic predicates get hoisted out of the rule in 3 * how predicates can be used to distinguish between enum as a keyword and 7 * the T_dec-1.dot file to see the predicates in action.
|
TParser.h | 80 /** Demonstrates how semantic predicates get hoisted out of the rule in 82 * how predicates can be used to distinguish between enum as a keyword and 86 * the T_dec-1.dot file to see the predicates in action.
|
/external/chromium_org/gin/test/ |
expect.js | 134 var predicates = {}; 136 predicates.toBe = function(actual, expected) { 146 predicates.toEqual = function(actual, expected) { 156 predicates.toBeDefined = function(actual) { 166 predicates.toBeUndefined = function(actual) { 177 predicates.toBeNull = function(actual) { 188 predicates.toBeTruthy = function(actual) { 198 predicates.toBeFalsy = function(actual) { 208 predicates.toContain = function(actual, element) { 224 predicates.toBeLessThan = function(actual, reference) [all...] |
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestSuiteBuilder.java | 40 * and predicates that must be satisfied. 46 private final Set<Predicate<TestMethod>> predicates = new HashSet<Predicate<TestMethod>>(); field in class:TestSuiteBuilder 116 * Exclude tests that fail to satisfy all of the given predicates. 118 * @param predicates Predicates to add to the list of requirements. 121 public TestSuiteBuilder addRequirements(List<Predicate<TestMethod>> predicates) { 122 this.predicates.addAll(predicates); 211 * Exclude tests that fail to satisfy all of the given predicates. If you call this method, you 214 * @param predicates Predicates to add to the list of requirements [all...] |
TestPredicates.java | 27 import com.android.internal.util.Predicates; 37 Predicates.not(SELECT_INSTRUMENTATION); 44 Predicates.not(new HasAnnotation(Suppress.class));
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_stringprep.py | 72 # This would generate a hash of all predicates. However, running 78 # predicates = [k for k in dir(stringprep) if k.startswith("in_table")] 79 # predicates.sort() 80 # for p in predicates:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_stringprep.py | 72 # This would generate a hash of all predicates. However, running 78 # predicates = [k for k in dir(stringprep) if k.startswith("in_table")] 79 # predicates.sort() 80 # for p in predicates:
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
PredicateLabel.java | 34 /** A tree of semantic predicates from the grammar AST if label==SEMPRED. 36 * may have to combine a bunch of them as it collects predicates from 47 /** Make a semantic predicates label */
|
NFAConfiguration.java | 35 * the unordered set semantic predicates encountered before reaching 48 /** The set of semantic predicates associated with this NFA 49 * configuration. The predicates were found on the way to 70 * the predicates after it performs the reach operation. The 73 * that have enough predicates to resolve the conflit.
|
/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/llvm/lib/Target/Mips/ |
Mips.td | 18 // The overall idea of the PredicateControl class is to chop the Predicates list 20 // subclasses to partially override the predicates of their superclasses without 21 // having to re-add all the existing predicates. 23 // Predicates for the encoding scheme in use such as HasStdEnc 25 // Predicates for the GPR size such as IsGP64bit 27 // Predicates for the FGR size and layout such as IsFP64bit 29 // Predicates for the instruction group membership such as ISA's and ASE's 31 // Predicates for anything else 33 list<Predicate> Predicates = !listconcat(EncodingPredicates,
|
/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/lib/Target/PowerPC/MCTargetDesc/ |
PPCPredicates.h | 10 // This file describes the PowerPC branch predicates. 26 /// Predicate - These are "(BI << 5) | BO" for various predicates. 54 // and unset predicates.
|
/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/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
ACyclicDFACodeGenerator.java | 108 edge.target.stateNumber+" predicates alt "+ 130 // stick in any gated predicates for any edge if not already a pred 140 edgeST.add("predicates", predST); 163 // EOT state has transitions so must split on predicates. 166 // Note: these predicates emanate from the EOT target state 169 // state number. Predicates emanating from EOT targets are
|
/external/llvm/lib/Target/Sparc/ |
SparcInstr64Bit.td | 18 let Predicates = [Is64Bit] in { 25 } // Predicates = [Is64Bit] 38 let Predicates = [Is64Bit] in { 50 } // Predicates = [Is64Bit] 141 let Predicates = [Is64Bit] in { 182 } // Predicates = [Is64Bit] 189 let Predicates = [Is64Bit] in { 221 } // Predicates = [Is64Bit] 235 let Predicates = [Is64Bit] in { 293 } // Predicates = [Is64Bit [all...] |
/external/apache-xml/src/main/java/org/apache/xpath/patterns/ |
StepPattern.java | 207 // * @param predicates List of expression objects. 209 // public void setPredicates(Expression[] predicates) 211 // m_predicates = predicates; 233 * NOTE: Ancestors tests with predicates are problematic, and will require 266 * Get the number of predicates for this match pattern step. 269 * @return the number of predicates for this match pattern step. 277 * Set the predicates for this match pattern step. 280 * @param predicates An array of expressions that define predicates 283 public void setPredicates(Expression[] predicates) [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
FailedPredicateException.js | 1 /** A semantic predicate failed during validation. Validation of predicates
|
/external/llvm/lib/Target/R600/ |
R700Instructions.td | 18 let Predicates = [isR700] in {
|
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/ |
HasAnnotation.java | 19 import static com.android.internal.util.Predicates.or;
|
/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-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...] |