Home
last modified time | relevance | path

Searched refs:FakeAuthenticationRepository (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/authentication/domain/interactor/
DAuthenticationInteractorTest.kt26 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
94 assertSucceeded(underTest.authenticate(FakeAuthenticationRepository.DEFAULT_PIN)) in <lambda>()
159 assertSucceeded(underTest.authenticate(FakeAuthenticationRepository.PATTERN)) in <lambda>()
186 val defaultPin = FakeAuthenticationRepository.DEFAULT_PIN.toMutableList() in <lambda>()
208 val wrongPin = FakeAuthenticationRepository.DEFAULT_PIN.map { it + 1 } in <lambda>()
225 val longerPin = FakeAuthenticationRepository.DEFAULT_PIN + listOf(7) in <lambda>()
242 val correctPin = FakeAuthenticationRepository.DEFAULT_PIN in <lambda>()
258 val correctPin = FakeAuthenticationRepository.DEFAULT_PIN in <lambda>()
274 val correctPin = FakeAuthenticationRepository.DEFAULT_PIN in <lambda>()
315 repeat(FakeAuthenticationRepository.MAX_FAILED_AUTH_TRIES_BEFORE_LOCKOUT) { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/domain/interactor/
DBouncerInteractorTest.kt23 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
88 assertThat(underTest.authenticate(FakeAuthenticationRepository.DEFAULT_PIN)) in <lambda>()
118 FakeAuthenticationRepository.DEFAULT_PIN, in <lambda>()
143 FakeAuthenticationRepository.DEFAULT_PIN, in <lambda>()
201 assertThat(wrongPattern).isNotEqualTo(FakeAuthenticationRepository.PATTERN) in <lambda>()
210 FakeAuthenticationRepository.PATTERN.subList( in <lambda>()
218 assertThat(underTest.authenticate(FakeAuthenticationRepository.PATTERN)) in <lambda>()
236 repeat(FakeAuthenticationRepository.MAX_FAILED_AUTH_TRIES_BEFORE_LOCKOUT) { times -> in <lambda>()
240 if (times < FakeAuthenticationRepository.MAX_FAILED_AUTH_TRIES_BEFORE_LOCKOUT - 1) { in <lambda>()
248 advanceTimeBy(FakeAuthenticationRepository.LOCKOUT_DURATION_SECONDS.seconds) in <lambda>()
[all …]
DAlternateBouncerInteractorTest.kt26 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository
97 kosmos.authenticationInteractor.authenticate(FakeAuthenticationRepository.DEFAULT_PIN) in canShowAlternateBouncer_false_dueToTransitionState_scene_container()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/ui/viewmodel/
DPinBouncerViewModelTest.kt29 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
210 FakeAuthenticationRepository.DEFAULT_PIN.forEach(underTest::onPinButtonClicked) in <lambda>()
253 FakeAuthenticationRepository.DEFAULT_PIN.forEach(underTest::onPinButtonClicked) in <lambda>()
274 FakeAuthenticationRepository.DEFAULT_PIN.forEach(underTest::onPinButtonClicked) in <lambda>()
295 FakeAuthenticationRepository.DEFAULT_PIN.dropLast(1).forEach { digit -> in <lambda>()
299 FakeAuthenticationRepository.DEFAULT_PIN.last() + 1 in <lambda>()
313 FakeAuthenticationRepository.DEFAULT_PIN.forEach(underTest::onPinButtonClicked) in <lambda>()
406 assertThat(hintedPinLength).isEqualTo(FakeAuthenticationRepository.HINTING_PIN_LENGTH) in <lambda>()
409 repeat(FakeAuthenticationRepository.HINTING_PIN_LENGTH - 1) { repetition -> in <lambda>()
415 underTest.onPinButtonClicked(FakeAuthenticationRepository.HINTING_PIN_LENGTH) in <lambda>()
[all …]
DAuthMethodBouncerViewModelTest.kt22 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
65 FakeAuthenticationRepository.DEFAULT_PIN.drop(2).forEach { digit -> in <lambda>()
75 FakeAuthenticationRepository.DEFAULT_PIN.forEach { digit -> in <lambda>()
DBouncerMessageViewModelTest.kt26 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
122 repeat(FakeAuthenticationRepository.MAX_FAILED_AUTH_TRIES_BEFORE_LOCKOUT) { in <lambda>()
135 val lockoutSeconds = FakeAuthenticationRepository.LOCKOUT_DURATION_SECONDS in <lambda>()
140 repeat(FakeAuthenticationRepository.MAX_FAILED_AUTH_TRIES_BEFORE_LOCKOUT) { times -> in <lambda>()
143 if (times == FakeAuthenticationRepository.MAX_FAILED_AUTH_TRIES_BEFORE_LOCKOUT) { in <lambda>()
152 repeat(FakeAuthenticationRepository.LOCKOUT_DURATION_SECONDS) { time -> in <lambda>()
446 private val WRONG_PIN = FakeAuthenticationRepository.DEFAULT_PIN.map { it + 1 } in <lambda>()
DBouncerViewModelTest.kt26 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
163 repeat(FakeAuthenticationRepository.MAX_FAILED_AUTH_TRIES_BEFORE_LOCKOUT) { in <lambda>()
226 private val WRONG_PIN = FakeAuthenticationRepository.DEFAULT_PIN.map { it + 1 } in <lambda>()
DPatternBouncerViewModelTest.kt23 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
304 val attempts = FakeAuthenticationRepository.MAX_FAILED_AUTH_TRIES_BEFORE_LOCKOUT + 1 in <lambda>()
381 private val CORRECT_PATTERN = FakeAuthenticationRepository.PATTERN in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/authentication/data/repository/
DAuthenticationRepositoryKosmos.kt26 Kosmos.Fixture { FakeAuthenticationRepository { testScope.currentTime } } in <lambda>()
DFakeAuthenticationRepository.kt40 class FakeAuthenticationRepository( in <lambda>() class
265 ) = FakeAuthenticationRepository(currentTime = { scope.currentTime }) in provideFake()
269 @Binds fun bindFake(fake: FakeAuthenticationRepository): AuthenticationRepository
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/interactor/
DSceneBackInteractorTest.kt25 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
196 assertThat(authenticationInteractor.authenticate(FakeAuthenticationRepository.DEFAULT_PIN)) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/
DDeviceEntryIconViewModelTest.kt23 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository
297 FakeAuthenticationRepository.DEFAULT_PIN in setLockscreenDismissible()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/
DSceneFrameworkIntegrationTest.kt33 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
672 FakeAuthenticationRepository.DEFAULT_PIN.forEach { digit -> in <lambda>()
700 FakeAuthenticationRepository.DEFAULT_PIN.forEach { digit -> in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceEntryInteractorTest.kt25 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
436 authenticationInteractor.authenticate(FakeAuthenticationRepository.DEFAULT_PIN) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/
DWindowManagerLockscreenVisibilityInteractorTest.kt23 import com.android.systemui.authentication.data.repository.FakeAuthenticationRepository in <lambda>()
963 kosmos.authenticationInteractor.authenticate(FakeAuthenticationRepository.DEFAULT_PIN) in <lambda>()