Loading
[flexiglass] Fix ModesTileDataInteractorTest with SceneContainerFlag
The method used to simulate the shade closing, `shadeTestUtil.setLegacyExpandedOrAwaitingInputTransfer(false)`, is not fully effective when the sceneContainerFlag is enabled. The logic in ModesTileDataInteractor.setQuickModeOverride for resetting the quickMode depends on the shadeInteractor.isAnyExpanded flow becoming false when the shade is closed (or the device is on the keyguard). The isAnyExpanded flow is derived from both legacyShadeExpansion and legacyPanelExpansion. The setLegacyExpandedOrAwaitingInputTransfer method only updates legacyShadeExpansion. Also, this cl made ModesTileDataInteractorTest to a parameterized test with SceneContainerFlag. Bug: 419896672 Flag: com.android.systemui.scene_container Test: com.android.systemui.qs.tiles.impl.modes.domain.interactor.ModesTileDataInteractorTest Change-Id: I01d040df765ef2ec9f4b339626da4f64873dfcb3