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

Commit 48283f5f authored by Longbo Wei's avatar Longbo Wei Committed by Android (Google) Code Review
Browse files

Merge "a11y: Format AutoclickControlller code" into main

parents 4c7f9782 241e6bc6
Loading
Loading
Loading
Loading
+27 −19
Original line number Diff line number Diff line
@@ -99,12 +99,18 @@ public class AutoclickController extends BaseEventStreamTransformation {
    float mScrollCursorY;

    // Lazily created on the first mouse motion event.
    @VisibleForTesting ClickScheduler mClickScheduler;
    @VisibleForTesting AutoclickSettingsObserver mAutoclickSettingsObserver;
    @VisibleForTesting AutoclickIndicatorScheduler mAutoclickIndicatorScheduler;
    @VisibleForTesting AutoclickIndicatorView mAutoclickIndicatorView;
    @VisibleForTesting AutoclickTypePanel mAutoclickTypePanel;
    @VisibleForTesting AutoclickScrollPanel mAutoclickScrollPanel;
    @VisibleForTesting
    ClickScheduler mClickScheduler;
    @VisibleForTesting
    AutoclickSettingsObserver mAutoclickSettingsObserver;
    @VisibleForTesting
    AutoclickIndicatorScheduler mAutoclickIndicatorScheduler;
    @VisibleForTesting
    AutoclickIndicatorView mAutoclickIndicatorView;
    @VisibleForTesting
    AutoclickTypePanel mAutoclickTypePanel;
    @VisibleForTesting
    AutoclickScrollPanel mAutoclickScrollPanel;
    private WindowManager mWindowManager;

    // Default click type is left-click.
@@ -311,7 +317,8 @@ public class AutoclickController extends BaseEventStreamTransformation {
                } else {
                    cancelPendingClick();
                }
            } break;
            }
            break;
            // Ignore hover enter and exit.
            case MotionEvent.ACTION_HOVER_ENTER:
            case MotionEvent.ACTION_HOVER_EXIT:
@@ -803,6 +810,7 @@ public class AutoclickController extends BaseEventStreamTransformation {
        /**
         * Updates delay that should be used when scheduling clicks. The delay will be used only for
         * clicks scheduled after this point (pending click tasks are not affected).
         *
         * @param delay New delay value.
         */
        public void updateDelay(int delay) {