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

Commit fa8c70d3 authored by Mady Mellor's avatar Mady Mellor
Browse files

resolve merge conflicts of 9177ab6c to qt-r1-bubbles-dev

Bug: None
Test: it compiles
Change-Id: Icc4d040d07b8093d1fbb80698cac902dfad8ae02
parents e7571389 9177ab6c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -570,6 +570,13 @@ public class BiometricUnlockController extends KeyguardUpdateMonitorCallback {
        return isWakeAndUnlock() || mMode == MODE_UNLOCK_COLLAPSING || mMode == MODE_UNLOCK_FADING;
    }

    /**
     * Successful authentication with fingerprint, face, or iris when the lockscreen fades away
     */
    public boolean isUnlockFading() {
        return mMode == MODE_UNLOCK_FADING;
    }

    /**
     * Translates biometric source type for logging purpose.
     */
+4 −0
Original line number Diff line number Diff line
@@ -167,4 +167,8 @@ class KeyguardBypassController {
        pw.print("  qSExpanded: "); pw.println(qSExpanded)
        pw.print("  bouncerShowing: "); pw.println(bouncerShowing)
    }

    companion object {
        const val BYPASS_PANEL_FADE_DURATION = 67
    }
}
+7 −1
Original line number Diff line number Diff line
@@ -511,7 +511,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
     */
    public void prepareForGentleWakeUp() {
        if (mState == ScrimState.AOD && mDozeParameters.getAlwaysOn()) {
            mCurrentInFrontAlpha = 1f;
            mInFrontAlpha = 1f;
            mAnimateChange = false;
            updateScrims();
            mAnimateChange = true;
@@ -993,6 +993,12 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
        }
    }

    public void setUnlockIsFading(boolean unlockFading) {
        for (ScrimState state : ScrimState.values()) {
            state.setUnlockIsFading(unlockFading);
        }
    }

    public void setLaunchingAffordanceWithPreview(boolean launchingAffordanceWithPreview) {
        for (ScrimState state : ScrimState.values()) {
            state.setLaunchingAffordanceWithPreview(launchingAffordanceWithPreview);
+8 −1
Original line number Diff line number Diff line
@@ -163,7 +163,9 @@ public enum ScrimState {
            mFrontAlpha = 0;
            mBubbleAlpha = 0;

            mAnimationDuration = StatusBar.FADE_KEYGUARD_DURATION;
            mAnimationDuration = mUnlockIsFading
                    ? KeyguardBypassController.BYPASS_PANEL_FADE_DURATION
                    : StatusBar.FADE_KEYGUARD_DURATION;
            mAnimateChange = !mLaunchingAffordanceWithPreview;

            mFrontTint = Color.TRANSPARENT;
@@ -229,6 +231,7 @@ public enum ScrimState {
    boolean mHasBackdrop;
    boolean mLaunchingAffordanceWithPreview;
    boolean mWakeLockScreenSensorActive;
    boolean mUnlockIsFading;

    ScrimState(int index) {
        mIndex = index;
@@ -328,4 +331,8 @@ public enum ScrimState {
    public void setWakeLockScreenSensorActive(boolean active) {
        mWakeLockScreenSensorActive = active;
    }

    public void setUnlockIsFading(boolean unlockIsFading) {
        mUnlockIsFading = unlockIsFading;
    }
}
 No newline at end of file
+5 −3
Original line number Diff line number Diff line
@@ -3847,6 +3847,7 @@ public class StatusBar extends SystemUI implements DemoMode,

    public void notifyBiometricAuthModeChanged() {
        updateDozing();
        mScrimController.setUnlockIsFading(mBiometricUnlockController.isUnlockFading());
        updateScrimController();
        mStatusBarWindow.onBiometricAuthModeChanged(mBiometricUnlockController.isWakeAndUnlock(),
                mBiometricUnlockController.isBiometricUnlock());
@@ -3858,7 +3859,8 @@ public class StatusBar extends SystemUI implements DemoMode,

        // We don't want to end up in KEYGUARD state when we're unlocking with
        // fingerprint from doze. We should cross fade directly from black.
        boolean wakeAndUnlocking = mBiometricUnlockController.isWakeAndUnlock();
        boolean unlocking = mBiometricUnlockController.isWakeAndUnlock()
                || mKeyguardMonitor.isKeyguardFadingAway();

        // Do not animate the scrim expansion when triggered by the fingerprint sensor.
        mScrimController.setExpansionAffectsAlpha(
@@ -3883,9 +3885,9 @@ public class StatusBar extends SystemUI implements DemoMode,
        } else if (isPulsing()) {
            mScrimController.transitionTo(ScrimState.PULSING,
                    mDozeScrimController.getScrimCallback());
        } else if (mDozing && !wakeAndUnlocking) {
        } else if (mDozing && !unlocking) {
            mScrimController.transitionTo(ScrimState.AOD);
        } else if (mIsKeyguard && !wakeAndUnlocking) {
        } else if (mIsKeyguard && !unlocking) {
            mScrimController.transitionTo(ScrimState.KEYGUARD);
        } else if (mBubbleController.isStackExpanded()) {
            mScrimController.transitionTo(ScrimState.BUBBLE_EXPANDED);
Loading