Home
last modified time | relevance | path

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

/external/libtextclassifier/notification/src/com/android/textclassifier/notification/
DSmartSuggestionsLogSession.java35 private final TextClassifier textClassifier; field in SmartSuggestionsLogSession
50 TextClassifier textClassifier, in SmartSuggestionsLogSession() argument
54 this.textClassifier = textClassifier; in SmartSuggestionsLogSession()
75 textClassifier.onTextClassifierEvent(textClassifierEvent); in onNotificationExpansionChanged()
96 textClassifier.onTextClassifierEvent(textClassifierEvent); in onActionClicked()
114 textClassifier.onTextClassifierEvent(textClassifierEvent); in onSuggestedReplySent()
121 textClassifier.onTextClassifierEvent(textClassifierEvent); in onDirectReplied()
131 textClassifier.onTextClassifierEvent(textClassifierEvent); in onSuggestionsGenerated()
136 textClassifier.destroy(); in destroy()
DSmartSuggestionsHelper.java165 suggestConversationActionsResult.textClassifier.ifPresent( in onNotificationEnqueued()
166 textClassifier -> { in onNotificationEnqueued()
169 textClassifier.destroy(); in onNotificationEnqueued()
173 resultId, repliesScore, textClassifier, textClassificationContext); in onNotificationEnqueued()
305 TextClassifier textClassifier = createTextClassificationSession(); in suggestConversationActions() local
307 Optional.of(textClassifier), textClassifier.suggestConversationActions(request)); in suggestConversationActions()
495 final Optional<TextClassifier> textClassifier; field in SmartSuggestionsHelper.SuggestConversationActionsResult
500 Optional<TextClassifier> textClassifier, ConversationActions conversationActions) { in SuggestConversationActionsResult() argument
501 this.textClassifier = textClassifier; in SuggestConversationActionsResult()
/external/libtextclassifier/notification/tests/src/com/android/textclassifier/notification/
DSmartSuggestionsLogSessionTest.java53 @Mock private TextClassifier textClassifier; field in SmartSuggestionsLogSessionTest
64 textClassifier, in setup()
88 verify(textClassifier, never()).onTextClassifierEvent(any()); in onActionClicked_sourceFromApp()
130 verify(textClassifier).onTextClassifierEvent(argumentCaptor.capture()); in onNotificationExpansionChanged_loggedOnce()
138 verify(textClassifier, never()).onTextClassifierEvent(any()); in onNotificationExpansionChanged_collapsed()
155 verify(textClassifier, never()).onTextClassifierEvent(any()); in onSuggestedReplySent_sourceFromApp()
178 verify(textClassifier).onTextClassifierEvent(argumentCaptor.capture()); in getLoggedEvent()
/external/libtextclassifier/java/src/com/android/textclassifier/
DDefaultTextClassifierService.java61 private TextClassifierImpl textClassifier; field in DefaultTextClassifierService
85 textClassifier = injector.createTextClassifierImpl(settings, modelFileManager); in onCreate()
115 textClassifier.suggestSelection( in onSuggestSelection()
131 textClassifier.classifyText( in onClassifyText()
147 textClassifier.generateLinks( in onGenerateLinks()
163 textClassifier.suggestConversationActions( in onSuggestConversationActions()
179 textClassifier.detectLanguage( in onDetectLanguage()
189 handleEvent(() -> textClassifier.onSelectionEvent(sessionId, event)); in onSelectionEvent()
195 handleEvent(() -> textClassifier.onTextClassifierEvent(sessionId, event)); in onTextClassifierEvent()
202 textClassifier.dump(indentingPrintWriter); in dump()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DTextClassifierApiTest.java58 private TextClassifier textClassifier; field in TextClassifierApiTest
66 textClassifier = extServicesTextClassifierRule.getTextClassifier(); in setup()
82 TextSelection selection = textClassifier.suggestSelection(request); in suggestSelection()
98 TextClassification classification = textClassifier.classifyText(request); in classifyText()
111 TextLinks textLinks = textClassifier.generateLinks(request); in generateLinks()
126 TextLanguage textLanguage = textClassifier.detectLanguage(request); in detectedLanguage()
142 ConversationActions conversationActions = textClassifier.suggestConversationActions(request); in suggestConversationActions()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/statsd/
DTextClassificationSessionIdConverterTest.java42 TextClassifier textClassifier = in testTextSelectionEvent_minimal() local
49 textClassifier.onSelectionEvent(startedEvent); in testTextSelectionEvent_minimal()