Home
last modified time | relevance | path

Searched refs:rules (Results 1 – 25 of 789) sorted by relevance

12345678910>>...32

/external/chromium/net/proxy/
Dproxy_bypass_rules_unittest.cc17 ProxyBypassRules rules; in TEST() local
18 rules.ParseFromString("wWw.gOogle.com"); in TEST()
19 ASSERT_EQ(1u, rules.rules().size()); in TEST()
20 EXPECT_EQ("www.google.com", rules.rules()[0]->ToString()); in TEST()
24 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com"))); in TEST()
25 EXPECT_TRUE(rules.Matches(GURL("ftp://www.google.com:99"))); in TEST()
26 EXPECT_TRUE(rules.Matches(GURL("https://www.google.com:81"))); in TEST()
29 EXPECT_FALSE(rules.Matches(GURL("http://foo.www.google.com"))); in TEST()
30 EXPECT_FALSE(rules.Matches(GURL("http://xxx.google.com"))); in TEST()
31 EXPECT_FALSE(rules.Matches(GURL("http://google.com"))); in TEST()
[all …]
Dinit_proxy_resolver_unittest.cc94 explicit RuleBasedProxyScriptFetcher(const Rules* rules) : rules_(rules) {} in RuleBasedProxyScriptFetcher() argument
118 RuleBasedProxyResolver(const Rules* rules, bool expects_pac_bytes) in RuleBasedProxyResolver() argument
119 : ProxyResolver(expects_pac_bytes), rules_(rules) {} in RuleBasedProxyResolver()
174 Rules rules; in TEST() local
175 RuleBasedProxyResolver resolver(&rules, true /*expects_pac_bytes*/); in TEST()
176 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST()
181 Rules::Rule rule = rules.AddSuccessRule("http://custom/proxy.pac"); in TEST()
210 Rules rules; in TEST() local
211 RuleBasedProxyResolver resolver(&rules, true /*expects_pac_bytes*/); in TEST()
212 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST()
[all …]
Dproxy_config_service_common_unittest.cc41 bypass_rules.rules().begin(); in FlattenProxyBypass()
42 it != bypass_rules.rules().end(); ++it) { in FlattenProxyBypass()
73 const ProxyConfig::ProxyRules& rules) const { in Matches()
77 if (rules.type != type) { in Matches()
79 << type << " but was: " << rules.type; in Matches()
84 rules.single_proxy, &failure_details, &failed); in Matches()
86 rules.proxy_for_http, &failure_details, &failed); in Matches()
88 rules.proxy_for_https, &failure_details, &failed); in Matches()
90 rules.fallback_proxy, &failure_details, &failed); in Matches()
92 std::string actual_flattened_bypass = FlattenProxyBypass(rules.bypass_rules); in Matches()
[all …]
/external/chromium/net/base/
Dhost_mapping_rules_unittest.cc15 HostMappingRules rules; in TEST() local
16 rules.SetRulesFromString( in TEST()
20 EXPECT_FALSE(rules.RewriteHost(&host_port)); in TEST()
25 EXPECT_TRUE(rules.RewriteHost(&host_port)); in TEST()
30 EXPECT_TRUE(rules.RewriteHost(&host_port)); in TEST()
35 EXPECT_FALSE(rules.RewriteHost(&host_port)); in TEST()
41 HostMappingRules rules; in TEST() local
42 rules.SetRulesFromString( in TEST()
47 EXPECT_FALSE(rules.RewriteHost(&host_port)); in TEST()
53 EXPECT_TRUE(rules.RewriteHost(&host_port)); in TEST()
[all …]
Descape.cc103 UnescapeRule::Type rules, in UnescapeURLWithOffsetsImpl() argument
111 if (rules == UnescapeRule::NONE) in UnescapeURLWithOffsetsImpl()
141 (value == ' ' && (rules & UnescapeRule::SPACES)) || in UnescapeURLWithOffsetsImpl()
144 (value > ' ' && (rules & UnescapeRule::URL_SPECIAL_CHARS)) || in UnescapeURLWithOffsetsImpl()
146 (value < ' ' && (rules & UnescapeRule::CONTROL_CHARS)))) { in UnescapeURLWithOffsetsImpl()
161 } else if ((rules & UnescapeRule::REPLACE_PLUS_WITH_SPACE) && in UnescapeURLWithOffsetsImpl()
182 UnescapeRule::Type rules, in UnescapeURLImpl() argument
187 STR result = UnescapeURLWithOffsetsImpl(escaped_text, rules, &offsets); in UnescapeURLImpl()
252 UnescapeRule::Type rules, in UnescapeAndDecodeUTF8URLComponentWithOffsets() argument
259 UnescapeURLWithOffsetsImpl(text, rules, offsets_for_adjustment)); in UnescapeAndDecodeUTF8URLComponentWithOffsets()
[all …]
Dmapped_host_resolver_unittest.cc20 resolver_impl->rules()->AddSimulatedFailure("*google.com"); in TEST()
21 resolver_impl->rules()->AddRule("baz.com", "192.168.1.5"); in TEST()
22 resolver_impl->rules()->AddRule("foo.com", "192.168.1.8"); in TEST()
23 resolver_impl->rules()->AddRule("proxy", "192.168.1.11"); in TEST()
74 resolver_impl->rules()->AddRule("baz", "192.168.1.5"); in TEST()
75 resolver_impl->rules()->AddRule("www.google.com", "192.168.1.3"); in TEST()
110 resolver_impl->rules()->AddRule("baz", "192.168.1.7"); in TEST()
111 resolver_impl->rules()->AddRule("bar", "192.168.1.9"); in TEST()
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestSuite.java36 protected List<Rule> rules ; field in TestSuite
44 rules = new ArrayList<Rule>(); in TestSuite()
54 rules.add(currentRule); in addRule()
59 for(Rule r: rules) { in hasRule()
68 return rules.size(); in getRuleCount()
72 rules.clear(); in setRules()
73 rules.addAll(newRules); in setRules()
82 public Rule getRule(int index) { return rules.get(index); } in getRule()
89 for(Rule rule: rules) { in getRule()
98 public List getRulesForStringTemplate() {return rules;} in getRulesForStringTemplate()
/external/bison/src/
Dgram.c37 rule *rules = NULL; variable
164 int length = rule_rhs_length (&rules[r]); in ritem_longest_rhs()
183 if (filter && !filter (&rules[r])) in grammar_rules_partial_print()
187 else if (previous_lhs && previous_lhs != rules[r].lhs) in grammar_rules_partial_print()
190 rule_lhs_print (&rules[r], previous_lhs, out); in grammar_rules_partial_print()
191 rule_rhs_print (&rules[r], out); in grammar_rules_partial_print()
192 previous_lhs = rules[r].lhs; in grammar_rules_partial_print()
217 if (rule_useless_in_grammar_p (&rules[r])) in grammar_rules_print_xml()
219 else if (rule_useless_in_parser_p (&rules[r])) in grammar_rules_print_xml()
225 rules[r].number, usefulness); in grammar_rules_print_xml()
[all …]
Dreduce.c74 for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp) in useful_production()
120 bitset_set (Np, rules[r].lhs->number - ntokens); in useless_nonterminals()
178 && bitset_test (V, rules[r].lhs->number)) in inaccessable_symbols()
181 for (rhsp = rules[r].rhs; *rhsp >= 0; rhsp++) in inaccessable_symbols()
222 if (rules[r].precsym != 0) in inaccessable_symbols()
223 bitset_set (V1, rules[r].precsym->number); in inaccessable_symbols()
240 rules[r].useful = bitset_test (P, r); in reduce_grammar_tables()
252 rules_sorted[rules[r].useful ? useful++ : useless++] = rules[r]; in reduce_grammar_tables()
253 free (rules); in reduce_grammar_tables()
254 rules = rules_sorted; in reduce_grammar_tables()
[all …]
Dreader.c510 rules = xnmalloc (nrules, sizeof *rules); in packgram()
518 rules[ruleno].user_number = ruleno; in packgram()
519 rules[ruleno].number = ruleno; in packgram()
520 rules[ruleno].lhs = p->content.sym; in packgram()
521 rules[ruleno].rhs = ritem + itemno; in packgram()
522 rules[ruleno].prec = NULL; in packgram()
523 rules[ruleno].dprec = p->dprec; in packgram()
524 rules[ruleno].merger = p->merger; in packgram()
525 rules[ruleno].precsym = NULL; in packgram()
526 rules[ruleno].location = p->location; in packgram()
[all …]
Dprint.c103 rule_lhs_print (&rules[r], previous_lhs, out); in print_core()
104 previous_lhs = rules[r].lhs; in print_core()
106 for (sp = rules[r].rhs; sp < sp1; sp++) in print_core()
115 state_rule_lookahead_tokens_print (s, &rules[r], out); in print_core()
253 default_reduction = &rules[yydefact[s->number] - 1]; in print_reductions()
276 if (reds->rules[j] != default_reduction) in print_reductions()
308 if (reds->rules[j] != default_reduction) in print_reductions()
313 reds->rules[j], true); in print_reductions()
329 reds->rules[j], false); in print_reductions()
342 || (reds->num == 1 && reds->rules[0]->number == 0)); in print_reductions()
[all …]
/external/chromium/chrome/common/extensions/docs/examples/extensions/proxy_configuration/test/
Dproxy_form_controller_test.js221 rules: {}, property
231 rules: {}, property
241 rules: {}, property
251 rules: {}, property
261 rules: {}, property
272 rules: { property
289 rules: {}, property
300 rules: { property
322 rules: { property
464 this.assertEqual('http', result.rules.singleProxy.scheme);
[all …]
/external/icu4c/test/cintltst/
Dcg7coll.c195 static const char rules[] = "& Z < p, P"; in TestDemo1() local
196 int32_t len=(int32_t)strlen(rules); in TestDemo1()
197 UChar temp[sizeof(rules)]; in TestDemo1()
199 u_uastrcpy(temp, rules); in TestDemo1()
226 static const char rules[] = "& C < ch , cH, Ch, CH"; in TestDemo2() local
227 int32_t len=(int32_t)strlen(rules); in TestDemo2()
228 UChar temp[sizeof(rules)]; in TestDemo2()
230 u_uastrcpy(temp, rules); in TestDemo2()
255 static const char rules[] = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
256 int32_t len=(int32_t)strlen(rules); in TestDemo3()
[all …]
Dcallcoll.c663 void genericRulesStarterWithOptionsAndResult(const char *rules, const char * const s[], uint32_t si… in genericRulesStarterWithOptionsAndResult() argument
666 uint32_t rlen = u_unescape(rules, rlz, RULE_BUFFER_LEN); in genericRulesStarterWithOptionsAndResult()
671 log_verbose("Rules starter for %s\n", rules); in genericRulesStarterWithOptionsAndResult()
681 log_err_status(status, "Unable to open collator with rules %s\n", rules); in genericRulesStarterWithOptionsAndResult()
712 void genericRulesStarterWithResult(const char *rules, const char * const s[], uint32_t size, UColla… in genericRulesStarterWithResult() argument
715 uint32_t rlen = u_unescape(rules, rlz, RULE_BUFFER_LEN); in genericRulesStarterWithResult()
719 log_verbose("Rules starter for %s\n", rules); in genericRulesStarterWithResult()
727 log_err("Unable to open collator with rules %s\n", rules); in genericRulesStarterWithResult()
731 void genericRulesStarter(const char *rules, const char * const s[], uint32_t size) { in genericRulesStarter() argument
732 genericRulesStarterWithResult(rules, s, size, UCOL_LESS); in genericRulesStarter()
[all …]
/external/icu4c/i18n/
Dnfrs.cpp123 , rules(0) in NFRuleSet()
194 rules.deleteAll(); in parseRules()
207 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
221 while (i < rules.size()) { in parseRules()
222 NFRule* rule = rules[i]; in parseRules()
244 negativeNumberRule = rules.remove(i); in parseRules()
253 fractionRules[0] = rules.remove(i); in parseRules()
262 fractionRules[1] = rules.remove(i); in parseRules()
271 fractionRules[2] = rules.remove(i); in parseRules()
317 if (rules.size() == rhs.rules.size() && in operator ==()
[all …]
Drbt_set.cpp172 rules = NULL; in TransliterationRuleSet()
182 rules(0), in TransliterationRuleSet()
204 if (other.rules != 0 && U_SUCCESS(status)) { in TransliterationRuleSet()
215 uprv_free(rules); in ~TransliterationRuleSet()
224 rules[i]->setData(d); in setData()
259 uprv_free(rules); in addRule()
260 rules = 0; in addRule()
336 uprv_free(rules); // Contains alias pointers in freeze()
340 rules = NULL; in freeze()
343 rules = (TransliterationRule **)uprv_malloc(v.size() * sizeof(TransliterationRule *)); in freeze()
[all …]
Dtblcoll.cpp89 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() argument
93 construct(rules, in RuleBasedCollator()
99 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() argument
103 construct(rules, in RuleBasedCollator()
109 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() argument
114 construct(rules, in RuleBasedCollator()
120 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() argument
125 construct(rules, in RuleBasedCollator()
156 RuleBasedCollator::construct(const UnicodeString& rules, in construct() argument
161 ucollator = ucol_openRules(rules.getBuffer(), rules.length(), in construct()
[all …]
/external/junit/src/org/junit/rules/
DRunRules.java1 package org.junit.rules;
12 public RunRules(Statement base, Iterable<TestRule> rules, Description description) { in RunRules() argument
13 statement= applyAll(base, rules, description); in RunRules()
21 private static Statement applyAll(Statement result, Iterable<TestRule> rules, in applyAll() argument
23 for (TestRule each : rules) in applyAll()
/external/chromium/chrome/browser/chromeos/
Dproxy_config_service_impl.cc78 if (config.bypass_rules.rules().empty()) { in operator <<()
83 for (it = bypass_rules.rules().begin(); in operator <<()
84 it != bypass_rules.rules().end(); ++it) { in operator <<()
249 net::ProxyConfig::ProxyRules rules; in Deserialize() local
250 rules.ParseFromString(proxy_proto.proxy_server()); in Deserialize()
251 switch (rules.type) { in Deserialize()
255 if (!rules.single_proxy.is_valid()) in Deserialize()
258 single_proxy.server = rules.single_proxy; in Deserialize()
262 if (!rules.proxy_for_http.is_valid() && in Deserialize()
263 !rules.proxy_for_https.is_valid() && in Deserialize()
[all …]
/external/icu4c/test/intltest/
Dplurults.cpp278 PluralRules* rules[MAX_EQ_COL]; in testEquality() local
281 rules[j]=NULL; in testEquality()
285 rules[totalRules]=test.createRules(testEquRules[i][totalRules], status); in testEquality()
290 key[j] = rules[j]->select(n); in testEquality()
301 if (rules[j]!=NULL) { in testEquality()
302 delete rules[j]; in testEquality()
352 PluralRules *rules = PluralRules::forLocale(locales[i], status); in testGetSamples() local
356 StringEnumeration *keywords = rules->getKeywords(status); in testGetSamples()
358 delete rules; in testGetSamples()
363 int32_t count = rules->getSamples(*keyword, values, 4, status); in testGetSamples()
[all …]
Dregcoll.cpp96 UnicodeString rules; in Test4051866() local
99 rules += "< o "; in Test4051866()
100 rules += "& oe ,o"; in Test4051866()
101 rules += (UChar)0x3080; in Test4051866()
102 rules += "& oe ,"; in Test4051866()
103 rules += (UChar)0x1530; in Test4051866()
104 rules += " ,O"; in Test4051866()
105 rules += "& OE ,O"; in Test4051866()
106 rules += (UChar)0x3080; in Test4051866()
107 rules += "& OE ,"; in Test4051866()
[all …]
/external/chromium/net/tools/tld_cleanup/
Dtld_cleanup.cc55 bool WriteRules(const RuleMap& rules, FilePath outfile) { in WriteRules() argument
72 for (RuleMap::const_iterator i = rules.begin(); i != rules.end(); ++i) { in WriteRules()
178 RuleMap rules; in NormalizeFile() local
203 CHECK(rules.find(domain) == rules.end()); in NormalizeFile()
205 rules[domain] = rule; in NormalizeFile()
229 if (rules.find(*iter) == rules.end()) { in NormalizeFile()
233 rules[*iter] = rule; in NormalizeFile()
237 if (!WriteRules(rules, out_filename)) { in NormalizeFile()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DPluralResourceLoader.java26 PluralRules rules = plurals.get(name); in getValue() local
27 if (rules != null) { in getValue()
28 Plural p = rules.find(quantity); in getValue()
39 PluralRules rules = new PluralRules(); in processNode() local
46 rules.add(new Plural(quantity, stringResourceLoader.getValue(value, isSystem))); in processNode()
48 rules.add(new Plural(quantity, value)); in processNode()
51 plurals.put("plurals/" + name, rules); in processNode()
/external/libmtp/
DMakefile.am7 noinst_DATA=libmtp.usermap libmtp.rules libmtp.fdi
10 libmtp.rules: examples/hotplug
11 examples/hotplug -u > libmtp.rules
15 CLEANFILES = libmtp.usermap libmtp.rules libmtp.fdi
/external/chromium/chrome/browser/extensions/
Dextension_proxy_api_helpers.cc336 net::ProxyConfig::ProxyRules rules; in CreateProxyRulesDict() local
337 rules.ParseFromString(proxy_servers); in CreateProxyRulesDict()
339 switch (rules.type) { in CreateProxyRulesDict()
343 if (rules.single_proxy.is_valid()) { in CreateProxyRulesDict()
345 CreateProxyServerDict(rules.single_proxy)); in CreateProxyRulesDict()
349 if (rules.proxy_for_http.is_valid()) { in CreateProxyRulesDict()
351 CreateProxyServerDict(rules.proxy_for_http)); in CreateProxyRulesDict()
353 if (rules.proxy_for_https.is_valid()) { in CreateProxyRulesDict()
356 CreateProxyServerDict(rules.proxy_for_https)); in CreateProxyRulesDict()
358 if (rules.proxy_for_ftp.is_valid()) { in CreateProxyRulesDict()
[all …]

12345678910>>...32