Lines Matching refs:Rule
27 struct AndRule : public Rule {
29 op = Rule::AND_SUBRULES; in AndRule()
32 AndRule& add(const Rule& rhs) { in add()
33 subrules.add(new Rule(rhs)); in add()
38 struct OrRule : public Rule {
40 op = Rule::OR_SUBRULES; in OrRule()
43 OrRule& add(const Rule& rhs) { in add()
44 subrules.add(new Rule(rhs)); in add()
49 const Rule EqRule(Rule::Key key, long value);
50 const Rule LtRule(Rule::Key key, long value);
51 const Rule GtRule(Rule::Key key, long value);
52 const Rule ContainsAnyRule(Rule::Key key, const char* str1);
53 const Rule ContainsAnyRule(Rule::Key key, const char* str1, const char* str2);
54 const Rule AlwaysTrue();
58 const android::sp<Rule>& actual, const Rule& expected);