Lines Matching refs:ActionSuggestion
32 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()
147 const std::vector<ActionSuggestion>& actions) { in IsAnyActionEquivalent()
148 for (const ActionSuggestion& other : actions) { in IsAnyActionEquivalent()
165 bool IsConflictingActionSuggestion(const ActionSuggestion& action, in IsConflictingActionSuggestion()
166 const ActionSuggestion& other) { in IsConflictingActionSuggestion()
184 bool IsAnyActionConflicting(const ActionSuggestion& action, in IsAnyActionConflicting()
185 const std::vector<ActionSuggestion>& actions) { in IsAnyActionConflicting()
186 for (const ActionSuggestion& other : actions) { in IsAnyActionConflicting()
241 [](const ActionSuggestion& a, const ActionSuggestion& b) { in RankActions()
248 std::vector<ActionSuggestion> deduplicated_actions; in RankActions()
249 for (const ActionSuggestion& candidate : response->actions) { in RankActions()
261 std::vector<ActionSuggestion> deduplicated_actions; in RankActions()
262 for (const ActionSuggestion& candidate : response->actions) { in RankActions()
274 std::vector<ActionSuggestion> non_smart_reply_actions; in RankActions()
275 for (const ActionSuggestion& action : response->actions) { in RankActions()
286 ActionSuggestion, int, in RankActions()
287 std::function<bool(const ActionSuggestion&, const ActionSuggestion&)>>{ in RankActions()
288 [](const ActionSuggestion& action, const ActionSuggestion& other) { in RankActions()
291 typedef std::vector<ActionSuggestion> ActionSuggestionGroup; in RankActions()
295 for (const ActionSuggestion& action : response->actions) { in RankActions()
312 for (std::vector<ActionSuggestion>& group : groups) { in RankActions()
318 [](const std::vector<ActionSuggestion>& a, in RankActions()
319 const std::vector<ActionSuggestion>& b) { in RankActions()
329 for (const std::vector<ActionSuggestion>& actions : groups) { in RankActions()