Searched refs:mFaceManager (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 82 private FaceManager mFaceManager; field in KeyguardUpdateMonitorTest 105 when(mFaceManager.isHardwareDetected()).thenReturn(true); in setup() 106 when(mFaceManager.hasEnrolledTemplates()).thenReturn(true); in setup() 107 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in setup() 114 context.addMockSystemService(FaceManager.class, mFaceManager); in setup() 302 verify(mFaceManager).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testTriesToAuthenticate_whenBouncer() 303 verify(mFaceManager).isHardwareDetected(); in testTriesToAuthenticate_whenBouncer() 304 verify(mFaceManager).hasEnrolledTemplates(anyInt()); in testTriesToAuthenticate_whenBouncer() 312 verify(mFaceManager).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testTriesToAuthenticate_whenKeyguard() 323 verify(mFaceManager, never()).authenticate(any(), any(), anyInt(), any(), any()); in skipsAuthentication_whenEncryptedKeyguard() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 1164 private FaceManager mFaceManager; field in KeyguardUpdateMonitor 1508 mFaceManager = (FaceManager) context.getSystemService(Context.FACE_SERVICE); in KeyguardUpdateMonitor() 1511 if (mFpm != null || mFaceManager != null) { in KeyguardUpdateMonitor() 1520 if (mFaceManager != null) { in KeyguardUpdateMonitor() 1521 mFaceManager.addLockoutResetCallback(mFaceLockoutResetCallback); in KeyguardUpdateMonitor() 1679 mFaceManager.authenticate(null, mFaceCancelSignal, 0, in startListeningForFace() 1706 return mFaceManager != null && mFaceManager.isHardwareDetected() in isUnlockWithFacePossible() 1708 && mFaceManager.hasEnrolledTemplates(userId); in isUnlockWithFacePossible() 2539 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in dump()
|