Lines Matching refs:Rule
27 const Rule EqRule(Rule::Key key, long value) {
28 Rule rule;
29 rule.op = Rule::EQUALS;
30 rule.key = key;
31 rule.longArgs.add(value);
32 return rule;
35 const Rule GtRule(Rule::Key key, long value) {
36 Rule rule;
37 rule.op = Rule::GREATER_THAN;
38 rule.key = key;
39 rule.longArgs.add(value);
40 return rule;
43 const Rule LtRule(Rule::Key key, long value) {
44 Rule rule;
45 rule.op = Rule::LESS_THAN;
46 rule.key = key;
47 rule.longArgs.add(value);
48 return rule;
51 const Rule ContainsAnyRule(Rule::Key key, const char* str1) {
52 Rule rule;
53 rule.op = Rule::CONTAINS_ANY;
54 rule.key = key;
55 rule.stringArgs.add(String8(str1));
56 return rule;
59 const Rule ContainsAnyRule(Rule::Key key, const char* str1, const char* str2) {
60 Rule rule;
61 rule.op = Rule::CONTAINS_ANY;
62 rule.key = key;
63 rule.stringArgs.add(String8(str1));
64 rule.stringArgs.add(String8(str2));
65 return rule;
68 const Rule AlwaysTrue() {
69 Rule rule;
70 rule.op = Rule::ALWAYS_TRUE;
71 return rule;
76 const sp<Rule>& actual, const Rule& expected) {