Searched refs:mKeyguardHostView (Results 1 – 2 of 2) sorted by relevance
69 private KeyguardHostView mKeyguardHostView; field in KeyguardBouncerTest82 when(mKeyguardHostView.getViewTreeObserver()).thenReturn(mViewTreeObserver); in setup()83 when(mKeyguardHostView.getHeight()).thenReturn(500); in setup()90 mKeyguardView = mKeyguardHostView; in setup()118 reset(mKeyguardHostView); in testShow_bouncerIsVisible()119 when(mKeyguardHostView.getHeight()).thenReturn(500); in testShow_bouncerIsVisible()122 verify(mKeyguardHostView).setAlpha(eq(1f)); in testShow_bouncerIsVisible()123 verify(mKeyguardHostView).setTranslationY(eq(0f)); in testShow_bouncerIsVisible()140 verify(mKeyguardHostView).dismiss(anyInt()); in testShow_triesToDismissKeyguard()146 verify(mKeyguardHostView, never()).showPrimarySecurityScreen(); in testShow_resetsSecuritySelection()[all …]
37 private KeyguardHostView mKeyguardHostView; field in KeyguardHostViewTest41 mKeyguardHostView = new KeyguardHostView(getContext()); in setup()46 Assert.assertFalse("Action not set yet", mKeyguardHostView.hasDismissActions()); in testHasDismissActions()47 mKeyguardHostView.setOnDismissAction(mock(KeyguardHostView.OnDismissAction.class), in testHasDismissActions()49 Assert.assertTrue("Action should exist", mKeyguardHostView.hasDismissActions()); in testHasDismissActions()