Home
last modified time | relevance | path

Searched refs:isAuthenticated (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
DPromptAuthState.kt27 val isAuthenticated: Boolean, constant in com.android.systemui.biometrics.ui.viewmodel.PromptAuthState
36 get() = isAuthenticated && !needsUserConfirmation
40 get() = isAuthenticated && wasConfirmed
44 get() = !isAuthenticated
48 get() = isAuthenticated && authenticatedModality == BiometricModality.Face
52 get() = isAuthenticated && authenticatedModality == BiometricModality.Fingerprint
60 isAuthenticated = isAuthenticated, in asExplicitlyConfirmed()
DPromptIconViewModel.kt141 promptViewModel.isAuthenticated, in <lambda>()
157 authState.isAuthenticated, in <lambda>()
165 promptViewModel.isAuthenticated.distinctUntilChanged(), in <lambda>()
187 promptViewModel.isAuthenticated, in <lambda>()
216 isAuthenticated: Boolean, in <lambda>()
220 if (isAuthenticated) { in <lambda>()
278 if (authState.isAuthenticated && isPendingConfirmation) { in <lambda>()
280 } else if (authState.isAuthenticated) { in <lambda>()
307 } else if (authState.isAuthenticated) { in <lambda>()
334 promptViewModel.isAuthenticated, in <lambda>()
[all …]
DPromptViewModel.kt196 val isAuthenticated: Flow<PromptAuthState> = _isAuthenticated.asStateFlow() in <lambda>() constant
200 isAuthenticated.map { authState -> in <lambda>()
201 authState.isAuthenticated && authState.needsUserConfirmation in <lambda>()
627 isAuthenticated, in <lambda>()
638 isAuthenticated, in <lambda>()
642 size.isNotSmall && authState.isAuthenticated && !showNegativeButton && showConfirmButton in <lambda>()
655 isAuthenticated, in <lambda>()
675 isAuthenticated, in <lambda>()
702 if (_isAuthenticated.value.isAuthenticated) { in <lambda>()
758 val alreadyAuthenticated = _isAuthenticated.value.isAuthenticated in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
DPromptAuthStateTest.kt33 with(PromptAuthState(isAuthenticated = false)) { in notAuthenticated()
44 with(PromptAuthState(isAuthenticated = true)) { in authenticatedByUnknown()
52 with(PromptAuthState(isAuthenticated = true, needsUserConfirmation = true)) { in authenticatedByUnknown()
67 PromptAuthState(isAuthenticated = true, authenticatedModality = BiometricModality.Face) in authenticatedWithFace()
81 isAuthenticated = true, in authenticatedWithFingerprint()
DPromptViewModelTest.kt264 val authenticated by collectLastValue(viewModel.isAuthenticated) in <lambda>()
613 val isAuthenticated by collectLastValue(viewModel.isAuthenticated) in <lambda>() constant
785 val authenticated by collectLastValue(viewModel.isAuthenticated) in <lambda>()
799 assertThat(authenticated?.isAuthenticated).isTrue() in <lambda>()
882 val authenticated by collectLastValue(viewModel.isAuthenticated) in <lambda>()
920 val authenticated by collectLastValue(viewModel.isAuthenticated) in <lambda>()
929 assertThat(authenticated?.isAuthenticated).isTrue() in <lambda>()
954 assertThat(authenticated?.isAuthenticated).isTrue() in <lambda>()
1024 val authenticated by collectLastValue(viewModel.isAuthenticated) in <lambda>()
1029 assertThat(authenticated?.isAuthenticated).isTrue() in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceEntryFaceAuthInteractor.kt39 val isAuthenticated: StateFlow<Boolean> constant
87 fun onAuthenticatedChanged(isAuthenticated: Boolean) in canFaceAuthRun()
DSystemUIDeviceEntryFaceAuthInteractor.kt286 override val isAuthenticated: StateFlow<Boolean> = repository.isAuthenticated in <lambda>() constant in com.android.systemui.deviceentry.domain.interactor.SystemUIDeviceEntryFaceAuthInteractor
327 repository.isAuthenticated in <lambda>()
329 .onEach { (isAuthenticated, userInfo) -> in <lambda>() method
330 if (!isAuthenticated) { in <lambda>()
335 .onEach { (isAuthenticated, _) -> in <lambda>() method
336 listeners.forEach { it.onAuthenticatedChanged(isAuthenticated) } in <lambda>()
DNoopDeviceEntryFaceAuthInteractor.kt40 override val isAuthenticated: StateFlow<Boolean> = MutableStateFlow(false) constant in com.android.systemui.deviceentry.domain.interactor.NoopDeviceEntryFaceAuthInteractor
DDeviceUnlockedInteractor.kt57 faceAuthInteractor.isAuthenticated in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/data/repository/
DNoopDeviceEntryFaceAuthRepository.kt38 override val isAuthenticated: StateFlow<Boolean> = MutableStateFlow(false) constant in com.android.systemui.deviceentry.data.repository.NoopDeviceEntryFaceAuthRepository
DDeviceEntryFaceAuthRepository.kt98 val isAuthenticated: StateFlow<Boolean> in <lambda>() constant
207 override val isAuthenticated: StateFlow<Boolean> = _isAuthenticated constant
265 Pair(isAuthenticated.isFalse(), "faceNotAuthenticated"),
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceEntryFaceAuthInteractorTest.kt486 faceAuthRepository.isAuthenticated.value = true in whenIsAuthenticatedFalse_clearFaceBiometrics()
491 faceAuthRepository.isAuthenticated.value = false in whenIsAuthenticatedFalse_clearFaceBiometrics()
547 assertThat(underTest.isAuthenticated) in authenticated_providesSameValueFromRepository()
548 .isSameInstanceAs(faceAuthRepository.isAuthenticated) in authenticated_providesSameValueFromRepository()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceUnlockedInteractorTest.kt152 kosmos.fakeDeviceEntryFaceAuthRepository.isAuthenticated.value = true in deviceUnlockStatus_whenFaceIsAuthenticatedWhileAwakeWithBypass_isTrue()
166 kosmos.fakeDeviceEntryFaceAuthRepository.isAuthenticated.value = true in deviceUnlockStatus_whenFaceIsAuthenticatedWithoutBypass_providesThatInfo()
DDeviceEntryInteractorTest.kt248 faceAuthRepository.isAuthenticated.value = false in <lambda>()
264 faceAuthRepository.isAuthenticated.value = true in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/
DFakeDeviceEntryFaceAuthRepository.kt35 override val isAuthenticated = MutableStateFlow(false) constant in com.android.systemui.keyguard.data.repository.FakeDeviceEntryFaceAuthRepository
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DBiometricViewBinder.kt271 combine(viewModel.isAuthenticated, viewModel.size) { (authenticated, _), size -> in <lambda>()
374 viewModel.isAuthenticated.collect { authState -> in <lambda>()
377 if (authState.isAuthenticated) { in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java310 when(mFaceAuthInteractor.isAuthenticated()).thenReturn(MutableStateFlow(false)); in setup()
1088 when(mFaceAuthInteractor.isAuthenticated()).thenReturn(MutableStateFlow(true)); in testGetUserCanSkipBouncer_whenFace()
1099 when(mFaceAuthInteractor.isAuthenticated()).thenReturn(MutableStateFlow(true)); in testGetUserCanSkipBouncer_whenFace_nonStrongAndDisallowed()
1483 when(mFaceAuthInteractor.isAuthenticated()).thenReturn(MutableStateFlow(true)); in testShouldNotListenForUdfps_whenFaceAuthenticated()
1537 when(mFaceAuthInteractor.isAuthenticated()).thenReturn(MutableStateFlow(true)); in testFingerprintCanAuth_whenCancellationNotReceivedAndAuthFailed()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/startable/
DSceneContainerStartableTest.kt324 faceAuthRepository.isAuthenticated.value = true in <lambda>()
366 faceAuthRepository.isAuthenticated.value = true in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java1310 public void onAuthenticatedChanged(boolean isAuthenticated) {
1311 if (!isAuthenticated) {
1388 && getFaceAuthInteractor().isAuthenticated().getValue(); in getIsFaceAuthenticated()
1431 && getFaceAuthInteractor().isAuthenticated().getValue(); in isCurrentUserUnlockedWithFace()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/data/repository/
DDeviceEntryFaceAuthRepositoryTest.kt1212 authenticated = collectLastValue(underTest.isAuthenticated) in initCollectors()