Home
last modified time | relevance | path

Searched refs:rule (Results 101 - 125 of 469) sorted by relevance

12345678910>>...19

/third_party/python/Tools/peg_generator/pegen/
H A Dparser_generator.py50 def visit_Rule(self, rule: Rule) -> None:
51 self.visit(rule.flatten())
81 raise GrammarError(f"Dangling reference to rule {node.value!r}")
101 raise GrammarError("Grammar without a trailer must have a 'start' rule")
103 for rule in self.rules.values():
104 checker.visit(rule)
114 for rule in self.rules:
115 if rule.startswith("_"):
116 raise GrammarError(f"Rule names cannot start with underscore: '{rule}'")
153 for rule i
[all...]
/third_party/ninja/src/
H A Dstate_test.cc32 Rule* rule = new Rule("cat"); in TEST() local
33 rule->AddBinding("command", command); in TEST()
34 state.bindings_.AddRule(rule); in TEST()
36 Edge* edge = state.AddEdge(rule); in TEST()
/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/
H A Decological_rule_interceptor.cpp51 ExperienceRule rule; in DoProcess() local
57 callerInfo, rule)); in DoProcess()
58 TAG_LOGD(AAFwkTag::ECOLOGICAL_RULE, "isBackSkuExempt: %{public}d.", rule.isBackSkuExempt); in DoProcess()
60 TAG_LOGD(AAFwkTag::ECOLOGICAL_RULE, "check ecological rule failed"); in DoProcess()
63 TAG_LOGD(AAFwkTag::ECOLOGICAL_RULE, "check ecological rule success"); in DoProcess()
64 StartAbilityUtils::ermsResultCode = rule.resultCode; in DoProcess()
65 StartAbilityUtils::ermsSupportBackToCallerFlag = rule.isBackSkuExempt; in DoProcess()
66 if (rule.resultCode == ERMS_ISALLOW_RESULTCODE) { in DoProcess()
67 TAG_LOGD(AAFwkTag::ECOLOGICAL_RULE, "allow ecological rule"); in DoProcess()
77 if (param.isWithUI && rule in DoProcess()
119 ExperienceRule rule; DoProcess() local
[all...]
/third_party/icu/icu4c/source/common/
H A Dutil.h164 static int32_t parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit,
196 static int32_t parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit);
242 static void appendToRule(UnicodeString& rule,
248 static void appendToRule(UnicodeString& rule,
254 static void appendToRule(UnicodeString& rule,
/third_party/node/deps/icu-small/source/common/
H A Dutil.h164 static int32_t parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit,
196 static int32_t parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit);
242 static void appendToRule(UnicodeString& rule,
248 static void appendToRule(UnicodeString& rule,
254 static void appendToRule(UnicodeString& rule,
/third_party/skia/third_party/externals/icu/source/common/
H A Dutil.h154 static int32_t parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit,
186 static int32_t parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit);
232 static void appendToRule(UnicodeString& rule,
238 static void appendToRule(UnicodeString& rule,
244 static void appendToRule(UnicodeString& rule,
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_db_helper.cpp142 int32_t NetFirewallDbHelper::FillValuesOfFirewallRule(ValuesBucket &values, const NetFirewallRule &rule) in FillValuesOfFirewallRule() argument
146 values.PutInt(NET_FIREWALL_USER_ID, rule.userId); in FillValuesOfFirewallRule()
147 values.PutString(NET_FIREWALL_RULE_NAME, rule.ruleName); in FillValuesOfFirewallRule()
148 values.PutString(NET_FIREWALL_RULE_DESC, rule.ruleDescription); in FillValuesOfFirewallRule()
149 values.PutInt(NET_FIREWALL_RULE_DIR, static_cast<int32_t>(rule.ruleDirection)); in FillValuesOfFirewallRule()
150 values.PutInt(NET_FIREWALL_RULE_ACTION, static_cast<int32_t>(rule.ruleAction)); in FillValuesOfFirewallRule()
151 values.PutInt(NET_FIREWALL_RULE_TYPE, static_cast<int32_t>(rule.ruleType)); in FillValuesOfFirewallRule()
152 values.PutInt(NET_FIREWALL_IS_ENABLED, rule.isEnabled); in FillValuesOfFirewallRule()
153 values.PutInt(NET_FIREWALL_APP_ID, rule.appUid); in FillValuesOfFirewallRule()
157 switch (rule in FillValuesOfFirewallRule()
197 AddFirewallRule(NativeRdb::ValuesBucket &values, const NetFirewallRule &rule) AddFirewallRule() argument
203 AddFirewallRuleRecord(const NetFirewallRule &rule) AddFirewallRuleRecord() argument
243 UpdateFirewallRuleRecord(const NetFirewallRule &rule) UpdateFirewallRuleRecord() argument
778 IsDnsRuleExist(const sptr<NetFirewallRule> &rule) IsDnsRuleExist() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DRuleBasedTimeZone.java41 * @param initialRule The initial time zone rule.
56 * @param rule The <code>TimeZoneRule</code>.
60 public void addTransitionRule(TimeZoneRule rule) { in addTransitionRule() argument
64 if (!rule.isTransitionRule()) { in addTransitionRule()
65 throw new IllegalArgumentException("Rule must be a transition rule"); in addTransitionRule()
67 if (rule instanceof AnnualTimeZoneRule in addTransitionRule()
68 && ((AnnualTimeZoneRule)rule).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in addTransitionRule()
72 finalRules[0] = (AnnualTimeZoneRule)rule; in addTransitionRule()
74 finalRules[1] = (AnnualTimeZoneRule)rule; in addTransitionRule()
80 // If this is not a final rule, ad in addTransitionRule()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DRuleBasedTimeZone.java42 * @param initialRule The initial time zone rule.
55 * @param rule The <code>TimeZoneRule</code>.
57 public void addTransitionRule(TimeZoneRule rule) { in addTransitionRule() argument
61 if (!rule.isTransitionRule()) { in addTransitionRule()
62 throw new IllegalArgumentException("Rule must be a transition rule"); in addTransitionRule()
64 if (rule instanceof AnnualTimeZoneRule in addTransitionRule()
65 && ((AnnualTimeZoneRule)rule).getEndYear() == AnnualTimeZoneRule.MAX_YEAR) { in addTransitionRule()
69 finalRules[0] = (AnnualTimeZoneRule)rule; in addTransitionRule()
71 finalRules[1] = (AnnualTimeZoneRule)rule; in addTransitionRule()
77 // If this is not a final rule, ad in addTransitionRule()
[all...]
/third_party/musl/porting/liteos_a/kernel/src/time/
H A D__tz.c50 * and determine alternate opposite-DST-status rule that may be needed. */
65 /* Binary search for 'most-recent rule before t'. */ in scan_trans()
81 * non-DST type. Last means to apply POSIX-style rule if available. */ in scan_trans()
102 /* Try to find a neighboring opposite-DST-status rule. */ in scan_trans()
121 /* Convert a POSIX DST rule plus year to seconds since epoch. */
123 static long long rule_to_secs(const int *rule, int year) in rule_to_secs() argument
128 if (rule[0]!='M') { in rule_to_secs()
129 x = rule[1]; in rule_to_secs()
130 if (rule[0]=='J' && (x < 60 || !is_leap)) x--; in rule_to_secs()
133 m = rule[ in rule_to_secs()
[all...]
/third_party/musl/porting/uniproton/kernel/src/time/
H A D__tz.c54 * and determine alternate opposite-DST-status rule that may be needed. */
69 /* Binary search for 'most-recent rule before t'. */ in scan_trans()
85 * non-DST type. Last means to apply POSIX-style rule if available. */ in scan_trans()
108 /* Try to find a neighboring opposite-DST-status rule. */ in scan_trans()
127 /* Convert a POSIX DST rule plus year to seconds since epoch. */
129 static long long rule_to_secs(const int *rule, int year) in rule_to_secs() argument
134 if (rule[0]!='M') { in rule_to_secs()
135 x = rule[1]; in rule_to_secs()
136 if (rule[0]=='J' && (x < 60 || !is_leap)) x--; in rule_to_secs()
139 m = rule[ in rule_to_secs()
[all...]
/third_party/musl/porting/liteos_m/kernel/src/time/
H A D__tz.c54 * and determine alternate opposite-DST-status rule that may be needed. */
69 /* Binary search for 'most-recent rule before t'. */ in scan_trans()
85 * non-DST type. Last means to apply POSIX-style rule if available. */ in scan_trans()
108 /* Try to find a neighboring opposite-DST-status rule. */ in scan_trans()
127 /* Convert a POSIX DST rule plus year to seconds since epoch. */
129 static long long rule_to_secs(const int *rule, int year) in rule_to_secs() argument
134 if (rule[0]!='M') { in rule_to_secs()
135 x = rule[1]; in rule_to_secs()
136 if (rule[0]=='J' && (x < 60 || !is_leap)) x--; in rule_to_secs()
139 m = rule[ in rule_to_secs()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/app_control/
H A Djs_app_control.cpp500 void ConvertRuleInfo(napi_env env, napi_value nRule, const DisposedRule &rule) in ConvertRuleInfo() argument
503 if (rule.want != nullptr) { in ConvertRuleInfo()
504 nWant = CreateJsWant(env, *rule.want); in ConvertRuleInfo()
510 NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, static_cast<int32_t>(rule.componentType), &nComponentType)); in ConvertRuleInfo()
513 NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, static_cast<int32_t>(rule.disposedType), &nDisposedType)); in ConvertRuleInfo()
516 NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, static_cast<int32_t>(rule.controlType), &nControlType)); in ConvertRuleInfo()
521 for (size_t idx = 0; idx < rule.elementList.size(); idx++) { in ConvertRuleInfo()
524 CommonFunc::ConvertElementName(env, nElementName, rule.elementList[idx]); in ConvertRuleInfo()
529 NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, rule.priority, &nPriority)); in ConvertRuleInfo()
533 bool ParseDiposedRule(napi_env env, napi_value nRule, DisposedRule &rule) in ParseDiposedRule() argument
681 InnerSetDisposedRule(napi_env env, std::string &appId, DisposedRule &rule, int32_t appIndex) InnerSetDisposedRule() argument
732 DisposedRule rule; SetDisposedRule() local
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbitmap_manager.cpp301 for (const auto &rule : ruleList) { in BuildMarkBitmap()
303 ret = InsertIpBitmap(rule->remoteIps, true, bitmap); in BuildMarkBitmap()
308 ret = InsertIpBitmap(rule->localIps, false, bitmap); in BuildMarkBitmap()
313 if (!IsNotNeedPort(rule->protocol)) { in BuildMarkBitmap()
314 AddPortBitmap(rule->remotePorts, bitmap, srcPortMap); in BuildMarkBitmap()
315 AddPortBitmap(rule->localPorts, bitmap, dstPortMap); in BuildMarkBitmap()
318 if (rule->protocol != (NetworkProtocol)0) { in BuildMarkBitmap()
319 ProtoKey proto = (ProtoKey)rule->protocol; in BuildMarkBitmap()
323 if (rule->appUid > 0) { in BuildMarkBitmap()
324 appUidMap_.OrInsert((AppUidKey)rule in BuildMarkBitmap()
[all...]
/third_party/pulseaudio/src/modules/
H A Dmodule-augment-properties.c49 struct rule { struct
65 static void rule_free(struct rule *r) { in rule_free()
78 struct rule *r; in parse_properties()
98 struct rule *r; in parse_categories()
132 static char * find_desktop_file_in_dir(struct rule *r, const char *desktop_file_dir, struct stat *st) { in find_desktop_file_in_dir()
173 static void update_rule(struct rule *r) { in update_rule()
244 static void apply_rule(struct rule *r, pa_proplist *p) { in apply_rule()
276 struct rule *r; in make_room()
284 struct rule *r; in process()
309 r = pa_xnew0(struct rule, in process()
[all...]
/third_party/python/Lib/email/mime/
H A Daudio.py71 def rule(rulefunc): function
76 @rule
86 @rule
94 @rule
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_rule.cpp41 // When system status is changed,traverse uidPolicyRules_ to calculate the rule and netsys. in TransPolicyToRule()
122 auto rule = MoveToRuleBit(conditionValue & POLICY_TRANS_RULE_MASK); in TransConditionToRuleAndNetsys() local
123 NETMGR_LOG_D("NetPolicyRule->uid:[%{public}u] policy:[%{public}u] rule:[%{public}u] policyCondition[%{public}u]", in TransConditionToRuleAndNetsys()
124 uid, policy, rule, policyCondition); in TransConditionToRuleAndNetsys()
137 if (policyRuleNetsys.rule_ == rule) { in TransConditionToRuleAndNetsys()
138 NETMGR_LOG_D("Same rule and uid ,don't need to do others.uid is:[%{public}u] rule is:[%{public}u]", uid, rule); in TransConditionToRuleAndNetsys()
142 policyRuleNetsys.rule_ = rule; in TransConditionToRuleAndNetsys()
143 GetCbInst()->NotifyNetUidRuleChangeAsync(uid, rule); in TransConditionToRuleAndNetsys()
247 uint32_t rule = NetUidRule::NET_RULE_NONE; IsUidNetAllowed() local
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DPluralRules.java68 * keyword "other" by the default rule.
75 * This illustrates that the same keyword can be defined multiple times. Each rule is examined in order, and the first
76 * keyword whose condition passes is the one returned. Also notes that a modulus is applied to n in the last rule. Thus
93 * rules = rule (';' rule)*
94 * rule = keyword ':' condition
320 * for values to which no other form in the rule applies. It
374 * @param description the rule description.
388 * @param description the rule description.
1519 * rule
[all...]
H A DNFSubstitution.java22 * is a section of a rule that inserts text into the rule's rule text
32 * The substitution's position in the rule text of the rule that owns it
37 * The rule set this substitution uses to format its result, or null.
55 * @param pos The substitution's position in the rule text of the
56 * rule that owns it.
57 * @param rule The rule containin
70 makeSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, RuleBasedNumberFormat formatter, String description) makeSubstitution() argument
683 MultiplierSubstitution(int pos, NFRule rule, NFRuleSet ruleSet, String description) MultiplierSubstitution() argument
843 ModulusSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, String description) ModulusSubstitution() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DNFSubstitution.java21 * is a section of a rule that inserts text into the rule's rule text
31 * The substitution's position in the rule text of the rule that owns it
36 * The rule set this substitution uses to format its result, or null.
54 * @param pos The substitution's position in the rule text of the
55 * rule that owns it.
56 * @param rule The rule containin
69 makeSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, RuleBasedNumberFormat formatter, String description) makeSubstitution() argument
682 MultiplierSubstitution(int pos, NFRule rule, NFRuleSet ruleSet, String description) MultiplierSubstitution() argument
842 ModulusSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, String description) ModulusSubstitution() argument
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/src/ecological_rule/
H A Dability_ecological_rule_mgr_service.cpp132 const AbilityCallerInfo &callerInfo, AbilityExperienceRule &rule) in QueryStartExperience()
142 int32_t res = ecologicalRuleMgrServiceProxy_->QueryStartExperience(want, callerInfo, rule); in QueryStartExperience()
143 if (rule.replaceWant != nullptr) { in QueryStartExperience()
144 rule.replaceWant->SetParam(ERMS_ORIGINAL_TARGET, want.ToString()); in QueryStartExperience()
147 rule.resultCode, rule.sceneCode.c_str(), (*(rule.replaceWant)).ToString().c_str()); in QueryStartExperience()
245 const AbilityCallerInfo &callerInfo, AbilityExperienceRule &rule) in QueryStartExperience()
286 rule = *sptrRule; in QueryStartExperience()
131 QueryStartExperience(const OHOS::AAFwk::Want &want, const AbilityCallerInfo &callerInfo, AbilityExperienceRule &rule) QueryStartExperience() argument
244 QueryStartExperience(const Want &want, const AbilityCallerInfo &callerInfo, AbilityExperienceRule &rule) QueryStartExperience() argument
/third_party/node/tools/gyp/pylib/gyp/generator/
H A Dninja.py48 # Special variables that may be used by gyp 'rule' targets.
50 # rule.
161 """Return true if the target should produce a restat rule based on a TOC
194 # sources as well as the starting directory a given gyp rule/action
431 # any of its action/rule/copy steps.
553 """Handle the implicit VS .idl rule for one source file. Fills |outputs|
652 # First write out a rule for the action.
678 # Then write out an edge using the rule.
696 for rule in rules:
697 # Skip a rule wit
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
H A Dninja.py48 # Special variables that may be used by gyp 'rule' targets.
50 # rule.
161 """Return true if the target should produce a restat rule based on a TOC
194 # sources as well as the starting directory a given gyp rule/action
431 # any of its action/rule/copy steps.
553 """Handle the implicit VS .idl rule for one source file. Fills |outputs|
652 # First write out a rule for the action.
678 # Then write out an edge using the rule.
696 for rule in rules:
697 # Skip a rule wit
[all...]
/foundation/communication/netmanager_ext/frameworks/native/netfirewallclient/src/
H A Dnetfirewall_proxy.cpp82 int32_t NetFirewallProxy::AddNetFirewallRule(const sptr<NetFirewallRule> &rule, int32_t &result) in AddNetFirewallRule() argument
90 if (!rule->Marshalling(data)) { in AddNetFirewallRule()
110 int32_t NetFirewallProxy::UpdateNetFirewallRule(const sptr<NetFirewallRule> &rule) in UpdateNetFirewallRule() argument
118 if (!rule->Marshalling(data)) { in UpdateNetFirewallRule()
192 int32_t NetFirewallProxy::GetNetFirewallRule(const int32_t userId, const int32_t ruleId, sptr<NetFirewallRule> &rule) in GetNetFirewallRule() argument
213 rule = NetFirewallRule::Unmarshalling(reply); in GetNetFirewallRule()
214 if (rule == nullptr) { in GetNetFirewallRule()
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
H A DCompoundTransliterator.java258 * Create a rule string that can be passed to createFromRules()
264 * @return the rule string
269 // general. If we have several rule-based transliterators, this in toRules()
281 String rule; in toRules()
288 rule = trans[i].toRules(escapeUnprintable); in toRules()
290 rule = "::Null;" + rule; in toRules()
297 rule = trans[i].toRules(escapeUnprintable); in toRules()
301 rule = trans[i].baseToRules(escapeUnprintable); in toRules()
304 rulesSource.append(rule); in toRules()
[all...]

Completed in 21 milliseconds

12345678910>>...19