Home
last modified time | relevance | path

Searched refs:isUnlocked (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/animation/
DFakeDialogTransitionAnimator.kt25 isUnlocked: Boolean = true, in fakeDialogTransitionAnimator()
34 isUnlocked = isUnlocked, in fakeDialogTransitionAnimator()
49 private val isUnlocked: Boolean = true, constant in com.android.systemui.animation.FakeCallback
53 override fun isUnlocked(): Boolean = isUnlocked method in com.android.systemui.animation.FakeCallback
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceUnlockedInteractorTest.kt82 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in deviceUnlockStatus_whenUnlockedAndAuthMethodIsNone_isTrue()
97 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in deviceUnlockStatus_whenUnlockedAndAuthMethodIsPin_isTrue()
113 assertThat(deviceUnlockStatus?.isUnlocked).isFalse() in deviceUnlockStatus_whenUnlockedAndAuthMethodIsSim_isFalse()
123 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in deviceUnlockStatus_whenLockedAndAuthMethodIsNone_isTrue()
133 assertThat(deviceUnlockStatus?.isUnlocked).isFalse() in deviceUnlockStatus_whenLockedAndAuthMethodIsPin_isFalse()
143 assertThat(deviceUnlockStatus?.isUnlocked).isFalse() in deviceUnlockStatus_whenLockedAndAuthMethodIsSim_isFalse()
156 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in deviceUnlockStatus_whenFaceIsAuthenticatedWhileAwakeWithBypass_isTrue()
170 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in deviceUnlockStatus_whenFaceIsAuthenticatedWithoutBypass_providesThatInfo()
185 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in deviceUnlockStatus_whenFingerprintIsAuthenticated_providesThatInfo()
202 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in deviceUnlockStatus_whenUnlockedByTrustAgent_providesThatInfo()
[all …]
DDeviceEntryInteractorTest.kt107 val isUnlocked by collectLastValue(underTest.isUnlocked) in <lambda>() constant
108 assertThat(isUnlocked).isTrue() in <lambda>()
116 val isUnlocked by collectLastValue(underTest.isUnlocked) in <lambda>() constant
117 assertThat(isUnlocked).isTrue() in <lambda>()
130 val isUnlocked by collectLastValue(underTest.isUnlocked) in <lambda>() constant
131 assertThat(isUnlocked).isFalse() in <lambda>()
429 val isUnlocked by collectLastValue(underTest.isUnlocked) in <lambda>() constant
434 assertThat(isUnlocked).isFalse() in <lambda>()
438 assertThat(isUnlocked).isTrue() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/resolver/
DHomeSceneFamilyResolver.kt55 deviceEntryInteractor.isUnlocked,
65 deviceEntryInteractor.isUnlocked.value,
74 isUnlocked: Boolean, in includesScene()
79 !isUnlocked -> Scenes.Lockscreen in includesScene()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDismissibilityCoordinatorTest.kt105 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/src/com/android/systemui/keyguard/ui/viewmodel/
DDeviceEntryIconViewModel.kt210 private val isUnlocked: Flow<Boolean> = in <lambda>() constant
212 deviceEntryInteractor.isUnlocked in <lambda>()
216 .flatMapLatest { isUnlocked -> in <lambda>() method
217 if (!isUnlocked) { in <lambda>()
233 isUnlocked, in <lambda>()
234 ) { isListeningForUdfps, isUnlocked -> in <lambda>() method
236 if (isUnlocked) { in <lambda>()
244 } else if (isUnlocked) { in <lambda>()
DLockscreenSceneViewModel.kt66 deviceEntryInteractor.isUnlocked, in <lambda>()
83 isDeviceUnlocked = deviceEntryInteractor.isUnlocked.value, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceEntryInteractor.kt80 val isUnlocked: StateFlow<Boolean> = in <lambda>() constant
82 .map { it.isUnlocked } in <lambda>()
86 initialValue = deviceUnlockedInteractor.deviceUnlockStatus.value.isUnlocked, in <lambda>()
105 deviceUnlockedInteractor.deviceUnlockStatus.first { it.isUnlocked } in <lambda>()
140 (deviceUnlockStatus.isUnlocked && in <lambda>()
249 return !deviceUnlockedInteractor.deviceUnlockStatus.value.isUnlocked && in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/shared/model/
DDeviceUnlockStatus.kt28 val isUnlocked: Boolean, constant in com.android.systemui.deviceentry.shared.model.DeviceUnlockStatus
32 assert(isUnlocked || deviceUnlockSource == null) { in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/ui/viewmodel/
DOverlayShadeViewModelTest.kt88 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in backgroundScene_authMethodSwipe_lockscreenNotDismissed_goesToLockscreen()
105 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in backgroundScene_authMethodSwipe_lockscreenDismissed_goesToGone()
148 assertThat(deviceUnlockStatus?.isUnlocked).isFalse() in lockDevice()
159 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in unlockDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlActionCoordinatorImplTest.kt125 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
137 `when`(keyguardStateController.isUnlocked()).thenReturn(true) in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
162 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testToggleWhenLockedDoesNotTriggerDialog_featureFlagEnabled()
177 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testToggleDoesNotRunsWhenLockedAndAuthRequired()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DKeyguardStateControllerTest.java188 assertThat(mKeyguardStateController.isUnlocked()).isTrue(); in testIsUnlocked()
192 assertThat(mKeyguardStateController.isUnlocked()).isTrue(); in testIsUnlocked()
197 assertThat(mKeyguardStateController.isUnlocked()).isFalse(); in testIsUnlocked()
202 assertThat(mKeyguardStateController.isUnlocked()).isTrue(); in testIsUnlocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/dagger/
DControlsComponentTest.kt119 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testFeatureEnabledAndCannotShowOnLockScreenVisibility()
129 `when`(keyguardStateController.isUnlocked()).thenReturn(false) in testFeatureEnabledAndCanShowOnLockScreenVisibility()
140 `when`(keyguardStateController.isUnlocked()).thenReturn(true) in testFeatureEnabledAndCanShowWhileUnlockedVisibility()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/startable/
DSceneContainerStartable.kt243 deviceUnlockedInteractor.deviceUnlockStatus.first { it.isUnlocked } in <lambda>()
283 unlockStatus.isUnlocked && in <lambda>()
328 if (!deviceUnlockStatus.isUnlocked) { in <lambda>()
422 val isUnlocked = deviceUnlockedInteractor.deviceUnlockStatus.value.isUnlocked in <lambda>() constant
423 if (isUnlocked && canSwipeToEnter == false) { in <lambda>()
589 .map { !it.isUnlocked } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DQuickAccessWalletTileTest.java284 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testHandleUpdateState_walletIsUpdating()
317 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in testHandleUpdateState_hasCard_deviceLocked_tileInactive()
331 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testHandleUpdateState_hasCard_deviceUnlocked_tileActive()
395 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_hasCards_updateSideViewDrawable()
403 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_notCurrentUser_hasCards_noSideViewDrawable()
425 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_cardDataPayment_updateSideViewDrawable()
433 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in testQueryCards_cardDataNonPayment_updateSideViewDrawable()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/domain/interactor/
DAlternateBouncerInteractorTest.kt93 kosmos.deviceUnlockedInteractor.deviceUnlockStatus.map { it.isUnlocked } in canShowAlternateBouncer_false_dueToTransitionState_scene_container()
155 whenever(kosmos.keyguardStateController.isUnlocked).thenReturn(true) in canShowAlternateBouncerForFingerprint_butCanDismissLockScreen()
239 whenever(kosmos.keyguardStateController.isUnlocked).thenReturn(false) in givenCanShowAlternateBouncer()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/notifications/ui/viewmodel/
DNotificationsShadeSceneViewModelTest.kt118 assertThat(deviceUnlockStatus?.isUnlocked).isFalse() in lockDevice()
129 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in unlockDevice()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/ui/viewmodel/
DQuickSettingsShadeSceneViewModelTest.kt119 assertThat(deviceUnlockStatus?.isUnlocked).isFalse() in lockDevice()
130 assertThat(deviceUnlockStatus?.isUnlocked).isTrue() in unlockDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardStateController.java35 default boolean isUnlocked() { in isUnlocked() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDismissibilityCoordinator.kt41 val isLocked = !keyguardStateController.isUnlocked in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallet/ui/
DWalletScreenControllerTest.java123 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in setUp()
144 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton()
168 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton()
396 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in onCardClicked_deviceLocked_logUnlockEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegateControllerTest.java209 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in setUp()
261 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in connectCarrierNetwork_mergedCarrierEntryCanConnect_connectAndCreateSysUiToast()
295 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in connectCarrierNetwork_mergedCarrierEntryCanConnect_doNothingWhenKeyguardLocked()
309 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in connectCarrierNetwork_mergedCarrierEntryCanConnect_doNothingWhenMobileIsPrimary()
432 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in getSubtitleText_deviceLockedWithWifiOn_returnUnlockToViewNetworks()
570 when(mKeyguardStateController.isUnlocked()).thenReturn(true); in isDeviceLocked_keyguardIsUnlocked_returnFalse()
577 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in isDeviceLocked_keyguardIsLocked_returnTrue()
759 when(mKeyguardStateController.isUnlocked()).thenReturn(false); in onWifiScan_isDeviceLockedTrue_callbackOnWifiScanFalse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/dagger/
DCentralSurfacesDependenciesModule.java242 public boolean isUnlocked() { in provideDialogTransitionAnimator()
243 return keyguardStateController.isUnlocked(); in provideDialogTransitionAnimator()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/
DFakeKeyguardRepository.kt163 fun setKeyguardDismissible(isUnlocked: Boolean) { in setKeyguardDismissible()
164 _isKeyguardUnlocked.value = isUnlocked in setKeyguardDismissible()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/haptics/qs/
DQSLongPressEffectTest.kt66 whenever(kosmos.keyguardStateController.isUnlocked).thenReturn(true) in setup()
192 whenever(kosmos.keyguardStateController.isUnlocked).thenReturn(false) in onAnimationComplete_keyguardNotDismissible_effectEndsWithReset()

123