Home
last modified time | relevance | path

Searched refs:AuthenticationMethodModel (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/shared/model/
DAuthenticationMethodModel.kt20 sealed class AuthenticationMethodModel( class
33 data object None : AuthenticationMethodModel(isSecure = false)
35 data object Pin : AuthenticationMethodModel(isSecure = true)
37 data object Password : AuthenticationMethodModel(isSecure = true)
39 data object Pattern : AuthenticationMethodModel(isSecure = true)
41 data object Sim : AuthenticationMethodModel(isSecure = true)
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/shared/model/
DBouncerMessageStrings.kt19 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel
20 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Password
21 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pattern
22 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pin
37 securityMode: AuthenticationMethodModel, in defaultMessage()
49 securityMode: AuthenticationMethodModel, in incorrectSecurityInput()
65 fun incorrectFingerprintInput(securityMode: AuthenticationMethodModel): BouncerMessagePair { in incorrectFingerprintInput()
76 securityMode: AuthenticationMethodModel, in incorrectFaceInput()
92 securityMode: AuthenticationMethodModel in incorrectFaceInputWithFingerprintAllowed()
103 fun authRequiredAfterReboot(securityMode: AuthenticationMethodModel): BouncerMessagePair { in authRequiredAfterReboot()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/authentication/data/repository/
DFakeAuthenticationRepository.kt24 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
56 MutableStateFlow<AuthenticationMethodModel>(DEFAULT_AUTHENTICATION_METHOD) in <lambda>()
57 override val authenticationMethod: StateFlow<AuthenticationMethodModel> = in <lambda>()
75 override suspend fun getAuthenticationMethod(): AuthenticationMethodModel { in <lambda>()
79 fun setAuthenticationMethod(authenticationMethod: AuthenticationMethodModel) { in <lambda>()
191 val DEFAULT_AUTHENTICATION_METHOD = AuthenticationMethodModel.Pin in <lambda>()
211 private fun AuthenticationMethodModel.toSecurityMode(): SecurityMode { in <lambda>() method
213 is AuthenticationMethodModel.Pin -> SecurityMode.PIN in <lambda>()
214 is AuthenticationMethodModel.Password -> SecurityMode.Password in <lambda>()
215 is AuthenticationMethodModel.Pattern -> SecurityMode.Pattern in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/data/repository/
DAuthenticationRepository.kt28 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
29 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.None in <lambda>()
30 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Password in <lambda>()
31 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pattern in <lambda>()
32 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pin in <lambda>()
33 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Sim in <lambda>()
120 val authenticationMethod: Flow<AuthenticationMethodModel> in <lambda>()
149 suspend fun getAuthenticationMethod(): AuthenticationMethodModel in <lambda>()
212 override val authenticationMethod: Flow<AuthenticationMethodModel> =
281 override suspend fun getAuthenticationMethod(): AuthenticationMethodModel = in getAuthenticationMethod()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/authentication/data/repository/
DAuthenticationRepositoryTest.kt29 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel
104 assertThat(authMethod).isEqualTo(AuthenticationMethodModel.Pin) in authenticationMethod()
105 assertThat(underTest.getAuthenticationMethod()).isEqualTo(AuthenticationMethodModel.Pin) in authenticationMethod()
108 assertThat(authMethod).isEqualTo(AuthenticationMethodModel.Pattern) in authenticationMethod()
110 .isEqualTo(AuthenticationMethodModel.Pattern) in authenticationMethod()
113 assertThat(authMethod).isEqualTo(AuthenticationMethodModel.None) in authenticationMethod()
115 .isEqualTo(AuthenticationMethodModel.None) in authenticationMethod()
119 assertThat(authMethod).isEqualTo(AuthenticationMethodModel.Sim) in authenticationMethod()
120 assertThat(underTest.getAuthenticationMethod()).isEqualTo(AuthenticationMethodModel.Sim) in authenticationMethod()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceEntryInteractorTest.kt28 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
102 AuthenticationMethodModel.None in <lambda>()
124 AuthenticationMethodModel.Sim in <lambda>()
186 AuthenticationMethodModel.Pattern in <lambda>()
211 AuthenticationMethodModel.Pin in <lambda>()
233 kosmos.fakeAuthenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.None) in <lambda>()
242 AuthenticationMethodModel.Password in <lambda>()
259 AuthenticationMethodModel.Password in <lambda>()
276 AuthenticationMethodModel.Password in <lambda>()
287 AuthenticationMethodModel.None in <lambda>()
[all …]
DDeviceUnlockedInteractorTest.kt25 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel
80 authenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.None) in deviceUnlockStatus_whenUnlockedAndAuthMethodIsNone_isTrue()
91 authenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.Pin) in deviceUnlockStatus_whenUnlockedAndAuthMethodIsPin_isTrue()
107 authenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.Sim) in deviceUnlockStatus_whenUnlockedAndAuthMethodIsSim_isFalse()
121 authenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.None) in deviceUnlockStatus_whenLockedAndAuthMethodIsNone_isTrue()
131 authenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.Pin) in deviceUnlockStatus_whenLockedAndAuthMethodIsPin_isFalse()
141 authenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.Sim) in deviceUnlockStatus_whenLockedAndAuthMethodIsSim_isFalse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/
DAuthenticationInteractor.kt25 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
26 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Password in <lambda>()
27 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pattern in <lambda>()
28 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pin in <lambda>()
89 val authenticationMethod: Flow<AuthenticationMethodModel> = repository.authenticationMethod in <lambda>()
259 authenticationMethod: AuthenticationMethodModel, in <lambda>()
277 private suspend fun AuthenticationMethodModel.isInputTooShort(inputLength: Int): Boolean { in <lambda>()
312 private fun AuthenticationMethodModel.createCredential( in <lambda>() method
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/ui/viewmodel/
DBouncerViewModelTest.kt29 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
30 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.None in <lambda>()
31 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Password in <lambda>()
32 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pattern in <lambda>()
33 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pin in <lambda>()
34 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Sim in <lambda>()
108 val seen = mutableMapOf<AuthenticationMethodModel, AuthMethodBouncerViewModel>() in <lambda>()
148 .isEqualTo(AuthenticationMethodModel::class.sealedSubclasses.toSet()) in <lambda>()
221 private fun authMethodsToTest(): List<AuthenticationMethodModel> { in <lambda>()
DPinBouncerViewModelTest.kt32 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
77 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
92 assertThat(underTest.authenticationMethod).isEqualTo(AuthenticationMethodModel.Pin) in <lambda>()
105 authenticationMethod = AuthenticationMethodModel.Sim, in <lambda>()
134 authenticationMethod = AuthenticationMethodModel.Sim, in <lambda>()
332 AuthenticationMethodModel.Pin in <lambda>()
343 AuthenticationMethodModel.Pin in <lambda>()
355 AuthenticationMethodModel.Pin in <lambda>()
370 AuthenticationMethodModel.Pin in <lambda>()
381 AuthenticationMethodModel.Pin in <lambda>()
[all …]
DAuthMethodBouncerViewModelTest.kt24 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
50 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
60 AuthenticationMethodModel.Pin in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/
DSceneFrameworkIntegrationTest.kt36 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
266 setAuthMethod(AuthenticationMethodModel.None, enableLockscreen = true) in <lambda>()
281 setAuthMethod(AuthenticationMethodModel.None, enableLockscreen = true) in <lambda>()
303 setAuthMethod(AuthenticationMethodModel.None, enableLockscreen = true) in <lambda>()
327 setAuthMethod(AuthenticationMethodModel.None, enableLockscreen = false) in <lambda>()
338 setAuthMethod(AuthenticationMethodModel.None, enableLockscreen = true) in <lambda>()
395 setAuthMethod(AuthenticationMethodModel.Password) in <lambda>()
413 setAuthMethod(AuthenticationMethodModel.Password) in <lambda>()
432 setAuthMethod(AuthenticationMethodModel.Password) in <lambda>()
452 setAuthMethod(AuthenticationMethodModel.None) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/domain/interactor/
DBouncerInteractorTest.kt27 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
81 AuthenticationMethodModel.Sim in <lambda>()
99 AuthenticationMethodModel.Pin in <lambda>()
132 AuthenticationMethodModel.Pin in <lambda>()
154 AuthenticationMethodModel.Password in <lambda>()
189 AuthenticationMethodModel.Pattern in <lambda>()
231 AuthenticationMethodModel.Pin in <lambda>()
DBouncerActionButtonInteractorTest.kt29 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel
147 AuthenticationMethodModel.Pin in noCall_secureAuthMethod_emergencyCallButton()
179 AuthenticationMethodModel.None in noCall_insecureAuthMethodButSecureSim_emergencyCallButton()
197 AuthenticationMethodModel.None in noCall_insecure_noButton()
213 AuthenticationMethodModel.None in noCall_simSecureButEmergencyNotSupported_noButton()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/
DPinBouncerViewModel.kt31 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
54 authenticationMethod: AuthenticationMethodModel, in <lambda>()
66 val isSimAreaVisible = authenticationMethod == AuthenticationMethodModel.Sim in <lambda>()
114 override val authenticationMethod: AuthenticationMethodModel = authenticationMethod in <lambda>()
165 if (authenticationMethod == AuthenticationMethodModel.Sim) { in <lambda>()
DAuthMethodBouncerViewModel.kt21 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel
50 abstract val authenticationMethod: AuthenticationMethodModel
DBouncerViewModel.kt33 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
248 authenticationMethod: AuthenticationMethodModel, in <lambda>()
261 is AuthenticationMethodModel.Pin -> in <lambda>()
271 is AuthenticationMethodModel.Sim -> in <lambda>()
281 is AuthenticationMethodModel.Password -> in <lambda>()
290 is AuthenticationMethodModel.Pattern -> in <lambda>()
DPasswordBouncerViewModel.kt20 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
58 override val authenticationMethod = AuthenticationMethodModel.Password in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/startable/
DSceneContainerStartableTest.kt31 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
123 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
179 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
231 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
247 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
268 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
298 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
336 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
392 authenticationMethod = AuthenticationMethodModel.Pin, in <lambda>()
508 authenticationMethod = AuthenticationMethodModel.None, in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/notifications/ui/viewmodel/
DNotificationsShadeSceneViewModelTest.kt25 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel
89 AuthenticationMethodModel.None in upTransitionSceneKey_authMethodSwipe_lockscreenNotDismissed_goesToLockscreen()
104 AuthenticationMethodModel.None in upTransitionSceneKey_authMethodSwipe_lockscreenDismissed_goesToGone()
117 kosmos.fakeAuthenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.Pin) in lockDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/domain/interactor/
DBouncerInteractor.kt24 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Password in <lambda>()
25 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pattern in <lambda>()
26 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Pin in <lambda>()
27 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel.Sim in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/ui/viewmodel/
DQuickSettingsShadeSceneViewModelTest.kt25 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel
91 AuthenticationMethodModel.None in upTransitionSceneKey_authMethodSwipe_lockscreenNotDismissed_goesToLockscreen()
106 AuthenticationMethodModel.None in upTransitionSceneKey_authMethodSwipe_lockscreenDismissed_goesToGone()
118 kosmos.fakeAuthenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.Pin) in lockDevice()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/ui/viewmodel/
DOverlayShadeViewModelTest.kt24 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel
86 AuthenticationMethodModel.None in backgroundScene_authMethodSwipe_lockscreenNotDismissed_goesToLockscreen()
103 AuthenticationMethodModel.None in backgroundScene_authMethodSwipe_lockscreenDismissed_goesToGone()
147 kosmos.fakeAuthenticationRepository.setAuthenticationMethod(AuthenticationMethodModel.Pin) in lockDevice()
DShadeSceneViewModelTest.kt28 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
118 AuthenticationMethodModel.Pin in <lambda>()
132 AuthenticationMethodModel.Pin in <lambda>()
148 AuthenticationMethodModel.None in <lambda>()
164 AuthenticationMethodModel.None in <lambda>()
200 AuthenticationMethodModel.Pin in <lambda>()
213 AuthenticationMethodModel.Pin in <lambda>()
225 AuthenticationMethodModel.Pin in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceUnlockedInteractor.kt20 import com.android.systemui.authentication.shared.model.AuthenticationMethodModel in <lambda>()
89 } else if (authMethod == AuthenticationMethodModel.Sim) { in <lambda>()

12