Loading core/java/android/view/textclassifier/logging/SmartSelectionEventTracker.java +8 −8 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ public final class SmartSelectionEventTracker { private boolean mSmartSelectionTriggered; private String mModelName; @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public SmartSelectionEventTracker(@NonNull Context context, @WidgetType int widgetType) { mWidgetType = widgetType; mWidgetVersion = null; Loading @@ -119,7 +119,7 @@ public final class SmartSelectionEventTracker { * * @param event the selection event */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public void logEvent(@NonNull SelectionEvent event) { Preconditions.checkNotNull(event); Loading Loading @@ -443,7 +443,7 @@ public final class SmartSelectionEventTracker { * * @param start the word index of the selected word */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionStarted(int start) { return new SelectionEvent( start, start + 1, EventType.SELECTION_STARTED, Loading @@ -457,7 +457,7 @@ public final class SmartSelectionEventTracker { * @param start the start word (inclusive) index of the selection * @param end the end word (exclusive) index of the selection */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionModified(int start, int end) { return new SelectionEvent( start, end, EventType.SELECTION_MODIFIED, Loading @@ -473,7 +473,7 @@ public final class SmartSelectionEventTracker { * @param classification the TextClassification object returned by the TextClassifier that * classified the selected text */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionModified( int start, int end, @NonNull TextClassification classification) { final String entityType = classification.getEntityCount() > 0 Loading @@ -493,7 +493,7 @@ public final class SmartSelectionEventTracker { * @param selection the TextSelection object returned by the TextClassifier for the * specified selection */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionModified( int start, int end, @NonNull TextSelection selection) { final boolean smartSelection = getSourceClassifier(selection.getId()) Loading Loading @@ -522,7 +522,7 @@ public final class SmartSelectionEventTracker { * @param end the end word (exclusive) index of the selection * @param actionType the action that was performed on the selection */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionAction( int start, int end, @ActionType int actionType) { return new SelectionEvent( Loading @@ -540,7 +540,7 @@ public final class SmartSelectionEventTracker { * @param classification the TextClassification object returned by the TextClassifier that * classified the selected text */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionAction( int start, int end, @ActionType int actionType, @NonNull TextClassification classification) { Loading Loading
core/java/android/view/textclassifier/logging/SmartSelectionEventTracker.java +8 −8 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ public final class SmartSelectionEventTracker { private boolean mSmartSelectionTriggered; private String mModelName; @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public SmartSelectionEventTracker(@NonNull Context context, @WidgetType int widgetType) { mWidgetType = widgetType; mWidgetVersion = null; Loading @@ -119,7 +119,7 @@ public final class SmartSelectionEventTracker { * * @param event the selection event */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public void logEvent(@NonNull SelectionEvent event) { Preconditions.checkNotNull(event); Loading Loading @@ -443,7 +443,7 @@ public final class SmartSelectionEventTracker { * * @param start the word index of the selected word */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionStarted(int start) { return new SelectionEvent( start, start + 1, EventType.SELECTION_STARTED, Loading @@ -457,7 +457,7 @@ public final class SmartSelectionEventTracker { * @param start the start word (inclusive) index of the selection * @param end the end word (exclusive) index of the selection */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionModified(int start, int end) { return new SelectionEvent( start, end, EventType.SELECTION_MODIFIED, Loading @@ -473,7 +473,7 @@ public final class SmartSelectionEventTracker { * @param classification the TextClassification object returned by the TextClassifier that * classified the selected text */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionModified( int start, int end, @NonNull TextClassification classification) { final String entityType = classification.getEntityCount() > 0 Loading @@ -493,7 +493,7 @@ public final class SmartSelectionEventTracker { * @param selection the TextSelection object returned by the TextClassifier for the * specified selection */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionModified( int start, int end, @NonNull TextSelection selection) { final boolean smartSelection = getSourceClassifier(selection.getId()) Loading Loading @@ -522,7 +522,7 @@ public final class SmartSelectionEventTracker { * @param end the end word (exclusive) index of the selection * @param actionType the action that was performed on the selection */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionAction( int start, int end, @ActionType int actionType) { return new SelectionEvent( Loading @@ -540,7 +540,7 @@ public final class SmartSelectionEventTracker { * @param classification the TextClassification object returned by the TextClassifier that * classified the selected text */ @UnsupportedAppUsage @UnsupportedAppUsage(trackingBug = 136637107) public static SelectionEvent selectionAction( int start, int end, @ActionType int actionType, @NonNull TextClassification classification) { Loading