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

Commit 0f4a31b4 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Use Lazy BioUnlockController in DozeServiceHost." into rvc-dev...

Merge "Merge "Use Lazy BioUnlockController in DozeServiceHost." into rvc-dev am: 6335c269 am: 50752b05 am: 3ca0bd0a am: 9fecba96"
parents 8f1f941d 3333c9ec
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@ public final class DozeServiceHost implements DozeHost {
    private final BatteryController mBatteryController;
    private final ScrimController mScrimController;
    private final Lazy<BiometricUnlockController> mBiometricUnlockControllerLazy;
    private BiometricUnlockController mBiometricUnlockController;
    private final KeyguardViewMediator mKeyguardViewMediator;
    private final Lazy<AssistManager> mAssistManagerLazy;
    private final DozeScrimController mDozeScrimController;
@@ -148,9 +147,9 @@ public final class DozeServiceHost implements DozeHost {
        mNotificationPanel = notificationPanel;
        mNotificationShadeWindowViewController = notificationShadeWindowViewController;
        mAmbientIndicationContainer = ambientIndicationContainer;
        mBiometricUnlockController = mBiometricUnlockControllerLazy.get();
    }


    @Override
    public String toString() {
        return "PSB.DozeServiceHost[mCallbacks=" + mCallbacks.size() + "]";
@@ -206,11 +205,11 @@ public final class DozeServiceHost implements DozeHost {
        boolean
                dozing =
                mDozingRequested && mStatusBarStateController.getState() == StatusBarState.KEYGUARD
                        || mBiometricUnlockController.getMode()
                        || mBiometricUnlockControllerLazy.get().getMode()
                        == BiometricUnlockController.MODE_WAKE_AND_UNLOCK_PULSING;
        // When in wake-and-unlock we may not have received a change to StatusBarState
        // but we still should not be dozing, manually set to false.
        if (mBiometricUnlockController.getMode()
        if (mBiometricUnlockControllerLazy.get().getMode()
                == BiometricUnlockController.MODE_WAKE_AND_UNLOCK) {
            dozing = false;
        }
@@ -310,7 +309,7 @@ public final class DozeServiceHost implements DozeHost {

    @Override
    public boolean isPulsingBlocked() {
        return mBiometricUnlockController.getMode()
        return mBiometricUnlockControllerLazy.get().getMode()
                == BiometricUnlockController.MODE_WAKE_AND_UNLOCK;
    }

@@ -322,7 +321,7 @@ public final class DozeServiceHost implements DozeHost {

    @Override
    public boolean isBlockingDoze() {
        if (mBiometricUnlockController.hasPendingAuthentication()) {
        if (mBiometricUnlockControllerLazy.get().hasPendingAuthentication()) {
            Log.i(StatusBar.TAG, "Blocking AOD because fingerprint has authenticated");
            return true;
        }