Lines Matching refs:actions
32 void SortByScoreAndType(std::vector<ActionSuggestion>* actions) { in SortByScoreAndType() argument
33 std::sort(actions->begin(), actions->end(), in SortByScoreAndType()
147 const std::vector<ActionSuggestion>& actions) { in IsAnyActionEquivalent() argument
148 for (const ActionSuggestion& other : actions) { in IsAnyActionEquivalent()
185 const std::vector<ActionSuggestion>& actions) { in IsAnyActionConflicting() argument
186 for (const ActionSuggestion& other : actions) { in IsAnyActionConflicting()
240 response->actions.begin(), response->actions.end(), in RankActions()
249 for (const ActionSuggestion& candidate : response->actions) { in RankActions()
255 response->actions = std::move(deduplicated_actions); in RankActions()
262 for (const ActionSuggestion& candidate : response->actions) { in RankActions()
268 response->actions = std::move(deduplicated_actions); in RankActions()
275 for (const ActionSuggestion& action : response->actions) { in RankActions()
280 response->actions = std::move(non_smart_reply_actions); in RankActions()
295 for (const ActionSuggestion& action : response->actions) { in RankActions()
326 const size_t num_actions = response->actions.size(); in RankActions()
327 response->actions.clear(); in RankActions()
328 response->actions.reserve(num_actions); in RankActions()
329 for (const std::vector<ActionSuggestion>& actions : groups) { in RankActions() local
330 response->actions.insert(response->actions.end(), actions.begin(), in RankActions()
331 actions.end()); in RankActions()
336 SortByScoreAndType(&response->actions); in RankActions()