Home
last modified time | relevance | path

Searched refs:rule_id (Results 1 – 15 of 15) sorted by relevance

/external/libtextclassifier/native/utils/grammar/
Drules-utils.cc64 if (a.rule_id != b.rule_id) { in DeduplicateDerivations()
65 return a.rule_id < b.rule_id; in DeduplicateDerivations()
86 if (sorted_candidates[j].rule_id != candidate.rule_id) { in DeduplicateDerivations()
Drules-utils_test.cc40 return Value(arg.rule_id, candidate.rule_id) &&
Drules-utils.h48 int64 rule_id; member
/external/swiftshader/third_party/llvm-7.0/llvm/utils/
Dllvm-gisel-cov.py51 rule_id, = struct.unpack("Q", data[:8])
54 if rule_id == (2 ** 64) - 1:
57 covered_rules[backend][rule_id] = covered_rules[backend].get(rule_id, 0) + 1
/external/libtextclassifier/native/annotator/datetime/
Dextractor.cc192 int* rule_id) const { in RuleIdForType()
202 *rule_id = locale_it->second; in RuleIdForType()
209 int rule_id; in ExtractType() local
210 if (!RuleIdForType(extractor_type, &rule_id)) { in ExtractType()
215 rules_[rule_id]->Matcher(input); in ExtractType()
315 int rule_id; in ParseWrittenNumber() local
316 if (!RuleIdForType(type_value_pair.first, &rule_id)) { in ParseWrittenNumber()
321 rules_[rule_id]->Matcher(input); in ParseWrittenNumber()
Dparser.cc139 for (const int rule_id : rules_it->second) { in FindSpansUsingLocales() local
141 if (executed_rules->find(rule_id) != executed_rules->end()) { in FindSpansUsingLocales()
145 if ((rules_[rule_id].pattern->enabled_annotation_usecases() & in FindSpansUsingLocales()
150 if (!(rules_[rule_id].pattern->enabled_modes() & mode)) { in FindSpansUsingLocales()
154 executed_rules->insert(rule_id); in FindSpansUsingLocales()
156 if (!ParseWithRule(rules_[rule_id], input, reference_time_ms_utc, in FindSpansUsingLocales()
Dextractor.h64 bool RuleIdForType(DatetimeExtractorType type, int* rule_id) const;
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.cc127 void HandleRuleMatch(const grammar::Match* match, const int64 rule_id) { in HandleRuleMatch() argument
128 if ((model_->rule_classification_result()->Get(rule_id)->enabled_modes() & in HandleRuleMatch()
130 candidates_.push_back(grammar::Derivation{match, rule_id}); in HandleRuleMatch()
191 model_->rule_classification_result()->Get(candidate.rule_id)); in GetOverlappingRuleMatches()
215 model_->rule_classification_result()->Get(candidate.rule_id); in GetBestValidInterpretation()
240 if (candidate.rule_id < 0 || in AddAnnotatedSpanFromMatch()
241 candidate.rule_id >= model_->rule_classification_result()->size()) { in AddAnnotatedSpanFromMatch()
246 model_->rule_classification_result()->Get(candidate.rule_id); in AddAnnotatedSpanFromMatch()
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/msm_bus/bus_rules_apply/
Dformat9 field:int rule_id; offset:8; size:4; signed:1;
13 print fmt: "rule:%d limit_bw:%llu throttle_enable:%d", REC->rule_id, (unsigned long long)REC->limit…
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/msm_bus/bus_rules_matches/
Dformat10 field:int rule_id; offset:12; size:4; signed:1;
15 print fmt: "node:%d rule:%d node-ab:%llu ib:%llu clk:%llu", REC->node_id, REC->rule_id, (unsigned l…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/msm_bus/bus_rules_matches/
Dformat10 field:int rule_id; offset:12; size:4; signed:1;
15 print fmt: "Rule match node%d rule%d node-ab%llu:ib%llu:clk%llu", REC->node_id, REC->rule_id, (unsi…
/external/libtextclassifier/native/actions/
Dgrammar-actions.cc86 void HandleRuleMatch(const grammar::Match* match, const int64 rule_id) { in HandleRuleMatch() argument
87 candidates_.push_back(grammar::Derivation{match, rule_id}); in HandleRuleMatch()
101 grammar_rules_->rule_match()->Get(candidate.rule_id); in InstantiateActionsFromMatch()
/external/iptables/iptables/
Dnft.h55 uint32_t rule_id; member
Dnft.c2040 nftnl_rule_set_u32(r, NFTNL_RULE_ID, ++h->rule_id); in __nft_rule_del()
2153 ref_id = ++h->rule_id; in nft_rule_add()
/external/libtextclassifier/native/annotator/grammar/dates/
Dextractor.cc773 const std::string rule_id = rule->id()->str(); in HandleExtractionRuleMatch() local
777 if (extra_requested_dates_id == rule_id) { in HandleExtractionRuleMatch()