Home
last modified time | relevance | path

Searched refs:conversationActions (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DActionsSuggestionsHelperTest.java199 List<ConversationAction> conversationActions = in testDeduplicateActions() local
205 assertThat(conversationActions).hasSize(3); in testDeduplicateActions()
206 assertThat(conversationActions.get(0).getAction().getContentDescription()).isEqualTo("4"); in testDeduplicateActions()
207 assertThat(conversationActions.get(1).getAction().getContentDescription()).isEqualTo("5"); in testDeduplicateActions()
208 assertThat(conversationActions.get(2).getAction()).isNull(); in testDeduplicateActions()
234 List<ConversationAction> conversationActions = in testDeduplicateActions_nullComponent() local
238 assertThat(conversationActions).isEmpty(); in testDeduplicateActions_nullComponent()
DTextClassifierTest.java435 ConversationActions conversationActions = mClassifier.suggestConversationActions(request); in testSuggestConversationActions_textReplyOnly_maxOne() local
436 Truth.assertThat(conversationActions.getConversationActions()).hasSize(1); in testSuggestConversationActions_textReplyOnly_maxOne()
437 ConversationAction conversationAction = conversationActions.getConversationActions().get(0); in testSuggestConversationActions_textReplyOnly_maxOne()
462 ConversationActions conversationActions = mClassifier.suggestConversationActions(request); in testSuggestConversationActions_textReplyOnly_noMax() local
463 assertTrue(conversationActions.getConversationActions().size() > 1); in testSuggestConversationActions_textReplyOnly_noMax()
465 conversationActions.getConversationActions()) { in testSuggestConversationActions_textReplyOnly_noMax()
490 ConversationActions conversationActions = mClassifier.suggestConversationActions(request); in testSuggestConversationActions_openUrl() local
491 Truth.assertThat(conversationActions.getConversationActions()).hasSize(1); in testSuggestConversationActions_openUrl()
492 ConversationAction conversationAction = conversationActions.getConversationActions().get(0); in testSuggestConversationActions_openUrl()
519 ConversationActions conversationActions = mClassifier.suggestConversationActions(request); in testSuggestConversationActions_copy() local
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DActionsSuggestionsHelper.java176 List<ConversationAction> conversationActions) {
180 for (ConversationAction conversationAction : conversationActions) {
189 for (ConversationAction conversationAction : conversationActions) {
DTextClassifierImpl.java465 List<ConversationAction> conversationActions = new ArrayList<>(); in createConversationActionResult() local
486 conversationActions.add( in createConversationActionResult()
494 conversationActions = in createConversationActionResult()
495 ActionsSuggestionsHelper.removeActionsWithDuplicates(conversationActions); in createConversationActionResult()
497 && conversationActions.size() > request.getMaxSuggestions()) { in createConversationActionResult()
498 conversationActions = conversationActions.subList(0, request.getMaxSuggestions()); in createConversationActionResult()
505 return new ConversationActions(conversationActions, resultId); in createConversationActionResult()
DSystemTextClassifier.java211 final ConversationActions conversationActions = callback.get(); in suggestConversationActions() local
212 if (conversationActions != null) { in suggestConversationActions()
213 return conversationActions; in suggestConversationActions()
DConversationActions.java67 @NonNull List<ConversationAction> conversationActions, @Nullable String id) { in ConversationActions()
69 Collections.unmodifiableList(Preconditions.checkNotNull(conversationActions)); in ConversationActions()