Android Framework 有一个FaceUnlock的类,该类继承自接口类BiometricSensorUnlock。
public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback {
private static final boolean DEBUG = false;
private static final String TAG = "FULLockscreen";
private IFaceLockInterface mService;
mContext.bindService(new Intent(IFaceLockInterface.class.getName()),
mConnection,
Context.BIND_AUTO_CREATE,
mLockPatternUtils.getCurrentUser());
mService = IFaceLockInterface.Stub.asInterface(iservice);
FaceUnlock在LockPatternKeyguardView.java中被调用。