/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/debug/data/repository/ |
D | UdfpsEnrollDebugRepository.kt | 27 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState 48 emit(FingerEnrollState.OverlayShown) in enroll() 50 emit(FingerEnrollState.EnrollHelp(helpMsgId, "Hello world")) in enroll() 52 emit(FingerEnrollState.EnrollProgress(15, 16)) in enroll() 54 emit(FingerEnrollState.EnrollHelp(helpMsgId, "Hello world")) in enroll() 56 emit(FingerEnrollState.EnrollProgress(14, 16)) in enroll() 58 emit(FingerEnrollState.EnrollProgress(13, 16)) in enroll() 60 emit(FingerEnrollState.EnrollProgress(12, 16)) in enroll() 62 emit(FingerEnrollState.EnrollProgress(11, 16)) in enroll() 64 emit(FingerEnrollState.EnrollProgress(10, 16)) in enroll() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/viewmodel/ |
D | UdfpsViewModel.kt | 42 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 88 private var _enrollState: Flow<FingerEnrollState?> = in <lambda>() 100 var enrollState: Flow<FingerEnrollState> = in <lambda>() 115 .filterIsInstance<FingerEnrollState.OverlayShown>() in <lambda>() 128 is FingerEnrollState.Acquired, in <lambda>() 129 is FingerEnrollState.EnrollError, in <lambda>() 130 is FingerEnrollState.EnrollHelp, in <lambda>() 131 is FingerEnrollState.EnrollProgress, in <lambda>() 132 is FingerEnrollState.PointerDown, in <lambda>() 133 is FingerEnrollState.PointerUp -> true in <lambda>() [all …]
|
D | UdfpsLastStepViewModel.kt | 28 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 55 private val lastStep: MutableStateFlow<FingerEnrollState.EnrollProgress?> = MutableStateFlow(null) in <lambda>() 62 .filterIsInstance<FingerEnrollState.EnrollProgress>() in <lambda>() 67 lastStep.update { FingerEnrollState.EnrollProgress(0, steps[0].totalStepsRequired) } in <lambda>() 73 FingerEnrollState.EnrollProgress in <lambda>() 82 .filterIsInstance<FingerEnrollState.Acquired>() in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/lib/model/ |
D | FingerEnrollState.kt | 25 sealed class FingerEnrollState { class 32 FingerEnrollState() 36 FingerEnrollState() 44 ) : FingerEnrollState() 47 data class Acquired(val acquiredGood: Boolean) : FingerEnrollState() 50 data class PointerDown(val fingerId: Int) : FingerEnrollState() 53 data class PointerUp(val fingerId: Int) : FingerEnrollState() 56 data object OverlayShown : FingerEnrollState()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/domain/interactor/ |
D | FingerprintEnrollInteractor.kt | 27 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 48 ): Flow<FingerEnrollState> in <lambda>() 62 ): Flow<FingerEnrollState> = callbackFlow { in enroll() 85 trySend(FingerEnrollState.EnrollProgress(remaining, totalSteps!!)).onFailure { error -> in enroll() 96 trySend(FingerEnrollState.EnrollHelp(helpMsgId, helpString.toString())).onFailure { error in enroll() 112 trySend(FingerEnrollState.PointerDown(sensorId)).onFailure { error -> in enroll() 118 trySend(FingerEnrollState.PointerUp(sensorId)).onFailure { error -> in enroll() 124 trySend(FingerEnrollState.OverlayShown).onFailure { error -> in enroll() 130 trySend(FingerEnrollState.Acquired(isAcquiredGood)).onFailure { error -> in enroll()
|
D | FingerprintManagerInteractorImpl.kt | 31 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 97 ): Flow<FingerEnrollState> = in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/rfps/ui/viewmodel/ |
D | RFPSViewModel.kt | 29 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 64 private var enrollFlow: Flow<FingerEnrollState?> = in <lambda>() 79 val progress: Flow<FingerEnrollState.EnrollProgress?> = in <lambda>() 81 .filterIsInstance<FingerEnrollState.EnrollProgress>() in <lambda>() 88 val helpMessage: Flow<FingerEnrollState.EnrollHelp?> = in <lambda>() 90 .filterIsInstance<FingerEnrollState.EnrollHelp>() in <lambda>() 98 val errorMessage: Flow<FingerEnrollState.EnrollError?> = in <lambda>() 100 .filterIsInstance<FingerEnrollState.EnrollError>() in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/widget/ |
D | UdfpsEnrollViewV2.kt | 34 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 129 fun onUdfpsEvent(event: FingerEnrollState) { in <lambda>() 131 is FingerEnrollState.EnrollProgress -> in <lambda>() 133 is FingerEnrollState.Acquired -> onAcquired(event.acquiredGood) in <lambda>() 134 is FingerEnrollState.EnrollHelp -> onEnrollmentHelp() in <lambda>() 235 fun onEnrollProgressSaved(it: FingerEnrollState.EnrollProgress) { in <lambda>()
|
/packages/apps/Settings/tests/shared/src/com/android/settings/testutils2/ |
D | FakeFingerprintManagerInteractor.kt | 27 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState 44 var enrollStateViewModel: List<FingerEnrollState> = listOf(FingerEnrollState.EnrollProgress(5, 5)) 83 ): Flow<FingerEnrollState> = flowOf(*enrollStateViewModel.toTypedArray()) in enroll()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/conversion/ |
D | Util.kt | 24 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState 34 fun Int.toEnrollError(isSetupWizard: Boolean): FingerEnrollState.EnrollError { in toEnrollError() 67 return FingerEnrollState.EnrollError( in toEnrollError()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/viewmodel/ |
D | FingerprintEnrollViewModel.kt | 29 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 78 val _enrollFlow: Flow<FingerEnrollState> = in <lambda>() 105 val educationEnrollFlow: Flow<FingerEnrollState?> = in <lambda>() 119 val enrollFlow: Flow<FingerEnrollState?> = in <lambda>()
|
D | FingerprintEnrollFindSensorViewModel.kt | 31 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 149 is FingerEnrollState.EnrollProgress -> proceedToEnrolling() in <lambda>() 150 is FingerEnrollState.EnrollError -> { in <lambda>() 157 is FingerEnrollState.EnrollHelp -> {} in <lambda>()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/domain/interactor/ |
D | FingerprintManagerInteractorTest.kt | 41 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState 315 var result: FingerEnrollState? = null in testEnroll_progress() 337 assertThat(result).isEqualTo(FingerEnrollState.EnrollProgress(1, 2)) in testEnroll_progress() 344 var result: FingerEnrollState? = null in testEnroll_help() 366 assertThat(result).isEqualTo(FingerEnrollState.EnrollHelp(-1, "help")) in testEnroll_help() 373 var result: FingerEnrollState? = null in testEnroll_error() 394 assertThat(result).isInstanceOf(FingerEnrollState.EnrollError::class.java) in testEnroll_error()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/lib/domain/interactor/ |
D | FingerprintManagerInteractor.kt | 21 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState 66 ): Flow<FingerEnrollState>
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/common/widget/ |
D | FingerprintErrorDialog.kt | 27 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 88 suspend fun showInstance(error: FingerEnrollState.EnrollError, fragment: Fragment) = in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/rfps/ui/fragment/ |
D | RFPSEnrollFragment.kt | 38 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 225 private fun handleEnrollError(error: FingerEnrollState.EnrollError) { in <lambda>() 237 private fun handleEnrollProgress(progress: FingerEnrollState.EnrollProgress) { in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/fragment/ |
D | UdfpsEnrollFragment.kt | 37 import com.android.settings.biometrics.fingerprint2.lib.model.FingerEnrollState in <lambda>() 149 if (it is FingerEnrollState.EnrollError) { in <lambda>()
|