Home
last modified time | relevance | path

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

/external/libtextclassifier/actions/
Dranker.cc32 void SortByScoreAndType(std::vector<ActionSuggestion>* actions) { in SortByScoreAndType()
34 [](const ActionSuggestion& a, const ActionSuggestion& b) { in SortByScoreAndType()
103 int CompareAnnotationsOnly(const ActionSuggestion& action, in CompareAnnotationsOnly()
104 const ActionSuggestion& other) { in CompareAnnotationsOnly()
119 bool HaveEquivalentAnnotations(const ActionSuggestion& action, in HaveEquivalentAnnotations()
120 const ActionSuggestion& other) { in HaveEquivalentAnnotations()
125 int Compare(const ActionSuggestion& action, const ActionSuggestion& other) { in Compare()
140 bool IsEquivalentActionSuggestion(const ActionSuggestion& action, in IsEquivalentActionSuggestion()
141 const ActionSuggestion& other) { in IsEquivalentActionSuggestion()
146 bool IsAnyActionEquivalent(const ActionSuggestion& action, in IsAnyActionEquivalent()
[all …]
Dlua-utils.h120 const ActionSuggestion& action,
125 ActionSuggestion ReadAction(
131 LuaEnvironment* env, std::vector<ActionSuggestion>* actions);
135 : public LuaEnvironment::ItemIterator<std::vector<ActionSuggestion>> {
143 int Item(const std::vector<ActionSuggestion>* actions, const int64 pos, in Item()
Dactions-suggestions.h216 const Annotator* annotator, std::vector<ActionSuggestion>* actions) const;
220 std::vector<ActionSuggestion>* actions) const;
229 std::vector<ActionSuggestion>* actions) const;
236 std::vector<ActionSuggestion>* actions) const;
249 std::vector<ActionSuggestion>* actions) const;
251 ActionSuggestion SuggestionFromSpec(
Dtypes.h60 struct ActionSuggestion { struct
113 std::vector<ActionSuggestion> actions;
Dactions-suggestions.cc532 std::vector<ActionSuggestion>* actions) const { in FilterConfidenceOutput()
536 std::vector<ActionSuggestion> filtered_text_replies; in FilterConfidenceOutput()
537 for (const ActionSuggestion& action : *actions) { in FilterConfidenceOutput()
567 ActionSuggestion ActionsSuggestions::SuggestionFromSpec( in SuggestionFromSpec()
572 ActionSuggestion suggestion; in SuggestionFromSpec()
901 std::vector<ActionSuggestion> text_replies; in ReadModelOutput()
935 ActionSuggestion suggestion = in ReadModelOutput()
1027 const Annotator* annotator, std::vector<ActionSuggestion>* actions) const { in SuggestActionsFromAnnotations()
1115 std::vector<ActionSuggestion>* actions) const { in SuggestActionsFromAnnotation()
1123 ActionSuggestion suggestion = SuggestionFromSpec(mapping->action()); in SuggestActionsFromAnnotation()
[all …]
Dlua-utils.cc250 const ActionSuggestion& action, in PushAction()
275 ActionSuggestion ReadAction( in ReadAction()
279 ActionSuggestion action; in ReadAction()
309 LuaEnvironment* env, std::vector<ActionSuggestion>* actions) { in ReadActions()
Dlua-actions_test.cc43 std::vector<ActionSuggestion> actions; in TEST()
Dlua-actions.h40 bool SuggestActions(std::vector<ActionSuggestion>* actions);
Dlua-ranker.cc74 std::vector<ActionSuggestion> ranked_actions; in ReadActionsRanking()
Dlua-actions.cc140 std::vector<ActionSuggestion>* actions) { in SuggestActions()
Dactions_jni.cc39 using libtextclassifier3::ActionSuggestion;
123 const std::vector<ActionSuggestion>& action_result, in ActionSuggestionsToJObjectArray()
Dactions-suggestions_test.cc844 for (const ActionSuggestion action : response.actions) { in TEST_F()
1008 ElementsAre(testing::Field(&ActionSuggestion::type, "share_location"))); in TEST_F()
1020 ElementsAre(testing::Field(&ActionSuggestion::type, "share_contact"))); in TEST_F()
/external/libtextclassifier/java/com/google/android/textclassifier/
DActionsSuggestionsModel.java67 public ActionSuggestion[] suggestActions( in suggestActions()
79 public ActionSuggestion[] suggestActionsWithIntents( in suggestActionsWithIntents()
129 public static final class ActionSuggestion { class in ActionsSuggestionsModel
137 public ActionSuggestion( in ActionSuggestion() method in ActionsSuggestionsModel.ActionSuggestion
255 private native ActionSuggestion[] nativeSuggestActions( in nativeSuggestActions()
/external/libtextclassifier/utils/intents/
Dintent-generator.h89 const ActionSuggestion& action,
Dintent-generator.cc741 const Conversation& conversation, const ActionSuggestion& action, in ActionsJniLuaEnvironment()
763 const ActionSuggestion& action_;
870 const jstring device_locales, const ActionSuggestion& action, in GenerateIntents()