/external/iproute2/tc/ |
D | em_canid.c | 41 struct rules { struct 58 static int canid_parse_rule(struct rules *rules, struct bstr *a, int iseff) in canid_parse_rule() argument 72 if (rules->rules_cnt == rules->rules_capacity) { in canid_parse_rule() 73 if (rules->rules_capacity <= EM_CANID_RULES_MAX/2) { in canid_parse_rule() 74 rules->rules_capacity *= 2; in canid_parse_rule() 75 rules->rules_raw = realloc(rules->rules_raw, in canid_parse_rule() 76 sizeof(struct can_filter) * rules->rules_capacity); in canid_parse_rule() 82 rules->rules_raw[rules->rules_cnt].can_id = in canid_parse_rule() 84 rules->rules_raw[rules->rules_cnt].can_mask = in canid_parse_rule() 87 rules->rules_cnt++; in canid_parse_rule() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationRuleParser.java | 129 rules = ruleString; in parse() 132 while(ruleIndex < rules.length()) { in parse() 133 char c = rules.charAt(ruleIndex); in parse() 170 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain() 210 if(rules.regionMatches(i, BEFORE, 0, BEFORE.length()) && in parseResetAndPosition() 211 (j = i + BEFORE.length()) < rules.length() && in parseResetAndPosition() 212 PatternProps.isWhiteSpace(rules.charAt(j)) && in parseResetAndPosition() 213 ((j = skipWhiteSpace(j + 1)) + 1) < rules.length() && in parseResetAndPosition() 214 0x31 <= (c = rules.charAt(j)) && c <= 0x33 && in parseResetAndPosition() 215 rules.charAt(j + 1) == 0x5d) { in parseResetAndPosition() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationRuleParser.java | 133 rules = ruleString; in parse() 136 while(ruleIndex < rules.length()) { in parse() 137 char c = rules.charAt(ruleIndex); in parse() 174 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain() 214 if(rules.regionMatches(i, BEFORE, 0, BEFORE.length()) && in parseResetAndPosition() 215 (j = i + BEFORE.length()) < rules.length() && in parseResetAndPosition() 216 PatternProps.isWhiteSpace(rules.charAt(j)) && in parseResetAndPosition() 217 ((j = skipWhiteSpace(j + 1)) + 1) < rules.length() && in parseResetAndPosition() 218 0x31 <= (c = rules.charAt(j)) && c <= 0x33 && in parseResetAndPosition() 219 rules.charAt(j + 1) == 0x5d) { in parseResetAndPosition() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | collationruleparser.cpp | 59 rules(NULL), baseData(base), settings(NULL), in CollationRuleParser() 89 rules = &ruleString; in parse() 92 while(ruleIndex < rules->length()) { in parse() 93 UChar c = rules->charAt(ruleIndex); in parse() 134 if(ruleIndex < rules->length() && rules->charAt(ruleIndex) == 0x23) { in parseRuleChain() 177 if(rules->compare(i, BEFORE_LENGTH, BEFORE, 0, BEFORE_LENGTH) == 0 && in parseResetAndPosition() 178 (j = i + BEFORE_LENGTH) < rules->length() && in parseResetAndPosition() 179 PatternProps::isWhiteSpace(rules->charAt(j)) && in parseResetAndPosition() 180 ((j = skipWhiteSpace(j + 1)) + 1) < rules->length() && in parseResetAndPosition() 181 0x31 <= (c = rules->charAt(j)) && c <= 0x33 && in parseResetAndPosition() [all …]
|
D | nfrs.cpp | 135 , rules(0) in NFRuleSet() 206 rules.deleteAll(); in parseRules() 219 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules() 232 int32_t rulesSize = rules.size(); in parseRules() 234 NFRule* rule = rules[i]; in parseRules() 347 if (rules.size() == rhs.rules.size() && in operator ==() 359 for (uint32_t i = 0; i < rules.size(); ++i) { in operator ==() 360 if (*rules[i] != *rhs.rules[i]) { in operator ==() 371 for (uint32_t i = 0; i < rules.size(); ++i) { in setDecimalFormatSymbols() 372 rules[i]->setDecimalFormatSymbols(newSymbols, status); in setDecimalFormatSymbols() [all …]
|
D | rbt_set.cpp | 172 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 …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 88 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() local 90 assertEquals(locale + " NaN", "other", rules.select(Double.NaN)); in testOverUnderflow() 91 assertEquals(locale + " ∞", "other", rules.select(Double.POSITIVE_INFINITY)); in testOverUnderflow() 92 assertEquals(locale + " -∞", "other", rules.select(Double.NEGATIVE_INFINITY)); in testOverUnderflow() 154 String rules = (String) shouldFailTest[0]; in testSyntaxRestrictions() local 158 PluralRules.parseDescription(rules); in testSyntaxRestrictions() 162 assertEquals("Exception " + rules, exception, actualException); in testSyntaxRestrictions() 184 …public void checkOldSamples(String description, PluralRules rules, String keyword, SampleType samp… 186 Collection<Double> oldSamples = rules.getSamples(keyword, sampleType); 189 rules.getSamples(keyword, sampleType); [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 84 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() local 86 assertEquals(locale + " NaN", "other", rules.select(Double.NaN)); in testOverUnderflow() 87 assertEquals(locale + " ∞", "other", rules.select(Double.POSITIVE_INFINITY)); in testOverUnderflow() 88 assertEquals(locale + " -∞", "other", rules.select(Double.NEGATIVE_INFINITY)); in testOverUnderflow() 150 String rules = (String) shouldFailTest[0]; in testSyntaxRestrictions() local 154 PluralRules.parseDescription(rules); in testSyntaxRestrictions() 158 assertEquals("Exception " + rules, exception, actualException); in testSyntaxRestrictions() 180 …public void checkOldSamples(String description, PluralRules rules, String keyword, SampleType samp… 182 Collection<Double> oldSamples = rules.getSamples(keyword, sampleType); 185 rules.getSamples(keyword, sampleType); [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NFRuleSet.java | 39 private NFRule[] rules; field in NFRuleSet 226 rules = new NFRule[tempRules.size()]; in parseRules() 227 tempRules.toArray(rules); in parseRules() 314 || rules.length != that2.rules.length in equals() 328 for (int i = 0; i < rules.length; i++) { in equals() 329 if (!rules[i].equals(that2.rules[i])) { in equals() 358 for (NFRule rule : rules) { in toString() 565 int hi = rules.length; in findNormalRule() 569 long ruleBaseValue = rules[mid].getBaseValue(); in findNormalRule() 571 return rules[mid]; in findNormalRule() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NFRuleSet.java | 38 private NFRule[] rules; field in NFRuleSet 225 rules = new NFRule[tempRules.size()]; in parseRules() 226 tempRules.toArray(rules); in parseRules() 313 || rules.length != that2.rules.length in equals() 327 for (int i = 0; i < rules.length; i++) { in equals() 328 if (!rules[i].equals(that2.rules[i])) { in equals() 357 for (NFRule rule : rules) { in toString() 564 int hi = rules.length; in findNormalRule() 568 long ruleBaseValue = rules[mid].getBaseValue(); in findNormalRule() 570 return rules[mid]; in findNormalRule() [all …]
|
/external/bison/src/ |
D | gram.c | 37 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 …]
|
D | reduce.c | 74 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 …]
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
D | TestSuite.java | 36 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/deqp/modules/egl/ |
D | teglChooseConfigReference.cpp | 234 std::map<EGLenum, AttribRule> rules; in initAttribRules() local 237 …rules[EGL_BUFFER_SIZE] = AttribRule(EGL_BUFFER_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SMA… in initAttribRules() 238 …rules[EGL_RED_SIZE] = AttribRule(EGL_RED_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL… in initAttribRules() 239 …rules[EGL_GREEN_SIZE] = AttribRule(EGL_GREEN_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECI… in initAttribRules() 240 …rules[EGL_BLUE_SIZE] = AttribRule(EGL_BLUE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIA… in initAttribRules() 241 …rules[EGL_LUMINANCE_SIZE] = AttribRule(EGL_LUMINANCE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER… in initAttribRules() 242 …rules[EGL_ALPHA_SIZE] = AttribRule(EGL_ALPHA_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECI… in initAttribRules() 243 …rules[EGL_ALPHA_MASK_SIZE] = AttribRule(EGL_ALPHA_MASK_SIZE, 0, CRITERIA_AT_LEAST, SORTORD… in initAttribRules() 244 …rules[EGL_BIND_TO_TEXTURE_RGB] = AttribRule(EGL_BIND_TO_TEXTURE_RGB, EGL_DONT_CARE, CRITERIA_EX… in initAttribRules() 245 …rules[EGL_BIND_TO_TEXTURE_RGBA] = AttribRule(EGL_BIND_TO_TEXTURE_RGBA, EGL_DONT_CARE, CRITERIA_… in initAttribRules() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | cg7coll.c | 200 static const char rules[] = "& Z < p, P"; in TestDemo1() local 201 int32_t len=(int32_t)strlen(rules); in TestDemo1() 202 UChar temp[sizeof(rules)]; in TestDemo1() 204 u_uastrcpy(temp, rules); in TestDemo1() 231 static const char rules[] = "& C < ch , cH, Ch, CH"; in TestDemo2() local 232 int32_t len=(int32_t)strlen(rules); in TestDemo2() 233 UChar temp[sizeof(rules)]; in TestDemo2() 235 u_uastrcpy(temp, rules); in TestDemo2() 260 static const char rules[] = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local 261 int32_t len=(int32_t)strlen(rules); in TestDemo3() [all …]
|
/external/chromium-trace/catapult/tracing/third_party/css-element-queries/src/ |
D | ElementQueries.js | 200 function readRules(rules) { argument 202 if (!rules) { 205 if ('string' === typeof rules) { 206 rules = rules.toLowerCase(); 207 if (-1 !== rules.indexOf('min-width') || -1 !== rules.indexOf('max-width')) { 208 extractQuery(rules); 211 for (var i = 0, j = rules.length; i < j; i++) { 212 if (1 === rules[i].type) { 213 selector = rules[i].selectorText || rules[i].cssText; 219 } else if (4 === rules[i].type) { [all …]
|
/external/autotest/client/site_tests/network_DhcpNak/ |
D | network_DhcpNak.py | 59 rules = [ 71 rules[-1].is_final_handler = True 73 rules, dhcp_test_base.DHCP_NEGOTIATION_TIMEOUT_SECONDS) 84 rules = [ 94 rules[-1].is_final_handler = True 96 rules, dhcp_test_base.DHCP_NEGOTIATION_TIMEOUT_SECONDS) 111 rules = [ 119 rules[-1].is_final_handler = True 121 rules, dhcp_test_base.DHCP_NEGOTIATION_TIMEOUT_SECONDS) 142 rules = [ [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/s3/ |
D | test_website.py | 85 rules = RoutingRules() 88 rules.add_rule(RoutingRule(condition, redirect)) 89 config = WebsiteConfiguration(suffix='index.html', routing_rules=rules) 118 rules = RoutingRules() 122 rules.add_rule(RoutingRule(condition, redirect)) 123 config = WebsiteConfiguration(suffix='index.html', routing_rules=rules) 148 rules = RoutingRules() 151 rules.add_rule(RoutingRule(condition, redirect)) 152 config = WebsiteConfiguration(suffix='index.html', routing_rules=rules) 178 rules = RoutingRules() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/ |
D | collationtest.txt | 17 # A collator can be built with "@ rules". 18 # An "@ rules" line is followed by one or more lines with the tailoring rules. 32 @ rules 65 @ rules 412 ** test: empty rules 413 @ rules 420 ** test: very simple rules 421 @ rules 437 @ rules 447 @ rules [all …]
|
/external/icu/icu4c/source/test/testdata/ |
D | collationtest.txt | 17 # A collator can be built with "@ rules". 18 # An "@ rules" line is followed by one or more lines with the tailoring rules. 32 @ rules 65 @ rules 412 ** test: empty rules 413 @ rules 420 ** test: very simple rules 421 @ rules 437 @ rules 447 @ rules [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/data/ |
D | collationtest.txt | 17 # A collator can be built with "@ rules". 18 # An "@ rules" line is followed by one or more lines with the tailoring rules. 32 @ rules 65 @ rules 412 ** test: empty rules 413 @ rules 420 ** test: very simple rules 421 @ rules 437 @ rules 447 @ rules [all …]
|
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/check/ |
D | BundleCheckerTest.java | 42 private List<Rule> rules; field in BundleCheckerTest 48 rules = new ArrayList<Rule>(); in setup() 56 final BundleChecker checker = new BundleChecker(rules, names, this); in testBundleLimit() 64 final BundleChecker checker = new BundleChecker(rules, names, this); in testPackageLimit() 72 final BundleChecker checker = new BundleChecker(rules, names, this); in testSourceFileLimit() 80 final BundleChecker checker = new BundleChecker(rules, names, this); in testClassLimit() 88 final BundleChecker checker = new BundleChecker(rules, names, this); in testMethodLimit() 96 final BundleChecker checker = new BundleChecker(rules, names, this); in testGroupLimitNotSupported() 107 rules.add(rule); in testLimitOk() 108 final BundleChecker checker = new BundleChecker(rules, names, this); in testLimitOk() [all …]
|
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/ |
D | Icu4jTestsTransform.java | 57 private final List<Rule> rules; field in Icu4jTestsTransform.Icu4jBasicRules 69 rules = createTransformRules(); in Icu4jBasicRules() 76 return rules; in getRuleList() 90 List<Rule> rules = in createTransformRules() local 95 rules.add(createOptionalRule(new RunWithAnnotator())); in createTransformRules() 98 rules.add( in createTransformRules() 103 rules.add(createOptionalRule(new TranslateJcite.BeginEndTagsHandler())); in createTransformRules() 105 return rules; in createTransformRules()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationMiscTest.java | 169 String[] rules = { in TestRuleOptions() local 239 for (int i = 0; i< rules.length; i++) { in TestRuleOptions() 240 logln(String.format("rules[%d] = \"%s\"", i, rules[i])); in TestRuleOptions() 241 genericRulesStarter(rules[i], data[i]); in TestRuleOptions() 245 void genericRulesStarter(String rules, String[] s) { in genericRulesStarter() argument 246 genericRulesStarterWithResult(rules, s, -1); in genericRulesStarter() 249 void genericRulesStarterWithResult(String rules, String[] s, int result) { in genericRulesStarterWithResult() argument 253 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() 257 warnln("Unable to open collator with rules " + rules + ": " + e); in genericRulesStarterWithResult() 261 …void genericRulesStarterWithOptionsAndResult(String rules, String[] s, String[] atts, Object[] att… in genericRulesStarterWithOptionsAndResult() argument [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationMiscTest.java | 173 String[] rules = { in TestRuleOptions() local 243 for (int i = 0; i< rules.length; i++) { in TestRuleOptions() 244 logln(String.format("rules[%d] = \"%s\"", i, rules[i])); in TestRuleOptions() 245 genericRulesStarter(rules[i], data[i]); in TestRuleOptions() 249 void genericRulesStarter(String rules, String[] s) { in genericRulesStarter() argument 250 genericRulesStarterWithResult(rules, s, -1); in genericRulesStarter() 253 void genericRulesStarterWithResult(String rules, String[] s, int result) { in genericRulesStarterWithResult() argument 257 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() 261 warnln("Unable to open collator with rules " + rules + ": " + e); in genericRulesStarterWithResult() 265 …void genericRulesStarterWithOptionsAndResult(String rules, String[] s, String[] atts, Object[] att… in genericRulesStarterWithOptionsAndResult() argument [all …]
|