/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerTest.java | 64 private KeyguardStateController mKeyguardStateController; field in KeyguardStateControllerTest 82 mKeyguardStateController = new KeyguardStateControllerImpl( in setup() 104 mKeyguardStateController.addCallback(callback); in testFaceAuthEnrolleddChanged_calledWhenFaceEnrollmentStateChanges() 105 assertThat(mKeyguardStateController.isFaceEnrolledAndEnabled()).isFalse(); in testFaceAuthEnrolleddChanged_calledWhenFaceEnrollmentStateChanges() 111 assertThat(mKeyguardStateController.isFaceEnrolledAndEnabled()).isTrue(); in testFaceAuthEnrolleddChanged_calledWhenFaceEnrollmentStateChanges() 117 assertThat(mKeyguardStateController.isShowing()).isFalse(); in testIsShowing() 118 mKeyguardStateController.notifyKeyguardState(true /* showing */, false /* occluded */); in testIsShowing() 119 assertThat(mKeyguardStateController.isShowing()).isTrue(); in testIsShowing() 124 assertThat(mKeyguardStateController.isMethodSecure()).isFalse(); in testIsMethodSecure() 127 ((KeyguardStateControllerImpl) mKeyguardStateController).update(false /* alwaysUpdate */); in testIsMethodSecure() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | DynamicPrivacyControllerTest.java | 53 private KeyguardStateController mKeyguardStateController = mock(KeyguardStateController.class); field in DynamicPrivacyControllerTest 57 when(mKeyguardStateController.isShowing()).thenReturn(true); in setUp() 59 mLockScreenUserManager, mKeyguardStateController, in setUp() 69 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in testDynamicFalseWhenCannotSkipBouncer() 77 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in testDynamicTrueWhenCanSkipBouncer() 84 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in testNotifiedWhenEnabled() 92 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() 93 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() 96 when(mKeyguardStateController.isKeyguardFadingAway()).thenReturn(true); in testNotifiedWhenKeyguardFadingAwayChanges() 101 when(mKeyguardStateController.isKeyguardFadingAway()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | DynamicPrivacyController.java | 37 private final KeyguardStateController mKeyguardStateController; field in DynamicPrivacyController 51 mKeyguardStateController = keyguardStateController; in DynamicPrivacyController() 52 mKeyguardStateController.addCallback(this); in DynamicPrivacyController() 85 return (mKeyguardStateController.canDismissLockScreen() in isDynamicallyUnlocked() 86 || mKeyguardStateController.isKeyguardGoingAway() in isDynamicallyUnlocked() 87 || mKeyguardStateController.isKeyguardFadingAway()) in isDynamicallyUnlocked() 100 if (!mKeyguardStateController.isShowing() || !mKeyguardStateController.isMethodSecure()) { in isInLockedDownShade()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/scrim/ |
D | ScrimManagerTest.java | 51 KeyguardStateController mKeyguardStateController; field in ScrimManagerTest 65 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in testControllerSelection() 69 mBouncerlessScrimController, mKeyguardStateController); in testControllerSelection() 70 verify(mKeyguardStateController).addCallback(callbackCaptor.capture()); in testControllerSelection() 73 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in testControllerSelection() 81 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in testCallback() 85 mBouncerlessScrimController, mKeyguardStateController); in testCallback() 86 verify(mKeyguardStateController).addCallback(callbackCaptor.capture()); in testCallback() 89 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in testCallback()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/ |
D | SessionTrackerTest.java | 68 private KeyguardStateController mKeyguardStateController; field in SessionTrackerTest 94 mKeyguardStateController, in setup() 102 when(mKeyguardStateController.isShowing()).thenReturn(true); in testOnStartShowingKeyguard() 117 when(mKeyguardStateController.isShowing()).thenReturn(false); in testNoSessions() 215 when(mKeyguardStateController.isShowing()).thenReturn(true); in testKeyguardSessionOnKeyguardShowingChange() 233 when(mKeyguardStateController.isShowing()).thenReturn(true); in testKeyguardSessionOnKeyguardNotShowing() 235 when(mKeyguardStateController.isShowing()).thenReturn(false); in testKeyguardSessionOnKeyguardNotShowing() 255 when(mKeyguardStateController.isShowing()).thenReturn(true); in uiEventLoggedOnEndSessionWhenDeviceStartsSleeping() 291 when(mKeyguardStateController.isShowing()).thenReturn(true); in uiEventLoggedOnEndSessionWhenKeyguardGoingAway() 293 when(mKeyguardStateController.isShowing()).thenReturn(false); in uiEventLoggedOnEndSessionWhenKeyguardGoingAway() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | CentralSurfacesImplTest.java | 246 @Mock private KeyguardStateController mKeyguardStateController; field in CentralSurfacesImplTest 390 mKeyguardStateController, in setup() 456 mKeyguardStateController, in setup() 513 mKeyguardStateController, in createCentralSurfaces() 637 when(mKeyguardStateController.isOccluded()).thenReturn(false); in lockscreenStateMetrics_notShowing() 638 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in lockscreenStateMetrics_notShowing() 640 when(mKeyguardStateController.isShowing()).thenReturn(false); in lockscreenStateMetrics_notShowing() 642 when(mKeyguardStateController.isMethodSecure()).thenReturn(false); in lockscreenStateMetrics_notShowing() 655 when(mKeyguardStateController.isOccluded()).thenReturn(false); in lockscreenStateMetrics_notShowing_secure() 656 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in lockscreenStateMetrics_notShowing_secure() [all …]
|
D | KeyguardDismissUtilTest.java | 42 private KeyguardStateController mKeyguardStateController; field in KeyguardDismissUtilTest 56 mKeyguardStateController, mStatusBarStateController, mActivityStarter); in setUp() 61 doReturn(true).when(mKeyguardStateController).isShowing(); in testSetLeaveOpenOnKeyguardHideWhenKeyGuardStateControllerIsShowing() 74 doReturn(false).when(mKeyguardStateController).isShowing(); in testSetLeaveOpenOnKeyguardHideWhenKeyGuardStateControllerIsNotShowing()
|
D | StatusBarNotificationActivityStarterTest.java | 145 private KeyguardStateController mKeyguardStateController; field in StatusBarNotificationActivityStarterTest 253 mKeyguardStateController, in setUp() 305 when(mKeyguardStateController.isShowing()).thenReturn(true); in testOnNotificationClicked_keyGuardShowing() 306 when(mKeyguardStateController.isOccluded()).thenReturn(true); in testOnNotificationClicked_keyGuardShowing() 371 when(mKeyguardStateController.isShowing()).thenReturn(true); in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing() 372 when(mKeyguardStateController.isOccluded()).thenReturn(true); in testOnNotificationClicked_bubble_noContentIntent_keyGuardShowing() 399 when(mKeyguardStateController.isShowing()).thenReturn(true); in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing() 400 when(mKeyguardStateController.isOccluded()).thenReturn(true); in testOnNotificationClicked_bubble_withContentIntent_keyGuardShowing() 428 when(mKeyguardStateController.isShowing()).thenReturn(true); in testOnNotificationBubbleIconClicked_unbubble_keyGuardShowing() 429 when(mKeyguardStateController.isOccluded()).thenReturn(true); in testOnNotificationBubbleIconClicked_unbubble_keyGuardShowing() [all …]
|
D | StatusBarKeyguardViewManagerTest.java | 165 private FakeKeyguardStateController mKeyguardStateController = field in StatusBarKeyguardViewManagerTest 210 mKeyguardStateController, in setUp() 324 mKeyguardStateController.setCanDismissLockScreen(false); in onPanelExpansionChanged_showsBouncerWhenSwiping() 372 when(mKeyguardStateController.isOccluded()).thenReturn(true); in onPanelExpansionChanged_neverTranslatesBouncerWhenOccluded() 383 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(true); in onPanelExpansionChanged_neverTranslatesBouncerWhenGoingAway() 422 clearInvocations(mKeyguardStateController); in setOccluded_onKeyguardOccludedChangedCalled() 426 verify(mKeyguardStateController).notifyKeyguardState(true, false); in setOccluded_onKeyguardOccludedChangedCalled() 429 clearInvocations(mKeyguardStateController); in setOccluded_onKeyguardOccludedChangedCalled() 432 verify(mKeyguardStateController).notifyKeyguardState(true, true); in setOccluded_onKeyguardOccludedChangedCalled() 435 clearInvocations(mKeyguardStateController); in setOccluded_onKeyguardOccludedChangedCalled() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarKeyguardViewManager.java | 329 private final KeyguardStateController mKeyguardStateController; field in StatusBarKeyguardViewManager 355 if (mKeyguardStateController.isOccluded()) { 407 mKeyguardStateController = keyguardStateController; in StatusBarKeyguardViewManager() 632 return mKeyguardStateController.isShowing() in beginShowingBouncer() 634 && !mKeyguardStateController.isKeyguardGoingAway() in beginShowingBouncer() 637 && !mKeyguardStateController.isOccluded() in beginShowingBouncer() 638 && !mKeyguardStateController.canDismissLockScreen() in beginShowingBouncer() 668 if (mKeyguardStateController.isShowing()) { in onPanelExpansionChanged() 695 mKeyguardStateController.notifyKeyguardState(true, mKeyguardStateController.isOccluded()); in show() 762 if (mKeyguardStateController.isShowing()) { in hideBouncer() [all …]
|
D | KeyguardDismissUtil.java | 32 private final KeyguardStateController mKeyguardStateController; field in KeyguardDismissUtil 42 mKeyguardStateController = keyguardStateController; in KeyguardDismissUtil() 50 if (mKeyguardStateController.isShowing() && requiresShadeOpen) { in executeWhenUnlocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/scrim/ |
D | ScrimManager.java | 38 private final KeyguardStateController mKeyguardStateController; field in ScrimManager 72 mKeyguardStateController = keyguardStateController; in ScrimManager() 74 mKeyguardStateController.addCallback(mKeyguardStateCallback); in ScrimManager() 80 mCurrentController = mKeyguardStateController.canDismissLockScreen() in updateController()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
D | DreamMediaEntryComplicationTest.java | 79 private KeyguardStateController mKeyguardStateController; field in DreamMediaEntryComplicationTest 120 mKeyguardStateController, in testClickToOpenUMO() 149 mKeyguardStateController, in testOnViewDetached() 167 when(mKeyguardStateController.isShowing()).thenReturn(true); in testClickToOpenMediaOverLockscreen() 179 mKeyguardStateController, in testClickToOpenMediaOverLockscreen() 204 when(mKeyguardStateController.isShowing()).thenReturn(true); in testClickToOpenMediaDismissingLockscreen() 216 mKeyguardStateController, in testClickToOpenMediaDismissingLockscreen()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | BiometricNotificationServiceTest.java | 70 KeyguardStateController mKeyguardStateController; field in BiometricNotificationServiceTest 112 mKeyguardUpdateMonitor, mKeyguardStateController, handler, in setUp() 131 verify(mKeyguardStateController).addCallback( in setUp() 146 when(mKeyguardStateController.isShowing()).thenReturn(false); in testShowFingerprintReEnrollNotification_onAcquiredReEnroll_Optional() 173 when(mKeyguardStateController.isShowing()).thenReturn(false); in testShowFingerprintReEnrollNotification_onAcquiredReEnroll_force() 199 when(mKeyguardStateController.isShowing()).thenReturn(false); in testShowFaceReEnrollNotification_onErrorReEnroll() 222 when(mKeyguardStateController.isShowing()).thenReturn(false); in testCancelReEnrollmentNotification_onFaceEnrollmentStateChange() 246 when(mKeyguardStateController.isShowing()).thenReturn(false); in testCancelReEnrollmentNotification_onFingerprintEnrollmentStateChange() 270 when(mKeyguardStateController.isShowing()).thenReturn(false); in testResetFaceUnlockReEnroll_onStart()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | LegacyLockIconViewControllerBaseTest.java | 91 protected @Mock KeyguardStateController mKeyguardStateController; field in LegacyLockIconViewControllerBaseTest 147 when(mKeyguardStateController.isShowing()).thenReturn(true); in setUp() 148 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(false); in setUp() 165 mKeyguardStateController, in setUp() 200 when(mKeyguardStateController.isShowing()).thenReturn(true); in setupShowLockIcon() 201 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(false); in setupShowLockIcon() 205 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in setupShowLockIcon() 214 verify(mKeyguardStateController).addCallback(mKeyguardStateCaptor.capture()); in captureKeyguardStateCallback()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | BiometricNotificationService.java | 72 private final KeyguardStateController mKeyguardStateController; field in BiometricNotificationService 91 if (mKeyguardStateController.isShowing() 92 || mKeyguardStateController.isShowing() == mIsShowing) { 93 mIsShowing = mKeyguardStateController.isShowing(); 96 mIsShowing = mKeyguardStateController.isShowing(); 158 mKeyguardStateController = keyguardStateController; in BiometricNotificationService() 171 mKeyguardStateController.addCallback(mKeyguardStateControllerCallback); in start()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/ |
D | SessionTracker.java | 64 private final KeyguardStateController mKeyguardStateController; field in SessionTracker 81 mKeyguardStateController = keyguardStateController; in SessionTracker() 89 mKeyguardStateController.addCallback(mKeyguardStateCallback); in start() 91 if (mKeyguardStateController.isShowing()) { in start() 168 boolean keyguardShowing = mKeyguardStateController.isShowing();
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardVisibilityHelper.java | 50 private final KeyguardStateController mKeyguardStateController; field in KeyguardVisibilityHelper 66 mKeyguardStateController = keyguardStateController; in KeyguardVisibilityHelper() 97 boolean isOccluded = mKeyguardStateController.isOccluded(); in setViewVisibility() 109 .setDelay(mKeyguardStateController.getKeyguardFadingAwayDelay()) in setViewVisibility() 110 .setDuration(mKeyguardStateController.getShortenedFadingAwayDuration()); in setViewVisibility()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsImpl.java | 32 private final KeyguardStateController mKeyguardStateController; field in GlobalActionsImpl 48 mKeyguardStateController = keyguardStateController; in GlobalActionsImpl() 65 mGlobalActionsDialog.showOrHideDialog(mKeyguardStateController.isShowing(), in showGlobalActions()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediatorTest.java | 179 private @Mock KeyguardStateController mKeyguardStateController; field in KeyguardViewMediatorTest 264 mKeyguardStateController, in setUp() 283 }).when(mKeyguardStateController).notifyKeyguardGoingAway(anyBoolean()); in setUp() 449 verify(mKeyguardStateController, never()).notifyKeyguardState(eq(true), anyBoolean()); in testOnStartedWakingUp_whileSleeping_ifWakeAndUnlocking_doesNotShowKeyguard() 512 mKeyguardStateController.notifyKeyguardGoingAway(true); in wakeupFromDreamingWhenKeyguardHides_orderUnlockAndWakeOff() 536 mKeyguardStateController.notifyKeyguardGoingAway(true); in wakeupFromDreamingWhenKeyguardHides_orderUnlockAndWakeOn() 553 when(mKeyguardStateController.isShowing()).thenReturn(false); in wakeupFromDreamingWhenKeyguardHides_orderUnlockAndWakeOn() 577 when(mKeyguardStateController.isShowing()).thenReturn(false); in restoreBouncerWhenSimLockedAndKeyguardIsGoingAway() 602 when(mKeyguardStateController.isShowing()).thenReturn(false); in restoreBouncerWhenSimLockedAndKeyguardIsGoingAway_initiallyNotShowing() 729 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(false); in lockAfterScreenTimeoutUsesValueFromSettings() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | OverviewProxyRecentsImpl.java | 41 private final KeyguardStateController mKeyguardStateController; field in OverviewProxyRecentsImpl 51 mKeyguardStateController = keyguardStateController; in OverviewProxyRecentsImpl() 99 if (mKeyguardStateController.isShowing()) { in toggleRecentApps()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyguardQsUserSwitchController.java | 74 private final KeyguardStateController mKeyguardStateController; field in KeyguardQsUserSwitchController 95 boolean keyguardFadingAway = mKeyguardStateController.isKeyguardFadingAway(); 157 mKeyguardStateController = keyguardStateController; in KeyguardQsUserSwitchController() 217 mKeyguardStateController.addCallback(mKeyguardStateCallback); in onViewAttached() 230 mKeyguardStateController.removeCallback(mKeyguardStateCallback); in onViewDetached() 255 mIsKeyguardShowing = mKeyguardStateController.isShowing() in updateKeyguardShowing() 256 || mKeyguardStateController.isKeyguardGoingAway(); in updateKeyguardShowing()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
D | WalletActivity.java | 66 private final KeyguardStateController mKeyguardStateController; field in WalletActivity 98 mKeyguardStateController = keyguardStateController; in WalletActivity() 141 mKeyguardStateController, in onCreate() 164 if (mKeyguardStateController.isUnlocked()) { in onCreate() 204 mKeyguardStateController.addCallback(mWalletScreenController); in onStart() 272 mKeyguardStateController.removeCallback(mWalletScreenController); in onDestroy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
D | QSCustomizerController.java | 64 private final KeyguardStateController mKeyguardStateController; field in QSCustomizerController 86 if (mKeyguardStateController.isShowing() && !mView.isOpening()) { 116 mKeyguardStateController = keyguardStateController; in QSCustomizerController() 201 mKeyguardStateController.addCallback(mKeyguardCallback); in show() 231 mKeyguardStateController.removeCallback(mKeyguardCallback); in saveInstanceState() 265 mKeyguardStateController.removeCallback(mKeyguardCallback); in hide()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/fragment/ |
D | CollapsedStatusBarFragment.java | 118 private final KeyguardStateController mKeyguardStateController; field in CollapsedStatusBarFragment 262 mKeyguardStateController = keyguardStateController; in CollapsedStatusBarFragment() 583 if (!mKeyguardStateController.isLaunchTransitionFadingAway() in calculateInternalModel() 584 && !mKeyguardStateController.isKeyguardFadingAway() in calculateInternalModel() 669 mKeyguardStateController.isOccluded(); in shouldHideStatusBar() 682 && mKeyguardStateController.isOccluded(); in shouldHideStatusBar() 714 if (mKeyguardStateController.isKeyguardFadingAway()) { in showEndSideContent() 716 mKeyguardStateController.getKeyguardFadingAwayDuration(), in showEndSideContent() 718 mKeyguardStateController.getKeyguardFadingAwayDelay()); in showEndSideContent() 754 if (!mShadeExpansionStateManager.isClosed() && !mKeyguardStateController.isShowing() in clockHiddenMode() [all …]
|