Merge "Cross fade wake-up from pulsing" into pi-dev
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
-->
|
||||
|
||||
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:background="#ff000000"
|
||||
android:detachWallpaper="true"
|
||||
android:shareInterpolator="false"
|
||||
android:interpolator="@interpolator/linear"
|
||||
|
||||
@@ -344,6 +344,11 @@ public class KeyguardViewMediator extends SystemUI {
|
||||
*/
|
||||
private WorkLockActivityController mWorkLockController;
|
||||
|
||||
/**
|
||||
* @see #setPulsing(boolean)
|
||||
*/
|
||||
private boolean mPulsing;
|
||||
|
||||
private boolean mLockLater;
|
||||
|
||||
private boolean mWakeAndUnlocking;
|
||||
@@ -1798,10 +1803,12 @@ public class KeyguardViewMediator extends SystemUI {
|
||||
|
||||
int flags = 0;
|
||||
if (mStatusBarKeyguardViewManager.shouldDisableWindowAnimationsForUnlock()
|
||||
|| mWakeAndUnlocking) {
|
||||
flags |= WindowManagerPolicyConstants.KEYGUARD_GOING_AWAY_FLAG_NO_WINDOW_ANIMATIONS;
|
||||
|| (mWakeAndUnlocking && !mPulsing)) {
|
||||
flags |= WindowManagerPolicyConstants
|
||||
.KEYGUARD_GOING_AWAY_FLAG_NO_WINDOW_ANIMATIONS;
|
||||
}
|
||||
if (mStatusBarKeyguardViewManager.isGoingToNotificationShade()) {
|
||||
if (mStatusBarKeyguardViewManager.isGoingToNotificationShade()
|
||||
|| (mWakeAndUnlocking && mPulsing)) {
|
||||
flags |= WindowManagerPolicyConstants.KEYGUARD_GOING_AWAY_FLAG_TO_SHADE;
|
||||
}
|
||||
if (mStatusBarKeyguardViewManager.isUnlockWithWallpaper()) {
|
||||
@@ -2104,6 +2111,13 @@ public class KeyguardViewMediator extends SystemUI {
|
||||
setShowingLocked(mShowing, aodShowing);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pulsing true when device temporarily wakes up to display an incoming notification.
|
||||
*/
|
||||
public void setPulsing(boolean pulsing) {
|
||||
mPulsing = pulsing;
|
||||
}
|
||||
|
||||
private static class StartKeyguardExitAnimParams {
|
||||
|
||||
long startTime;
|
||||
|
||||
@@ -146,7 +146,7 @@ public enum ScrimState {
|
||||
mAnimationDuration = StatusBar.FADE_KEYGUARD_DURATION;
|
||||
mAnimateChange = !mLaunchingAffordanceWithPreview;
|
||||
|
||||
if (previousState == ScrimState.AOD || previousState == ScrimState.PULSING) {
|
||||
if (previousState == ScrimState.AOD) {
|
||||
// Fade from black to transparent when coming directly from AOD
|
||||
updateScrimColor(mScrimInFront, 1, Color.BLACK);
|
||||
updateScrimColor(mScrimBehind, 1, Color.BLACK);
|
||||
|
||||
@@ -4860,6 +4860,7 @@ public class StatusBar extends SystemUI implements DemoMode,
|
||||
}
|
||||
|
||||
private void setPulsing(boolean pulsing) {
|
||||
mKeyguardViewMediator.setPulsing(pulsing);
|
||||
mNotificationPanel.setPulsing(pulsing);
|
||||
mVisualStabilityManager.setPulsing(pulsing);
|
||||
mIgnoreTouchWhilePulsing = false;
|
||||
|
||||
Reference in New Issue
Block a user