Home
last modified time | relevance | path

Searched refs:hasEnrolledTemplates (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DAuthenticationStatsCollectorTest.java123 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_authenticationSucceeded_mapShouldBeUpdated()
143 when(mFingerprintManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_authenticationFailed_mapShouldBeUpdated()
194 when(mFingerprintManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_frrNotExceeded_notificationNotExceeded_shouldNotSendNotification()
245 when(mFingerprintManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_frrExceeded_bothBiometricsEnrolled_shouldNotSendNotification()
246 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_frrExceeded_bothBiometricsEnrolled_shouldNotSendNotification()
273 when(mFingerprintManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_frrExceeded_singleModality_shouldNotSendNotification()
300 when(mFingerprintManager.hasEnrolledTemplates(anyInt())).thenReturn(false); in authenticate_frrExceeded_faceEnrolled_shouldSendFpNotification()
301 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_frrExceeded_faceEnrolled_shouldSendFpNotification()
329 when(mFingerprintManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_frrExceeded_fpEnrolled_shouldSendFaceNotification()
330 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(false); in authenticate_frrExceeded_fpEnrolled_shouldSendFaceNotification()
DInvalidationTrackerTest.java61 when(authenticator1.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in testCallbackReceived_whenAllStrongSensorsInvalidated()
67 when(authenticator2.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in testCallbackReceived_whenAllStrongSensorsInvalidated()
73 when(authenticator3.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in testCallbackReceived_whenAllStrongSensorsInvalidated()
79 when(authenticator4.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in testCallbackReceived_whenAllStrongSensorsInvalidated()
DPreAuthInfoTest.java83 when(mFaceAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in setup()
87 when(mFingerprintAuthenticator.hasEnrolledTemplates(anyInt(), any())) in setup()
150 when(mFingerprintAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(false); in testCanAuthenticateResult_whenCameraUnavailableAndNoFingerprintsEnrolled()
DBiometricServiceTest.java463 when(mFingerprintAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in testAuthenticate_whenHalIsDead_returnsErrorHardwareUnavailable()
690 when(mFaceAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(false); in testAuthenticate_noBiometrics_credentialAllowed()
760 when(mFaceAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(false); in testAuthenticate_no_Biometrics_noCredential()
1064 when(mFaceAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(false); in testMultiBiometricAuth_whenLockout()
1558 when(mFingerprintAuthenticator.hasEnrolledTemplates(anyInt(), any())) in testRegisterAuthenticator_updatesStrengths()
1577 when(mFingerprintAuthenticator.hasEnrolledTemplates(anyInt(), any())) in testWithDowngradedAuthenticator()
1866 when(mFingerprintAuthenticator.hasEnrolledTemplates(anyInt(), any())) in setupAuthForOnly()
1876 when(mFaceAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(enrolled); in setupAuthForOnly()
1905 when(mFingerprintAuthenticator.hasEnrolledTemplates(anyInt(), any())) in setupAuthForMultiple()
1913 when(mFaceAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in setupAuthForMultiple()
DAuthSessionTest.java876 when(fingerprintAuthenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in setupFingerprint()
913 when(authenticator.hasEnrolledTemplates(anyInt(), any())).thenReturn(true); in setupFace()
/frameworks/base/core/java/android/hardware/biometrics/
DIBiometricAuthenticator.aidl64 boolean hasEnrolledTemplates(int userId, String opPackageName); in hasEnrolledTemplates() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DBiometricNotificationDialogFactory.java124 if (!mFingerprintManager.hasEnrolledTemplates(userId)) { in reenrollFingerprint()
166 if (!mFaceManager.hasEnrolledTemplates(userId)) { in reenrollFace()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthenticationStatsCollector.java222 return mFaceManager != null && mFaceManager.hasEnrolledTemplates(userId); in hasEnrolledFace()
226 return mFingerprintManager != null && mFingerprintManager.hasEnrolledTemplates(userId); in hasEnrolledFingerprint()
DPreAuthInfo.java197 if (!sensor.impl.hasEnrolledTemplates(userId, opPackageName) in getStatusForBiometricAuthenticator()
DBiometricService.java174 if (!sensor.impl.hasEnrolledTemplates(userId, context.getOpPackageName())) { in InvalidationTracker()
682 if (sensor.impl.hasEnrolledTemplates(userId, opPackageName)) {
781 final boolean hasEnrollments = sensor.impl.hasEnrolledTemplates(callingUserId,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DBiometricNotificationDialogFactoryTest.java77 when(mFingerprintManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in setUp()
78 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in setUp()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/iris/
DIrisAuthenticator.java82 public boolean hasEnrolledTemplates(int userId, String opPackageName) throws RemoteException { in hasEnrolledTemplates() method in IrisAuthenticator
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintAuthenticator.java95 public boolean hasEnrolledTemplates(int userId, String opPackageName) throws RemoteException { in hasEnrolledTemplates() method in FingerprintAuthenticator
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceAuthenticator.java94 public boolean hasEnrolledTemplates(int userId, String opPackageName) throws RemoteException { in hasEnrolledTemplates() method in FaceAuthenticator
/frameworks/base/services/core/java/com/android/server/locksettings/
DBiometricDeferredQueue.java166 if (mFaceManager != null && mFaceManager.hasEnrolledTemplates(userId)) { in addPendingLockoutResetForUser()
DLockSettingsService.java3174 if (mFaceManager.hasEnrolledTemplates(userId)) { in removeAllFaceForUser()
/frameworks/base/core/java/android/hardware/face/
DFaceManager.java661 public boolean hasEnrolledTemplates() { in hasEnrolledTemplates() method in FaceManager
662 return hasEnrolledTemplates(UserHandle.myUserId()); in hasEnrolledTemplates()
671 public boolean hasEnrolledTemplates(int userId) { in hasEnrolledTemplates() method in FaceManager
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java956 public boolean hasEnrolledTemplates() { in hasEnrolledTemplates() method in FingerprintManager
963 public boolean hasEnrolledTemplates(int userId) { in hasEnrolledTemplates() method in FingerprintManager
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/
DTrustManagerServiceTest.java763 when(mFingerprintManager.hasEnrolledTemplates(TEST_USER_ID)).thenReturn(enrolled); in setupFingerprint()
776 when(mFaceManager.hasEnrolledTemplates(TEST_USER_ID)).thenReturn(enrolled); in setupFace()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java341 when(mFaceManager.hasEnrolledTemplates(userId)).thenReturn(true); in mockBiometricsHardwareFingerprintsAndTemplates()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java1704 && mFingerprintManager.hasEnrolledTemplates(userId) in isWeakUnlockMethodEnabled()
1713 && mFaceManager.hasEnrolledTemplates(userId) in isWeakUnlockMethodEnabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java401 when(mFingerprintManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in setupFingerprintAuth()