Searched refs:ConversationActions (Results 1 – 10 of 10) sorted by relevance
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/ |
D | ActionsSuggestionsHelperTest.java | 19 import static android.view.textclassifier.ConversationActions.Message.PERSON_USER_OTHERS; 20 import static android.view.textclassifier.ConversationActions.Message.PERSON_USER_SELF; 34 import android.view.textclassifier.ConversationActions; 72 ConversationActions.Message messageWithoutText = in testToNativeMessages_noTextMessages() 73 new ConversationActions.Message.Builder(PERSON_USER_OTHERS).build(); in testToNativeMessages_noTextMessages() 87 ConversationActions.Message firstMessage = in testToNativeMessages_userIdEncoding() 88 new ConversationActions.Message.Builder(userB.build()).setText("first").build(); in testToNativeMessages_userIdEncoding() 89 ConversationActions.Message secondMessage = in testToNativeMessages_userIdEncoding() 90 new ConversationActions.Message.Builder(userA.build()).setText("second").build(); in testToNativeMessages_userIdEncoding() 91 ConversationActions.Message thirdMessage = in testToNativeMessages_userIdEncoding() [all …]
|
D | TextClassifierImplTest.java | 35 import android.view.textclassifier.ConversationActions; 391 ConversationActions.Message message = in testSuggestConversationActions_textReplyOnly_maxOne() 392 new ConversationActions.Message.Builder(ConversationActions.Message.PERSON_USER_OTHERS) in testSuggestConversationActions_textReplyOnly_maxOne() 400 ConversationActions.Request request = in testSuggestConversationActions_textReplyOnly_maxOne() 401 new ConversationActions.Request.Builder(Collections.singletonList(message)) in testSuggestConversationActions_textReplyOnly_maxOne() 406 ConversationActions conversationActions = in testSuggestConversationActions_textReplyOnly_maxOne() 416 ConversationActions.Message message = in testSuggestConversationActions_textReplyOnly_noMax() 417 new ConversationActions.Message.Builder(ConversationActions.Message.PERSON_USER_OTHERS) in testSuggestConversationActions_textReplyOnly_noMax() 425 ConversationActions.Request request = in testSuggestConversationActions_textReplyOnly_noMax() 426 new ConversationActions.Request.Builder(Collections.singletonList(message)) in testSuggestConversationActions_textReplyOnly_noMax() [all …]
|
D | TextClassifierApiTest.java | 27 import android.view.textclassifier.ConversationActions; 135 ConversationActions.Message message = in suggestConversationActions() 136 new ConversationActions.Message.Builder(ConversationActions.Message.PERSON_USER_OTHERS) in suggestConversationActions() 139 ConversationActions.Request request = in suggestConversationActions() 140 new ConversationActions.Request.Builder(ImmutableList.of(message)).build(); in suggestConversationActions() 142 ConversationActions conversationActions = textClassifier.suggestConversationActions(request); in suggestConversationActions()
|
D | DefaultTextClassifierServiceTest.java | 28 import android.view.textclassifier.ConversationActions; 80 @Mock private TextClassifierService.Callback<ConversationActions> conversationActionsCallback; 187 ConversationActions.Message message = in suggestConversationActions_success() 188 new ConversationActions.Message.Builder(ConversationActions.Message.PERSON_USER_OTHERS) in suggestConversationActions_success() 191 ConversationActions.Request request = in suggestConversationActions_success() 192 new ConversationActions.Request.Builder(ImmutableList.of(message)).build(); in suggestConversationActions_success() 200 ArgumentCaptor<ConversationActions> captor = ArgumentCaptor.forClass(ConversationActions.class); in suggestConversationActions_success()
|
/external/libtextclassifier/notification/src/com/android/textclassifier/notification/ |
D | SmartSuggestionsHelper.java | 37 import android.view.textclassifier.ConversationActions; 80 ImmutableList.of(ConversationActions.Request.HINT_FOR_NOTIFICATION); 83 Optional.empty(), new ConversationActions(ImmutableList.of(), /* id= */ null)); 273 ImmutableList<ConversationActions.Message> messages = in suggestConversationActions() 279 ConversationActions.Message lastMessage = Iterables.getLast(messages); in suggestConversationActions() 280 if (arePersonsEqual(ConversationActions.Message.PERSON_USER_SELF, lastMessage.getAuthor())) { in suggestConversationActions() 297 ConversationActions.Request request = in suggestConversationActions() 298 new ConversationActions.Request.Builder(messages) in suggestConversationActions() 438 private ImmutableList<ConversationActions.Message> extractMessages(Notification notification) { in extractMessages() 444 new ConversationActions.Message.Builder(ConversationActions.Message.PERSON_USER_OTHERS) in extractMessages() [all …]
|
/external/libtextclassifier/notification/tests/src/com/android/textclassifier/notification/ |
D | SmartSuggestionsHelperTest.java | 19 import static android.view.textclassifier.ConversationActions.Message.PERSON_USER_SELF; 36 import android.view.textclassifier.ConversationActions; 37 import android.view.textclassifier.ConversationActions.Message; 158 ConversationActions.Request request = fakeTextClassifier.getLastRequest(); in onNotificationEnqueued_messageCategoryNotification() 188 ConversationActions.Request request = fakeTextClassifier.getLastRequest(); in onNotificationEnqueued_messageStyleNotification() 189 List<ConversationActions.Message> messages = request.getConversation(); in onNotificationEnqueued_messageStyleNotification() 361 new ConversationActions(ImmutableList.of(conversationAction), RESULT_ID)); in copyCodeAction() 424 ConversationActions.Message subject, in assertMessage() 445 private ConversationActions.Request lastRequest; 447 private ConversationActions conversationActions; [all …]
|
/external/libtextclassifier/java/src/com/android/textclassifier/ |
D | ActionsSuggestionsHelper.java | 28 import android.view.textclassifier.ConversationActions; 29 import android.view.textclassifier.ConversationActions.Message; 74 List<ConversationActions.Message> messages, in toNativeMessages() 76 List<ConversationActions.Message> messagesWithText = in toNativeMessages() 87 ConversationActions.Message message = messagesWithText.get(i); in toNativeMessages() 109 List<ConversationActions.Message> messages, in createResultId() 244 private static int hashMessage(ConversationActions.Message message) {
|
D | TextClassifierImpl.java | 33 import android.view.textclassifier.ConversationActions; 373 ConversationActions suggestConversationActions( in suggestConversationActions() 376 ConversationActions.Request request) in suggestConversationActions() 386 return new ConversationActions(ImmutableList.of(), /* id= */ null); in suggestConversationActions() 407 private ConversationActions createConversationActionResult( in createConversationActionResult() 408 ConversationActions.Request request, ActionSuggestions nativeSuggestions) { in createConversationActionResult() 451 return new ConversationActions(conversationActions, resultId); in createConversationActionResult() 455 private Collection<String> resolveActionTypesFromRequest(ConversationActions.Request request) { in resolveActionTypesFromRequest() 457 request.getHints().contains(ConversationActions.Request.HINT_FOR_NOTIFICATION) in resolveActionTypesFromRequest()
|
D | DefaultTextClassifierService.java | 22 import android.view.textclassifier.ConversationActions; 158 ConversationActions.Request request, in onSuggestConversationActions() 160 Callback<ConversationActions> callback) { in onSuggestConversationActions()
|
/external/libtextclassifier/native/actions/ |
D | lua-actions_test.cc | 50 TEST(LuaActions, ConversationActions) { argument
|