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

Commit 6a8c6d21 authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Merge "Reduce Accessibility animation-wait timeout"

parents c2bc0ee1 f404193c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -56,8 +56,11 @@ public final class AccessibilityWindowsPopulator extends WindowInfosListener {
    private static final int SURFACE_FLINGER_CALLBACK_WINDOWS_STABLE_TIMES_MS = 35;
    // To avoid the surface flinger callbacks always comes within in 2 frames, then no windows
    // are reported to the A11y framework, and the animation duration time is 500ms, so setting
    // this value as the max timeout value to force computing changed windows.
    private static final int WINDOWS_CHANGED_NOTIFICATION_MAX_DURATION_TIMES_MS = 500;
    // this value as the max timeout value to force computing changed windows. However, since
    // UiAutomator waits 500ms to determine that things are idle. Since we aren't actually idle,
    // we need to reduce the timeout here a little so that we can deliver an updated state before
    // UiAutomator reports idle based-on stale information.
    private static final int WINDOWS_CHANGED_NOTIFICATION_MAX_DURATION_TIMES_MS = 450;

    private static final float[] sTempFloats = new float[9];