/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_filename_controller/ |
H A D | bg.js | 5 function matches(rule, item) { 6 if (rule.matcher == 'js') 7 return eval(rule.match_param); 8 if (rule.matcher == 'hostname') { 11 var host = (rule.match_param.indexOf(':') < 0) ? link.hostname : link.host; 12 return (host.indexOf(rule.match_param.toLowerCase()) == 13 (host.length - rule.match_param.length)); 15 if (rule.matcher == 'default') 16 return item.filename == rule.match_param; 17 if (rule [all...] |
H A D | options.js | 7 this.node = document.getElementById('rule-template').cloneNode(true); 8 this.node.id = 'rule' + (Rule.next_id++); 9 this.node.rule = this; 32 var rule = this; 34 var sib = rule.node.previousSibling; 35 rule.node.parentNode.removeChild(rule.node); 36 sib.parentNode.insertBefore(rule.node, sib); 40 var parentNode = rule.node.parentNode; 41 var sib = rule [all...] |
/external/chromium_org/third_party/libaddressinput/src/cpp/src/ |
H A D | address_metadata.cc | 24 #include "rule.h" 34 Rule rule; local 35 rule.CopyFrom(Rule::GetDefault()); 36 if (!rule.ParseSerializedRule( 41 return std::find(rule.GetRequired().begin(), 42 rule.GetRequired().end(), 43 field) != rule.GetRequired().end(); 51 Rule rule; local 52 rule.CopyFrom(Rule::GetDefault()); 53 if (!rule [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
H A D | RuleClosureTransition.java | 32 /** A transition used to reference another rule. It tracks two targets 34 * state that refers to the other rule. Conversion of an NFA that 35 * falls off the end of a rule will be able to figure out who invoked 36 * that rule because of these special transitions. 39 /** Ptr to the rule definition object for this rule ref */ 40 public Rule rule; field in class:RuleClosureTransition 42 /** What node to begin computations following ref to rule */ 45 public RuleClosureTransition(Rule rule, argument 50 this.rule [all...] |
/external/bison/src/ |
H A D | derives.h | 28 extern rule ***derives;
|
H A D | gram.h | 36 The rules receive rule numbers 1 to NRULES in the order they are 38 initial rule, `$accept: START-SYMBOL $end', which is numbered 1, 39 all the user rules are 2, 3 etc. Each time a rule number is 40 presented to the user, we subtract 1, so *displayed* rule numbers 43 Internally, we cannot use the number 0 for a rule because for 44 instance RITEM stores both symbol (the RHS) and rule numbers: the 45 symbols are shorts >= 0, and rule number are stored negative. 46 Therefore 0 cannot be used, since it would be both the rule number 49 Actions are accessed via the rule number. 56 RULES[R].lhs -- the symbol of the left hand side of rule 200 } rule; typedef in typeref:struct:__anon375 [all...] |
/external/chromium_org/sandbox/win/src/ |
H A D | process_mitigations_win32k_policy.cc | 13 PolicyRule rule(FAKE_SUCCESS); 14 if (!policy->AddRule(IPC_GDI_GDIDLLINITIALIZE_TAG, &rule)) 16 if (!policy->AddRule(IPC_GDI_GETSTOCKOBJECT_TAG, &rule)) 18 if (!policy->AddRule(IPC_USER_REGISTERCLASSW_TAG, &rule))
|
/external/libnl/src/lib/ |
H A D | rule.c | 2 * src/lib/rule.c CLI Routing Rule Helpers 20 #include <netlink/cli/rule.h> 24 struct rtnl_rule *rule; local 26 rule = rtnl_rule_alloc(); 27 if (!rule) 28 nl_cli_fatal(ENOMEM, "Unable to allocate rule object"); 30 return rule; 39 nl_cli_fatal(err, "Unable to allocate routing rule cache: %s\n", 47 void nl_cli_rule_parse_family(struct rtnl_rule *rule, char *arg) argument 52 rtnl_rule_set_family(rule, famil [all...] |
/external/libnl/lib/route/ |
H A D | rule.c | 2 * lib/route/rule.c Routing Rules 14 * @defgroup rule Routing Rules 23 #include <netlink/route/rule.h> 47 struct rtnl_rule *rule = nl_object_priv(c); local 49 if (!rule) 52 nl_addr_put(rule->r_src); 53 nl_addr_put(rule->r_dst); 83 struct rtnl_rule *rule; local 88 rule = rtnl_rule_alloc(); 89 if (!rule) { 215 struct rtnl_rule *rule = (struct rtnl_rule *) obj; local 232 struct rtnl_rule *rule = (struct rtnl_rule *) obj; local 336 rtnl_rule_put(struct rtnl_rule *rule) argument 516 rtnl_rule_build_delete_request(struct rtnl_rule *rule, int flags, struct nl_msg **result) argument 534 rtnl_rule_delete(struct nl_sock *sk, struct rtnl_rule *rule, int flags) argument 557 rtnl_rule_set_family(struct rtnl_rule *rule, int family) argument 563 rtnl_rule_get_family(struct rtnl_rule *rule) argument 571 rtnl_rule_set_prio(struct rtnl_rule *rule, int prio) argument 577 rtnl_rule_get_prio(struct rtnl_rule *rule) argument 585 rtnl_rule_set_mark(struct rtnl_rule *rule, uint64_t mark) argument 591 rtnl_rule_get_mark(struct rtnl_rule *rule) argument 599 rtnl_rule_set_table(struct rtnl_rule *rule, int table) argument 605 rtnl_rule_get_table(struct rtnl_rule *rule) argument 613 rtnl_rule_set_dsfield(struct rtnl_rule *rule, int dsfield) argument 619 rtnl_rule_get_dsfield(struct rtnl_rule *rule) argument 627 rtnl_rule_set_src_len(struct rtnl_rule *rule, int len) argument 635 rtnl_rule_get_src_len(struct rtnl_rule *rule) argument 643 rtnl_rule_set_dst_len(struct rtnl_rule *rule, int len) argument 651 rtnl_rule_get_dst_len(struct rtnl_rule *rule) argument 659 __assign_addr(struct rtnl_rule *rule, struct nl_addr **pos, struct nl_addr *new, uint8_t *len, int flag) argument 680 rtnl_rule_set_src(struct rtnl_rule *rule, struct nl_addr *src) argument 686 rtnl_rule_get_src(struct rtnl_rule *rule) argument 694 rtnl_rule_set_dst(struct rtnl_rule *rule, struct nl_addr *dst) argument 700 rtnl_rule_get_dst(struct rtnl_rule *rule) argument 708 rtnl_rule_set_iif(struct rtnl_rule *rule, const char *dev) argument 718 rtnl_rule_get_iif(struct rtnl_rule *rule) argument 726 rtnl_rule_set_action(struct rtnl_rule *rule, int type) argument 732 rtnl_rule_get_action(struct rtnl_rule *rule) argument 740 rtnl_rule_set_realms(struct rtnl_rule *rule, uint32_t realms) argument 746 rtnl_rule_get_realms(struct rtnl_rule *rule) argument [all...] |
/external/chromium_org/third_party/libaddressinput/src/cpp/test/ |
H A D | post_box_matchers_test.cc | 22 #include "rule.h" 37 Rule rule; local 38 std::vector<const RE2ptr*> matchers = PostBoxMatchers::GetMatchers(rule); 44 Rule rule; local 45 ASSERT_TRUE(rule.ParseSerializedRule("{\"languages\":\"xx\"}")); 46 std::vector<const RE2ptr*> matchers = PostBoxMatchers::GetMatchers(rule); 52 Rule rule; local 53 ASSERT_TRUE(rule.ParseSerializedRule("{\"languages\":\"sv\"}")); 54 std::vector<const RE2ptr*> matchers = PostBoxMatchers::GetMatchers(rule); 61 Rule rule; local 70 Rule rule; local 79 Rule rule; local [all...] |
H A D | rule_test.cc | 15 #include "rule.h" 48 Rule rule; local 49 ASSERT_TRUE(rule.ParseSerializedRule("{" 66 EXPECT_NE(rule.GetFormat(), copy.GetFormat()); 67 EXPECT_NE(rule.GetLatinFormat(), copy.GetLatinFormat()); 68 EXPECT_NE(rule.GetId(), copy.GetId()); 69 EXPECT_NE(rule.GetRequired(), copy.GetRequired()); 70 EXPECT_NE(rule.GetSubKeys(), copy.GetSubKeys()); 71 EXPECT_NE(rule.GetLanguages(), copy.GetLanguages()); 72 EXPECT_NE(rule 104 Rule rule; local 143 Rule rule; local 149 Rule rule; local 155 Rule rule; local 164 Rule rule; local 173 Rule rule; local 183 Rule rule; local 193 Rule rule; local 199 Rule rule; local 205 Rule rule; local 212 Rule rule; local 218 Rule rule; local 226 Rule rule; local 232 Rule rule; local 237 Rule rule; local 360 Rule rule; local [all...] |
/external/chromium_org/sandbox/mac/ |
H A D | policy_unittest.cc | 25 Rule rule; local 27 policy.rules["test"] = rule; 32 Rule rule(POLICY_SUBSTITUTE_PORT); 34 policy.rules["test"] = rule; 39 Rule rule(POLICY_ALLOW); 40 rule.substitute_port = mach_task_self(); 42 policy.rules["allow"] = rule; 47 Rule rule(POLICY_DENY_ERROR); 48 rule.substitute_port = mach_task_self(); 50 policy.rules["deny_error"] = rule; [all...] |
H A D | policy.cc | 30 static bool IsRuleValid(const Rule& rule) { argument 31 if (!(rule.result > POLICY_DECISION_INVALID && 32 rule.result < POLICY_DECISION_LAST)) { 35 if (rule.result == POLICY_SUBSTITUTE_PORT) { 36 if (rule.substitute_port == MACH_PORT_NULL) 39 if (rule.substitute_port != MACH_PORT_NULL)
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/speech_rules/ |
H A D | mathml_store.js | 6 * @fileoverview Speech rule store for mathml and mathjax trees. 27 * Adds a new MathML speech rule. 29 * @param {string} domain Domain annotation of the rule. 30 * @param {string} rule String version of the speech rule. 32 cvox.MathmlStore.prototype.defineMathmlRule = function(name, domain, rule) { 33 this.defineRule(name, domain, rule, 'self::mathml:' + name); 38 * Adds a new MathML speech rule for the default.default domain. 40 * @param {string} rule String version of the speech rule [all...] |
/external/chromium_org/net/base/ |
H A D | host_mapping_rules.cc | 36 const ExclusionRule& rule = *it; local 37 if (MatchPattern(host_port->host(), rule.hostname_pattern)) 44 const MapRule& rule = *it; local 46 // The rule's hostname_pattern will be something like: 53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) { 55 if (!MatchPattern(host_port_string, rule.hostname_pattern)) 56 continue; // This rule doesn't apply. 59 host_port->set_host(rule.replacement_hostname); 60 if (rule.replacement_port != -1) 61 host_port->set_port(rule 76 ExclusionRule rule; local 84 MapRule rule; local [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sources/ |
H A D | StyleSheetOutlineDialog.js | 73 var rule = this._cssParser.rules()[itemIndex]; 74 return rule.selectorText || rule.atRule; 84 var rule = this._cssParser.rules()[itemIndex]; 85 return -rule.lineNumber; 96 var rule = this._cssParser.rules()[itemIndex]; 97 titleElement.textContent = rule.selectorText || rule.atRule; 99 subtitleElement.textContent = ":" + (rule.lineNumber + 1); 108 var rule [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | zrule.cpp | 10 * \brief C API: Time zone rule classes 31 zrule_close(ZRule* rule) { argument 32 delete (TimeZoneRule*)rule; 41 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength) { argument 43 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); 50 zrule_getRawOffset(ZRule* rule) { argument 51 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); 55 zrule_getDSTSavings(ZRule* rule) { argument 56 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); 75 izrule_close(IZRule* rule) { argument 80 izrule_clone(IZRule *rule) argument 90 izrule_getName(IZRule* rule, UChar* & name, int32_t & nameLength) argument 101 izrule_getRawOffset(IZRule* rule) argument 106 izrule_getDSTSavings(IZRule* rule) argument 116 izrule_getFirstStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) argument 122 izrule_getFinalStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) argument 128 izrule_getNextStart(IZRule* rule, UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate& result) argument 134 izrule_getPreviousStart(IZRule* rule, UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate& result) argument 140 izrule_getStaticClassID(IZRule* rule) argument 145 izrule_getDynamicClassID(IZRule* rule) argument [all...] |
H A D | zrule.h | 12 * \brief C API: Time zone rule classes 54 zrule_close(ZRule* rule); 68 * @param rule, the Zrule to use 73 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength); 77 * @param rule, the Zrule to use 81 zrule_getRawOffset(ZRule* rule); 85 * @param rule, the Zrule to use 86 * @return The amount of daylight saving offset used by this rule 90 zrule_getDSTSavings(ZRule* rule); 93 * Returns if this rule represent [all...] |
/external/icu/icu4c/source/i18n/ |
H A D | zrule.cpp | 10 * \brief C API: Time zone rule classes 31 zrule_close(ZRule* rule) { argument 32 delete (TimeZoneRule*)rule; 41 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength) { argument 43 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); 50 zrule_getRawOffset(ZRule* rule) { argument 51 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); 55 zrule_getDSTSavings(ZRule* rule) { argument 56 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); 75 izrule_close(IZRule* rule) { argument 80 izrule_clone(IZRule *rule) argument 90 izrule_getName(IZRule* rule, UChar* & name, int32_t & nameLength) argument 101 izrule_getRawOffset(IZRule* rule) argument 106 izrule_getDSTSavings(IZRule* rule) argument 116 izrule_getFirstStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) argument 122 izrule_getFinalStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) argument 128 izrule_getNextStart(IZRule* rule, UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate& result) argument 134 izrule_getPreviousStart(IZRule* rule, UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate& result) argument 140 izrule_getStaticClassID(IZRule* rule) argument 145 izrule_getDynamicClassID(IZRule* rule) argument [all...] |
H A D | zrule.h | 12 * \brief C API: Time zone rule classes 54 zrule_close(ZRule* rule); 68 * @param rule, the Zrule to use 73 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength); 77 * @param rule, the Zrule to use 81 zrule_getRawOffset(ZRule* rule); 85 * @param rule, the Zrule to use 86 * @return The amount of daylight saving offset used by this rule 90 zrule_getDSTSavings(ZRule* rule); 93 * Returns if this rule represent [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/ |
H A D | gUnitTestSuite.java | 30 /** A class which wraps all testsuites for an individual rule */ 35 protected String rule = null; // paeser rule name for unit testing field in class:gUnitTestSuite 36 protected String lexicalRule = null; // lexical rule name 37 protected String treeRule = null; // optional, required for testing tree grammar rule 49 public gUnitTestSuite(String rule) { argument 50 this.rule = rule; 53 public gUnitTestSuite(String treeRule, String rule) { argument 54 this.rule [all...] |
/external/jarjar/src/test/com/tonicsystems/jarjar/ |
H A D | GenericsTest.java | 28 Rule rule = new Rule(); 29 rule.setPattern("java.lang.String"); 30 rule.setResult("com.tonicsystems.String"); 31 RemappingClassTransformer t = new RemappingClassTransformer(new PackageRemapper(Arrays.asList(rule), false));
|
/external/libnl/include/netlink/cli/ |
H A D | rule.h | 2 * netlink/cli/rule.h CLI Routing Rule Helpers 15 #include <netlink/route/rule.h>
|
/external/chromium_org/tools/memory_inspector/memory_inspector/classification/ |
H A D | results.py | 9 to the one of the corresponding rule tree. 11 - The client loads a "rule tree" defined by the end-user (e.g., in a file) which 23 matches a rule. 66 |trace_record| (in the worst case it will be the catchall *-other rule). 85 if not bucket.rule.Match(trace_record): 96 def _MakeBucketNodeFromRule(rule, num_keys): 97 assert(isinstance(rule, rules.Rule)) 98 bucket = Bucket(rule, num_keys) 99 for child_rule in rule.children: 107 def __init__(self, rule, num_key [all...] |
/external/chromium_org/tools/deep_memory_profiler/lib/ |
H A D | policy.py | 34 """Represents one matching rule in a policy file.""" 129 """Finds a rule whose name is |component_name|. """ 130 for rule in self._rules: 131 if rule.name == component_name: 132 return rule 157 for rule in self._rules: 158 if (rule.allocator_type == 'malloc' and 159 (not rule.stackfunction_pattern or 160 rule.stackfunction_pattern.match(stackfunction)) and 161 (not rule [all...] |