Home
last modified time | relevance | path

Searched refs:keyguardStateController (Results 1 – 25 of 159) sorted by relevance

1234567

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DKeyguardQsUserSwitchControllerTest.kt54 private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.statusbar.policy.KeyguardQsUserSwitchControllerTest
94 keyguardStateController, in setUp()
106 `when`(keyguardStateController.isShowing).thenReturn(true) in setUp()
107 `when`(keyguardStateController.isKeyguardGoingAway).thenReturn(false) in setUp()
125 `when`(keyguardStateController.isShowing).thenReturn(false) in testAvatarExistsWhenKeyguardGoingAway()
126 `when`(keyguardStateController.isKeyguardGoingAway).thenReturn(true) in testAvatarExistsWhenKeyguardGoingAway()
133 `when`(keyguardStateController.isShowing).thenReturn(true) in testAvatarExistsWhenKeyguardShown()
134 `when`(keyguardStateController.isKeyguardGoingAway).thenReturn(false) in testAvatarExistsWhenKeyguardShown()
141 `when`(keyguardStateController.isShowing).thenReturn(false) in testAvatarGoneWhenKeyguardGone()
142 `when`(keyguardStateController.isKeyguardGoingAway).thenReturn(false) in testAvatarGoneWhenKeyguardGone()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardUnlockAnimationController.kt152 private val keyguardStateController: KeyguardStateController, in <lambda>() constant in com.android.systemui.keyguard.KeyguardUnlockAnimationController
402 keyguardStateController.addCallback(this) in <lambda>()
452 if (keyguardStateController.isKeyguardGoingAway && in <lambda>()
461 if (!keyguardStateController.isKeyguardGoingAway && in <lambda>()
571 if (keyguardStateController.isFlingingToDismissKeyguard) { in <lambda>()
573 } else if (keyguardStateController.isDismissingFromSwipe && in <lambda>()
717 !keyguardStateController.isKeyguardGoingAway) { in <lambda>()
750 if (keyguardStateController.isFlingingToDismissKeyguard) { in <lambda>()
751 setSurfaceBehindAppearAmount(keyguardStateController.dismissAmount) in <lambda>()
752 } else if (keyguardStateController.isDismissingFromSwipe || in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlActionCoordinatorImplTest.kt56 private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.controls.ui.ControlActionCoordinatorImplTest
98 keyguardStateController, in any()
115 `when`(keyguardStateController.isShowing()).thenReturn(false) in testToggleRunsWhenUnlocked()
124 `when`(keyguardStateController.isShowing()).thenReturn(true) in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
125 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
137 `when`(keyguardStateController.isUnlocked()).thenReturn(true) in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
148 `when`(keyguardStateController.isShowing()).thenReturn(true) in testToggleRunsWhenLockedAndAuthNotRequired()
161 `when`(keyguardStateController.isShowing()).thenReturn(true) in testToggleWhenLockedDoesNotTriggerDialog_featureFlagEnabled()
162 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testToggleWhenLockedDoesNotTriggerDialog_featureFlagEnabled()
176 `when`(keyguardStateController.isShowing()).thenReturn(true) in testToggleDoesNotRunsWhenLockedAndAuthRequired()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepository.kt299 private val keyguardStateController: KeyguardStateController, constant
352 keyguardStateController.isShowing, in <lambda>()
359 keyguardStateController.addCallback(callback) in <lambda>()
362 keyguardStateController.isShowing, in <lambda>()
367 awaitClose { keyguardStateController.removeCallback(callback) } in <lambda>()
384 keyguardStateController.isOccluded, in <lambda>()
391 keyguardStateController.addCallback(callback) in <lambda>()
394 keyguardStateController.isOccluded, in <lambda>()
399 awaitClose { keyguardStateController.removeCallback(callback) } in <lambda>()
409 keyguardStateController.isUnlocked, in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepositoryImplTest.kt70 @Mock private lateinit var keyguardStateController: KeyguardStateController in <lambda>() variable in com.android.systemui.keyguard.data.repository.KeyguardRepositoryImplTest
93 keyguardStateController, in <lambda>()
171 whenever(keyguardStateController.isShowing).thenReturn(false) in <lambda>()
180 verify(keyguardStateController, atLeastOnce()).addCallback(captor.capture()) in <lambda>()
182 whenever(keyguardStateController.isShowing).thenReturn(true) in <lambda>()
188 whenever(keyguardStateController.isShowing).thenReturn(false) in <lambda>()
200 whenever(keyguardStateController.isOccluded).thenReturn(false) in <lambda>()
208 verify(keyguardStateController, atLeastOnce()).addCallback(captor.capture()) in <lambda>()
210 whenever(keyguardStateController.isOccluded).thenReturn(true) in <lambda>()
215 whenever(keyguardStateController.isOccluded).thenReturn(false) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DLegacyActivityStarterInternalImplTest.kt92 @Mock private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.statusbar.phone.LegacyActivityStarterInternalImplTest
125 keyguardStateController = keyguardStateController, in setUp()
141 whenever(keyguardStateController.isShowing).thenReturn(true) in startPendingIntentDismissingKeyguard_keyguardShowing_dismissWithAction()
162 whenever(keyguardStateController.isShowing).thenReturn(true) in startPendingIntentMaybeDismissingKeyguard_keyguardShowing_showOverLs_launchAnimator()
195 whenever(keyguardStateController.isShowing).thenReturn(true) in startPendingIntentDismissingKeyguard_fillInIntentAndExtraOptions_sendAndReturnResult()
259 whenever(keyguardStateController.canDismissLockScreen()).thenReturn(true) in dismissKeyguardThenExecute_startWakeAndUnlock()
272 whenever(keyguardStateController.isShowing).thenReturn(true) in dismissKeyguardThenExecute_keyguardIsShowing_dismissWithAction()
289 whenever(keyguardStateController.isShowing).thenReturn(false) in dismissKeyguardThenExecute_awakeDreams()
309 whenever(keyguardStateController.isShowing).thenReturn(false) in executeRunnableDismissingKeyguard_dreaming_notShowing_awakenDreams()
310 whenever(keyguardStateController.isOccluded).thenReturn(false) in executeRunnableDismissingKeyguard_dreaming_notShowing_awakenDreams()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDismissibilityCoordinatorTest.kt47 private val keyguardStateController: KeyguardStateController = mock() constant in com.android.systemui.statusbar.notification.collection.coordinator.DismissibilityCoordinatorTest
54 coordinator = DismissibilityCoordinator(keyguardStateController, dismissibilityProvider) in setUp()
105 whenever(keyguardStateController.isUnlocked).thenReturn(false) in testOngoingNotifWhenPhoneIsLocked()
122 whenever(keyguardStateController.isUnlocked).thenReturn(true) in testOngoingNotifWhenPhoneIsUnLocked()
139 whenever(keyguardStateController.isUnlocked).thenReturn(true) in testOngoingNondismissNotifWhenPhoneIsUnLocked()
157 whenever(keyguardStateController.isUnlocked).thenReturn(true) in testMultipleEntries()
211 whenever(keyguardStateController.isUnlocked).thenReturn(false) in testOngoingEntryInGroupWhenPhoneIsLocked()
231 whenever(keyguardStateController.isUnlocked).thenReturn(true) in testOngoingEntryInGroupWhenPhoneIsUnLocked()
262 whenever(keyguardStateController.isUnlocked).thenReturn(false) in testOngoingEntryInGroupWithoutSummaryWhenPhoneIsLocked()
277 whenever(keyguardStateController.isUnlocked).thenReturn(true) in testOngoingEntryInGroupWithoutSummaryWhenPhoneIsUnLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthRippleControllerTest.kt81 @Mock private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.biometrics.AuthRippleControllerTest
124 keyguardStateController, in setUp()
152 `when`(keyguardStateController.isShowing).thenReturn(true) in testFingerprintTrigger_KeyguardShowing_Ripple()
176 `when`(keyguardStateController.isShowing).thenReturn(false) in testFingerprintTrigger_KeyguardNotShowing_NoRipple()
194 `when`(keyguardStateController.isShowing).thenReturn(true) in testFingerprintTrigger_biometricUnlockNotAllowed_NoRipple()
245 verify(keyguardStateController).addCallback(captor.capture()) in registersAndDeregisters()
250 verify(keyguardStateController).removeCallback(any()) in registersAndDeregisters()
261 `when`(keyguardStateController.isShowing).thenReturn(true) in testAnimatorRunWhenWakeAndUnlock_fingerprint()
269 `when`(keyguardStateController.isKeyguardFadingAway).thenReturn(true) in testAnimatorRunWhenWakeAndUnlock_fingerprint()
282 `when`(keyguardStateController.isShowing).thenReturn(true) in testAnimatorRunWhenWakeAndUnlock_faceUdfpsFingerDown()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLegacyActivityStarterInternalImpl.kt73 private val keyguardStateController: KeyguardStateController, in <lambda>() constant in com.android.systemui.statusbar.phone.LegacyActivityStarterInternalImpl
211 val occluded = (keyguardStateController.isShowing && keyguardStateController.isOccluded) in <lambda>()
358 if (keyguardStateController.isUnlocked || !showOverLockscreenWhenLocked) { in <lambda>()
421 keyguardStateController.canDismissLockScreen() && in <lambda>()
432 if (keyguardStateController.isShowing) { in <lambda>()
460 keyguardStateController.isShowing && keyguardStateController.isOccluded in <lambda>()
573 keyguardStateController.isShowing && in <lambda>()
574 !keyguardStateController.isKeyguardGoingAway in <lambda>()
634 if (keyguardStateController.isOccluded) { in <lambda>()
640 if (showOverLockscreen || !keyguardStateController.isShowing) { in <lambda>()
DKeyguardDismissUtil.java39 public KeyguardDismissUtil(KeyguardStateController keyguardStateController, in KeyguardDismissUtil() argument
42 mKeyguardStateController = keyguardStateController; in KeyguardDismissUtil()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/media/controls/domain/pipeline/interactor/
DMediaControlInteractorKosmos.kt29 import com.android.systemui.statusbar.policy.keyguardStateController
38 keyguardStateController = keyguardStateController, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/domain/interactor/
DMediaControlInteractorTest.kt46 import com.android.systemui.statusbar.policy.keyguardStateController
68 private val keyguardStateController = kosmos.keyguardStateController constant
120 whenever(keyguardStateController.isShowing).thenReturn(true) in startClickIntent_showOverLockscreen()
134 whenever(keyguardStateController.isShowing).thenReturn(false) in startClickIntent_hideOverLockscreen()
149 whenever(keyguardStateController.isShowing).thenReturn(true) in startDeviceIntent_showOverLockscreen()
162 whenever(keyguardStateController.isShowing).thenReturn(true) in startDeviceIntent_intentNotActivity()
175 whenever(keyguardStateController.isShowing).thenReturn(false) in startDeviceIntent_hideOverLockscreen()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/media/controls/domain/pipeline/interactor/factory/
DMediaControlInteractorFactoryKosmos.kt30 import com.android.systemui.statusbar.policy.keyguardStateController
41 keyguardStateController = keyguardStateController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/bouncer/domain/interactor/
DAlternateBouncerInteractorKosmos.kt30 import com.android.systemui.statusbar.policy.keyguardStateController
37 keyguardStateController = keyguardStateController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/qs/
DQSLongPressEffectKosmos.kt21 import com.android.systemui.statusbar.policy.keyguardStateController
24 Kosmos.Fixture { QSLongPressEffect(vibratorHelper, keyguardStateController) } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/dagger/
DControlsComponentTest.kt54 @Mock private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.controls.dagger.ControlsComponentTest
119 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testFeatureEnabledAndCannotShowOnLockScreenVisibility()
129 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testFeatureEnabledAndCanShowOnLockScreenVisibility()
140 `when`(keyguardStateController.isUnlocked()).thenReturn(true) in testFeatureEnabledAndCanShowWhileUnlockedVisibility()
179 keyguardStateController, in setupComponent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCameraToggleTileTest.kt70 private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.qs.tiles.CameraToggleTileTest
96 keyguardStateController, in setUp()
140 keyguardStateController, in testLongClickIntent_safetyCenterEnabled()
161 keyguardStateController, in testLongClickIntent_safetyCenterDisabled()
DMicrophoneToggleTileTest.kt70 private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.qs.tiles.MicrophoneToggleTileTest
97 keyguardStateController, in setUp()
139 keyguardStateController, in testLongClickIntent_safetyCenterEnabled()
160 keyguardStateController, in testLongClickIntent_safetyCenterDisabled()
DLocationTileTest.kt71 private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.qs.tiles.LocationTileTest
97 keyguardStateController, in setUp()
132 `when`(keyguardStateController.isMethodSecure).thenReturn(true) in testClickWhenLockedWillCallOpenPanels()
133 `when`(keyguardStateController.isShowing).thenReturn(true) in testClickWhenLockedWillCallOpenPanels()
DFontScalingTileTest.kt66 @Mock private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.qs.tiles.FontScalingTileTest
100 keyguardStateController, in setUp()
123 `when`(keyguardStateController.isShowing).thenReturn(false) in clickTile_screenUnlocked_showDialogAnimationFromView()
141 `when`(keyguardStateController.isShowing).thenReturn(true) in clickTile_onLockScreen_neverShowDialogAnimationFromView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DTestableControlsActivity.kt33 keyguardStateController: KeyguardStateController
41 keyguardStateController
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DUnfoldKeyguardVisibilityListener.kt23 keyguardStateController: KeyguardStateController,
30 private val delegate = { keyguardStateController.isVisible } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/binder/
DWindowManagerLockscreenVisibilityManagerTest.kt45 @Mock private lateinit var keyguardStateController: KeyguardStateController variable in com.android.systemui.keyguard.ui.binder.WindowManagerLockscreenVisibilityManagerTest
58 keyguardStateController = keyguardStateController, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DVisualInterruptionDecisionProviderTestUtil.kt48 keyguardStateController: KeyguardStateController, in createProviderByFlag()
71 keyguardStateController, in createProviderByFlag()
91 keyguardStateController, in createProviderByFlag()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/fontscaling/domain/interactor/
DFontScalingUserActionInteractorTest.kt60 private val keyguardStateController = FakeKeyguardStateController() constant in com.android.systemui.qs.tiles.impl.fontscaling.domain.interactor.FontScalingUserActionInteractorTest
90 keyguardStateController, in setup()
99 keyguardStateController.isShowing = false in clickTile_screenUnlocked_showDialogAnimationFromView()
118 keyguardStateController.isShowing = true in clickTile_onLockScreen_neverShowDialogAnimationFromView_butShowsDialog()

1234567