Searched refs:conversationAction (Results 1 – 5 of 5) sorted by relevance
135 for (ConversationAction conversationAction : conversationActions) { in onNotificationEnqueued()136 CharSequence textReply = conversationAction.getTextReply(); in onNotificationEnqueued()141 repliesScore.put(textReply, conversationAction.getConfidenceScore()); in onNotificationEnqueued()145 for (ConversationAction conversationAction : conversationActions) { in onNotificationEnqueued()146 if (!TextUtils.isEmpty(conversationAction.getTextReply())) { in onNotificationEnqueued()150 RemoteAction remoteAction = conversationAction.getAction(); in onNotificationEnqueued()152 notificationAction = createNotificationActionWithoutRemoteAction(conversationAction); in onNotificationEnqueued()157 conversationAction.getType(), in onNotificationEnqueued()158 conversationAction.getConfidenceScore()); in onNotificationEnqueued()196 ConversationAction conversationAction) { in createNotificationActionWithoutRemoteAction() argument[all …]
175 for (ConversationAction conversationAction : conversationActions) {176 Pair<String, String> representation = getRepresentation(conversationAction);184 for (ConversationAction conversationAction : conversationActions) {185 Pair<String, String> representation = getRepresentation(conversationAction);187 result.add(conversationAction);194 private static Pair<String, String> getRepresentation(ConversationAction conversationAction) {195 RemoteAction remoteAction = conversationAction.getAction();199 Intent actionIntent = ExtrasUtils.getActionIntent(conversationAction.getExtras());203 return new Pair<>(conversationAction.getAction().getTitle().toString(), packageName);
409 ConversationAction conversationAction = conversationActions.getConversationActions().get(0); in testSuggestConversationActions_textReplyOnly_maxOne() local410 assertThat(conversationAction.getType()).isEqualTo(ConversationAction.TYPE_TEXT_REPLY); in testSuggestConversationActions_textReplyOnly_maxOne()411 assertThat(conversationAction.getTextReply()).isNotNull(); in testSuggestConversationActions_textReplyOnly_maxOne()433 for (ConversationAction conversationAction : conversationActions.getConversationActions()) { in testSuggestConversationActions_textReplyOnly_noMax()434 assertThat(conversationAction, isConversationAction(ConversationAction.TYPE_TEXT_REPLY)); in testSuggestConversationActions_textReplyOnly_noMax()458 ConversationAction conversationAction = conversationActions.getConversationActions().get(0); in testSuggestConversationActions_openUrl() local459 assertThat(conversationAction.getType()).isEqualTo(ConversationAction.TYPE_OPEN_URL); in testSuggestConversationActions_openUrl()460 Intent actionIntent = ExtrasUtils.getActionIntent(conversationAction.getExtras()); in testSuggestConversationActions_openUrl()486 ConversationAction conversationAction = conversationActions.getConversationActions().get(0); in testSuggestConversationActions_copy() local487 assertThat(conversationAction.getType()).isEqualTo(TYPE_COPY); in testSuggestConversationActions_copy()[all …]
145 ConversationAction conversationAction = conversationActions.getConversationActions().get(0); in suggestConversationActions() local146 assertThat(conversationAction.getType()).isEqualTo(ConversationAction.TYPE_OPEN_URL); in suggestConversationActions()147 assertThat(conversationAction.getAction()).isNotNull(); in suggestConversationActions()
358 ConversationAction conversationAction = in copyCodeAction() local361 new ConversationActions(ImmutableList.of(conversationAction), RESULT_ID)); in copyCodeAction()