Home
last modified time | relevance | path

Searched refs:authMethod (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/viewmodel/
H A DBouncerViewModelTest.kt67 authMethodsToTest().forEach { authMethod ->
68 utils.authenticationRepository.setAuthenticationMethod(authMethod)
72 if (authMethod.isSecure) {
78 "View-model unexpectedly non-null for auth method $authMethod"
94 collectLastValue(underTest.authMethod)
96 authMethodsToTest().forEach { authMethod ->
97 utils.authenticationRepository.setAuthenticationMethod(authMethod)
98 authMethodViewModel?.let { seen[authMethod] = it }
102 authMethodsToTest().forEach { authMethod ->
103 utils.authenticationRepository.setAuthenticationMethod(authMethod)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scene/
H A DSceneFrameworkIntegrationTest.kt353 authMethod: DomainLayerAuthenticationMethodModel,
358 authenticationRepository.setLockscreenEnabled(authMethod !is AuthenticationMethodModel.None)
359 authenticationRepository.setAuthenticationMethod(authMethod.toDataLayer())
360 if (!authMethod.isSecure) {
448 val authMethod = authenticationInteractor.getAuthenticationMethod() regex
449 assertWithMessage("The authentication method of $authMethod is not secure, cannot lock!")
450 .that(authMethod.isSecure)
485 val authMethodViewModel by collectLastValue(bouncerViewModel.authMethod)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/authentication/data/repository/
H A DAuthenticationRepositoryTest.kt86 val authMethod by collectLastValue(underTest.authenticationMethod) regex
89 assertThat(authMethod).isEqualTo(AuthenticationMethodModel.Pin)
93 assertThat(authMethod).isEqualTo(AuthenticationMethodModel.Pattern)
98 assertThat(authMethod).isEqualTo(AuthenticationMethodModel.None)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/domain/interactor/
H A DBouncerInteractor.kt183 private fun promptMessage(authMethod: AuthenticationMethodModel): String {
184 return when (authMethod) {
195 private fun errorMessage(authMethod: AuthenticationMethodModel): String {
196 return when (authMethod) {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/authentication/domain/interactor/
H A DAuthenticationInteractorTest.kt62 val authMethod by collectLastValue(underTest.authenticationMethod) regex
64 assertThat(authMethod).isEqualTo(DomainLayerAuthenticationMethodModel.Pin)
72 assertThat(authMethod).isEqualTo(DomainLayerAuthenticationMethodModel.Password)
80 val authMethod by collectLastValue(underTest.authenticationMethod) regex
88 assertThat(authMethod).isEqualTo(DomainLayerAuthenticationMethodModel.Swipe)
96 val authMethod by collectLastValue(underTest.authenticationMethod) regex
104 assertThat(authMethod).isEqualTo(DomainLayerAuthenticationMethodModel.None)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/startable/
H A DSceneContainerStartable.kt180 val authMethod = authenticationInteractor.getAuthenticationMethod() regex
183 authMethod == AuthenticationMethodModel.None -> {
191 authMethod.isSecure && isUnlocked -> {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/
H A DAuthenticationInteractor.kt274 val authMethod = getAuthenticationMethod() regex
275 val credential = authMethod.createCredential(input) ?: return null
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/
H A DBouncerViewModel.kt88 val authMethod: StateFlow<AuthMethodBouncerViewModel?> =
/aosp14/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
H A DBouncerScene.kt105 val authMethodViewModel: AuthMethodBouncerViewModel? by viewModel.authMethod.collectAsState()