Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 693884a6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add trackingBug to APIs used by chromium vebview."

parents 8958bbac 5ca23f6a
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -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;
@@ -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);

@@ -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,
@@ -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,
@@ -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
@@ -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())
@@ -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(
@@ -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) {