Merge "Dismiss the keyguard through #notifyKeyguardAuthentiated" into udc-dev
This commit is contained in:
@@ -3098,7 +3098,7 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
|
|||||||
Trace.beginSection("KeyguardViewMediator#onWakeAndUnlocking");
|
Trace.beginSection("KeyguardViewMediator#onWakeAndUnlocking");
|
||||||
mWakeAndUnlocking = true;
|
mWakeAndUnlocking = true;
|
||||||
|
|
||||||
keyguardDone();
|
mKeyguardViewControllerLazy.get().notifyKeyguardAuthenticated(/* strongAuth */ false);
|
||||||
Trace.endSection();
|
Trace.endSection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -549,6 +549,12 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
|
|||||||
assertTrue(mViewMediator.isShowingAndNotOccluded());
|
assertTrue(mViewMediator.isShowingAndNotOccluded());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testWakeAndUnlocking() {
|
||||||
|
mViewMediator.onWakeAndUnlocking();
|
||||||
|
verify(mStatusBarKeyguardViewManager).notifyKeyguardAuthenticated(anyBoolean());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOnStartedWakingUp_logsUiEvent() {
|
public void testOnStartedWakingUp_logsUiEvent() {
|
||||||
final InstanceId instanceId = InstanceId.fakeInstanceId(8);
|
final InstanceId instanceId = InstanceId.fakeInstanceId(8);
|
||||||
|
|||||||
Reference in New Issue
Block a user