Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/NotificationShadeDepthControllerTest.kt +0 −16 Original line number Diff line number Diff line Loading @@ -265,8 +265,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { ShadeExpansionChangeEvent(fraction = 1f, expanded = true, tracking = false) ) notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController) .setNotificationShadeZoom(eq(ShadeInterpolation.getNotificationScrimAlpha(0.25f))) } @Test Loading @@ -277,8 +275,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { ShadeExpansionChangeEvent(fraction = 1f, expanded = true, tracking = false) ) notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(0f) } @Test Loading @@ -289,8 +285,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { ShadeExpansionChangeEvent(fraction = 1f, expanded = true, tracking = false) ) notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(floatThat { it > 0 }) } @Test Loading @@ -305,12 +299,10 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { notificationShadeDepthController.onPanelExpansionChanged(event) notificationShadeDepthController.updateBlurCallback.doFrame(0) inOrder.verify(wallpaperController).setNotificationShadeZoom(floatThat { it > 0 }) enableSplitShade() notificationShadeDepthController.onPanelExpansionChanged(event) notificationShadeDepthController.updateBlurCallback.doFrame(0) inOrder.verify(wallpaperController).setNotificationShadeZoom(0f) } @Test Loading Loading @@ -353,14 +345,12 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { notificationShadeDepthController.transitionToFullShadeProgress = 1f notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(blurUtils).applyBlur(any(), eq(0), eq(false), anyFloat()) verify(wallpaperController).setNotificationShadeZoom(eq(1f)) } @Test fun updateBlurCallback_setsBlurAndZoom() { notificationShadeDepthController.addListener(listener) notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(anyFloat()) verify(blurUtils).applyBlur(any(), anyInt(), eq(false), anyFloat()) } Loading @@ -374,8 +364,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { shadeDisplayRepository.setDisplayId(1) // not default display. notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(eq(0f)) } @Test Loading @@ -388,8 +376,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { shadeDisplayRepository.setDisplayId(0) // shade is in default display notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(floatThat { it != 0f }) } @Test Loading Loading @@ -524,7 +510,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(notificationShadeWindowController).setBackgroundBlurRadius(eq(0)) verify(wallpaperController).setNotificationShadeZoom(eq(0f)) verify(blurUtils).prepareBlur(any(), eq(0)) verify(blurUtils).applyBlur( eq(viewRootImpl), Loading Loading @@ -575,7 +560,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(notificationShadeWindowController).setBackgroundBlurRadius(eq(0)) verify(wallpaperController).setNotificationShadeZoom(eq(0f)) verify(windowRootViewBlurInteractor).requestBlurForShade( eq(0), eq(notificationShadeDepthController.zoomOutAsScale(0f)) Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationShadeDepthController.kt +3 −1 Original line number Diff line number Diff line Loading @@ -367,7 +367,9 @@ constructor( private fun onZoomOutChanged(zoomOutFromShadeRadius: Float) { TrackTracer.instantForGroup("shade", "zoom_out", zoomOutFromShadeRadius) Log.v(TAG, "onZoomOutChanged $zoomOutFromShadeRadius") if (!spatialModelPushbackInShader()) { wallpaperController.setNotificationShadeZoom(zoomOutFromShadeRadius) } if (spatialModelAppPushback()) { appZoomOutOptional.ifPresent { appZoomOut -> appZoomOut.setProgress(zoomOutFromShadeRadius) Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/NotificationShadeDepthControllerTest.kt +0 −16 Original line number Diff line number Diff line Loading @@ -265,8 +265,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { ShadeExpansionChangeEvent(fraction = 1f, expanded = true, tracking = false) ) notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController) .setNotificationShadeZoom(eq(ShadeInterpolation.getNotificationScrimAlpha(0.25f))) } @Test Loading @@ -277,8 +275,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { ShadeExpansionChangeEvent(fraction = 1f, expanded = true, tracking = false) ) notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(0f) } @Test Loading @@ -289,8 +285,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { ShadeExpansionChangeEvent(fraction = 1f, expanded = true, tracking = false) ) notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(floatThat { it > 0 }) } @Test Loading @@ -305,12 +299,10 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { notificationShadeDepthController.onPanelExpansionChanged(event) notificationShadeDepthController.updateBlurCallback.doFrame(0) inOrder.verify(wallpaperController).setNotificationShadeZoom(floatThat { it > 0 }) enableSplitShade() notificationShadeDepthController.onPanelExpansionChanged(event) notificationShadeDepthController.updateBlurCallback.doFrame(0) inOrder.verify(wallpaperController).setNotificationShadeZoom(0f) } @Test Loading Loading @@ -353,14 +345,12 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { notificationShadeDepthController.transitionToFullShadeProgress = 1f notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(blurUtils).applyBlur(any(), eq(0), eq(false), anyFloat()) verify(wallpaperController).setNotificationShadeZoom(eq(1f)) } @Test fun updateBlurCallback_setsBlurAndZoom() { notificationShadeDepthController.addListener(listener) notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(anyFloat()) verify(blurUtils).applyBlur(any(), anyInt(), eq(false), anyFloat()) } Loading @@ -374,8 +364,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { shadeDisplayRepository.setDisplayId(1) // not default display. notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(eq(0f)) } @Test Loading @@ -388,8 +376,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { shadeDisplayRepository.setDisplayId(0) // shade is in default display notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(wallpaperController).setNotificationShadeZoom(floatThat { it != 0f }) } @Test Loading Loading @@ -524,7 +510,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(notificationShadeWindowController).setBackgroundBlurRadius(eq(0)) verify(wallpaperController).setNotificationShadeZoom(eq(0f)) verify(blurUtils).prepareBlur(any(), eq(0)) verify(blurUtils).applyBlur( eq(viewRootImpl), Loading Loading @@ -575,7 +560,6 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { notificationShadeDepthController.updateBlurCallback.doFrame(0) verify(notificationShadeWindowController).setBackgroundBlurRadius(eq(0)) verify(wallpaperController).setNotificationShadeZoom(eq(0f)) verify(windowRootViewBlurInteractor).requestBlurForShade( eq(0), eq(notificationShadeDepthController.zoomOutAsScale(0f)) Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationShadeDepthController.kt +3 −1 Original line number Diff line number Diff line Loading @@ -367,7 +367,9 @@ constructor( private fun onZoomOutChanged(zoomOutFromShadeRadius: Float) { TrackTracer.instantForGroup("shade", "zoom_out", zoomOutFromShadeRadius) Log.v(TAG, "onZoomOutChanged $zoomOutFromShadeRadius") if (!spatialModelPushbackInShader()) { wallpaperController.setNotificationShadeZoom(zoomOutFromShadeRadius) } if (spatialModelAppPushback()) { appZoomOutOptional.ifPresent { appZoomOut -> appZoomOut.setProgress(zoomOutFromShadeRadius) Loading