Move clearing face biometric recognized to FaceAuthInteractor
Previously, KeyguardUpdateMonitor would only clear its local cache of fingerprint recognized but then would inform trustManager to clear both fingerprint and face. Meanwhile, SystemUIFaceAuthInteractor would separately track the face authenticated state and be the source of truth for the face authenticated state. Instead of this confusing caches of state, this CL separates fingerprint and face authenticated states. KeyguardUpdateMonitor is responsible for fingerprint state and SystemUIFaceAuthInteractor is reponsible for the face auth state. Due to dependency cycles between KeyguardStateControllerImpl, BypassController and DeviceEntryFaceAuthRepository, we still need to source the onFacesCleared callback through KeyguardUpdateMonitor. Test: manually attempt UDFPS right after a successful face auth & going to sleep Test: atest KeyguardFaceAuthInteractorTest KeyguardStateControllerTest Flag: None Bug: 301171760 Fixes: 312860694 Change-Id: I2c3481787e8838f91c8c3bfbf5236dbbc6160f12
Loading
Please register or sign in to comment