Home
last modified time | relevance | path

Searched refs:Rule (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/external/chromium_org/third_party/closure_linter/closure_linter/
Derror_check.py27 class Rule(object): class
57 'This includes ' + (', '.join(Rule.CLOSURE_RULES)) + '.')
61 ' - ' + Rule.ALL + ': enables all following errors.\n'
62 ' - ' + Rule.BLANK_LINES_AT_TOP_LEVEL + ': validates'
64 ' - ' + Rule.INDENTATION + ': checks correct '
66 ' - ' + Rule.WELL_FORMED_AUTHOR + ': validates the '
68 ' - ' + Rule.NO_BRACES_AROUND_INHERIT_DOC + ': '
70 ' - ' + Rule.BRACES_AROUND_TYPE + ': enforces braces '
72 ' - ' + Rule.OPTIONAL_TYPE_MARKER + ': checks correct '
74 ' - ' + Rule.UNUSED_PRIVATE_MEMBERS + ': checks for '
[all …]
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
Derror_check.py27 class Rule(object): class
54 'This includes ' + (', '.join(Rule.CLOSURE_RULES)) + '.')
58 ' - ' + Rule.ALL + ': enables all following errors.\n'
59 ' - ' + Rule.BLANK_LINES_AT_TOP_LEVEL + ': validates'
61 ' - ' + Rule.INDENTATION + ': checks correct '
63 ' - ' + Rule.WELL_FORMED_AUTHOR + ': validates the '
65 ' - ' + Rule.NO_BRACES_AROUND_INHERIT_DOC + ': '
67 ' - ' + Rule.BRACES_AROUND_TYPE + ': enforces braces '
69 ' - ' + Rule.OPTIONAL_TYPE_MARKER + ': checks correct '
71 ' - ' + Rule.UNUSED_PRIVATE_MEMBERS + ': checks for '
[all …]
/external/chromium_org/sandbox/mac/
Dpolicy_unittest.cc17 policy.rules["allow"] = Rule(POLICY_ALLOW); in TEST()
18 policy.rules["deny_error"] = Rule(POLICY_DENY_ERROR); in TEST()
19 policy.rules["deny_dummy"] = Rule(POLICY_DENY_DUMMY_PORT); in TEST()
20 policy.rules["substitue"] = Rule(mach_task_self()); in TEST()
25 Rule rule; in TEST()
32 Rule rule(POLICY_SUBSTITUTE_PORT); in TEST()
39 Rule rule(POLICY_ALLOW); in TEST()
47 Rule rule(POLICY_DENY_ERROR); in TEST()
55 Rule rule(POLICY_DENY_DUMMY_PORT); in TEST()
64 policy.default_rule = Rule(); in TEST()
[all …]
Dpolicy.cc9 Rule::Rule() in Rule() function in sandbox::Rule
14 Rule::Rule(PolicyDecision result) in Rule() function in sandbox::Rule
19 Rule::Rule(mach_port_t override_port) in Rule() function in sandbox::Rule
30 static bool IsRuleValid(const Rule& rule) { in IsRuleValid()
Dpolicy.h37 struct SANDBOX_EXPORT Rule { struct
38 Rule();
39 explicit Rule(PolicyDecision result);
40 explicit Rule(mach_port_t override_port);
52 typedef std::map<std::string, Rule> NamedRules; argument
59 Rule default_rule;
/external/chromium_org/components/content_settings/core/browser/
Dcontent_settings_rule.cc10 Rule::Rule() {} in Rule() function in content_settings::Rule
12 Rule::Rule( in Rule() function in content_settings::Rule
22 Rule::~Rule() {} in ~Rule()
32 Rule EmptyRuleIterator::Next() { in Next()
34 return Rule(); in Next()
58 Rule ConcatenationIterator::Next() { in Next()
63 const Rule& to_return = (*current_iterator)->Next(); in Next()
Dcontent_settings_rule_unittest.cc17 explicit ListIterator(const std::list<Rule>& rules) in ListIterator()
26 virtual Rule Next() OVERRIDE { in Next()
30 Rule rule = rules_.front(); in Next()
36 std::list<Rule> rules_;
42 std::list<Rule> rules1; in TEST()
43 rules1.push_back(Rule(ContentSettingsPattern::FromString("a"), in TEST()
46 rules1.push_back(Rule(ContentSettingsPattern::FromString("b"), in TEST()
49 std::list<Rule> rules2; in TEST()
50 rules2.push_back(Rule(ContentSettingsPattern::FromString("c"), in TEST()
53 rules2.push_back(Rule(ContentSettingsPattern::FromString("d"), in TEST()
[all …]
Dcontent_settings_rule.h20 struct Rule { struct
21 Rule();
23 Rule(const ContentSettingsPattern& primary_pattern,
26 ~Rule();
37 virtual Rule Next() = 0; argument
44 virtual Rule Next() OVERRIDE;
55 virtual Rule Next() OVERRIDE;
/external/chromium_org/extensions/browser/api/declarative/
Drules_registry_unittest.cc32 std::vector<linked_ptr<RulesRegistry::Rule> > add_rules; in TEST()
33 add_rules.push_back(make_linked_ptr(new RulesRegistry::Rule)); in TEST()
34 add_rules.push_back(make_linked_ptr(new RulesRegistry::Rule)); in TEST()
38 std::vector<linked_ptr<RulesRegistry::Rule> > get_rules; in TEST()
56 std::vector<linked_ptr<RulesRegistry::Rule> > add_rules_2; in TEST()
57 add_rules_2.push_back(make_linked_ptr(new RulesRegistry::Rule)); in TEST()
62 std::vector<linked_ptr<RulesRegistry::Rule> > get_rules_2; in TEST()
78 std::vector<linked_ptr<RulesRegistry::Rule> > get_rules_3a; in TEST()
82 std::vector<linked_ptr<RulesRegistry::Rule> > add_rules_3; in TEST()
83 add_rules_3.push_back(make_linked_ptr(new RulesRegistry::Rule)); in TEST()
[all …]
Drules_registry.cc32 const std::vector<linked_ptr<extensions::RulesRegistry::Rule> >& rules) { in RulesToValue()
39 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > RulesFromValue( in RulesFromValue()
41 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > rules; in RulesFromValue()
52 linked_ptr<extensions::RulesRegistry::Rule> rule( in RulesFromValue()
53 new extensions::RulesRegistry::Rule()); in RulesFromValue()
54 if (extensions::RulesRegistry::Rule::Populate(*dict, rule.get())) in RulesFromValue()
93 const std::vector<linked_ptr<Rule> >& rules) { in AddRulesNoFill()
97 for (std::vector<linked_ptr<Rule> >::const_iterator i = in AddRulesNoFill()
113 for (std::vector<linked_ptr<Rule> >::const_iterator i = in AddRulesNoFill()
126 const std::vector<linked_ptr<Rule> >& rules) { in AddRules()
[all …]
Ddeclarative_rule_unittest.cc311 typedef DeclarativeRule<FulfillableCondition, SummingAction> Rule; in TEST() typedef
312 linked_ptr<Rule::JsonRule> json_rule(new Rule::JsonRule); in TEST()
313 ASSERT_TRUE(Rule::JsonRule::Populate( in TEST()
339 scoped_ptr<Rule> rule(Rule::Create(matcher.condition_factory(), in TEST()
344 Rule::ConsistencyChecker(), in TEST()
354 const Rule::ConditionSet& condition_set = rule->conditions(); in TEST()
355 const Rule::ConditionSet::Conditions& conditions = in TEST()
361 const Rule::ActionSet& action_set = rule->actions(); in TEST()
362 const Rule::ActionSet::Actions& actions = action_set.actions(); in TEST()
383 typedef DeclarativeRule<FulfillableCondition, SummingAction> Rule; in TEST() typedef
[all …]
Drules_registry.h42 typedef extensions::core_api::events::Rule Rule; typedef
91 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules);
117 std::vector<linked_ptr<RulesRegistry::Rule> >* out);
121 std::vector<linked_ptr<RulesRegistry::Rule> >* out);
166 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules);
173 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules) = 0;
187 typedef std::map<RulesDictionaryKey, linked_ptr<RulesRegistry::Rule> >
272 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules);
276 const std::vector<linked_ptr<RulesRegistry::Rule> >& rules);
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestSuite.java36 protected List<Rule> rules ;
44 rules = new ArrayList<Rule>(); in TestSuite()
52 public void addRule(Rule currentRule) { in addRule()
58 public boolean hasRule(Rule rule) { in hasRule()
59 for(Rule r: rules) { in hasRule()
71 public void setRules(List<Rule> newRules) { in setRules()
82 public Rule getRule(int index) { return rules.get(index); } in getRule()
88 public Rule getRule(String name) { in getRule()
89 for(Rule rule: rules) { in getRule()
/external/chromium_org/third_party/libaddressinput/src/cpp/test/
Drule_test.cc44 using i18n::addressinput::Rule;
48 Rule rule; in TEST()
65 Rule copy; in TEST()
104 Rule rule; in TEST()
143 Rule rule; in TEST()
149 Rule rule; in TEST()
155 Rule rule; in TEST()
164 Rule rule; in TEST()
173 Rule rule; in TEST()
183 Rule rule; in TEST()
[all …]
Dpost_box_matchers_test.cc34 using i18n::addressinput::Rule;
37 Rule rule; in TEST()
44 Rule rule; in TEST()
52 Rule rule; in TEST()
61 Rule rule; in TEST()
70 Rule rule; in TEST()
79 Rule rule; in TEST()
Dpreload_supplier_test.cc39 using i18n::addressinput::Rule;
69 const Rule* rule = supplier_.GetRule(us_key); in TEST_F()
81 const Rule* rule = supplier_.GetRule(ca_key); in TEST_F()
92 const Rule* rule = supplier_.GetRule(zw_key); in TEST_F()
104 const Rule* rule = supplier_.GetRule(unknown_key); in TEST_F()
116 const Rule* rule = supplier_.GetRule(precise_key); in TEST_F()
122 const std::map<std::string, const Rule*>& rules = in TEST_F()
/external/chromium_org/net/proxy/
Dproxy_bypass_rules.h22 class NET_EXPORT Rule {
24 Rule();
25 virtual ~Rule();
35 virtual Rule* Clone() const = 0;
37 bool Equals(const Rule& rule) const;
40 DISALLOW_COPY_AND_ASSIGN(Rule);
43 typedef std::vector<const Rule*> RuleList;
Dproxy_bypass_rules.cc20 class HostnamePatternRule : public ProxyBypassRules::Rule {
53 virtual Rule* Clone() const OVERRIDE { in Clone()
65 class BypassLocalRule : public ProxyBypassRules::Rule {
78 virtual Rule* Clone() const OVERRIDE { in Clone()
86 class BypassIPBlockRule : public ProxyBypassRules::Rule {
120 virtual Rule* Clone() const OVERRIDE { in Clone()
148 ProxyBypassRules::Rule::Rule() { in Rule() function in net::ProxyBypassRules::Rule
151 ProxyBypassRules::Rule::~Rule() { in ~Rule()
154 bool ProxyBypassRules::Rule::Equals(const Rule& rule) const { in Equals()
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
Drule.cc110 Rule::Rule() in Rule() function in i18n::addressinput::Rule
126 Rule::~Rule() {} in ~Rule()
129 const Rule& Rule::GetDefault() { in GetDefault()
131 static Rule* default_rule = NULL; in GetDefault()
133 default_rule = new Rule; in GetDefault()
140 void Rule::CopyFrom(const Rule& rule) { in CopyFrom()
162 bool Rule::ParseSerializedRule(const std::string& serialized_rule) { in ParseSerializedRule()
171 void Rule::ParseJsonRule(const Json& json) { in ParseJsonRule()
Dpreload_supplier.cc62 class IndexMap : public std::map<std::string, const Rule*, IndexLess> {};
75 std::vector<const Rule*>* rule_storage, in Helper()
76 std::map<std::string, const Rule*>* region_rules) in Helper()
107 std::vector<const Rule*> sub_rules; in OnRetrieved()
111 std::map<std::string, const Rule*>::iterator last_region_it = in OnRetrieved()
142 Rule* rule = new Rule; in OnRetrieved()
145 rule->CopyFrom(Rule::GetDefault()); in OnRetrieved()
181 for (std::vector<const Rule*>::const_iterator in OnRetrieved()
183 std::stack<const Rule*> hierarchy; in OnRetrieved()
208 const Rule* rule = hierarchy.top(); in OnRetrieved()
[all …]
Drule.h43 class Rule {
45 Rule();
46 ~Rule();
51 static const Rule& GetDefault();
54 void CopyFrom(const Rule& rule);
145 DISALLOW_COPY_AND_ASSIGN(Rule);
/external/owasp/sanitizer/tools/findbugs/lib/
Dasm-xml-3.3.jarMETA-INF/MANIFEST.MF org/objectweb/asm/xml/ASMContentHandler$AnnotationDefaultRule. ...
/external/chromium_org/chrome/browser/extensions/api/declarative_webrequest/
Dwebrequest_rules_registry_unittest.cc100 linked_ptr<RulesRegistry::Rule> CreateRule1() { in CreateRule1()
125 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateRule1()
137 linked_ptr<RulesRegistry::Rule> CreateRule2() { in CreateRule2()
144 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateRule2()
153 linked_ptr<RulesRegistry::Rule> CreateRedirectRule( in CreateRedirectRule()
162 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateRedirectRule()
173 linked_ptr<RulesRegistry::Rule> CreateIgnoreRule() { in CreateIgnoreRule()
184 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateIgnoreRule()
209 linked_ptr<RulesRegistry::Rule> CreateCancellingRule( in CreateCancellingRule()
215 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateCancellingRule()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DGrammarSanity.java46 protected Set<Rule> visitedDuringRecursionCheck = null;
58 public List<Set<Rule>> checkAllRulesForLeftRecursion() { in checkAllRulesForLeftRecursion()
61 List<Set<Rule>> listOfRecursiveCycles = new ArrayList(); in checkAllRulesForLeftRecursion()
63 Rule r = grammar.composite.ruleIndexToRuleList.elementAt(i); in checkAllRulesForLeftRecursion()
91 List<Set<Rule>> listOfRecursiveCycles) in traceStatesLookingForLeftRecursion()
107 Rule refRuleDef = refTrans.rule; in traceStatesLookingForLeftRecursion()
163 protected void addRulesToCycle(Rule targetRule, in addRulesToCycle()
164 Rule enclosingRule, in addRulesToCycle()
165 List<Set<Rule>> listOfRecursiveCycles) in addRulesToCycle()
169 Set<Rule> rulesInCycle = listOfRecursiveCycles.get(i); in addRulesToCycle()
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_filename_controller/
Doptions.js5 function Rule(data) { class
8 this.node.id = 'rule' + (Rule.next_id++);
57 Rule.prototype.getElement = function(name) {
61 Rule.prototype.render = function() {
68 Rule.next_id = 0;
73 JSON.parse(rules).forEach(function(rule) {new Rule(rule);});
94 new Rule();

12345678910>>...13