/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerTest.java | 52 private KeyguardStateController mKeyguardStateController; field in KeyguardStateControllerTest 59 mKeyguardStateController = new KeyguardStateControllerImpl(mContext, in setup() 70 assertThat(mKeyguardStateController.isShowing()).isFalse(); in testIsShowing() 71 mKeyguardStateController.notifyKeyguardState(true /* showing */, false /* occluded */); in testIsShowing() 72 assertThat(mKeyguardStateController.isShowing()).isTrue(); in testIsShowing() 77 assertThat(mKeyguardStateController.isMethodSecure()).isFalse(); in testIsMethodSecure() 80 ((KeyguardStateControllerImpl) mKeyguardStateController).update(false /* alwaysUpdate */); in testIsMethodSecure() 81 assertThat(mKeyguardStateController.isMethodSecure()).isTrue(); in testIsMethodSecure() 86 assertThat(mKeyguardStateController.isOccluded()).isFalse(); in testIsOccluded() 87 mKeyguardStateController.notifyKeyguardState(false /* showing */, true /* occluded */); in testIsOccluded() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | DynamicPrivacyControllerTest.java | 54 private KeyguardStateController mKeyguardStateController = mock(KeyguardStateController.class); field in DynamicPrivacyControllerTest 58 when(mKeyguardStateController.isShowing()).thenReturn(true); in setUp() 60 mLockScreenUserManager, mKeyguardStateController, in setUp() 72 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in testDynamicFalseWhenCannotSkipBouncer() 80 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in testDynamicTrueWhenCanSkipBouncer() 87 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in testNotifiedWhenEnabled() 95 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() 96 when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() 99 when(mKeyguardStateController.isKeyguardFadingAway()).thenReturn(true); in testNotifiedWhenKeyguardFadingAwayChanges() 104 when(mKeyguardStateController.isKeyguardFadingAway()).thenReturn(false); in testNotifiedWhenKeyguardFadingAwayChanges() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | DynamicPrivacyController.java | 39 private final KeyguardStateController mKeyguardStateController; field in DynamicPrivacyController 54 mKeyguardStateController = keyguardStateController; in DynamicPrivacyController() 55 mKeyguardStateController.addCallback(this); in DynamicPrivacyController() 88 return (mKeyguardStateController.canDismissLockScreen() in isDynamicallyUnlocked() 89 || mKeyguardStateController.isKeyguardGoingAway() in isDynamicallyUnlocked() 90 || mKeyguardStateController.isKeyguardFadingAway()) in isDynamicallyUnlocked() 103 if (!isStatusBarKeyguardShowing() || !mKeyguardStateController.isMethodSecure()) { in isInLockedDownShade()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardVisibilityHelper.java | 41 private final KeyguardStateController mKeyguardStateController; field in KeyguardVisibilityHelper 55 mKeyguardStateController = keyguardStateController; in KeyguardVisibilityHelper() 74 boolean isOccluded = mKeyguardStateController.isOccluded(); in setViewVisibility() 88 .setStartDelay(mKeyguardStateController.getKeyguardFadingAwayDelay()) in setViewVisibility() 89 .setDuration(mKeyguardStateController.getShortenedFadingAwayDuration()) in setViewVisibility()
|
D | KeyguardStatusViewController.java | 55 private final KeyguardStateController mKeyguardStateController; field in KeyguardStatusViewController 77 mKeyguardStateController = keyguardStateController; in KeyguardStatusViewController() 93 mKeyguardStateController.addCallback(mKeyguardStateControllerCallback); in onViewAttached() 100 mKeyguardStateController.removeCallback(mKeyguardStateControllerCallback); in onViewDetached() 276 if (mKeyguardStateController.isShowing()) {
|
D | LockIconViewController.java | 87 @NonNull private final KeyguardStateController mKeyguardStateController; field in LockIconViewController 145 mKeyguardStateController = keyguardStateController; in LockIconViewController() 186 mCanDismissLockScreen = mKeyguardStateController.canDismissLockScreen(); in onViewAttached() 194 mKeyguardStateController.addCallback(mKeyguardStateCallback); in onViewAttached() 204 mKeyguardStateController.removeCallback(mKeyguardStateCallback); in onViewDetached() 303 mIsKeyguardShowing = mKeyguardStateController.isShowing() in updateKeyguardShowing() 304 && !mKeyguardStateController.isKeyguardGoingAway(); in updateKeyguardShowing() 421 mCanDismissLockScreen = mKeyguardStateController.canDismissLockScreen(); 431 mCanDismissLockScreen = mKeyguardStateController.canDismissLockScreen();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
D | WalletActivity.java | 64 private final KeyguardStateController mKeyguardStateController; field in WalletActivity 94 mKeyguardStateController = keyguardStateController; in WalletActivity() 136 mKeyguardStateController, in onCreate() 155 if (!mKeyguardStateController.isUnlocked() in onCreate() 160 if (mKeyguardStateController.isUnlocked()) { in onCreate() 200 mKeyguardStateController.addCallback(mWalletScreenController); in onStart() 263 mKeyguardStateController.removeCallback(mWalletScreenController); in onDestroy()
|
D | WalletScreenController.java | 72 private final KeyguardStateController mKeyguardStateController; field in WalletScreenController 102 mKeyguardStateController = keyguardStateController; in WalletScreenController() 150 !mKeyguardStateController.isUnlocked(), in onWalletCardsRetrieved() 211 if (!mKeyguardStateController.isUnlocked() in onCardClicked() 221 if (!mKeyguardStateController.isUnlocked()) { in onCardClicked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | KeyguardCoordinator.java | 59 private final KeyguardStateController mKeyguardStateController; field in KeyguardCoordinator 80 mKeyguardStateController = keyguardStateController; in KeyguardCoordinator() 102 if (mKeyguardStateController.isShowing()) { 162 mKeyguardStateController.addCallback(mKeyguardCallback); in setupInvalidateNotifListCallbacks() 174 if (mKeyguardStateController.isShowing()) { in setupInvalidateNotifListCallbacks() 208 if (mKeyguardStateController.isShowing()) { in setupInvalidateNotifListCallbacks()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
D | QSCustomizerController.java | 62 private final KeyguardStateController mKeyguardStateController; field in QSCustomizerController 84 if (mKeyguardStateController.isShowing() && !mView.isOpening()) { 114 mKeyguardStateController = keyguardStateController; in QSCustomizerController() 195 mKeyguardStateController.addCallback(mKeyguardCallback); in show() 225 mKeyguardStateController.removeCallback(mKeyguardCallback); in saveInstanceState() 254 mKeyguardStateController.removeCallback(mKeyguardCallback); in hide()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | BrightLineFalsingManagerTest.java | 66 private KeyguardStateController mKeyguardStateController; field in BrightLineFalsingManagerTest 84 when(mKeyguardStateController.isShowing()).thenReturn(true); in setup() 87 mHistoryTracker, mKeyguardStateController, mAccessibilityManager, in setup()
|
D | FalsingCollectorImplTest.java | 72 private KeyguardStateController mKeyguardStateController; field in FalsingCollectorImplTest 84 when(mKeyguardStateController.isShowing()).thenReturn(true); in setUp() 88 mStatusBarStateController, mKeyguardStateController, mBatteryController, in setUp() 206 when(mKeyguardStateController.isShowing()).thenReturn(false); in testAvoidUnlocked()
|
D | BrightLineClassifierTest.java | 78 private KeyguardStateController mKeyguardStateController; field in BrightLineClassifierTest 102 when(mKeyguardStateController.isShowing()).thenReturn(true); in setup() 105 mHistoryTracker, mKeyguardStateController, mAccessibilityManager, in setup() 270 when(mKeyguardStateController.isShowing()).thenReturn(false); in testNoFalsingUnlocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | CollapsedStatusBarFragment.java | 79 private final KeyguardStateController mKeyguardStateController; field in CollapsedStatusBarFragment 135 mKeyguardStateController = keyguardStateController; in CollapsedStatusBarFragment() 280 if (!mKeyguardStateController.isLaunchTransitionFadingAway() in adjustDisableFlags() 281 && !mKeyguardStateController.isKeyguardFadingAway() in adjustDisableFlags() 388 if (!mStatusBar.isClosed() && !mKeyguardStateController.isShowing() in clockHiddenMode() 465 if (mKeyguardStateController.isKeyguardFadingAway()) { in animateShow() 467 .setDuration(mKeyguardStateController.getKeyguardFadingAwayDuration()) in animateShow() 469 .setStartDelay(mKeyguardStateController.getKeyguardFadingAwayDelay()) in animateShow()
|
D | LightBarTransitionsController.java | 49 private final KeyguardStateController mKeyguardStateController; field in LightBarTransitionsController 77 mKeyguardStateController = Dependency.get(KeyguardStateController.class); in LightBarTransitionsController() 105 if (mDisplayId != displayId || mKeyguardStateController.isKeyguardGoingAway() && !forced) { in appTransitionPending() 127 if (mDisplayId != displayId || mKeyguardStateController.isKeyguardGoingAway() && !forced) { in appTransitionStarting()
|
D | KeyguardBypassController.kt | 41 private val mKeyguardStateController: KeyguardStateController constant in com.android.systemui.statusbar.phone.KeyguardBypassController 85 return enabled && mKeyguardStateController.isFaceAuthEnabled in isBypassEnabled() 110 this.mKeyguardStateController = keyguardStateController
|
D | StatusBarKeyguardViewManager.java | 208 private final KeyguardStateController mKeyguardStateController; field in StatusBarKeyguardViewManager 253 mKeyguardStateController = keyguardStateController; in StatusBarKeyguardViewManager() 358 && !mKeyguardStateController.canDismissLockScreen() in onPanelExpansionChanged() 385 mKeyguardStateController.notifyKeyguardState(mShowing, in show() 386 mKeyguardStateController.isOccluded()); in show() 689 mKeyguardStateController.notifyKeyguardState(mShowing, in hide() 690 mKeyguardStateController.isOccluded()); in hide() 700 || mKeyguardStateController.isFlingingToDismissKeyguard()) { in hide() 702 mKeyguardStateController.isFlingingToDismissKeyguard(); in hide() 922 if (mKeyguardStateController.isKeyguardFadingAway()) { in getNavBarShowDelay() [all …]
|
D | KeyguardBouncer.java | 73 private final KeyguardStateController mKeyguardStateController; field in KeyguardBouncer 121 mKeyguardStateController = keyguardStateController; in KeyguardBouncer() 188 if (mKeyguardStateController.isFaceAuthEnabled() && !needsFullscreenBouncer() in show() 631 private final KeyguardStateController mKeyguardStateController; field in KeyguardBouncer.Factory 650 mKeyguardStateController = keyguardStateController; in Factory() 662 mKeyguardStateController, mKeyguardUpdateMonitor, in create()
|
D | StatusBarRemoteInputCallback.java | 63 private final KeyguardStateController mKeyguardStateController; field in StatusBarRemoteInputCallback 103 mKeyguardStateController = keyguardStateController; in StatusBarRemoteInputCallback() 121 && mKeyguardStateController.isUnlocked()) { in onStateChanged() 189 if (!deferBouncer && mKeyguardStateController.isShowing()) { in onMakeExpandedVisibleForRemoteInput()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | QuickAccessWalletTileTest.java | 115 private KeyguardStateController mKeyguardStateController; field in QuickAccessWalletTileTest 157 mKeyguardStateController, in setUp() 225 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in testHandleClick_hasCards_deviceLocked_startWalletActivity() 242 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testHandleClick_hasCards_deviceUnlocked_startWalletActivity() 295 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testHandleUpdateState_walletIsUpdating() 330 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in testHandleUpdateState_hasCard_deviceLocked_tileInactive() 346 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testHandleUpdateState_hasCard_deviceUnlocked_tileActive() 412 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_hasCards_updateSideViewDrawable()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | KeyguardCoordinatorTest.java | 67 @Mock private KeyguardStateController mKeyguardStateController; field in KeyguardCoordinatorTest 82 mContext, mMainHandler, mKeyguardStateController, mLockscreenUserManager, in setup() 109 when(mKeyguardStateController.isShowing()).thenReturn(false); in keyguardNotShowing() 230 when(mKeyguardStateController.isShowing()).thenReturn(true); in setupUnfilteredState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | HeadsUpAppearanceControllerTest.java | 68 private KeyguardStateController mKeyguardStateController; field in HeadsUpAppearanceControllerTest 87 mKeyguardStateController = mock(KeyguardStateController.class); in setUp() 95 mKeyguardStateController, in setUp() 174 mKeyguardStateController, in testHeaderReadFromOldController()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | UdfpsControllerTest.java | 141 private KeyguardStateController mKeyguardStateController; field in UdfpsControllerTest 228 mKeyguardStateController, in setUp() 262 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in onActionDownTouch_whenCanDismissLockScreen_entersDevice() 284 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in onActionMove_dozing_setDeviceEntryIntent() 307 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in onActionMove_onKeyguard_setDeviceEntryIntent() 330 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(false); in onActionMove_onEnrollment_neverSetDeviceEntryIntent() 353 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in onActionMoveTouch_whenCanDismissLockScreen_entersDevice() 375 when(mKeyguardStateController.canDismissLockScreen()).thenReturn(true); in onMultipleTouch_whenCanDismissLockScreen_entersDeviceOnce()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardStatusViewControllerTest.java | 51 private KeyguardStateController mKeyguardStateController; field in KeyguardStatusViewControllerTest 77 mKeyguardStateController, in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialog.java | 104 private final KeyguardStateController mKeyguardStateController; field in GlobalActionsDialog 121 boolean unlocked = mKeyguardStateController.isUnlocked(); 210 mKeyguardStateController = keyguardStateController; in GlobalActionsDialog() 217 mKeyguardStateController.addCallback(mKeyguardStateControllerListener); in GlobalActionsDialog() 230 mKeyguardStateController.removeCallback(mKeyguardStateControllerListener); in destroy() 286 return mWalletPlugin.onPanelShown(this, !mKeyguardStateController.isUnlocked()); in getWalletViewController() 586 return !mKeyguardStateController.isUnlocked() in isWalletAvailableAfterUnlock()
|