Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
H A DCredentialViewModelTest.kt117 val remainingAttempts = mutableListOf<RemainingAttempts?>() regex
121 launch { viewModel.remainingAttempts.toList(remainingAttempts) }
131 assertThat(remainingAttempts).containsExactly(RemainingAttempts())
145 val remainingAttempts = mutableListOf<RemainingAttempts?>() regex
149 launch { viewModel.remainingAttempts.toList(remainingAttempts) }
158 val attemptInfo = remainingAttempts.removeLastOrNull()
162 assertThat(remainingAttempts).containsExactly(RemainingAttempts()) // initial value
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
H A DPromptCredentialInteractorTest.kt173 val remainingAttempts = 12 regex
175 flowOf(error(errorMessage, remainingAttempts))
187 assertThat(checked!!.remainingAttempts).isEqualTo(remainingAttempts)
227 val remainingAttempts = 3 regex
236 emit(error(error, remainingAttempts, urgentMessage))
248 assertThat(checked!!.remainingAttempts).isEqualTo(remainingAttempts)
H A DCredentialInteractorImplTest.kt129 assertThat(failedResult!!.remainingAttempts)
165 assertThat(result!!.remainingAttempts).isEqualTo(1)
187 assertThat(result!!.remainingAttempts).isEqualTo(0)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
H A DCredentialInteractor.kt120 val remainingAttempts = (maxAttempts - numAttempts).coerceAtLeast(0) regex
128 remainingAttempts,
129 fetchFinalAttemptMessageOrNull(request, remainingAttempts)
139 remainingAttempts: Int?,
141 if (remainingAttempts != null && remainingAttempts <= 1) {
149 remainingAttempts
H A DCredentialStatus.kt17 val remainingAttempts: Int? = null,
/aosp14/frameworks/base/core/java/android/app/
H A DRemoteLockscreenValidationSession.java90 public @NonNull Builder setRemainingAttempts(int remainingAttempts) { in setRemainingAttempts() argument
91 mInstance.mRemainingAttempts = remainingAttempts; in setRemainingAttempts()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
H A DCredentialViewModel.kt88 val remainingAttempts: Flow<RemainingAttempts> = _remainingAttempts.asStateFlow()
130 RemainingAttempts(result.remainingAttempts, result.urgentMessage ?: "")
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
H A DCredentialViewBinder.kt102 viewModel.remainingAttempts
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DRecoverableKeyStoreManager.java1022 int remainingAttempts = Math.max(INVALID_REMOTE_GUESS_LIMIT - badGuesses, 0); in startRemoteLockscreenValidation() local
1026 .setRemainingAttempts(remainingAttempts) in startRemoteLockscreenValidation()
1042 int remainingAttempts = INVALID_REMOTE_GUESS_LIMIT - badGuesses; in validateRemoteLockscreen() local
1043 if (remainingAttempts <= 0) { in validateRemoteLockscreen()