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

Commit 47f192f3 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Restoring the full set of combinations in...

Merge "Restoring the full set of combinations in testDragShortcutToMultipleWorkspaceCells in presubmit" into main
parents b8714e1f 785da8d6
Loading
Loading
Loading
Loading
+7 −15
Original line number Diff line number Diff line
@@ -51,7 +51,6 @@ import com.android.launcher3.config.FeatureFlags.BooleanFlag;
import com.android.launcher3.config.FeatureFlags.IntFlag;
import com.android.launcher3.tapl.LauncherInstrumentation;
import com.android.launcher3.tapl.Workspace;
import com.android.launcher3.util.rule.TestStabilityRule;

import org.junit.Assert;

@@ -138,12 +137,6 @@ public class TestUtil {
     */
    public static Point[] getCornersAndCenterPositions(LauncherInstrumentation launcher) {
        final Point dimensions = launcher.getWorkspace().getIconGridDimensions();
        if (TestStabilityRule.isPresubmit()) {
            // Return only center in presubmit to fit under the presubmit SLO.
            return new Point[]{
                    new Point(dimensions.x / 2, dimensions.y / 2)
            };
        } else {
        return new Point[]{
                new Point(0, 1),
                new Point(0, dimensions.y - 2),
@@ -152,7 +145,6 @@ public class TestUtil {
                new Point(dimensions.x / 2, dimensions.y / 2)
        };
    }
    }

    /**
     * Utility class to override a boolean flag during test. Note that the returned SafeCloseable