Home
last modified time | relevance | path

Searched refs:conversationAction (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/notification/src/com/android/textclassifier/notification/
DSmartSuggestionsHelper.java135 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 …]
/external/libtextclassifier/java/src/com/android/textclassifier/
DActionsSuggestionsHelper.java175 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);
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DTextClassifierImplTest.java409 ConversationAction conversationAction = conversationActions.getConversationActions().get(0); in testSuggestConversationActions_textReplyOnly_maxOne() local
410 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() local
459 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() local
487 assertThat(conversationAction.getType()).isEqualTo(TYPE_COPY); in testSuggestConversationActions_copy()
[all …]
DTextClassifierApiTest.java145 ConversationAction conversationAction = conversationActions.getConversationActions().get(0); in suggestConversationActions() local
146 assertThat(conversationAction.getType()).isEqualTo(ConversationAction.TYPE_OPEN_URL); in suggestConversationActions()
147 assertThat(conversationAction.getAction()).isNotNull(); in suggestConversationActions()
/external/libtextclassifier/notification/tests/src/com/android/textclassifier/notification/
DSmartSuggestionsHelperTest.java358 ConversationAction conversationAction = in copyCodeAction() local
361 new ConversationActions(ImmutableList.of(conversationAction), RESULT_ID)); in copyCodeAction()