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

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

Merge "move shell_transit sysprop to persist.wm" into tm-dev

parents 58ba02cc cf3d0a65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public class TransitionAnimation {

    // TODO (b/215515255): remove once we full migrate to shell transitions
    private static final boolean SHELL_TRANSITIONS_ENABLED =
            SystemProperties.getBoolean("persist.debug.shell_transit", false);
            SystemProperties.getBoolean("persist.wm.debug.shell_transit", false);

    private final Context mContext;
    private final String mTag;
+2 −2
Original line number Diff line number Diff line
@@ -73,9 +73,9 @@ public class Transitions implements RemoteCallable<Transitions> {

    /** Set to {@code true} to enable shell transitions. */
    public static final boolean ENABLE_SHELL_TRANSITIONS =
            SystemProperties.getBoolean("persist.debug.shell_transit", false);
            SystemProperties.getBoolean("persist.wm.debug.shell_transit", false);
    public static final boolean SHELL_TRANSITIONS_ROTATION = ENABLE_SHELL_TRANSITIONS
            && SystemProperties.getBoolean("persist.debug.shell_transit_rotate", false);
            && SystemProperties.getBoolean("persist.wm.debug.shell_transit_rotate", false);

    /** Transition type for exiting PIP via the Shell, via pressing the expand button. */
    public static final int TRANSIT_EXIT_PIP = TRANSIT_FIRST_CUSTOM + 1;
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ abstract class BaseAppHelper(
        private const val APP_CLOSE_WAIT_TIME_MS = 3_000L

        fun isShellTransitionsEnabled() =
                SystemProperties.getBoolean("persist.debug.shell_transit", false)
                SystemProperties.getBoolean("persist.wm.debug.shell_transit", false)

        fun executeShellCommand(instrumentation: Instrumentation, cmd: String) {
            try {
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ import java.util.Optional;
@SmallTest
public class FullscreenTaskListenerTest {
    private static final boolean ENABLE_SHELL_TRANSITIONS =
            SystemProperties.getBoolean("persist.debug.shell_transit", false);
            SystemProperties.getBoolean("persist.wm.debug.shell_transit", false);

    @Mock
    private SyncTransactionQueue mSyncQueue;
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ import org.mockito.MockitoAnnotations;
@RunWith(AndroidJUnit4.class)
public final class StageTaskListenerTests extends ShellTestCase {
    private static final boolean ENABLE_SHELL_TRANSITIONS =
            SystemProperties.getBoolean("persist.debug.shell_transit", false);
            SystemProperties.getBoolean("persist.wm.debug.shell_transit", false);

    @Mock
    private ShellTaskOrganizer mTaskOrganizer;
Loading