Loading core/java/android/view/ViewRootImpl.java +5 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,7 @@ import static android.view.WindowManagerGlobal.RELAYOUT_RES_CANCEL_AND_REDRAW; import static android.view.WindowManagerGlobal.RELAYOUT_RES_CONSUME_ALWAYS_SYSTEM_BARS; import static android.view.WindowManagerGlobal.RELAYOUT_RES_SURFACE_CHANGED; import static android.view.accessibility.Flags.forceInvertColor; import static android.view.accessibility.Flags.reduceWindowContentChangedEventThrottle; import static android.view.inputmethod.InputMethodEditorTraceProto.InputMethodClientsTraceProto.ClientSideProto.IME_FOCUS_CONTROLLER; import static android.view.inputmethod.InputMethodEditorTraceProto.InputMethodClientsTraceProto.ClientSideProto.INSETS_CONTROLLER; import static android.view.flags.Flags.toolkitSetFrameRateReadOnly; Loading Loading @@ -11361,6 +11362,10 @@ public final class ViewRootImpl implements ViewParent, } private boolean canContinueThrottle(View source, int changeType) { if (!reduceWindowContentChangedEventThrottle()) { // Old behavior. Always throttle. return true; } if (mSource == null) { // We don't have a pending event. return true; Loading core/java/android/view/accessibility/flags/accessibility_flags.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,13 @@ flag { bug: "302376158" } flag { namespace: "accessibility" name: "reduce_window_content_changed_event_throttle" description: "Reduces the throttle of AccessibilityEvent of TYPE_WINDOW_CONTENT_CHANGED" bug: "277305460" } flag { namespace: "accessibility" name: "update_always_on_a11y_service" Loading Loading
core/java/android/view/ViewRootImpl.java +5 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,7 @@ import static android.view.WindowManagerGlobal.RELAYOUT_RES_CANCEL_AND_REDRAW; import static android.view.WindowManagerGlobal.RELAYOUT_RES_CONSUME_ALWAYS_SYSTEM_BARS; import static android.view.WindowManagerGlobal.RELAYOUT_RES_SURFACE_CHANGED; import static android.view.accessibility.Flags.forceInvertColor; import static android.view.accessibility.Flags.reduceWindowContentChangedEventThrottle; import static android.view.inputmethod.InputMethodEditorTraceProto.InputMethodClientsTraceProto.ClientSideProto.IME_FOCUS_CONTROLLER; import static android.view.inputmethod.InputMethodEditorTraceProto.InputMethodClientsTraceProto.ClientSideProto.INSETS_CONTROLLER; import static android.view.flags.Flags.toolkitSetFrameRateReadOnly; Loading Loading @@ -11361,6 +11362,10 @@ public final class ViewRootImpl implements ViewParent, } private boolean canContinueThrottle(View source, int changeType) { if (!reduceWindowContentChangedEventThrottle()) { // Old behavior. Always throttle. return true; } if (mSource == null) { // We don't have a pending event. return true; Loading
core/java/android/view/accessibility/flags/accessibility_flags.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,13 @@ flag { bug: "302376158" } flag { namespace: "accessibility" name: "reduce_window_content_changed_event_throttle" description: "Reduces the throttle of AccessibilityEvent of TYPE_WINDOW_CONTENT_CHANGED" bug: "277305460" } flag { namespace: "accessibility" name: "update_always_on_a11y_service" Loading