Merge "Bouncer should dismiss if being tracked when face unlocked" into tm-d1-dev am: e12369e3cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19290288 Change-Id: I102dcb81ece9aed4c827e669d6963b7f3edfd7d4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -400,10 +400,6 @@ public class KeyguardBouncer {
|
|||||||
return mShowingSoon || mExpansion != EXPANSION_HIDDEN && mExpansion != EXPANSION_VISIBLE;
|
return mShowingSoon || mExpansion != EXPANSION_HIDDEN && mExpansion != EXPANSION_VISIBLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getShowingSoon() {
|
|
||||||
return mShowingSoon;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} when bouncer's pre-hide animation already started but isn't completely
|
* @return {@code true} when bouncer's pre-hide animation already started but isn't completely
|
||||||
* hidden yet, {@code false} otherwise.
|
* hidden yet, {@code false} otherwise.
|
||||||
|
|||||||
@@ -965,7 +965,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean bouncerIsOrWillBeShowing() {
|
public boolean bouncerIsOrWillBeShowing() {
|
||||||
return isBouncerShowing() || mBouncer.getShowingSoon();
|
return isBouncerShowing() || mBouncer.inTransit();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isFullscreenBouncer() {
|
public boolean isFullscreenBouncer() {
|
||||||
|
|||||||
@@ -388,6 +388,16 @@ public class StatusBarKeyguardViewManagerTest extends SysuiTestCase {
|
|||||||
verify(mAlternateAuthInterceptor).hideAlternateAuthBouncer();
|
verify(mAlternateAuthInterceptor).hideAlternateAuthBouncer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testBouncerIsOrWillBeShowing_whenBouncerIsInTransit() {
|
||||||
|
when(mBouncer.isShowing()).thenReturn(false);
|
||||||
|
when(mBouncer.inTransit()).thenReturn(true);
|
||||||
|
|
||||||
|
assertTrue(
|
||||||
|
"Is or will be showing should be true when bouncer is in transit",
|
||||||
|
mStatusBarKeyguardViewManager.bouncerIsOrWillBeShowing());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testShowAltAuth_unlockingWithBiometricNotAllowed() {
|
public void testShowAltAuth_unlockingWithBiometricNotAllowed() {
|
||||||
// GIVEN alt auth exists, unlocking with biometric isn't allowed
|
// GIVEN alt auth exists, unlocking with biometric isn't allowed
|
||||||
|
|||||||
Reference in New Issue
Block a user