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

Commit caefa535 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Flexiglass] Show/hide bouncer overlay in test" into main

parents 13bfee72 b44031a2
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -328,7 +328,7 @@ class DeviceEntrySideFpsOverlayInteractorTest : SysuiTestCase() {
            assertThat(showIndicatorForDeviceEntry).containsExactly(false, true)
        }

    private fun updatePrimaryBouncer(
    private fun TestScope.updatePrimaryBouncer(
        isShowing: Boolean,
        isAnimatingAway: Boolean,
        fpsDetectionRunning: Boolean,
@@ -339,14 +339,7 @@ class DeviceEntrySideFpsOverlayInteractorTest : SysuiTestCase() {
        val primaryStartDisappearAnimation = if (isAnimatingAway) Runnable {} else null
        bouncerRepository.setPrimaryStartDisappearAnimation(primaryStartDisappearAnimation)

        whenever(keyguardUpdateMonitor.isFingerprintDetectionRunning)
            .thenReturn(fpsDetectionRunning)
        whenever(keyguardUpdateMonitor.isUnlockingWithFingerprintAllowed)
            .thenReturn(isUnlockingWithFpAllowed)
        mContext.orCreateTestableResources.addOverride(
            R.bool.config_show_sidefps_hint_on_bouncer,
            true,
        )
        updateBouncer(isShowing && !isAnimatingAway, fpsDetectionRunning, isUnlockingWithFpAllowed)
    }

    private fun TestScope.updateBouncer(