Home
last modified time | relevance | path

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

1234567891011

/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/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/chrome/browser/content_settings/
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/chrome/browser/extensions/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.cc36 const std::vector<linked_ptr<extensions::RulesRegistry::Rule> >& rules) { in RulesToValue()
43 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > RulesFromValue( in RulesFromValue()
45 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > rules; in RulesFromValue()
56 linked_ptr<extensions::RulesRegistry::Rule> rule( in RulesFromValue()
57 new extensions::RulesRegistry::Rule()); in RulesFromValue()
58 if (extensions::RulesRegistry::Rule::Populate(*dict, rule.get())) in RulesFromValue()
101 const std::vector<linked_ptr<Rule> >& rules) { in AddRulesNoFill()
105 for (std::vector<linked_ptr<Rule> >::const_iterator i = in AddRulesNoFill()
121 for (std::vector<linked_ptr<Rule> >::const_iterator i = in AddRulesNoFill()
134 const std::vector<linked_ptr<Rule> >& rules) { in AddRules()
[all …]
Ddeclarative_rule_unittest.cc309 typedef DeclarativeRule<FulfillableCondition, SummingAction> Rule; in TEST() typedef
310 linked_ptr<Rule::JsonRule> json_rule(new Rule::JsonRule); in TEST()
311 ASSERT_TRUE(Rule::JsonRule::Populate( in TEST()
337 scoped_ptr<Rule> rule(Rule::Create(matcher.condition_factory(), in TEST()
341 Rule::ConsistencyChecker(), in TEST()
351 const Rule::ConditionSet& condition_set = rule->conditions(); in TEST()
352 const Rule::ConditionSet::Conditions& conditions = in TEST()
358 const Rule::ActionSet& action_set = rule->actions(); in TEST()
359 const Rule::ActionSet::Actions& actions = action_set.actions(); in TEST()
380 typedef DeclarativeRule<FulfillableCondition, SummingAction> Rule; in TEST() typedef
[all …]
Drules_registry.h42 typedef extensions::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/chromium/cpp/test/
Drule_test.cc39 using i18n::addressinput::Rule;
43 Rule rule; in TEST()
53 Rule copy; in TEST()
75 Rule rule; in TEST()
112 Rule rule; in TEST()
119 Rule rule; in TEST()
129 Rule rule; in TEST()
135 Rule rule; in TEST()
145 Rule rule; in TEST()
150 Rule rule; in TEST()
[all …]
/external/chromium/net/proxy/
Dproxy_bypass_rules.h22 class 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.cc17 class HostnamePatternRule : public ProxyBypassRules::Rule {
49 virtual Rule* Clone() const { in Clone()
61 class BypassLocalRule : public ProxyBypassRules::Rule {
74 virtual Rule* Clone() const { in Clone()
82 class BypassIPBlockRule : public ProxyBypassRules::Rule {
116 virtual Rule* Clone() const { in Clone()
143 ProxyBypassRules::Rule::Rule() { in Rule() function in net::ProxyBypassRules::Rule
146 ProxyBypassRules::Rule::~Rule() { in ~Rule()
149 bool ProxyBypassRules::Rule::Equals(const Rule& rule) const { in Equals()
/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.cc19 class HostnamePatternRule : public ProxyBypassRules::Rule {
51 virtual Rule* Clone() const OVERRIDE { in Clone()
63 class BypassLocalRule : public ProxyBypassRules::Rule {
76 virtual Rule* Clone() const OVERRIDE { in Clone()
84 class BypassIPBlockRule : public ProxyBypassRules::Rule {
118 virtual Rule* Clone() const OVERRIDE { in Clone()
145 ProxyBypassRules::Rule::Rule() { in Rule() function in net::ProxyBypassRules::Rule
148 ProxyBypassRules::Rule::~Rule() { in ~Rule()
151 bool ProxyBypassRules::Rule::Equals(const Rule& rule) const { in Equals()
/external/chromium/net/base/
Dmock_host_resolver.cc122 struct RuleBasedHostResolverProc::Rule { struct in net::RuleBasedHostResolverProc
137 Rule(ResolverType resolver_type, in Rule() function
170 Rule rule(Rule::kResolverTypeSystem, host_pattern, address_family, flags, in AddRuleForAddressFamily()
187 Rule rule(Rule::kResolverTypeIPLiteral, host_pattern, in AddIPLiteralRule()
200 Rule rule(Rule::kResolverTypeSystem, host_pattern, ADDRESS_FAMILY_UNSPECIFIED, in AddRuleWithLatency()
209 Rule rule(Rule::kResolverTypeSystem, host_pattern, ADDRESS_FAMILY_UNSPECIFIED, in AllowDirectLookup()
218 Rule rule(Rule::kResolverTypeFail, host_pattern, ADDRESS_FAMILY_UNSPECIFIED, in AddSimulatedFailure()
250 case Rule::kResolverTypeFail: in Resolve()
252 case Rule::kResolverTypeSystem: in Resolve()
257 case Rule::kResolverTypeIPLiteral: in Resolve()
/external/chromium_org/chrome/browser/extensions/api/declarative_webrequest/
Dwebrequest_rules_registry_unittest.cc99 linked_ptr<RulesRegistry::Rule> CreateRule1() { in CreateRule1()
124 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateRule1()
136 linked_ptr<RulesRegistry::Rule> CreateRule2() { in CreateRule2()
143 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateRule2()
152 linked_ptr<RulesRegistry::Rule> CreateRedirectRule( in CreateRedirectRule()
161 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateRedirectRule()
172 linked_ptr<RulesRegistry::Rule> CreateIgnoreRule() { in CreateIgnoreRule()
183 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateIgnoreRule()
208 linked_ptr<RulesRegistry::Rule> CreateCancellingRule( in CreateCancellingRule()
214 linked_ptr<RulesRegistry::Rule> rule(new RulesRegistry::Rule); in CreateCancellingRule()
[all …]
/external/chromium_org/third_party/libaddressinput/chromium/cpp/src/
Drule.h34 class Rule {
36 Rule();
37 ~Rule();
40 void CopyFrom(const Rule& rule);
81 DISALLOW_COPY_AND_ASSIGN(Rule);
Drule.cc103 Rule::Rule() in Rule() function in i18n::addressinput::Rule
111 Rule::~Rule() {} in ~Rule()
113 void Rule::CopyFrom(const Rule& rule) { in CopyFrom()
122 bool Rule::ParseSerializedRule(const std::string& serialized_rule) { in ParseSerializedRule()
/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();
/external/chromium_org/v8/test/cctest/
Dtest-date.cc38 struct Rule { struct in DateCacheMock
42 DateCacheMock(int local_offset, Rule* rules, int rules_count) in DateCacheMock()
51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS()
61 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) { in FindRuleFor()
62 Rule* result = NULL; in FindRuleFor()
71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match()
98 Rule* rules_;
125 DateCacheMock::Rule rules[] = { in TEST()
/external/v8/test/cctest/
Dtest-date.cc38 struct Rule { struct in DateCacheMock
42 DateCacheMock(int local_offset, Rule* rules, int rules_count) in DateCacheMock()
51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS()
61 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) { in FindRuleFor()
62 Rule* result = NULL; in FindRuleFor()
71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match()
98 Rule* rules_;
124 DateCacheMock::Rule rules[] = { in TEST()
/external/chromium_org/tools/checkdeps/
Drules.py12 class Rule(object): class
51 class MessageRule(Rule):
57 super(MessageRule, self).__init__(Rule.DISALLOW, '', '', '')
72 if not rule_string[0] in [Rule.ALLOW, Rule.DISALLOW, Rule.TEMP_ALLOW]:
158 rules_to_update.insert(0, Rule(rule_type, rule_dir, dependent_dir, source))
/external/chromium_org/net/dns/
Dmock_host_resolver.cc215 struct RuleBasedHostResolverProc::Rule { struct in net::RuleBasedHostResolverProc
230 Rule(ResolverType resolver_type, in Rule() function
263 Rule rule(Rule::kResolverTypeSystem, in AddRuleForAddressFamily()
285 Rule rule(Rule::kResolverTypeIPLiteral, host_pattern, in AddIPLiteralRule()
298 Rule rule(Rule::kResolverTypeSystem, in AddRuleWithLatency()
312 Rule rule(Rule::kResolverTypeSystem, in AllowDirectLookup()
326 Rule rule(Rule::kResolverTypeFail, in AddSimulatedFailure()
371 case Rule::kResolverTypeFail: in Resolve()
373 case Rule::kResolverTypeSystem: in Resolve()
381 case Rule::kResolverTypeIPLiteral: in Resolve()

1234567891011