Loading packages/SystemUI/multivalentTests/src/com/android/systemui/scene/SceneFrameworkIntegrationTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -265,8 +265,8 @@ class SceneFrameworkIntegrationTest : SysuiTestCase() { falsingCollector = utils.falsingCollector(), powerInteractor = powerInteractor, bouncerInteractor = bouncerInteractor, simBouncerInteractor = utils.simBouncerInteractor, authenticationInteractor = utils.authenticationInteractor() simBouncerInteractor = dagger.Lazy { utils.simBouncerInteractor }, authenticationInteractor = dagger.Lazy { utils.authenticationInteractor() } ) startable.start() Loading packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/startable/SceneContainerStartableTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -90,8 +90,8 @@ class SceneContainerStartableTest : SysuiTestCase() { falsingCollector = falsingCollector, powerInteractor = powerInteractor, bouncerInteractor = bouncerInteractor, simBouncerInteractor = utils.simBouncerInteractor, authenticationInteractor = authenticationInteractor, simBouncerInteractor = dagger.Lazy { utils.simBouncerInteractor }, authenticationInteractor = dagger.Lazy { authenticationInteractor }, ) @Test Loading packages/SystemUI/src/com/android/systemui/scene/domain/startable/SceneContainerStartable.kt +11 −8 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ import com.android.systemui.statusbar.notification.stack.shared.flexiNotifsEnabl import com.android.systemui.util.asIndenting import com.android.systemui.util.printSection import com.android.systemui.util.println import dagger.Lazy import java.io.PrintWriter import javax.inject.Inject import kotlinx.coroutines.CoroutineScope Loading Loading @@ -80,8 +81,8 @@ constructor( private val sceneLogger: SceneLogger, @FalsingCollectorActual private val falsingCollector: FalsingCollector, private val powerInteractor: PowerInteractor, private val simBouncerInteractor: SimBouncerInteractor, private val authenticationInteractor: AuthenticationInteractor, private val simBouncerInteractor: Lazy<SimBouncerInteractor>, private val authenticationInteractor: Lazy<AuthenticationInteractor>, ) : CoreStartable { override fun start() { Loading Loading @@ -152,7 +153,7 @@ constructor( } } applicationScope.launch { simBouncerInteractor.isAnySimSecure.collect { isAnySimLocked -> simBouncerInteractor.get().isAnySimSecure.collect { isAnySimLocked -> val canSwipeToEnter = deviceEntryInteractor.canSwipeToEnter.value val isUnlocked = deviceEntryInteractor.isUnlocked.value Loading @@ -166,14 +167,16 @@ constructor( isUnlocked && canSwipeToEnter == false -> { switchToScene( targetSceneKey = SceneKey.Gone, loggingReason = "All SIM cards unlocked and device already" + loggingReason = "All SIM cards unlocked and device already" + " unlocked and lockscreen doesn't require a swipe to dismiss." ) } else -> { switchToScene( targetSceneKey = SceneKey.Lockscreen, loggingReason = "All SIM cards unlocked and device still locked" + loggingReason = "All SIM cards unlocked and device still locked" + " or lockscreen still requires a swipe to dismiss." ) } Loading Loading @@ -262,7 +265,7 @@ constructor( " to swipe up on lockscreen to enter.", ) } else if ( authenticationInteractor.getAuthenticationMethod() == authenticationInteractor.get().getAuthenticationMethod() == AuthenticationMethodModel.Sim ) { switchToScene( Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/scene/SceneFrameworkIntegrationTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -265,8 +265,8 @@ class SceneFrameworkIntegrationTest : SysuiTestCase() { falsingCollector = utils.falsingCollector(), powerInteractor = powerInteractor, bouncerInteractor = bouncerInteractor, simBouncerInteractor = utils.simBouncerInteractor, authenticationInteractor = utils.authenticationInteractor() simBouncerInteractor = dagger.Lazy { utils.simBouncerInteractor }, authenticationInteractor = dagger.Lazy { utils.authenticationInteractor() } ) startable.start() Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/startable/SceneContainerStartableTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -90,8 +90,8 @@ class SceneContainerStartableTest : SysuiTestCase() { falsingCollector = falsingCollector, powerInteractor = powerInteractor, bouncerInteractor = bouncerInteractor, simBouncerInteractor = utils.simBouncerInteractor, authenticationInteractor = authenticationInteractor, simBouncerInteractor = dagger.Lazy { utils.simBouncerInteractor }, authenticationInteractor = dagger.Lazy { authenticationInteractor }, ) @Test Loading
packages/SystemUI/src/com/android/systemui/scene/domain/startable/SceneContainerStartable.kt +11 −8 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ import com.android.systemui.statusbar.notification.stack.shared.flexiNotifsEnabl import com.android.systemui.util.asIndenting import com.android.systemui.util.printSection import com.android.systemui.util.println import dagger.Lazy import java.io.PrintWriter import javax.inject.Inject import kotlinx.coroutines.CoroutineScope Loading Loading @@ -80,8 +81,8 @@ constructor( private val sceneLogger: SceneLogger, @FalsingCollectorActual private val falsingCollector: FalsingCollector, private val powerInteractor: PowerInteractor, private val simBouncerInteractor: SimBouncerInteractor, private val authenticationInteractor: AuthenticationInteractor, private val simBouncerInteractor: Lazy<SimBouncerInteractor>, private val authenticationInteractor: Lazy<AuthenticationInteractor>, ) : CoreStartable { override fun start() { Loading Loading @@ -152,7 +153,7 @@ constructor( } } applicationScope.launch { simBouncerInteractor.isAnySimSecure.collect { isAnySimLocked -> simBouncerInteractor.get().isAnySimSecure.collect { isAnySimLocked -> val canSwipeToEnter = deviceEntryInteractor.canSwipeToEnter.value val isUnlocked = deviceEntryInteractor.isUnlocked.value Loading @@ -166,14 +167,16 @@ constructor( isUnlocked && canSwipeToEnter == false -> { switchToScene( targetSceneKey = SceneKey.Gone, loggingReason = "All SIM cards unlocked and device already" + loggingReason = "All SIM cards unlocked and device already" + " unlocked and lockscreen doesn't require a swipe to dismiss." ) } else -> { switchToScene( targetSceneKey = SceneKey.Lockscreen, loggingReason = "All SIM cards unlocked and device still locked" + loggingReason = "All SIM cards unlocked and device still locked" + " or lockscreen still requires a swipe to dismiss." ) } Loading Loading @@ -262,7 +265,7 @@ constructor( " to swipe up on lockscreen to enter.", ) } else if ( authenticationInteractor.getAuthenticationMethod() == authenticationInteractor.get().getAuthenticationMethod() == AuthenticationMethodModel.Sim ) { switchToScene( Loading