/external/icu/icu4c/source/i18n/ |
funcrepl.cpp | 97 UnicodeString& FunctionReplacer::toReplacerPattern(UnicodeString& rule, 100 rule.truncate(0); 101 rule.append(AMPERSAND); 102 rule.append(translit->getID()); 103 rule.append(OPEN, 2); 104 rule.append(replacer->toReplacer()->toReplacerPattern(str, escapeUnprintable)); 105 rule.append(CLOSE, 2); 106 return rule;
|
rbt_pars.cpp | 257 * A class representing one side of a rule. This class knows how to 258 * parse half of a rule. It is tightly coupled to the method 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, 332 return parser.syntaxError(code, rule, start, status); 357 * Parse one side of a rule, stopping at either the limit, 362 int32_t RuleHalf::parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status) { 365 pos = parseSection(rule, pos, limit, text, UnicodeString(TRUE, ILLEGAL_TOP, -1), FALSE, status); 368 return syntaxError(U_MISPLACED_CURSOR_OFFSET, rule, start, status) [all...] |
/frameworks/base/tools/split-select/ |
Rule_test.cpp | 17 #include "Rule.h" 33 Rule rule(AndRule() 34 .add(EqRule(Rule::SDK_VERSION, 7)) 36 .add(GtRule(Rule::SCREEN_DENSITY, 10)) 37 .add(LtRule(Rule::SCREEN_DENSITY, 5)) 71 std::string result(rule.toJson().string()); 78 sp<Rule> rule = new Rule(AndRule( local 86 sp<Rule> rule = new Rule(AndRule() local [all...] |
/external/icu/icu4c/source/common/ |
util_props.cpp | 26 int32_t ICU_Utility::parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit) { 32 if (p < limit && rule.charAt(p) == 48 /*0*/) { 33 if (p+1 < limit && (rule.charAt(p+1) == 0x78 /*x*/ || rule.charAt(p+1) == 0x58 /*X*/)) { 45 int32_t d = u_digit(rule.charAt(p++), radix); 86 int32_t ICU_Utility::parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit, 99 c = rule.charAt(pos++); 105 pos = skipWhitespace(rule, pos); 109 parsedInts[intCount++] = parseInteger(rule, p, limit); 120 c = (UChar) u_tolower(rule.charAt(pos++)) [all...] |
util.h | 145 static int32_t parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit, 177 static int32_t parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit); 214 static void appendToRule(UnicodeString& rule, 220 static void appendToRule(UnicodeString& rule, 226 static void appendToRule(UnicodeString& rule,
|
util.cpp | 278 * Append a character to a rule that is being built up. To flush 279 * the quoteBuf to rule, make one final call with isLiteral == TRUE. 281 * @param rule the string to append the character to 295 void ICU_Utility::appendToRule(UnicodeString& rule, 316 rule.append(BACKSLASH).append(APOSTROPHE); 329 rule.append(APOSTROPHE); 330 rule.append(quoteBuf); 331 rule.append(APOSTROPHE); 335 rule.append(BACKSLASH).append(APOSTROPHE); 342 * rule [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/ |
mlsrulequery.py | 34 ruletype The list of rule type(s) to match. 43 matching the rule's object class. 70 for rule in self.policy.mlsrules(): 72 # Matching on rule type 75 if rule.ruletype not in self.ruletype: 82 rule.source, 91 rule.target, 99 if not self._match_object_class(rule): 106 rule.default, 115 yield rule [all...] |
terulequery.py | 36 ruletype The list of rule type(s) to match. 55 matching the rule's object class. 58 perms_equal If true, the permission set of the rule 74 expression of the rule must exactly match the 107 for rule in self.policy.terules(): 109 # Matching on rule type 112 if rule.ruletype not in self.ruletype: 119 rule.source, 129 rule.target, 138 if not self._match_object_class(rule) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/setools/ |
mlsrulequery.py | 34 ruletype The list of rule type(s) to match. 43 matching the rule's object class. 70 for rule in self.policy.mlsrules(): 72 # Matching on rule type 75 if rule.ruletype not in self.ruletype: 82 rule.source, 91 rule.target, 99 if not self._match_object_class(rule): 106 rule.default, 115 yield rule [all...] |
terulequery.py | 36 ruletype The list of rule type(s) to match. 55 matching the rule's object class. 58 perms_equal If true, the permission set of the rule 74 expression of the rule must exactly match the 107 for rule in self.policy.terules(): 109 # Matching on rule type 112 if rule.ruletype not in self.ruletype: 119 rule.source, 129 rule.target, 138 if not self._match_object_class(rule) [all...] |
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
TransliteratorParser.java | 30 * of rules in the rule set 36 * A Vector of Strings containing all of the ID blocks in the rule set 73 * rule. segmentStandins.charAt(0) is the standin for "$1" and corresponds 80 * parsing of a single rule. 128 // markers for beginning and end of rule groups 278 * A private abstract class representing the interface to rule 360 * A class representing one side of a rule. This class knows how to 361 * parse half of a rule. It is tightly coupled to the method 397 * Parse one side of a rule, stopping at either the limit, 402 public int parse(String rule, int pos, int limit 530 parser.checkVariableRange(buf.charAt(iq), rule, start); local 925 String rule = ruleArray.nextLine(); local [all...] |
/frameworks/base/media/java/android/media/audiopolicy/ |
AudioMix.java | 45 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags) { 46 mRule = rule; 50 mMixType = rule.getTargetMixType(); 184 * @param rule a non-null {@link AudioMixingRule} instance. 188 public Builder(AudioMixingRule rule) 190 if (rule == null) { 193 mRule = rule; 199 * @param rule 203 public Builder setMixingRule(AudioMixingRule rule) 205 if (rule == null) [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
TestSuite.java | 36 protected List<Rule> rules ; 44 rules = new ArrayList<Rule>(); 52 public void addRule(Rule currentRule) { 53 if(currentRule == null) throw new IllegalArgumentException("Null rule"); 57 // test rule name 58 public boolean hasRule(Rule rule) { 59 for(Rule r: rules) { 60 if(r.getName().equals(rule.getName())) { 71 public void setRules(List<Rule> newRules) [all...] |
/ndk/sources/host-tools/make-3.81/ |
implicit.c | 1 /* Implicit rule searching for GNU Make. 21 #include "rule.h" 35 Returns 1 if a suitable implicit rule was found, 37 or returns 0 if no implicit rule was found. */ 42 DBF (DB_IMPLICIT, _("Looking for an implicit rule for `%s'.\n")); 58 _("Looking for archive-member implicit rule for `%s'.\n")); 187 /* Search the pattern rules for a rule with an existing dependency to make 188 FILE. If a rule is found, the appropriate commands and deps are put in FILE 191 If ARCHIVE is nonzero, FILE->name is of the form "LIB(MEMBER)". A rule for 205 /* Filename we are searching for a rule for. * 262 struct rule *rule; local [all...] |
/external/chromium-trace/trace-viewer/tracing/third_party/closure_linter/closure_linter/ |
error_check.py | 27 class Rule(object): 39 # Rule to raise all known errors. 54 'This includes ' + (', '.join(Rule.CLOSURE_RULES)) + '.') 58 ' - ' + Rule.ALL + ': enables all following errors.\n' 59 ' - ' + Rule.BLANK_LINES_AT_TOP_LEVEL + ': validates' 61 ' - ' + Rule.INDENTATION + ': checks correct ' 63 ' - ' + Rule.WELL_FORMED_AUTHOR + ': validates the ' 65 ' - ' + Rule.NO_BRACES_AROUND_INHERIT_DOC + ': ' 67 ' - ' + Rule.BRACES_AROUND_TYPE + ': enforces braces ' 69 ' - ' + Rule.OPTIONAL_TYPE_MARKER + ': checks correct [all...] |
/external/ltrace/ |
filter.h | 66 /* Both SYMBOL_RE and MATCHER are owned and destroyed by RULE. */ 67 void filter_rule_init(struct filter_rule *rule, enum filter_rule_type type, 71 void filter_rule_destroy(struct filter_rule *rule); 73 /* RULE is added to FILT and owned and destroyed by it. */ 74 void filter_add_rule(struct filter *filt, struct filter_rule *rule);
|
/external/nist-sip/java/gov/nist/core/ |
ParserCore.java | 100 protected void dbg_enter(String rule) { 107 stringBuffer + rule + 114 protected void dbg_leave(String rule) { 122 rule + 135 protected void peekLine(String rule) { 137 Debug.println(rule +" " + lexer.peekLine());
|
/external/icu/icu4c/source/test/intltest/ |
plurults.h | 39 void assertRuleValue(const UnicodeString& rule, double expected); 40 void assertRuleKeyValue(const UnicodeString& rule, const UnicodeString& key,
|
/external/skia/src/svg/parser/ |
SkSVGPolygon.cpp | 14 SVG_LITERAL_ATTRIBUTE(clip-rule, f_clipRule), 15 SVG_LITERAL_ATTRIBUTE(fill-rule, f_fillRule),
|
/external/v8/tools/testrunner/local/ |
statusfile.py | 99 def _ParseOutcomeList(rule, outcomes, target_dict, variables): 114 if rule in target_dict: 115 target_dict[rule] |= result 117 target_dict[rule] = result 134 for rule in section: 135 assert type(rule) == str 136 if rule[-1] == '*': 137 _ParseOutcomeList(rule, section[rule], wildcards, variables) 139 _ParseOutcomeList(rule, section[rule], rules, variables [all...] |
/external/selinux/sepolgen/tests/ |
test_access.py | 141 rule = refpolicy.AVRule() 142 rule.src_types.add("foo") 143 rule.src_types.add("baz") 144 rule.tgt_types.add("bar") 145 rule.tgt_types.add("what") 146 rule.obj_classes.add("file") 147 rule.obj_classes.add("dir") 148 rule.perms.add("read") 149 rule.perms.add("write") 151 avs = access.avrule_to_access_vectors(rule) [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/ |
NotifiedTestExecuter.java | 53 if(ruleName == null) throw new NullPointerException("Null rule name"); 55 final Rule rule = testSuite.getRule(ruleName); local 56 final TestCase failCase = (TestCase) rule.getElementAt(failTest.getTestCaseIndex()); 66 if(ruleName == null) throw new NullPointerException("Null rule name"); 68 final Rule rule = testSuite.getRule(ruleName); local 69 final TestCase passCase = (TestCase) rule.getElementAt(passTest.getTestCaseIndex());
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
TreeFilter.java | 41 rule application strategy and a ``down then up'' tree traversal 42 strategy. Let's look at rule application first. 46 to the next node. In other words, we only look for a single rule 48 repeatedly apply rules). The following method applies a rule in a @cl 53 It uses reflection to lookup the appropriate rule within the generated 55 rule will not match the tree. To avoid issuing syntax errors and 57 failure, the invoked rule immediately returns. If you don't plan on 59 the details. This method boils down to ``call a rule to match a tree, 80 public void rule() throws RecognitionException; method in interface:TreeFilter.fptr 103 whichRule.rule(); [all...] |
/external/v8/test/cctest/ |
test-date.cc | 38 struct Rule { 42 DateCacheMock(int local_offset, Rule* rules, int rules_count) 51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); local 52 return rule == NULL ? 0 : rule->offset_sec * 1000; 61 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) { 62 Rule* result = NULL; 71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeAutomationSettings.java | 101 final ZenRule rule = new ZenRule(); local 102 rule.name = ruleName; 103 rule.enabled = true; 104 rule.zenMode = Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; 105 rule.conditionId = ri.defaultConditionId; 106 rule.component = ri.serviceComponent; 109 newConfig.automaticRules.put(ruleId, rule); 111 showRule(ri.settingsAction, ri.configurationActivity, ruleId, rule.name); 130 zri.rule = mConfig.automaticRules.valueAt(i); 144 final ZenRule rule = sortedRules[i].rule local 334 ZenRule rule; field in class:ZenModeAutomationSettings.ZenRuleInfo [all...] |