Home
last modified time | relevance | path

Searched refs:PromptKind (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
DPromptSelectorInteractor.kt32 import com.android.systemui.biometrics.shared.model.PromptKind in <lambda>()
58 val promptKind: StateFlow<PromptKind> in <lambda>()
68 val credentialKind: Flow<PromptKind> in <lambda>()
126 is PromptKind.Biometric -> in kind()
138 override val promptKind: StateFlow<PromptKind> = promptRepository.promptKind
148 override val credentialKind: Flow<PromptKind> =
153 PromptKind.None in isAllowed()
162 (promptRepository.promptKind.value as PromptKind.Biometric).activeModalities in onSwitchToCredential()
196 var kind: PromptKind = PromptKind.None in setPrompt()
209 PromptKind.Biometric.PaneType.ONE_PANE_LARGE_SCREEN_LANDSCAPE in setPrompt()
[all …]
DPromptCredentialInteractor.kt25 import com.android.systemui.biometrics.shared.model.PromptKind in <lambda>()
76 PromptKind.Pin -> in <lambda>()
86 PromptKind.Pattern -> in <lambda>()
97 PromptKind.Password -> in <lambda>()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/shared/model/
DPromptKind.kt19 sealed interface PromptKind { interface
20 object None : PromptKind
26 ) : PromptKind {
35 data object Pin : PromptKind
36 data object Pattern : PromptKind
37 data object Password : PromptKind
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
DPromptSelectorInteractorImplTest.kt36 import com.android.systemui.biometrics.shared.model.PromptKind in <lambda>()
198 assertThat(credentialKind).isSameInstanceAs(PromptKind.Password) in <lambda>()
201 assertThat(credentialKind).isEqualTo(PromptKind.None) in <lambda>()
211 fun usePinCredentialAndReset() = testScope.runTest { useCredentialAndReset(PromptKind.Pin) } in <lambda>()
215 testScope.runTest { useCredentialAndReset(PromptKind.Pattern) } in <lambda>()
219 testScope.runTest { useCredentialAndReset(PromptKind.Password) } in <lambda>()
227 assertThat(promptKind).isEqualTo(PromptKind.None) in <lambda>()
245 assertThat(promptKind).isEqualTo(PromptKind.None) in <lambda>()
263 assertThat(promptKind).isEqualTo(PromptKind.None) in <lambda>()
279 assertThat(promptKind).isEqualTo(PromptKind.None) in <lambda>()
[all …]
DPromptCredentialInteractorTest.kt14 import com.android.systemui.biometrics.shared.model.PromptKind in <lambda>()
114 kind = PromptKind.Pin, in <lambda>()
140 kind = PromptKind.Pin, in <lambda>()
169 kind = PromptKind.Pin, in <lambda>()
178 @Test fun usePinCredentialForPrompt() = useCredentialForPrompt(PromptKind.Pin) in <lambda>()
180 @Test fun usePasswordCredentialForPrompt() = useCredentialForPrompt(PromptKind.Password) in <lambda>()
182 @Test fun usePatternCredentialForPrompt() = useCredentialForPrompt(PromptKind.Pattern) in <lambda>()
184 private fun useCredentialForPrompt(kind: PromptKind) = in <lambda>()
219 PromptKind.Pin -> BiometricPromptRequest.Credential.Pin::class.java in <lambda>()
220 PromptKind.Password -> in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
DCredentialViewModelTest.kt11 import com.android.systemui.biometrics.shared.model.PromptKind in <lambda>()
48 @Test fun setsPinInputFlags() = setsInputFlags(PromptKind.Pin, expectFlags = true) in <lambda>()
49 @Test fun setsPasswordInputFlags() = setsInputFlags(PromptKind.Password, expectFlags = false) in <lambda>()
50 @Test fun setsPatternInputFlags() = setsInputFlags(PromptKind.Pattern, expectFlags = false) in <lambda>()
52 private fun setsInputFlags(type: PromptKind, expectFlags: Boolean) = in <lambda>()
65 @Test fun isStealthIgnoredByPin() = isStealthMode(PromptKind.Pin, expectStealth = false) in <lambda>()
67 fun isStealthIgnoredByPassword() = isStealthMode(PromptKind.Password, expectStealth = false) in <lambda>()
68 @Test fun isStealthUsedByPattern() = isStealthMode(PromptKind.Pattern, expectStealth = true) in <lambda>()
70 private fun isStealthMode(type: PromptKind, expectStealth: Boolean) = in <lambda>()
169 kind: PromptKind = PromptKind.Pin, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/data/repository/
DFakePromptRepository.kt4 import com.android.systemui.biometrics.shared.model.PromptKind
26 private val _promptKind = MutableStateFlow<PromptKind>(PromptKind.None)
40 kind: PromptKind, in setPrompt()
58 kind: PromptKind, in setPrompt()
76 _promptKind.value = PromptKind.None in unsetPrompt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/
DPromptRepository.kt22 import com.android.systemui.biometrics.shared.model.PromptKind in <lambda>()
60 val promptKind: StateFlow<PromptKind> in <lambda>()
78 kind: PromptKind, in <lambda>()
120 private val _promptKind: MutableStateFlow<PromptKind> = MutableStateFlow(PromptKind.None)
145 kind: PromptKind, in appRequiresConfirmation()
162 _promptKind.value = PromptKind.None in unsetPrompt()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/
DUtils.kt45 import com.android.systemui.biometrics.shared.model.PromptKind
92 fun getCredentialType(utils: LockPatternUtils, userId: Int): PromptKind = in isDeviceCredentialAllowed()
94 PASSWORD_QUALITY_SOMETHING -> PromptKind.Pattern in isDeviceCredentialAllowed()
96 PASSWORD_QUALITY_NUMERIC_COMPLEX -> PromptKind.Pin in isDeviceCredentialAllowed()
100 PASSWORD_QUALITY_MANAGED -> PromptKind.Password in isDeviceCredentialAllowed()
101 else -> PromptKind.Password in isDeviceCredentialAllowed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/
DPromptRepositoryImplTest.kt24 import com.android.systemui.biometrics.shared.model.PromptKind
112 PromptKind.Biometric(), in isConfirmationRequired_whenNotForced()
132 PromptKind.Biometric(), in isConfirmationRequired_whenForced()
143 val kind = PromptKind.Pin in setsAndUnsetsPrompt_whenRequestIdMatches()
165 val kind = PromptKind.Pin in setsAndUnsetsPrompt_whenRequestIdDoesNotMatch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DBiometricViewBinder.kt50 import com.android.systemui.biometrics.shared.model.PromptKind in <lambda>()
316 PromptKind.Pin -> in <lambda>()
318 PromptKind.Password -> in <lambda>()
320 PromptKind.Pattern -> in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthContainerView.java79 import com.android.systemui.biometrics.shared.model.PromptKind;
372 final PromptKind kind = mPromptViewModel.getPromptKind().getValue(); in AuthContainerView()
507 PromptKind credentialType = Utils.getCredentialType(mLockPatternUtils, mEffectiveUserId); in addCredentialView()
509 if (credentialType instanceof PromptKind.Pattern) { in addCredentialView()
511 } else if (credentialType instanceof PromptKind.Pin) { in addCredentialView()
513 } else if (credentialType instanceof PromptKind.Password) { in addCredentialView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
DPromptViewModel.kt52 import com.android.systemui.biometrics.shared.model.PromptKind in <lambda>()
207 val credentialKind: Flow<PromptKind> = promptSelectorInteractor.credentialKind in <lambda>()
210 val promptKind: StateFlow<PromptKind> = promptSelectorInteractor.promptKind in <lambda>()