/external/dbus/bus/ |
D | signals.c | 58 BusMatchRule *rule; in bus_match_rule_new() local 60 rule = dbus_new0 (BusMatchRule, 1); in bus_match_rule_new() 61 if (rule == NULL) in bus_match_rule_new() 64 rule->refcount = 1; in bus_match_rule_new() 65 rule->matches_go_to = matches_go_to; in bus_match_rule_new() 68 _dbus_assert (rule->matches_go_to != NULL); in bus_match_rule_new() 71 return rule; in bus_match_rule_new() 75 bus_match_rule_ref (BusMatchRule *rule) in bus_match_rule_ref() argument 77 _dbus_assert (rule->refcount > 0); in bus_match_rule_ref() 79 rule->refcount += 1; in bus_match_rule_ref() [all …]
|
D | policy.c | 37 BusPolicyRule *rule; in bus_policy_rule_new() local 39 rule = dbus_new0 (BusPolicyRule, 1); in bus_policy_rule_new() 40 if (rule == NULL) in bus_policy_rule_new() 43 rule->type = type; in bus_policy_rule_new() 44 rule->refcount = 1; in bus_policy_rule_new() 45 rule->allow = allow; in bus_policy_rule_new() 47 switch (rule->type) in bus_policy_rule_new() 50 rule->d.user.uid = DBUS_UID_UNSET; in bus_policy_rule_new() 53 rule->d.group.gid = DBUS_GID_UNSET; in bus_policy_rule_new() 56 rule->d.send.message_type = DBUS_MESSAGE_TYPE_INVALID; in bus_policy_rule_new() [all …]
|
D | signals.h | 46 BusMatchRule* bus_match_rule_ref (BusMatchRule *rule); 47 void bus_match_rule_unref (BusMatchRule *rule); 49 dbus_bool_t bus_match_rule_set_message_type (BusMatchRule *rule, 51 dbus_bool_t bus_match_rule_set_interface (BusMatchRule *rule, 53 dbus_bool_t bus_match_rule_set_member (BusMatchRule *rule, 55 dbus_bool_t bus_match_rule_set_sender (BusMatchRule *rule, 57 dbus_bool_t bus_match_rule_set_destination (BusMatchRule *rule, 59 dbus_bool_t bus_match_rule_set_path (BusMatchRule *rule, 62 dbus_bool_t bus_match_rule_set_arg (BusMatchRule *rule, 73 void bus_match_rule_set_client_is_eavesdropping (BusMatchRule *rule, [all …]
|
/external/libnl/lib/route/ |
D | rule.c | 47 struct rtnl_rule *rule = nl_object_priv(c); in rule_free_data() local 49 if (!rule) in rule_free_data() 52 nl_addr_put(rule->r_src); in rule_free_data() 53 nl_addr_put(rule->r_dst); in rule_free_data() 83 struct rtnl_rule *rule; in rule_msg_parser() local 88 rule = rtnl_rule_alloc(); in rule_msg_parser() 89 if (!rule) { in rule_msg_parser() 94 rule->ce_msgtype = n->nlmsg_type; in rule_msg_parser() 101 rule->r_family = family = r->rtm_family; in rule_msg_parser() 102 rule->r_type = r->rtm_type; in rule_msg_parser() [all …]
|
/external/icu/icu4c/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 | 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 …]
|
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 …]
|
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/check/ |
D | RuleTest.java | 31 private Rule rule; field in RuleTest 35 rule = new Rule(); in setup() 40 assertEquals(ElementType.BUNDLE, rule.getElement()); in testDefaults() 41 assertEquals(Collections.emptyList(), rule.getLimits()); in testDefaults() 42 assertEquals("*", rule.getIncludes()); in testDefaults() 43 assertEquals("", rule.getExcludes()); in testDefaults() 48 rule.setElement(ElementType.PACKAGE); in testSetElement() 49 assertEquals(ElementType.PACKAGE, rule.getElement()); in testSetElement() 57 rule.setLimits(Arrays.asList(l1, l2, l3)); in testSetLimits() 58 assertEquals(Arrays.asList(l1, l2, l3), rule.getLimits()); in testSetLimits() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | TransliteratorParser.java | 403 public int parse(String rule, int pos, int limit, in parse() argument 407 pos = parseSection(rule, pos, limit, parser, buf, ILLEGAL_TOP, false); in parse() 411 syntaxError("Misplaced " + CURSOR_POS, rule, start); in parse() 440 private int parseSection(String rule, int pos, int limit, in parseSection() argument 458 char c = rule.charAt(pos++); in parseSection() 467 syntaxError("Unclosed segment", rule, start); in parseSection() 474 syntaxError("Malformed variable reference", rule, start); in parseSection() 476 if (UnicodeSet.resemblesPattern(rule, pos-1)) { in parseSection() 481 buf.append(parser.parseSet(rule, pp)); in parseSection() 488 syntaxError("Trailing backslash", rule, start); in parseSection() [all …]
|
D | NFRuleSet.java | 199 for (NFRule rule : tempRules) { in parseRules() 200 long baseValue = rule.getBaseValue(); in parseRules() 207 rule.setBaseValue(defaultBaseValue); in parseRules() 234 void setNonNumericalRule(NFRule rule) { in setNonNumericalRule() argument 235 long baseValue = rule.getBaseValue(); in setNonNumericalRule() 237 nonNumericalRules[NFRuleSet.NEGATIVE_RULE_INDEX] = rule; in setNonNumericalRule() 240 setBestFractionRule(NFRuleSet.IMPROPER_FRACTION_RULE_INDEX, rule, true); in setNonNumericalRule() 243 setBestFractionRule(NFRuleSet.PROPER_FRACTION_RULE_INDEX, rule, true); in setNonNumericalRule() 246 setBestFractionRule(NFRuleSet.MASTER_RULE_INDEX, rule, true); in setNonNumericalRule() 249 nonNumericalRules[NFRuleSet.INFINITY_RULE_INDEX] = rule; in setNonNumericalRule() [all …]
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
D | TransliteratorParser.java | 402 public int parse(String rule, int pos, int limit, in parse() argument 406 pos = parseSection(rule, pos, limit, parser, buf, ILLEGAL_TOP, false); in parse() 410 syntaxError("Misplaced " + CURSOR_POS, rule, start); in parse() 439 private int parseSection(String rule, int pos, int limit, in parseSection() argument 457 char c = rule.charAt(pos++); in parseSection() 466 syntaxError("Unclosed segment", rule, start); in parseSection() 473 syntaxError("Malformed variable reference", rule, start); in parseSection() 475 if (UnicodeSet.resemblesPattern(rule, pos-1)) { in parseSection() 480 buf.append(parser.parseSet(rule, pp)); in parseSection() 487 syntaxError("Trailing backslash", rule, start); in parseSection() [all …]
|
/external/icu/icu4c/source/data/brkitr/ |
D | word_POSIX.txt | 95 # of a region of Text. The rule here comes into play when the start of text 105 $KatakanaEx {400}; # note: these status values override those from rule 5 110 # rule 5 115 # rule 6 and 7 118 # rule 7a 121 # rule 7b and 7c 124 # rule 8 128 # rule 9 132 # rule 10 136 # rule 11 and 12 [all …]
|
D | word.txt | 95 # of a region of Text. The rule here comes into play when the start of text 105 $KatakanaEx {400}; # note: these status values override those from rule 5 110 # rule 5 115 # rule 6 and 7 118 # rule 7a 121 # rule 7b and 7c 124 # rule 8 128 # rule 9 132 # rule 10 136 # rule 11 and 12 [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NFRuleSet.java | 198 for (NFRule rule : tempRules) { in parseRules() 199 long baseValue = rule.getBaseValue(); in parseRules() 206 rule.setBaseValue(defaultBaseValue); in parseRules() 233 void setNonNumericalRule(NFRule rule) { in setNonNumericalRule() argument 234 long baseValue = rule.getBaseValue(); in setNonNumericalRule() 236 nonNumericalRules[NFRuleSet.NEGATIVE_RULE_INDEX] = rule; in setNonNumericalRule() 239 setBestFractionRule(NFRuleSet.IMPROPER_FRACTION_RULE_INDEX, rule, true); in setNonNumericalRule() 242 setBestFractionRule(NFRuleSet.PROPER_FRACTION_RULE_INDEX, rule, true); in setNonNumericalRule() 245 setBestFractionRule(NFRuleSet.MASTER_RULE_INDEX, rule, true); in setNonNumericalRule() 248 nonNumericalRules[NFRuleSet.INFINITY_RULE_INDEX] = rule; in setNonNumericalRule() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | RangeDateRule.java | 41 public void add(DateRule rule) { in add() argument 42 add(new Date(Long.MIN_VALUE), rule); in add() 48 public void add(Date start, DateRule rule) { in add() argument 51 ranges.add(new Range(start, rule)); in add() 70 if (r != null && r.rule != null) in firstAfter() 73 result = r.rule.firstBetween(start, e.start); in firstAfter() 75 result = r.rule.firstAfter(start); in firstAfter() 100 if (r.rule != null) { in firstBetween() 103 result = r.rule.firstBetween(start, e); in firstBetween() 114 return r != null && r.rule != null && r.rule.isOn(date); in isOn() [all …]
|
D | Holiday.java | 73 return rule.firstAfter(start); in firstAfter() 90 return rule.firstBetween(start, end); in firstBetween() 104 return rule.isOn(date); in isOn() 113 return rule.isBetween(start, end); in isBetween() 129 protected Holiday(String name, DateRule rule) in Holiday() argument 132 this.rule = rule; in Holiday() 188 return rule; in getRule() 194 public void setRule(DateRule rule) { in setRule() argument 195 this.rule = rule; in setRule() 199 private DateRule rule; field in Holiday
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | RangeDateRule.java | 42 public void add(DateRule rule) { in add() argument 43 add(new Date(Long.MIN_VALUE), rule); in add() 50 public void add(Date start, DateRule rule) { in add() argument 53 ranges.add(new Range(start, rule)); in add() 73 if (r != null && r.rule != null) in firstAfter() 76 result = r.rule.firstBetween(start, e.start); in firstAfter() 78 result = r.rule.firstAfter(start); in firstAfter() 104 if (r.rule != null) { in firstBetween() 107 result = r.rule.firstBetween(start, e); in firstBetween() 119 return r != null && r.rule != null && r.rule.isOn(date); in isOn() [all …]
|
D | Holiday.java | 76 return rule.firstAfter(start); in firstAfter() 94 return rule.firstBetween(start, end); in firstBetween() 109 return rule.isOn(date); in isOn() 119 return rule.isBetween(start, end); in isBetween() 136 protected Holiday(String name, DateRule rule) in Holiday() argument 139 this.rule = rule; in Holiday() 199 return rule; in getRule() 206 public void setRule(DateRule rule) { in setRule() argument 207 this.rule = rule; in setRule() 211 private DateRule rule; field in Holiday
|
/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/v8/test/cctest/ |
D | test-date.cc | 50 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS() local 51 return rule == NULL ? 0 : rule->offset_sec * 1000; in GetDaylightSavingsOffsetFromOS() 70 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match() argument 71 if (rule->year != 0 && rule->year != year) return false; in Match() 72 if (rule->start_month > month) return false; in Match() 73 if (rule->end_month < month) return false; in Match() 74 int start_day = ComputeRuleDay(year, rule->start_month, rule->start_day); in Match() 75 if (rule->start_month == month && start_day > day) return false; in Match() 76 if (rule->start_month == month && start_day == day && in Match() 79 int end_day = ComputeRuleDay(year, rule->end_month, rule->end_day); in Match() [all …]
|
/external/v8/tools/testrunner/local/ |
D | statusfile.py | 108 def _ParseOutcomeList(rule, outcomes, target_dict, variables): argument 123 if rule in target_dict: 124 target_dict[rule] |= result 126 target_dict[rule] = result 147 for rule in section: 148 assert type(rule) == str 149 if rule[-1] == '*': 150 _ParseOutcomeList(rule, section[rule], wildcards, variables) 152 _ParseOutcomeList(rule, section[rule], rules, variables) 171 for rule in section: [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/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 …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/s3/ |
D | test_bucket.py | 221 rule = Rule('myid', prefix='', status='Enabled', expiration=None, 223 lifecycle.append(rule) 246 for rule in readlifecycle: 247 if rule.id == "1": 248 self.assertEqual(rule.prefix, "1/") 249 self.assertEqual(rule.expiration.days, 1) 250 elif rule.id == "2": 251 self.assertEqual(rule.prefix, "2/") 252 self.assertEqual(rule.expiration.days, 2) 253 elif rule.id == "3": [all …]
|
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/ |
D | rules_parser.py | 61 return any(rule for rule in self._rules if rule.IsType(rule_type_name)) 76 matches = [rule for rule in self._rules if rule.IsType(rule_type_name)] 103 for rule in self._rules: 104 should_stop, return_value = rule.ApplyRule( 119 return '[\n%s\n]' % '\n'.join('%s' % rule for rule in rules) 164 rule = clazz(**args) 166 rules.append(rule)
|