Merge "Dismiss the keyguard through #notifyKeyguardAuthentiated" into udc-dev am: eb6d0c3576
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22955153 Change-Id: I7da86a835e6d1c5d13fea8cb71017f370592beed Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3098,7 +3098,7 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
|
||||
Trace.beginSection("KeyguardViewMediator#onWakeAndUnlocking");
|
||||
mWakeAndUnlocking = true;
|
||||
|
||||
keyguardDone();
|
||||
mKeyguardViewControllerLazy.get().notifyKeyguardAuthenticated(/* strongAuth */ false);
|
||||
Trace.endSection();
|
||||
}
|
||||
|
||||
|
||||
@@ -549,6 +549,12 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
|
||||
assertTrue(mViewMediator.isShowingAndNotOccluded());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWakeAndUnlocking() {
|
||||
mViewMediator.onWakeAndUnlocking();
|
||||
verify(mStatusBarKeyguardViewManager).notifyKeyguardAuthenticated(anyBoolean());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOnStartedWakingUp_logsUiEvent() {
|
||||
final InstanceId instanceId = InstanceId.fakeInstanceId(8);
|
||||
|
||||
Reference in New Issue
Block a user