Loading packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/FromAodTransitionInteractorTest.kt +19 −0 Original line number Diff line number Diff line Loading @@ -316,6 +316,7 @@ class FromAodTransitionInteractorTest : SysuiTestCase() { } @Test @DisableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR) fun testWakeAndUnlock_transitionsToGone_evenIfBouncerShows() = testScope.runTest { kosmos.fakeKeyguardRepository.setBiometricUnlockState( Loading @@ -338,6 +339,23 @@ class FromAodTransitionInteractorTest : SysuiTestCase() { .startedTransition(from = KeyguardState.AOD, to = KeyguardState.GONE) } @Test @EnableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR) fun testWakeAndUnlock_transitionsToGone_evenIfBouncerShows_wmStateRefactor() = testScope.runTest { kosmos.fakeKeyguardRepository.setBiometricUnlockState( BiometricUnlockMode.WAKE_AND_UNLOCK ) runCurrent() bouncerRepository.setPrimaryShow(true) runCurrent() powerInteractor.setAwakeForTest() runCurrent() assertThat(transitionRepository) .startedTransition(from = KeyguardState.AOD, to = KeyguardState.GONE) } @Test fun testTransitionToOccluded_onWake() = testScope.runTest { Loading Loading @@ -468,6 +486,7 @@ class FromAodTransitionInteractorTest : SysuiTestCase() { @Test @EnableFlags(FLAG_GLANCEABLE_HUB_V2) @DisableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR) fun testTransitionToOccluded_onWakeUpFromAod_whenGlanceableHubEnabled() = kosmos.runTest { setCommunalV2Available(true) Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/FromAodTransitionInteractorTest.kt +19 −0 Original line number Diff line number Diff line Loading @@ -316,6 +316,7 @@ class FromAodTransitionInteractorTest : SysuiTestCase() { } @Test @DisableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR) fun testWakeAndUnlock_transitionsToGone_evenIfBouncerShows() = testScope.runTest { kosmos.fakeKeyguardRepository.setBiometricUnlockState( Loading @@ -338,6 +339,23 @@ class FromAodTransitionInteractorTest : SysuiTestCase() { .startedTransition(from = KeyguardState.AOD, to = KeyguardState.GONE) } @Test @EnableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR) fun testWakeAndUnlock_transitionsToGone_evenIfBouncerShows_wmStateRefactor() = testScope.runTest { kosmos.fakeKeyguardRepository.setBiometricUnlockState( BiometricUnlockMode.WAKE_AND_UNLOCK ) runCurrent() bouncerRepository.setPrimaryShow(true) runCurrent() powerInteractor.setAwakeForTest() runCurrent() assertThat(transitionRepository) .startedTransition(from = KeyguardState.AOD, to = KeyguardState.GONE) } @Test fun testTransitionToOccluded_onWake() = testScope.runTest { Loading Loading @@ -468,6 +486,7 @@ class FromAodTransitionInteractorTest : SysuiTestCase() { @Test @EnableFlags(FLAG_GLANCEABLE_HUB_V2) @DisableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR) fun testTransitionToOccluded_onWakeUpFromAod_whenGlanceableHubEnabled() = kosmos.runTest { setCommunalV2Available(true) Loading