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

Commit 2c486eca authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Remove PREVENT_SPLITTING flag

The splitting behaviour is now permananently on. The non-split behaviour
is being removed from native code, and the flag PREVENT_SPLITTING no
longer does anything.

The flag was renamed to DEPRECATED_PREVENT_SPLITTING. In this CL, we
update the Java code accordingly.

Bug: 239934827
Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST
Flag: NONE removing flag
Change-Id: I074bdc6c18067c13c76730944b6252554aec0630
parent e6e89271
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -4532,7 +4532,6 @@ package android.window {
    field public final int displayId;
    field public final boolean isDuplicateTouchToWallpaper;
    field public final boolean isFocusable;
    field public final boolean isPreventSplitting;
    field public final boolean isTouchable;
    field public final boolean isTrustedOverlay;
    field public final boolean isVisible;
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public final class InputWindowHandle {
            InputConfig.NO_INPUT_CHANNEL,
            InputConfig.NOT_FOCUSABLE,
            InputConfig.NOT_TOUCHABLE,
            InputConfig.PREVENT_SPLITTING,
            InputConfig.DEPRECATED_PREVENT_SPLITTING,
            InputConfig.DUPLICATE_TOUCH_TO_WALLPAPER,
            InputConfig.IS_WALLPAPER,
            InputConfig.PAUSE_DISPATCHING,
+0 −8
Original line number Diff line number Diff line
@@ -102,12 +102,6 @@ public class WindowInfosListenerForTest {
        @SuppressLint("UnflaggedApi") // The API is only used for tests.
        public final boolean isFocusable;

        /**
         * True if the window is preventing splitting
         */
        @SuppressLint("UnflaggedApi") // The API is only used for tests.
        public final boolean isPreventSplitting;

        /**
         * True if the window duplicates touches received to wallpaper.
         */
@@ -133,8 +127,6 @@ public class WindowInfosListenerForTest {
            this.transform = transform;
            this.isTouchable = (inputConfig & InputConfig.NOT_TOUCHABLE) == 0;
            this.isFocusable = (inputConfig & InputConfig.NOT_FOCUSABLE) == 0;
            this.isPreventSplitting = (inputConfig
                            & InputConfig.PREVENT_SPLITTING) != 0;
            this.isDuplicateTouchToWallpaper = (inputConfig
                            & InputConfig.DUPLICATE_TOUCH_TO_WALLPAPER) != 0;
            this.isWatchOutsideTouch = (inputConfig
+0 −3
Original line number Diff line number Diff line
@@ -75,9 +75,6 @@ class InputConfigAdapter {
            new FlagMapping(
                    LayoutParams.FLAG_NOT_TOUCHABLE,
                    InputConfig.NOT_TOUCHABLE, false /* inverted */),
            new FlagMapping(
                    LayoutParams.FLAG_SPLIT_TOUCH,
                    InputConfig.PREVENT_SPLITTING, true /* inverted */),
            new FlagMapping(
                    LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH,
                    InputConfig.WATCH_OUTSIDE_TOUCH, false /* inverted */),
+0 −1
Original line number Diff line number Diff line
@@ -982,7 +982,6 @@ public class WindowStateTests extends WindowTestsBase {

        assertTrue(handleWrapper.isChanged());
        assertTrue(testFlag(handle.inputConfig, InputConfig.WATCH_OUTSIDE_TOUCH));
        assertFalse(testFlag(handle.inputConfig, InputConfig.PREVENT_SPLITTING));
        assertTrue(testFlag(handle.inputConfig, InputConfig.DISABLE_USER_ACTIVITY));
        // The window of standard resizable task should not use surface crop as touchable region.
        assertFalse(handle.replaceTouchableRegionWithCrop);