diff options
| author | 2021-11-15 21:18:21 +0000 | |
|---|---|---|
| committer | 2021-11-15 21:18:21 +0000 | |
| commit | 83334b67a2dca6900fb61b0a24b656754417c606 (patch) | |
| tree | 111f31db799fe351720ccccf0f4d9770e7fef876 | |
| parent | c0f602a20be20638e0108566e263eb632682eb4d (diff) | |
| parent | 7c64f2cd038e54fdb4df885420dda0f7c6846801 (diff) | |
Merge "Show scrimmed bouncer from BiometricUnlockCtrl" into sc-v2-dev
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java index 2c76cfeff733..67f51cb9ab43 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java @@ -485,7 +485,7 @@ public class BiometricUnlockController extends KeyguardUpdateMonitorCallback imp      private void showBouncer() {          if (mMode == MODE_SHOW_BOUNCER) { -            mKeyguardViewController.showBouncer(false); +            mKeyguardViewController.showBouncer(true);          }          mShadeController.animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, true /* force */,                  false /* delayed */, BIOMETRIC_COLLAPSE_SPEEDUP_FACTOR); 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 4276f7ce7b12..25fd80133897 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 @@ -134,7 +134,7 @@ public class BiometricsUnlockControllerTest extends SysuiTestCase {                  .thenReturn(false);          mBiometricUnlockController.onBiometricAuthenticated(UserHandle.USER_CURRENT,                  BiometricSourceType.FINGERPRINT, true /* isStrongBiometric */); -        verify(mStatusBarKeyguardViewManager).showBouncer(eq(false)); +        verify(mStatusBarKeyguardViewManager).showBouncer(anyBoolean());          verify(mStatusBarKeyguardViewManager, never()).notifyKeyguardAuthenticated(anyBoolean());          assertThat(mBiometricUnlockController.getMode())                  .isEqualTo(BiometricUnlockController.MODE_SHOW_BOUNCER); @@ -146,7 +146,7 @@ public class BiometricsUnlockControllerTest extends SysuiTestCase {                  .thenReturn(false);          mBiometricUnlockController.onBiometricAuthenticated(UserHandle.USER_CURRENT,                  BiometricSourceType.FINGERPRINT, false /* isStrongBiometric */); -        verify(mStatusBarKeyguardViewManager).showBouncer(eq(false)); +        verify(mStatusBarKeyguardViewManager).showBouncer(anyBoolean());          verify(mShadeController).animateCollapsePanels(anyInt(), anyBoolean(), anyBoolean(),                  anyFloat());          assertThat(mBiometricUnlockController.getMode()) @@ -265,10 +265,10 @@ public class BiometricsUnlockControllerTest extends SysuiTestCase {                  BiometricSourceType.FACE, true /* isStrongBiometric */);          // Wake up before showing the bouncer -        verify(mStatusBarKeyguardViewManager, never()).showBouncer(eq(false)); +        verify(mStatusBarKeyguardViewManager, never()).showBouncer(anyBoolean());          mBiometricUnlockController.mWakefulnessObserver.onFinishedWakingUp(); -        verify(mStatusBarKeyguardViewManager).showBouncer(eq(false)); +        verify(mStatusBarKeyguardViewManager).showBouncer(anyBoolean());          assertThat(mBiometricUnlockController.getMode())                  .isEqualTo(BiometricUnlockController.MODE_SHOW_BOUNCER);      }  |