Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/parsing/
Dmatcher_test.cc130 static_cast<CallbackId>(DefaultCallback::kRootRule)); in TEST_F()
132 static_cast<CallbackId>(DefaultCallback::kRootRule)); in TEST_F()
157 static_cast<CallbackId>(DefaultCallback::kRootRule), 6); in CreateTestGrammar()
159 static_cast<CallbackId>(DefaultCallback::kRootRule), 1); in CreateTestGrammar()
163 static_cast<CallbackId>(DefaultCallback::kRootRule), 2); in CreateTestGrammar()
165 static_cast<CallbackId>(DefaultCallback::kRootRule), 3); in CreateTestGrammar()
167 static_cast<CallbackId>(DefaultCallback::kRootRule), 4); in CreateTestGrammar()
171 static_cast<CallbackId>(DefaultCallback::kRootRule), 5); in CreateTestGrammar()
173 static_cast<CallbackId>(DefaultCallback::kRootRule), 5); in CreateTestGrammar()
271 static_cast<CallbackId>(DefaultCallback::kRootRule)); in TEST_F()
[all …]
Dparser_test.cc52 static_cast<CallbackId>(DefaultCallback::kRootRule), kDate); in TEST_F()
68 static_cast<CallbackId>(DefaultCallback::kRootRule), kTest); in TEST_F()
92 static_cast<CallbackId>(DefaultCallback::kRootRule), in TEST_F()
113 static_cast<CallbackId>(DefaultCallback::kRootRule), in TEST_F()
136 static_cast<CallbackId>(DefaultCallback::kRootRule), kFlight); in TEST_F()
159 static_cast<CallbackId>(DefaultCallback::kRootRule), kCallPhone); in TEST_F()
189 static_cast<CallbackId>(DefaultCallback::kRootRule), in TEST_F()
214 static_cast<CallbackId>(DefaultCallback::kRootRule), kSetReminder); in TEST_F()
234 static_cast<CallbackId>(DefaultCallback::kRootRule), kSetReminder); in TEST_F()
257 static_cast<CallbackId>(DefaultCallback::kRootRule), kFlight); in TEST_F()
[all …]
Dmatcher.cc223 Nonterm* nonterminal, CallbackId* callback, int64* param, in GetLhs()
328 CallbackId callback_id; in ExecuteLhsSet()
/external/libtextclassifier/native/utils/grammar/semantics/
Dcomposer_test.cc50 static_cast<CallbackId>(DefaultCallback::kSemanticExpression), in TEST_F()
64 static_cast<CallbackId>(DefaultCallback::kSemanticExpression), in TEST_F()
78 static_cast<CallbackId>(DefaultCallback::kRootRule), kMonth); in TEST_F()
124 static_cast<CallbackId>(DefaultCallback::kSemanticExpression), in TEST_F()
141 static_cast<CallbackId>(DefaultCallback::kMapping), in TEST_F()
144 static_cast<CallbackId>(DefaultCallback::kSemanticExpression), in TEST_F()
151 static_cast<CallbackId>(DefaultCallback::kRootRule), in TEST_F()
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator_test.cc60 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
98 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
146 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
178 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
223 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
287 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
333 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
364 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
415 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
475 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
[all …]
/external/libtextclassifier/native/utils/grammar/
Danalyzer_test.cc45 static_cast<CallbackId>(DefaultCallback::kSemanticExpression), in TEST_F()
50 static_cast<CallbackId>(DefaultCallback::kSemanticExpression), in TEST_F()
56 static_cast<CallbackId>(DefaultCallback::kRootRule), kMonth); in TEST_F()
Dtypes.h34 typedef int32 CallbackId; // `kNoCallback` is reserved for "no callback" typedef
35 enum class DefaultCallback : CallbackId {
/external/libtextclassifier/native/utils/grammar/utils/
Drules.cc70 if (rule.callback == static_cast<CallbackId>(DefaultCallback::kExclusion)) { in IsRhsAssigned()
83 const CallbackId callback = rule.callback; in LowerRule()
87 if (callback == static_cast<CallbackId>(DefaultCallback::kExclusion)) { in LowerRule()
207 const CallbackId callback, const int64 callback_param, in ExpandOptionals()
320 const CallbackId callback, const int64 callback_param, in Add()
342 const CallbackId callback, const int64 callback_param, in Add()
377 /*callback=*/static_cast<CallbackId>(DefaultCallback::kExclusion), in AddWithExclusion()
387 /*callback=*/static_cast<CallbackId>(DefaultCallback::kAssertion), in AddAssertion()
396 /*callback=*/static_cast<CallbackId>(DefaultCallback::kMapping), in AddValueMapping()
404 /*callback=*/static_cast<CallbackId>(DefaultCallback::kMapping), in AddValueMapping()
Drules.h88 CallbackId callback = kNoCallback;
117 const CallbackId callback = kNoCallback,
124 CallbackId callback = kNoCallback, int64 callback_param = 0,
184 int lhs, const std::vector<RhsElement>& rhs, CallbackId callback,
Dir_test.cc102 constexpr CallbackId kOutput1 = 1; in TEST()
103 constexpr CallbackId kOutput2 = 2; in TEST()
124 constexpr CallbackId kOutput = 1; in TEST()
Dir.h60 CallbackId id = kNoCallback;
Drules_test.cc57 const CallbackId output = 1; in TEST()
/external/libtextclassifier/native/actions/
Dgrammar-actions_test.cc156 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
188 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
245 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
285 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
292 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
360 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
418 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
498 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
555 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
592 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
[all …]
Dactions-suggestions_test.cc1081 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
1143 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc1851 static_cast<grammar::CallbackId>(grammar::DefaultCallback::kRootRule), in TEST_F()