From df438c61352683bfb472f05bb88aed56446ada10 Mon Sep 17 00:00:00 2001 From: Issei Suzuki Date: Fri, 26 Aug 2022 14:56:41 +0000 Subject: [PATCH] Fix test failure in BiometricsUnlockControllerTest onBiometricAuthenticated_onLockScreen checks if animateCollapsePanels is triggered. Since keyguard remote animation is enabled, the keygaurd unlock controller will fling the panel collapsed when it's ready, so animateCollapsePanels is not triggered here anymore. Bug: 243919840 Test: atest BiometricsUnlockControllerTest Change-Id: Id5464482112bd7533d47fcf418a3e8b49ceb4ba6 --- .../statusbar/phone/BiometricsUnlockControllerTest.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/BiometricsUnlockControllerTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/BiometricsUnlockControllerTest.java index d2680eb5d8bb0..38506f22d9f90 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/BiometricsUnlockControllerTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/BiometricsUnlockControllerTest.java @@ -314,13 +314,6 @@ public class BiometricsUnlockControllerTest extends SysuiTestCase { mBiometricUnlockController.startWakeAndUnlock( BiometricUnlockController.MODE_UNLOCK_COLLAPSING); - // THEN we collpase the panels and notify authenticated - verify(mShadeController).animateCollapsePanels( - /* flags */ anyInt(), - /* force */ eq(true), - /* delayed */ eq(false), - /* speedUpFactor */ anyFloat() - ); verify(mStatusBarKeyguardViewManager).notifyKeyguardAuthenticated( /* strongAuth */ eq(false)); }