/external/chromium_org/third_party/libaddressinput/chromium/cpp/test/ |
D | rule_test.cc | 43 Rule rule; in TEST() local 44 ASSERT_TRUE(rule.ParseSerializedRule("{" in TEST() 54 EXPECT_NE(rule.GetFormat(), copy.GetFormat()); in TEST() 55 EXPECT_NE(rule.GetSubKeys(), copy.GetSubKeys()); in TEST() 56 EXPECT_NE(rule.GetLanguages(), copy.GetLanguages()); in TEST() 57 EXPECT_NE(rule.GetLanguage(), copy.GetLanguage()); in TEST() 58 EXPECT_NE(rule.GetAdminAreaNameMessageId(), in TEST() 60 EXPECT_NE(rule.GetPostalCodeNameMessageId(), in TEST() 63 copy.CopyFrom(rule); in TEST() 64 EXPECT_EQ(rule.GetFormat(), copy.GetFormat()); in TEST() [all …]
|
/external/chromium_org/tools/deep_memory_profiler/lib/ |
D | policy.py | 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.stacksourcefile_pattern or 162 rule.stacksourcefile_pattern.match(stacksourcefile)) and 163 (not rule.typeinfo_pattern or rule.typeinfo_pattern.match(typeinfo))): [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_filename_controller/ |
D | bg.js | 5 function matches(rule, item) { argument 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.matcher == 'url-regex') [all …]
|
D | options.js | 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.node.nextSibling.nextSibling; 42 parentNode.removeChild(rule.node); 44 parentNode.insertBefore(rule.node, sib); 46 parentNode.appendChild(rule.node); [all …]
|
/external/chromium_org/third_party/icu/source/i18n/ |
D | zrule.cpp | 31 zrule_close(ZRule* rule) { in zrule_close() argument 32 delete (TimeZoneRule*)rule; in zrule_close() 41 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength) { in zrule_getName() argument 43 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); in zrule_getName() 50 zrule_getRawOffset(ZRule* rule) { in zrule_getRawOffset() argument 51 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); in zrule_getRawOffset() 55 zrule_getDSTSavings(ZRule* rule) { in zrule_getDSTSavings() argument 56 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); in zrule_getDSTSavings() 75 izrule_close(IZRule* rule) { in izrule_close() argument 76 delete (InitialTimeZoneRule*)rule; in izrule_close() [all …]
|
D | zrule.h | 58 zrule_close(ZRule* rule); 79 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength); 88 zrule_getRawOffset(ZRule* rule); 98 zrule_getDSTSavings(ZRule* rule); 136 izrule_close(IZRule* rule); 145 izrule_clone(IZRule *rule); 166 izrule_getName(IZRule* rule, UChar* & name, int32_t & nameLength); 175 izrule_getRawOffset(IZRule* rule); 185 izrule_getDSTSavings(IZRule* rule); 212 izrule_getFirstStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings, [all …]
|
D | rbt_pars.cpp | 297 int32_t parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status); 299 int32_t parseSection(const UnicodeString& rule, int32_t pos, int32_t limit, 323 const UnicodeString& rule, in syntaxError() argument 326 return parser.syntaxError(code, rule, start, status); in syntaxError() 356 int32_t RuleHalf::parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status) { in parse() argument 359 pos = parseSection(rule, pos, limit, text, ILLEGAL_TOP, FALSE, status); in parse() 362 return syntaxError(U_MISPLACED_CURSOR_OFFSET, rule, start, status); in parse() 391 int32_t RuleHalf::parseSection(const UnicodeString& rule, int32_t pos, int32_t limit, in parseSection() argument 408 UChar c = rule.charAt(pos++); in parseSection() 418 return syntaxError(U_UNCLOSED_SEGMENT, rule, start, status); in parseSection() [all …]
|
/external/icu4c/i18n/ |
D | zrule.cpp | 31 zrule_close(ZRule* rule) { in zrule_close() argument 32 delete (TimeZoneRule*)rule; in zrule_close() 41 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength) { in zrule_getName() argument 43 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); in zrule_getName() 50 zrule_getRawOffset(ZRule* rule) { in zrule_getRawOffset() argument 51 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); in zrule_getRawOffset() 55 zrule_getDSTSavings(ZRule* rule) { in zrule_getDSTSavings() argument 56 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); in zrule_getDSTSavings() 75 izrule_close(IZRule* rule) { in izrule_close() argument 76 delete (InitialTimeZoneRule*)rule; in izrule_close() [all …]
|
D | zrule.h | 54 zrule_close(ZRule* rule); 73 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength); 81 zrule_getRawOffset(ZRule* rule); 90 zrule_getDSTSavings(ZRule* rule); 125 izrule_close(IZRule* rule); 133 izrule_clone(IZRule *rule); 152 izrule_getName(IZRule* rule, UChar* & name, int32_t & nameLength); 160 izrule_getRawOffset(IZRule* rule); 169 izrule_getDSTSavings(IZRule* rule); 194 izrule_getFirstStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings, [all …]
|
D | rbt_pars.cpp | 303 int32_t parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status); 305 int32_t parseSection(const UnicodeString& rule, int32_t pos, int32_t limit, 329 const UnicodeString& rule, in syntaxError() argument 332 return parser.syntaxError(code, rule, start, status); in syntaxError() 362 int32_t RuleHalf::parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status) { in parse() argument 365 pos = parseSection(rule, pos, limit, text, UnicodeString(TRUE, ILLEGAL_TOP, -1), FALSE, status); in parse() 368 return syntaxError(U_MISPLACED_CURSOR_OFFSET, rule, start, status); in parse() 397 int32_t RuleHalf::parseSection(const UnicodeString& rule, int32_t pos, int32_t limit, in parseSection() argument 414 UChar c = rule.charAt(pos++); in parseSection() 424 return syntaxError(U_UNCLOSED_SEGMENT, rule, start, status); in parseSection() [all …]
|
/external/chromium/net/base/ |
D | host_mapping_rules.cc | 36 const ExclusionRule& rule = *it; in RewriteHost() local 37 if (MatchPattern(host_port->host(), rule.hostname_pattern)) in RewriteHost() 44 const MapRule& rule = *it; in RewriteHost() local 53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) { in RewriteHost() 55 if (!MatchPattern(host_port_string, rule.hostname_pattern)) in RewriteHost() 59 host_port->set_host(rule.replacement_hostname); in RewriteHost() 60 if (rule.replacement_port != -1) in RewriteHost() 61 host_port->set_port(rule.replacement_port); in RewriteHost() 76 ExclusionRule rule; in AddRuleFromString() local 77 rule.hostname_pattern = StringToLowerASCII(parts[1]); in AddRuleFromString() [all …]
|
/external/chromium_org/net/base/ |
D | host_mapping_rules.cc | 36 const ExclusionRule& rule = *it; in RewriteHost() local 37 if (MatchPattern(host_port->host(), rule.hostname_pattern)) in RewriteHost() 44 const MapRule& rule = *it; in RewriteHost() local 53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) { in RewriteHost() 55 if (!MatchPattern(host_port_string, rule.hostname_pattern)) in RewriteHost() 59 host_port->set_host(rule.replacement_hostname); in RewriteHost() 60 if (rule.replacement_port != -1) in RewriteHost() 61 host_port->set_port(rule.replacement_port); in RewriteHost() 76 ExclusionRule rule; in AddRuleFromString() local 77 rule.hostname_pattern = StringToLowerASCII(parts[1]); in AddRuleFromString() [all …]
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/ |
D | gUnitTestSuite.java | 35 protected String rule = null; // paeser rule name for unit testing field in gUnitTestSuite 49 public gUnitTestSuite(String rule) { in gUnitTestSuite() argument 50 this.rule = rule; in gUnitTestSuite() 53 public gUnitTestSuite(String treeRule, String rule) { in gUnitTestSuite() argument 54 this.rule = rule; in gUnitTestSuite() 58 public void setRuleName(String ruleName) { this.rule = ruleName; } in setRuleName() 62 public String getRuleName() { return this.rule; } in getRuleName() 74 expect.setTestedRuleName(this.rule ==null ? this.lexicalRule : this.rule); in addTestCase()
|
/external/chromium_org/third_party/mesa/src/chromium_gensrc/mesa/program/ |
D | program_parse.output | 867 $default reduce using rule 2 (language) 874 $default reduce using rule 3 (language) 888 $default reduce using rule 5 (optionSequence) 907 $default reduce using rule 8 (statementSequence) 927 $default reduce using rule 4 (optionSequence) 953 $default reduce using rule 245 (optVarSize) 986 $default reduce using rule 281 (string) 993 $default reduce using rule 282 (string) 1007 $default reduce using rule 246 (@2) 1038 $default reduce using rule 1 (program) [all …]
|
/external/icu4c/data/brkitr/ |
D | word_POSIX.txt | 88 # of a region of Text. The rule here comes into play when the start of text 97 $KatakanaEx {400}; # note: these status values override those from rule 5 102 # rule 5 107 # rule 6 and 7 110 # rule 8 114 # rule 9 118 # rule 10 122 # rule 11 and 12 126 # rule 13 132 # rule 13a/b [all …]
|
D | word.txt | 88 # of a region of Text. The rule here comes into play when the start of text 97 $KatakanaEx {400}; # note: these status values override those from rule 5 102 # rule 5 107 # rule 6 and 7 110 # rule 8 114 # rule 9 118 # rule 10 122 # rule 11 and 12 126 # rule 13 132 # rule 13a/b [all …]
|
/external/chromium_org/v8/test/cctest/ |
D | test-date.cc | 51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS() local 52 return rule == NULL ? 0 : rule->offset_sec * 1000; in GetDaylightSavingsOffsetFromOS() 71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match() argument 72 if (rule->year != 0 && rule->year != year) return false; in Match() 73 if (rule->start_month > month) return false; in Match() 74 if (rule->end_month < month) return false; in Match() 75 int start_day = ComputeRuleDay(year, rule->start_month, rule->start_day); in Match() 76 if (rule->start_month == month && start_day > day) return false; in Match() 77 if (rule->start_month == month && start_day == day && in Match() 80 int end_day = ComputeRuleDay(year, rule->end_month, rule->end_day); in Match() [all …]
|
/external/v8/test/cctest/ |
D | test-date.cc | 51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS() local 52 return rule == NULL ? 0 : rule->offset_sec * 1000; in GetDaylightSavingsOffsetFromOS() 71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match() argument 72 if (rule->year != 0 && rule->year != year) return false; in Match() 73 if (rule->start_month > month) return false; in Match() 74 if (rule->end_month < month) return false; in Match() 75 int start_day = ComputeRuleDay(year, rule->start_month, rule->start_day); in Match() 76 if (rule->start_month == month && start_day > day) return false; in Match() 77 if (rule->start_month == month && start_day == day && in Match() 80 int end_day = ComputeRuleDay(year, rule->end_month, rule->end_day); in Match() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
D | RuleSet.cpp | 191 RuleData::RuleData(StyleRule* rule, unsigned selectorIndex, unsigned position, AddRuleFlags addRule… in RuleData() argument 192 : m_rule(rule) in RuleData() 235 …features.siblingRules.append(RuleFeature(ruleData.rule(), ruleData.selectorIndex(), ruleData.hasDo… in collectFeaturesFromRuleData() 237 …features.uncommonAttributeRules.append(RuleFeature(ruleData.rule(), ruleData.selectorIndex(), rule… in collectFeaturesFromRuleData() 299 void RuleSet::addRule(StyleRule* rule, unsigned selectorIndex, AddRuleFlags addRuleFlags) in addRule() argument 301 RuleData ruleData(rule, selectorIndex, m_ruleCount++, addRuleFlags); in addRule() 310 void RuleSet::addPageRule(StyleRulePage* rule) in addPageRule() argument 313 m_pageRules.append(rule); in addPageRule() 316 void RuleSet::addViewportRule(StyleRuleViewport* rule) in addViewportRule() argument 319 m_viewportRules.append(rule); in addViewportRule() [all …]
|
/external/chromium_org/third_party/libaddressinput/chromium/cpp/src/ |
D | address_ui.cc | 39 static Rule rule; in InitDefaultRule() local 40 rule.ParseSerializedRule(RegionDataConstants::GetDefaultRegionData()); in InitDefaultRule() 41 return rule; in InitDefaultRule() 96 Rule rule; in BuildComponents() local 97 rule.CopyFrom(GetDefaultRule()); in BuildComponents() 98 if (!rule.ParseSerializedRule( in BuildComponents() 106 rule.GetFormat().begin(); in BuildComponents() 107 field_it != rule.GetFormat().end(); ++field_it) { in BuildComponents() 115 next_field_it == rule.GetFormat().end() || IsNewline(*next_field_it); in BuildComponents() 122 GetMessageIdForField(*field_it, rule.GetAdminAreaNameMessageId(), in BuildComponents() [all …]
|
/external/bison/src/ |
D | gram.h | 200 } rule; typedef 202 extern rule *rules; 205 typedef bool (*rule_filter) (rule *); 209 bool rule_useful_in_grammar_p (rule *r); 213 bool rule_useless_in_grammar_p (rule *r); 217 bool rule_useless_in_parser_p (rule *r); 222 void rule_lhs_print (rule *r, symbol *previous_lhs, FILE *out); 223 void rule_lhs_print_xml (rule *r, FILE *out, int level); 226 int rule_rhs_length (rule *r); 229 void rule_rhs_print (rule *r, FILE *out); [all …]
|
/external/chromium_org/chrome/browser/content_settings/ |
D | content_settings_rule_unittest.cc | 30 Rule rule = rules_.front(); in Next() local 32 return rule; in Next() 62 Rule rule; in TEST() local 64 rule = concatenation_iterator.Next(); in TEST() 65 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("a")); in TEST() 68 rule = concatenation_iterator.Next(); in TEST() 69 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("b")); in TEST() 72 rule = concatenation_iterator.Next(); in TEST() 73 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("c")); in TEST() 76 rule = concatenation_iterator.Next(); in TEST() [all …]
|
/external/chromium_org/tools/deep_memory_profiler/ |
D | accumulate.py | 38 for rule, _ in snapshot[world]['breakdown'][breakdown].iteritems(): 39 print (' ' * depth) + rule 40 if rule in rules: 41 visit_in_template(rules[rule], snapshot, depth + 1) 61 for rule, match in snapshot[world]['breakdown'][breakdown].iteritems(): 70 if rule not in rules: 73 category_tree[rule] = subtotal 77 subtemplate = rules[rule] 83 category_tree[rule], accounted_total, subremainder_units = accumulate( 89 category_tree[rule][None] = subremainder_total [all …]
|
/external/icu4c/common/ |
D | util.cpp | 295 void ICU_Utility::appendToRule(UnicodeString& rule, in appendToRule() argument 316 rule.append(BACKSLASH).append(APOSTROPHE); in appendToRule() 329 rule.append(APOSTROPHE); in appendToRule() 330 rule.append(quoteBuf); in appendToRule() 331 rule.append(APOSTROPHE); in appendToRule() 335 rule.append(BACKSLASH).append(APOSTROPHE); in appendToRule() 345 int32_t len = rule.length(); in appendToRule() 346 if (len > 0 && rule.charAt(len-1) != c) { in appendToRule() 347 rule.append(c); in appendToRule() 349 } else if (!escapeUnprintable || !ICU_Utility::escapeUnprintable(rule, c)) { in appendToRule() [all …]
|
/external/bison/tests/ |
D | reduce.at | 175 input.y:6.11-13: warning: rule useless in grammar 178 input.y:7.11-13: warning: rule useless in grammar 181 input.y:8.11-13: warning: rule useless in grammar 184 input.y:9.11-13: warning: rule useless in grammar 187 input.y:10.11-13: warning: rule useless in grammar 190 input.y:11.11-13: warning: rule useless in grammar 193 input.y:12.11-13: warning: rule useless in grammar 196 input.y:13.11-13: warning: rule useless in grammar 199 input.y:14.11-13: warning: rule useless in grammar 216 input.y:6.11-13: warning: rule useless in grammar: useless1: '1' [all …]
|