Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/ui/settings/
DFingerprintSettingsViewModelTest.kt25 import com.android.settings.biometrics.fingerprint2.lib.model.FingerprintAuthAttemptModel
126 var authAttempt: FingerprintAuthAttemptModel? = null in authenticate_DoesNotRun_ifOptical()
168 var authAttempt: FingerprintAuthAttemptModel? = null in authenticate_DoesNotRun_ifUltrasonic()
198 val success = FingerprintAuthAttemptModel.Success(1) in authenticate_DoesRun_ifNotUdfps()
210 var authAttempt: FingerprintAuthAttemptModel? = null in authenticate_DoesRun_ifNotUdfps()
335 val success = FingerprintAuthAttemptModel.Success(fingerprints.first().fingerId) in authenticatePauses_whenPaused()
337 var authAttempt: FingerprintAuthAttemptModel? = null in authenticatePauses_whenPaused()
348 fakeFingerprintManagerInteractor.authenticateAttempt = FingerprintAuthAttemptModel.Success(10) in authenticatePauses_whenPaused()
363 var authAttempt: FingerprintAuthAttemptModel? = null in dialog_pausesAuth()
380 var authAttempt: FingerprintAuthAttemptModel? = null in cannotAuth_when_notShowingSettings()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/settings/viewmodel/
DFingerprintSettingsViewModel.kt25 import com.android.settings.biometrics.fingerprint2.lib.model.FingerprintAuthAttemptModel in <lambda>()
98 private val _isLockedOut: MutableStateFlow<FingerprintAuthAttemptModel.Error?> = in <lambda>()
101 private val _authSucceeded: MutableSharedFlow<FingerprintAuthAttemptModel.Success?> = in <lambda>()
167 val authFlow: Flow<FingerprintAuthAttemptModel> = in <lambda>()
176 is FingerprintAuthAttemptModel.Success -> { in <lambda>()
180 is FingerprintAuthAttemptModel.Error -> { in <lambda>()
264 private suspend fun onAuthSuccess(success: FingerprintAuthAttemptModel.Success) { in <lambda>()
269 private fun lockout(attemptViewModel: FingerprintAuthAttemptModel.Error) { in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/lib/model/
DFingerprintAuthAttemptModel.kt20 sealed class FingerprintAuthAttemptModel { class
22 data class Success(val fingerId: Int) : FingerprintAuthAttemptModel()
25 data class Error(val error: Int, val message: String) : FingerprintAuthAttemptModel()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/domain/interactor/
DFingerprintManagerInteractorImpl.kt32 import com.android.settings.biometrics.fingerprint2.lib.model.FingerprintAuthAttemptModel in <lambda>()
139 override suspend fun authenticate(): FingerprintAuthAttemptModel = in <lambda>()
140 suspendCancellableCoroutine { c: CancellableContinuation<FingerprintAuthAttemptModel> -> in <lambda>()
150 c.resume(FingerprintAuthAttemptModel.Error(errorCode, errString.toString())) in <lambda>()
159 c.resume(FingerprintAuthAttemptModel.Success(result.fingerprint?.biometricId ?: -1)) in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/settings/binder/
DFingerprintSettingsViewBinder.kt22 import com.android.settings.biometrics.fingerprint2.lib.model.FingerprintAuthAttemptModel in <lambda>()
83 fun userLockout(authAttemptViewModel: FingerprintAuthAttemptModel.Error) in <lambda>()
145 is FingerprintAuthAttemptModel.Success -> { in <lambda>()
148 is FingerprintAuthAttemptModel.Error -> { in <lambda>()
/packages/apps/Settings/tests/shared/src/com/android/settings/testutils2/
DFakeFingerprintManagerInteractor.kt28 import com.android.settings.biometrics.fingerprint2.lib.model.FingerprintAuthAttemptModel
43 var authenticateAttempt = FingerprintAuthAttemptModel.Success(1)
59 override suspend fun authenticate(): FingerprintAuthAttemptModel { in authenticate()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/lib/domain/interactor/
DFingerprintManagerInteractor.kt22 import com.android.settings.biometrics.fingerprint2.lib.model.FingerprintAuthAttemptModel
47 suspend fun authenticate(): FingerprintAuthAttemptModel
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/domain/interactor/
DFingerprintManagerInteractorTest.kt42 import com.android.settings.biometrics.fingerprint2.lib.model.FingerprintAuthAttemptModel
259 var result: FingerprintAuthAttemptModel? = null in testAuth_succeeds()
280 assertThat(result).isEqualTo(FingerprintAuthAttemptModel.Success(fingerprint.biometricId)) in testAuth_succeeds()
286 var result: FingerprintAuthAttemptModel? = null in testAuth_lockout()
307 FingerprintAuthAttemptModel.Error(FINGERPRINT_ERROR_LOCKOUT_PERMANENT, "Lockout!!") in testAuth_lockout()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/settings/fragment/
DFingerprintSettingsV2Fragment.kt52 import com.android.settings.biometrics.fingerprint2.lib.model.FingerprintAuthAttemptModel in <lambda>()
149 override fun userLockout(authAttemptViewModel: FingerprintAuthAttemptModel.Error) { in <lambda>()