Home
last modified time | relevance | path

Searched refs:TextClassifierEvent (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierEventTest.java54 final TextClassifierEvent event = new TextClassifierEvent.TextSelectionEvent.Builder( in toSelectionEvent_selectionStarted()
55 TextClassifierEvent.TYPE_SELECTION_STARTED) in toSelectionEvent_selectionStarted()
78 final TextClassifierEvent event = new TextClassifierEvent.TextSelectionEvent.Builder( in toSelectionEvent_smartSelectionMulti()
79 TextClassifierEvent.TYPE_SMART_SELECTION_MULTI) in toSelectionEvent_smartSelectionMulti()
107 final TextClassifierEvent event = new TextClassifierEvent.TextSelectionEvent.Builder( in toSelectionEvent_smartSelectionSingle()
108 TextClassifierEvent.TYPE_SMART_SELECTION_SINGLE) in toSelectionEvent_smartSelectionSingle()
139 final TextClassifierEvent event = new TextClassifierEvent.TextSelectionEvent.Builder( in toSelectionEvent_resetSelection()
140 TextClassifierEvent.TYPE_SELECTION_RESET) in toSelectionEvent_resetSelection()
167 final TextClassifierEvent event = new TextClassifierEvent.TextSelectionEvent.Builder( in toSelectionEvent_modifySelection()
168 TextClassifierEvent.TYPE_SELECTION_MODIFIED) in toSelectionEvent_modifySelection()
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifierEvent.java42 public abstract class TextClassifierEvent implements Parcelable { class
162 private TextClassifierEvent(Builder builder) { in TextClassifierEvent() method in TextClassifierEvent
176 private TextClassifierEvent(Parcel in) { in TextClassifierEvent() method in TextClassifierEvent
199 public static final Creator<TextClassifierEvent> CREATOR = new Creator<TextClassifierEvent>() {
201 public TextClassifierEvent createFromParcel(Parcel in) {
219 public TextClassifierEvent[] newArray(int size) {
220 return new TextClassifierEvent[size];
381 case TextClassifierEvent.CATEGORY_SELECTION: in toSelectionEvent()
384 case TextClassifierEvent.CATEGORY_LINKIFY: in toSelectionEvent()
415 case TextClassifierEvent.TYPE_SELECTION_STARTED: in toSelectionEvent()
[all …]
DTextClassifierEventTronLogger.java57 public void writeEvent(TextClassifierEvent event) { in writeEvent()
95 private static String getModelName(TextClassifierEvent event) { in getModelName()
102 private static int getCategory(TextClassifierEvent event) { in getCategory()
104 case TextClassifierEvent.CATEGORY_CONVERSATION_ACTIONS: in getCategory()
106 case TextClassifierEvent.CATEGORY_LANGUAGE_DETECTION: in getCategory()
112 private static int getLogType(TextClassifierEvent event) { in getLogType()
114 case TextClassifierEvent.TYPE_SMART_ACTION: in getLogType()
116 case TextClassifierEvent.TYPE_ACTIONS_SHOWN: in getLogType()
118 case TextClassifierEvent.TYPE_MANUAL_REPLY: in getLogType()
120 case TextClassifierEvent.TYPE_ACTIONS_GENERATED: in getLogType()
DTextClassifierEvent.aidl19 parcelable TextClassifierEvent;
DTextClassificationSession.java85 public void onTextClassifierEvent(TextClassifierEvent event) { in onTextClassifierEvent()
DSystemTextClassifier.java152 public void onTextClassifierEvent(@NonNull TextClassifierEvent event) { in onTextClassifierEvent()
DTextClassifier.java386 default void onTextClassifierEvent(@NonNull TextClassifierEvent event) {} in onTextClassifierEvent()
DTextClassifierImpl.java383 public void onTextClassifierEvent(TextClassifierEvent event) { in onTextClassifierEvent()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/logging/
DTextClassifierEventTronLoggerTest.java31 import android.view.textclassifier.TextClassifierEvent;
69 TextClassifierEvent.ConversationActionsEvent textClassifierEvent = in testWriteEvent()
70 new TextClassifierEvent.ConversationActionsEvent.Builder( in testWriteEvent()
71 TextClassifierEvent.TYPE_SMART_ACTION) in testWriteEvent()
98 TextClassifierEvent.TextSelectionEvent textClassifierEvent = in testWriteEvent_unsupportedCategory()
99 new TextClassifierEvent.TextSelectionEvent.Builder( in testWriteEvent_unsupportedCategory()
100 TextClassifierEvent.TYPE_SMART_ACTION) in testWriteEvent_unsupportedCategory()
/frameworks/base/core/java/android/service/textclassifier/
DITextClassifierService.aidl25 import android.view.textclassifier.TextClassifierEvent;
59 in TextClassifierEvent event); in onTextClassifierEvent()
DTextClassifierService.java47 import android.view.textclassifier.TextClassifierEvent;
156 TextClassifierEvent event) {
324 @Nullable TextClassificationSessionId sessionId, @NonNull TextClassifierEvent event) {} in onTextClassifierEvent()
/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java48 import android.view.textclassifier.TextClassifierEvent;
699 @Nullable private TextClassifierEvent mTranslateViewEvent;
700 @Nullable private TextClassifierEvent mTranslateClickEvent;
877 final TextClassifierEvent event = generateTranslateEvent( in maybeGenerateTranslateViewEvent()
878 TextClassifierEvent.TYPE_ACTIONS_SHOWN, in maybeGenerateTranslateViewEvent()
888 TextClassifierEvent.TYPE_SMART_ACTION, in maybeGenerateTranslateClickEvent()
906 private static TextClassifierEvent generateTranslateEvent( in generateTranslateEvent()
925 if (eventType == TextClassifierEvent.TYPE_SMART_ACTION in generateTranslateEvent()
936 return new TextClassifierEvent.LanguageDetectionEvent.Builder(eventType) in generateTranslateEvent()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java41 import android.view.textclassifier.TextClassifierEvent;
217 TextClassifierEvent event) throws RemoteException { in onTextClassifierEvent()
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto6926 // FIELD: Session ID of TextClassifierEvent.
/frameworks/base/api/
Dsystem-current.txt6769 …tclassifier.TextClassificationSessionId, @NonNull android.view.textclassifier.TextClassifierEvent);
/frameworks/base/services/
Dart-profile13337 …view/textclassifier/TextClassificationSessionId;Landroid/view/textclassifier/TextClassifierEvent;)V