/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardStateControllerTest.java | 64 private KeyguardStateController mKeyguardStateController; field in KeyguardStateControllerTest 80 mKeyguardStateController = new KeyguardStateControllerImpl( in setup() 101 mKeyguardStateController.addCallback(callback); in testFaceAuthEnabledChanged_calledWhenFaceEnrollmentStateChanges() 114 assertThat(mKeyguardStateController.isShowing()).isFalse(); in testIsShowing() 116 assertThat(mKeyguardStateController.isShowing()).isTrue(); in testIsShowing() 132 assertThat(mKeyguardStateController.isOccluded()).isTrue(); in testIsOccluded() 154 assertThat(mKeyguardStateController.isShowing()).isFalse(); in testIsUnlocked() 179 assertThat(mKeyguardStateController.isTrusted()).isTrue(); in testIsTrusted() 185 mKeyguardStateController.addCallback(callback); in testCallbacksAreInvoked() 196 mKeyguardStateController.addCallback(callback); in testKeyguardDismissAmountCallbackInvoked() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
H A D | DynamicPrivacyControllerTest.java | 52 private KeyguardStateController mKeyguardStateController = mock(KeyguardStateController.class); field in DynamicPrivacyControllerTest 56 when(mKeyguardStateController.isShowing()).thenReturn(true); in setUp() 58 mLockScreenUserManager, mKeyguardStateController, in setUp() 68 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in testDynamicFalseWhenCannotSkipBouncer() 76 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in testDynamicTrueWhenCanSkipBouncer() 83 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in testNotifiedWhenEnabled() 91 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() 92 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() 95 when(mKeyguardStateController.isKeyguardFadingAway()).thenReturn(true); in testNotifiedWhenKeyguardFadingAwayChanges() 100 when(mKeyguardStateController.isKeyguardFadingAway()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/touch/scrim/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/ |
H A 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 …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarKeyguardViewManager.java | 335 if (mKeyguardStateController.isOccluded()) { 554 return mKeyguardStateController.isShowing() in beginShowingBouncer() 559 && !mKeyguardStateController.isOccluded() in beginShowingBouncer() 591 if (mKeyguardStateController.isShowing()) { in onPanelExpansionChanged() 619 mKeyguardStateController.isOccluded()); in show() 666 if (mKeyguardStateController.isShowing()) { in hideBouncer() 695 if (mKeyguardStateController.isShowing()) { in dismissWithAction() 893 mKeyguardStateController.notifyKeyguardState( in setOccluded() 957 mKeyguardStateController.isOccluded()); in hide() 1397 if (mKeyguardStateController.isShowing()) { in launchPendingWakeupAction() [all …]
|
H A D | KeyguardDismissUtil.java | 32 private final KeyguardStateController mKeyguardStateController; field in KeyguardDismissUtil 42 mKeyguardStateController = keyguardStateController; in KeyguardDismissUtil() 50 if (mKeyguardStateController.isShowing() && requiresShadeOpen) { in executeWhenUnlocked()
|
H A D | KeyguardBypassController.kt | 44 private val mKeyguardStateController: KeyguardStateController 94 return enabled && mKeyguardStateController.isFaceAuthEnabled && 118 this.mKeyguardStateController = keyguardStateController 254 mKeyguardStateController.addCallback(faceAuthEnabledChangedCallback) 265 mKeyguardStateController.removeCallback(faceAuthEnabledChangedCallback)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | CentralSurfacesImplTest.java | 224 @Mock private KeyguardStateController mKeyguardStateController; field in CentralSurfacesImplTest 372 mKeyguardStateController, in setup() 446 mKeyguardStateController, in setup() 481 mKeyguardStateController, in setup() 656 when(mKeyguardStateController.isShowing()).thenReturn(true); in lockscreenStateMetrics_isShowing() 675 when(mKeyguardStateController.isShowing()).thenReturn(true); in lockscreenStateMetrics_isShowing_secure() 694 when(mKeyguardStateController.isShowing()).thenReturn(true); in lockscreenStateMetrics_isShowingBouncer() 981 when(mKeyguardStateController.isShowing()).thenReturn(true); in testSetExpansionAffectsAlpha_whenKeyguardShowingButGoingAwayForAnyReason() 987 when(mKeyguardStateController.isShowing()).thenReturn(true); in testSetExpansionAffectsAlpha_whenKeyguardShowingButGoingAwayForAnyReason() 993 when(mKeyguardStateController.isShowing()).thenReturn(true); in testSetExpansionAffectsAlpha_whenKeyguardShowingButGoingAwayForAnyReason() [all …]
|
H A 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()
|
H A D | StatusBarKeyguardViewManagerTest.java | 153 private FakeKeyguardStateController mKeyguardStateController = field in StatusBarKeyguardViewManagerTest 195 mKeyguardStateController, in setUp() 307 mKeyguardStateController.setCanDismissLockScreen(false); in onPanelExpansionChanged_showsBouncerWhenSwiping() 355 when(mKeyguardStateController.isOccluded()).thenReturn(true); in onPanelExpansionChanged_neverTranslatesBouncerWhenOccluded() 405 clearInvocations(mKeyguardStateController); in setOccluded_onKeyguardOccludedChangedCalled() 412 clearInvocations(mKeyguardStateController); in setOccluded_onKeyguardOccludedChangedCalled() 418 clearInvocations(mKeyguardStateController); in setOccluded_onKeyguardOccludedChangedCalled() 698 mKeyguardStateController, in hideAlternateBouncer_beforeCentralSurfacesRegistered() 729 when(mKeyguardStateController.isShowing()).thenReturn(true); in testResetHideBouncerWhenShowing_alternateBouncerHides() 742 when(mKeyguardStateController.isShowing()).thenReturn(true); in testResetHideBouncerWhenShowingIsFalse_alternateBouncerHides() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
H A D | BiometricNotificationServiceTest.java | 70 KeyguardStateController mKeyguardStateController; field in BiometricNotificationServiceTest 111 mKeyguardUpdateMonitor, mKeyguardStateController, handler, in setUp() 130 verify(mKeyguardStateController).addCallback( in setUp() 145 when(mKeyguardStateController.isShowing()).thenReturn(false); in testShowFingerprintReEnrollNotification_onAcquiredReEnroll() 167 when(mKeyguardStateController.isShowing()).thenReturn(false); in testShowFaceReEnrollNotification_onErrorReEnroll() 190 when(mKeyguardStateController.isShowing()).thenReturn(false); in testCancelReEnrollmentNotification_onFaceEnrollmentStateChange() 214 when(mKeyguardStateController.isShowing()).thenReturn(false); in testCancelReEnrollmentNotification_onFingerprintEnrollmentStateChange() 238 when(mKeyguardStateController.isShowing()).thenReturn(false); in testResetFaceUnlockReEnroll_onStart()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/scrim/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
H A D | KeyguardViewMediatorTest.java | 162 private @Mock KeyguardStateController mKeyguardStateController; field in KeyguardViewMediatorTest 367 mKeyguardStateController.notifyKeyguardGoingAway(true); in wakeupFromDreamingWhenKeyguardHides_orderUnlockAndWakeOff() 391 mKeyguardStateController.notifyKeyguardGoingAway(true); in wakeupFromDreamingWhenKeyguardHides_orderUnlockAndWakeOn() 409 when(mKeyguardStateController.isShowing()).thenReturn(false); in wakeupFromDreamingWhenKeyguardHides_orderUnlockAndWakeOn() 433 when(mKeyguardStateController.isShowing()).thenReturn(false); in restoreBouncerWhenSimLockedAndKeyguardIsGoingAway() 458 when(mKeyguardStateController.isShowing()).thenReturn(false); in restoreBouncerWhenSimLockedAndKeyguardIsGoingAway_initiallyNotShowing() 830 when(mKeyguardStateController.isShowing()).thenReturn(true); in testWakeAndUnlockingOverDream_signalAuthenticateIfStillShowing() 872 when(mKeyguardStateController.isShowing()).thenReturn(true); in testDoKeyguardWhileInteractive_resets() 886 when(mKeyguardStateController.isShowing()).thenReturn(true); in testDoKeyguardWhileNotInteractive_showsInsteadOfResetting() 913 when(mKeyguardStateController.isShowing()).thenReturn(true); in testStartingKeyguardWhenFlagIsEnabled() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
H A D | LockIconViewControllerBaseTest.java | 87 protected @Mock KeyguardStateController mKeyguardStateController; field in LockIconViewControllerBaseTest 143 when(mKeyguardStateController.isShowing()).thenReturn(true); in setUp() 144 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(false); in setUp() 157 mKeyguardStateController, in setUp() 192 when(mKeyguardStateController.isShowing()).thenReturn(true); in setupShowLockIcon() 193 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(false); in setupShowLockIcon() 197 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in setupShowLockIcon() 206 verify(mKeyguardStateController).addCallback(mKeyguardStateCaptor.capture()); in captureKeyguardStateCallback()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | BiometricNotificationService.java | 71 private final KeyguardStateController mKeyguardStateController; field in BiometricNotificationService 88 if (mKeyguardStateController.isShowing() 89 || mKeyguardStateController.isShowing() == mIsShowing) { 90 mIsShowing = mKeyguardStateController.isShowing(); 93 mIsShowing = mKeyguardStateController.isShowing(); 153 mKeyguardStateController = keyguardStateController; in BiometricNotificationService() 166 mKeyguardStateController.addCallback(mKeyguardStateControllerCallback); in start()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/fragment/ |
H A D | CollapsedStatusBarFragment.java | 109 private final KeyguardStateController mKeyguardStateController; field in CollapsedStatusBarFragment 245 mKeyguardStateController = keyguardStateController; in CollapsedStatusBarFragment() 495 if (!mKeyguardStateController.isLaunchTransitionFadingAway() in calculateInternalModel() 496 && !mKeyguardStateController.isKeyguardFadingAway() in calculateInternalModel() 568 mKeyguardStateController.isOccluded(); in shouldHideStatusBar() 581 && mKeyguardStateController.isOccluded(); in shouldHideStatusBar() 613 if (mKeyguardStateController.isKeyguardFadingAway()) { in showEndSideContent() 615 mKeyguardStateController.getKeyguardFadingAwayDuration(), in showEndSideContent() 617 mKeyguardStateController.getKeyguardFadingAwayDelay()); in showEndSideContent() 722 if (mKeyguardStateController.isKeyguardFadingAway()) { in animateShow() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/log/ |
H A 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();
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardVisibilityHelper.java | 49 private final KeyguardStateController mKeyguardStateController; field in KeyguardVisibilityHelper 65 mKeyguardStateController = keyguardStateController; in KeyguardVisibilityHelper() 92 boolean isOccluded = mKeyguardStateController.isOccluded(); in setViewVisibility() 104 .setDelay(mKeyguardStateController.getKeyguardFadingAwayDelay()) in setViewVisibility() 105 .setDuration(mKeyguardStateController.getShortenedFadingAwayDuration()); in setViewVisibility()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
H A D | WalletActivity.java | 65 private final KeyguardStateController mKeyguardStateController; field in WalletActivity 95 mKeyguardStateController = keyguardStateController; in WalletActivity() 137 mKeyguardStateController, in onCreate() 160 if (mKeyguardStateController.isUnlocked()) { in onCreate() 200 mKeyguardStateController.addCallback(mWalletScreenController); in onStart() 269 mKeyguardStateController.removeCallback(mWalletScreenController); in onDestroy()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
H A D | GlobalActionsImpl.java | 32 private final KeyguardStateController mKeyguardStateController; field in GlobalActionsImpl 48 mKeyguardStateController = keyguardStateController; in GlobalActionsImpl() 65 mGlobalActionsDialog.showOrHideDialog(mKeyguardStateController.isShowing(), in showGlobalActions()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardQsUserSwitchController.java | 74 private final KeyguardStateController mKeyguardStateController; field in KeyguardQsUserSwitchController 95 boolean keyguardFadingAway = mKeyguardStateController.isKeyguardFadingAway(); 157 mKeyguardStateController = keyguardStateController; in KeyguardQsUserSwitchController() 216 mKeyguardStateController.addCallback(mKeyguardStateCallback); in onViewAttached() 229 mKeyguardStateController.removeCallback(mKeyguardStateCallback); in onViewDetached() 254 mIsKeyguardShowing = mKeyguardStateController.isShowing() in updateKeyguardShowing() 255 || mKeyguardStateController.isKeyguardGoingAway(); in updateKeyguardShowing()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
H A D | QSCustomizerController.java | 63 private final KeyguardStateController mKeyguardStateController; field in QSCustomizerController 85 if (mKeyguardStateController.isShowing() && !mView.isOpening()) { 115 mKeyguardStateController = keyguardStateController; in QSCustomizerController() 196 mKeyguardStateController.addCallback(mKeyguardCallback); in show() 226 mKeyguardStateController.removeCallback(mKeyguardCallback); in saveInstanceState() 255 mKeyguardStateController.removeCallback(mKeyguardCallback); in hide()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
H A D | QuickAccessWalletTileTest.java | 118 private KeyguardStateController mKeyguardStateController; field in QuickAccessWalletTileTest 162 mKeyguardStateController, in setUp() 273 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testHandleUpdateState_walletIsUpdating() 306 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in testHandleUpdateState_hasCard_deviceLocked_tileInactive() 320 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testHandleUpdateState_hasCard_deviceUnlocked_tileActive() 384 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_hasCards_updateSideViewDrawable() 392 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_notCurrentUser_hasCards_noSideViewDrawable() 414 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_cardDataPayment_updateSideViewDrawable() 422 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_cardDataNonPayment_updateSideViewDrawable()
|