move shell_transit sysprop to persist.wm
This way we can use a context that systemui can set via flipper Bug: 219067621 Test: manual Change-Id: I29d1c39a1733e4d5f19f7f025e8a2cf2ca4f6d5a
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -155,7 +155,7 @@ public class Flags {
|
||||
|
||||
// 1100 - windowing
|
||||
public static final SysPropBooleanFlag WM_ENABLE_SHELL_TRANSITIONS =
|
||||
new SysPropBooleanFlag(1100, "persist.debug.shell_transit", false);
|
||||
new SysPropBooleanFlag(1100, "persist.wm.debug.shell_transit", false);
|
||||
|
||||
// Pay no attention to the reflection behind the curtain.
|
||||
// ========================== Curtain ==========================
|
||||
|
||||
@@ -61,7 +61,7 @@ class TransitionController {
|
||||
|
||||
/** Whether to use shell-transitions rotation instead of fixed-rotation. */
|
||||
private static final boolean SHELL_TRANSITIONS_ROTATION =
|
||||
SystemProperties.getBoolean("persist.debug.shell_transit_rotate", false);
|
||||
SystemProperties.getBoolean("persist.wm.debug.shell_transit_rotate", false);
|
||||
|
||||
/** The same as legacy APP_TRANSITION_TIMEOUT_MS. */
|
||||
private static final int DEFAULT_TIMEOUT_MS = 5000;
|
||||
|
||||
@@ -403,7 +403,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
/**
|
||||
* Use WMShell for app transition.
|
||||
*/
|
||||
public static final String ENABLE_SHELL_TRANSITIONS = "persist.debug.shell_transit";
|
||||
public static final String ENABLE_SHELL_TRANSITIONS = "persist.wm.debug.shell_transit";
|
||||
|
||||
/**
|
||||
* @see #ENABLE_SHELL_TRANSITIONS
|
||||
|
||||
Reference in New Issue
Block a user