3223e2537d
This is another step toward fix 5460649 - cleanup LockPatternKeyguardView (LPKV). After this change, LPKV has minimal knowledge of FUL. FUL now implements a new BiometricSensorUnlock interface and LPKV talks to that interface. Other biometric sensors can implement the same interface such that LPKV doesn't need to know much about what type of biometric sensor is being used or its implementation. The new interface has better, more general function names, so some function names in FaceUnlock.java were changed. Some of the functions in FaceUnlock.java were also reordered to match the interface. This change should not change the behavior of FUL. There are two places where code functionality was changed: 1) There was a showArea() function and a showAreaWithTimeout() function that were both called from LPKV. To simplify the interface, only a show() function is provided - it takes a timeout and if the timeout is 0 it doesn't do the timeout. 2) There was a stopIfRunning() function that did a check to make sure FUL was running. If FUL was running, it stopped FUL. Then it returned a boolean indicating if it had been running. LPKV sometimes needs to know if FUL was running so it knows if it should restart FUL. To simplify the interface, a single stop() function is provided which returns whether or not it was running. I believe the 'if running' check was redundant and that there was no case where calling stop() when it wasn't running would cause any badness. Change-Id: I717268f360aed823e603df8e687cd107aa69ae11