Loading packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +0 −5 Original line number Diff line number Diff line Loading @@ -2733,7 +2733,6 @@ public final class NotificationPanelViewController implements Dumpable { public void setIsLaunchAnimationRunning(boolean running) { boolean wasRunning = mIsLaunchAnimationRunning; mIsLaunchAnimationRunning = running; mCentralSurfaces.updateIsKeyguard(); if (wasRunning != mIsLaunchAnimationRunning) { mShadeExpansionStateManager.notifyLaunchingActivityChanged(running); } Loading Loading @@ -3805,10 +3804,6 @@ public final class NotificationPanelViewController implements Dumpable { return mClosing || mIsLaunchAnimationRunning; } public boolean isLaunchAnimationRunning() { return mIsLaunchAnimationRunning; } public boolean isTracking() { return mTracking; } Loading packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java +2 −4 Original line number Diff line number Diff line Loading @@ -301,11 +301,9 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW } private void applyKeyguardFlags(NotificationShadeWindowState state) { // Keyguard is visible if it's showing or if it's fading away (in which case we're animating // it out, but the wallpaper should remain visible as a backdrop for the animation); final boolean keyguardOrAodVisible = (state.keyguardShowing || state.keyguardFadingAway) final boolean keyguardOrAod = state.keyguardShowing || (state.dozing && mDozeParameters.getAlwaysOn()); if ((keyguardOrAodVisible && !state.mediaBackdropShowing && !state.lightRevealScrimOpaque) if ((keyguardOrAod && !state.mediaBackdropShowing && !state.lightRevealScrimOpaque) || mKeyguardViewMediator.isAnimatingBetweenKeyguardAndSurfaceBehind()) { // Show the wallpaper if we're on keyguard/AOD and the wallpaper is not occluded by a // solid backdrop. Also, show it if we are currently animating between the Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java +1 −14 Original line number Diff line number Diff line Loading @@ -1007,8 +1007,6 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { // The light reveal scrim should always be fully revealed by the time the keyguard // is done going away. Double check that this is true. if (!mKeyguardStateController.isKeyguardGoingAway()) { updateIsKeyguard(); if (mLightRevealScrim.getRevealAmount() != 1f) { Log.e(TAG, "Keyguard is done going away, but someone left the light reveal " + "scrim at reveal amount: " + mLightRevealScrim.getRevealAmount()); Loading Loading @@ -2895,10 +2893,6 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { showKeyguardImpl(); } } else { final boolean isLaunchingOrGoingAway = mNotificationPanelViewController.isLaunchAnimationRunning() || mKeyguardStateController.isKeyguardGoingAway(); // During folding a foldable device this might be called as a result of // 'onScreenTurnedOff' call for the inner display. // In this case: Loading @@ -2910,14 +2904,7 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { if (!mScreenOffAnimationController.isKeyguardHideDelayed() // If we're animating occluded, there's an activity launching over the keyguard // UI. Wait to hide it until after the animation concludes. && !mKeyguardViewMediator.isOccludeAnimationPlaying() // If we're occluded, but playing an animation (launch or going away animations) // the keyguard is visible behind the animation. && !(mKeyguardStateController.isOccluded() && isLaunchingOrGoingAway)) { // If we're going away and occluded, it means we are launching over the // unsecured keyguard, which will subsequently go away. Wait to hide it until // after the animation concludes to avoid the lockscreen UI changing into the // shade UI behind the launch animation. && !mKeyguardViewMediator.isOccludeAnimationPlaying()) { return hideKeyguardImpl(forceStateChange); } } Loading packages/SystemUI/tests/src/com/android/systemui/shade/NotificationShadeWindowControllerImplTest.java +0 −10 Original line number Diff line number Diff line Loading @@ -222,16 +222,6 @@ public class NotificationShadeWindowControllerImplTest extends SysuiTestCase { assertThat((mLayoutParameters.getValue().flags & FLAG_SHOW_WALLPAPER) != 0).isTrue(); } @Test public void attach_fadingAway_wallpaperVisible() { clearInvocations(mWindowManager); mNotificationShadeWindowController.attach(); mNotificationShadeWindowController.setKeyguardFadingAway(true); verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); assertThat((mLayoutParameters.getValue().flags & FLAG_SHOW_WALLPAPER) != 0).isTrue(); } @Test public void setBackgroundBlurRadius_expandedWithBlurs() { mNotificationShadeWindowController.setBackgroundBlurRadius(10); Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/CentralSurfacesImplTest.java +0 −12 Original line number Diff line number Diff line Loading @@ -1286,18 +1286,6 @@ public class CentralSurfacesImplTest extends SysuiTestCase { verify(mPowerManagerService, never()).wakeUp(anyLong(), anyInt(), anyString(), anyString()); } @Test public void keyguard_notHidden_ifGoingAwayAndOccluded() { setKeyguardShowingAndOccluded(true /* showing */, false /* occluded */); when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(true); when(mKeyguardStateController.isOccluded()).thenReturn(true); mCentralSurfaces.updateIsKeyguard(false); verify(mStatusBarStateController, never()).setState(eq(SHADE), anyBoolean()); } @Test public void frpLockedDevice_shadeDisabled() { when(mDeviceProvisionedController.isFrpActive()).thenReturn(true); Loading Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +0 −5 Original line number Diff line number Diff line Loading @@ -2733,7 +2733,6 @@ public final class NotificationPanelViewController implements Dumpable { public void setIsLaunchAnimationRunning(boolean running) { boolean wasRunning = mIsLaunchAnimationRunning; mIsLaunchAnimationRunning = running; mCentralSurfaces.updateIsKeyguard(); if (wasRunning != mIsLaunchAnimationRunning) { mShadeExpansionStateManager.notifyLaunchingActivityChanged(running); } Loading Loading @@ -3805,10 +3804,6 @@ public final class NotificationPanelViewController implements Dumpable { return mClosing || mIsLaunchAnimationRunning; } public boolean isLaunchAnimationRunning() { return mIsLaunchAnimationRunning; } public boolean isTracking() { return mTracking; } Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationShadeWindowControllerImpl.java +2 −4 Original line number Diff line number Diff line Loading @@ -301,11 +301,9 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW } private void applyKeyguardFlags(NotificationShadeWindowState state) { // Keyguard is visible if it's showing or if it's fading away (in which case we're animating // it out, but the wallpaper should remain visible as a backdrop for the animation); final boolean keyguardOrAodVisible = (state.keyguardShowing || state.keyguardFadingAway) final boolean keyguardOrAod = state.keyguardShowing || (state.dozing && mDozeParameters.getAlwaysOn()); if ((keyguardOrAodVisible && !state.mediaBackdropShowing && !state.lightRevealScrimOpaque) if ((keyguardOrAod && !state.mediaBackdropShowing && !state.lightRevealScrimOpaque) || mKeyguardViewMediator.isAnimatingBetweenKeyguardAndSurfaceBehind()) { // Show the wallpaper if we're on keyguard/AOD and the wallpaper is not occluded by a // solid backdrop. Also, show it if we are currently animating between the Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java +1 −14 Original line number Diff line number Diff line Loading @@ -1007,8 +1007,6 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { // The light reveal scrim should always be fully revealed by the time the keyguard // is done going away. Double check that this is true. if (!mKeyguardStateController.isKeyguardGoingAway()) { updateIsKeyguard(); if (mLightRevealScrim.getRevealAmount() != 1f) { Log.e(TAG, "Keyguard is done going away, but someone left the light reveal " + "scrim at reveal amount: " + mLightRevealScrim.getRevealAmount()); Loading Loading @@ -2895,10 +2893,6 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { showKeyguardImpl(); } } else { final boolean isLaunchingOrGoingAway = mNotificationPanelViewController.isLaunchAnimationRunning() || mKeyguardStateController.isKeyguardGoingAway(); // During folding a foldable device this might be called as a result of // 'onScreenTurnedOff' call for the inner display. // In this case: Loading @@ -2910,14 +2904,7 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces { if (!mScreenOffAnimationController.isKeyguardHideDelayed() // If we're animating occluded, there's an activity launching over the keyguard // UI. Wait to hide it until after the animation concludes. && !mKeyguardViewMediator.isOccludeAnimationPlaying() // If we're occluded, but playing an animation (launch or going away animations) // the keyguard is visible behind the animation. && !(mKeyguardStateController.isOccluded() && isLaunchingOrGoingAway)) { // If we're going away and occluded, it means we are launching over the // unsecured keyguard, which will subsequently go away. Wait to hide it until // after the animation concludes to avoid the lockscreen UI changing into the // shade UI behind the launch animation. && !mKeyguardViewMediator.isOccludeAnimationPlaying()) { return hideKeyguardImpl(forceStateChange); } } Loading
packages/SystemUI/tests/src/com/android/systemui/shade/NotificationShadeWindowControllerImplTest.java +0 −10 Original line number Diff line number Diff line Loading @@ -222,16 +222,6 @@ public class NotificationShadeWindowControllerImplTest extends SysuiTestCase { assertThat((mLayoutParameters.getValue().flags & FLAG_SHOW_WALLPAPER) != 0).isTrue(); } @Test public void attach_fadingAway_wallpaperVisible() { clearInvocations(mWindowManager); mNotificationShadeWindowController.attach(); mNotificationShadeWindowController.setKeyguardFadingAway(true); verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); assertThat((mLayoutParameters.getValue().flags & FLAG_SHOW_WALLPAPER) != 0).isTrue(); } @Test public void setBackgroundBlurRadius_expandedWithBlurs() { mNotificationShadeWindowController.setBackgroundBlurRadius(10); Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/CentralSurfacesImplTest.java +0 −12 Original line number Diff line number Diff line Loading @@ -1286,18 +1286,6 @@ public class CentralSurfacesImplTest extends SysuiTestCase { verify(mPowerManagerService, never()).wakeUp(anyLong(), anyInt(), anyString(), anyString()); } @Test public void keyguard_notHidden_ifGoingAwayAndOccluded() { setKeyguardShowingAndOccluded(true /* showing */, false /* occluded */); when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(true); when(mKeyguardStateController.isOccluded()).thenReturn(true); mCentralSurfaces.updateIsKeyguard(false); verify(mStatusBarStateController, never()).setState(eq(SHADE), anyBoolean()); } @Test public void frpLockedDevice_shadeDisabled() { when(mDeviceProvisionedController.isFrpActive()).thenReturn(true); Loading