/frameworks/base/core/tests/coretests/src/android/hardware/face/ |
D | FaceManagerTest.java | 95 private FaceManager mFaceManager; field in FaceManagerTest 109 mFaceManager = new FaceManager(mContext, mService); in setUp() 124 List<FaceSensorPropertiesInternal> actual = mFaceManager.getSensorPropertiesInternal(); in getSensorPropertiesInternal_noBinderCalls() 132 mFaceManager.authenticate(null, new CancellationSignal(), mAuthCallback, mHandler, in authenticate_withOptions() 156 mFaceManager.authenticate(null, new CancellationSignal(), in authenticate_errorWhenUnavailable() 172 mFaceManager.enroll(USER_ID, new byte[]{}, in enrollment_errorWhenFaceEnrollmentExists() 178 mFaceManager.enroll(USER_ID, new byte[]{}, in enrollment_errorWhenFaceEnrollmentExists() 189 mFaceManager.enroll(USER_ID, null, in enrollment_errorWhenHardwareAuthTokenIsNull() 204 mFaceManager.detectFace(cancellationSignal, mFaceDetectionCallback, in detectClient_onError() 225 mFaceManager.authenticate(null, new CancellationSignal(), in authenticate_onErrorCanceled() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | BiometricDeferredQueue.java | 52 @Nullable private FaceManager mFaceManager; field in BiometricDeferredQueue 149 mFaceManager = faceManager; in systemReady() 166 if (mFaceManager != null && mFaceManager.hasEnrolledTemplates(userId)) { in addPendingLockoutResetForUser() 240 if (mFaceManager != null) { in processPendingLockoutsForFace() 247 mFaceManager.getSensorPropertiesInternal(); in processPendingLockoutsForFace() 253 mFaceResetLockoutTask = new FaceResetLockoutTask(mFaceFinishCallback, mFaceManager, in processPendingLockoutsForFace() 261 mFaceManager.generateChallenge(prop.sensorId, user.userId, in processPendingLockoutsForFace() 269 mFaceManager.resetLockout(prop.sensorId, user.userId, hat); in processPendingLockoutsForFace()
|
D | LockSettingsService.java | 3172 FaceManager mFaceManager = mInjector.getFaceManager(); in removeAllFaceForUser() local 3173 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in removeAllFaceForUser() 3174 if (mFaceManager.hasEnrolledTemplates(userId)) { in removeAllFaceForUser() 3176 mFaceManager.removeAll(userId, faceManagerRemovalCallback(latch)); in removeAllFaceForUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | BiometricNotificationDialogFactory.java | 48 @Nullable private final FaceManager mFaceManager; field in BiometricNotificationDialogFactory 59 mFaceManager = faceManager; in BiometricNotificationDialogFactory() 160 if (mFaceManager == null) { in reenrollFace() 166 if (!mFaceManager.hasEnrolledTemplates(userId)) { in reenrollFace() 172 mFaceManager.removeAll(userId, in reenrollFace()
|
D | BiometricNotificationService.java | 78 private final FaceManager mFaceManager; field in BiometricNotificationService 165 mFaceManager = faceManager; in BiometricNotificationService() 182 if (mFaceManager != null) { in start() 183 mFaceManager.registerBiometricStateListener(mFaceStateListener); in start()
|
D | AuthController.java | 135 @Nullable private final FaceManager mFaceManager; field in AuthController 340 mFaceManager.registerBiometricStateListener(new BiometricStateListener() { in handleAllFaceAuthenticatorsRegistered() 753 mFaceManager = faceManager; in AuthController() 784 mFaceProps = mFaceManager != null ? mFaceManager.getSensorPropertiesInternal() : null; in AuthController() 850 if (mFaceManager != null) { in start() 851 mFaceManager.addAuthenticatorsRegisteredCallback( in start()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | BiometricNotificationDialogFactoryTest.java | 64 @Mock FaceManager mFaceManager; field in BiometricNotificationDialogFactoryTest 78 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in setUp() 85 mFaceManager in setUp() 168 verify(mFaceManager).removeAll(anyInt(), removalCallbackArgumentCaptor.capture()); in testFaceReEnrollDialog_onRemovalSucceeded() 194 verify(mFaceManager).removeAll(anyInt(), removalCallbackArgumentCaptor.capture()); in testFaceReEnrollDialog_onRemovalError()
|
D | BiometricNotificationServiceTest.java | 82 FaceManager mFaceManager; field in BiometricNotificationServiceTest 117 mFaceManager); in setUp() 133 verify(mFaceManager).registerBiometricStateListener( in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 49 private final FaceManager mFaceManager; field in MockLockSettingsContext 68 mFaceManager = faceManager; in MockLockSettingsContext() 99 return mFaceManager; in getSystemService()
|
D | BaseLockSettingsServiceTests.java | 113 FaceManager mFaceManager; field in BaseLockSettingsServiceTests 136 mFaceManager = mock(FaceManager.class); in setUp_baseServices() 149 mock(KeyguardManager.class), mFingerprintManager, mFaceManager, mPackageManager); in setUp_baseServices() 340 when(mFaceManager.isHardwareDetected()).thenReturn(true); in mockBiometricsHardwareFingerprintsAndTemplates() 341 when(mFaceManager.hasEnrolledTemplates(userId)).thenReturn(true); in mockBiometricsHardwareFingerprintsAndTemplates() 350 }).when(mFaceManager).removeAll(eq(userId), any()); in mockBiometricsHardwareFingerprintsAndTemplates()
|
D | LockSettingsServiceTests.java | 330 verify(mFaceManager).removeAll(eq(PRIMARY_USER_ID), any()); in testClearLockCredential_removesBiometrics() 333 verify(mFaceManager).removeAll(eq(MANAGED_PROFILE_USER_ID), any()); in testClearLockCredential_removesBiometrics()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/ |
D | AuthControllerTest.java | 143 private FaceManager mFaceManager; field in AuthControllerTest 219 when(mFaceManager.isHardwareDetected()).thenReturn(true); in setup() 250 when(mFaceManager.getSensorPropertiesInternal()).thenReturn(faceProps); in setup() 257 verify(mFaceManager).addAuthenticatorsRegisteredCallback( in setup() 274 reset(mFaceManager); in testRegistersBiometricStateListener_afterAllAuthenticatorsAreRegistered() 282 verify(mFaceManager).addAuthenticatorsRegisteredCallback( in testRegistersBiometricStateListener_afterAllAuthenticatorsAreRegistered() 287 verify(mFaceManager, never()).registerBiometricStateListener(any()); in testRegistersBiometricStateListener_afterAllAuthenticatorsAreRegistered() 294 verify(mFaceManager).registerBiometricStateListener(any()); in testRegistersBiometricStateListener_afterAllAuthenticatorsAreRegistered() 301 reset(mFaceManager); in testDoesNotCrash_afterEnrollmentsChangedForUnknownSensor() 309 verify(mFaceManager).addAuthenticatorsRegisteredCallback( in testDoesNotCrash_afterEnrollmentsChangedForUnknownSensor() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | AuthenticationStatsCollector.java | 57 @Nullable private final FaceManager mFaceManager; field in AuthenticationStatsCollector 92 mFaceManager = mContext.getSystemService(FaceManager.class); in AuthenticationStatsCollector() 222 return mFaceManager != null && mFaceManager.hasEnrolledTemplates(userId); in hasEnrolledFace()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | AuthenticationStatsCollectorTest.java | 78 private FaceManager mFaceManager; field in AuthenticationStatsCollectorTest 102 when(mContext.getSystemService(Context.FACE_SERVICE)).thenReturn(mFaceManager); in setUp() 123 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_authenticationSucceeded_mapShouldBeUpdated() 246 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_frrExceeded_bothBiometricsEnrolled_shouldNotSendNotification() 301 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(true); in authenticate_frrExceeded_faceEnrolled_shouldSendFpNotification() 330 when(mFaceManager.hasEnrolledTemplates(anyInt())).thenReturn(false); in authenticate_frrExceeded_fpEnrolled_shouldSendFaceNotification()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | BinaryTransparencyServiceTest.java | 81 private FaceManager mFaceManager; field in BinaryTransparencyServiceTest 137 when(mContext.getSystemService(FaceManager.class)).thenReturn(mFaceManager); in prepBiometricsTesting() 246 verify(mFaceManager).addAuthenticatorsRegisteredCallback(mFaceAuthenticatorsRegisteredCaptor in testCollectBiometricProperties_enablesFeature_logsFaceProperties()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/hidl/ |
D | HidlToAidlSessionAdapterTest.java | 78 FaceManager mFaceManager; field in HidlToAidlSessionAdapterTest 101 testableContext.addMockSystemService(FaceManager.class, mFaceManager); in setUp() 113 when(mFaceManager.getEnrolledFaces(anyInt())).thenReturn(List.of(mFace)); in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/ |
D | TrustManagerServiceTest.java | 154 private @Mock FaceManager mFaceManager; field in TrustManagerServiceTest 173 when(mFaceManager.getSensorProperties()).thenReturn(List.of()); in setUp() 214 mMockContext.addMockSystemService(FaceManager.class, mFaceManager); in setUp() 775 when(mFaceManager.getSensorProperties()).thenReturn(List.of(sensor)); in setupFace() 776 when(mFaceManager.hasEnrolledTemplates(TEST_USER_ID)).thenReturn(enrolled); in setupFace()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 167 private FaceManager mFaceManager; field in TrustManagerService 320 mFaceManager = mContext.getSystemService(FaceManager.class); in onBootPhase() 1711 if (mFaceManager != null in isWeakUnlockMethodEnabled() 1713 && mFaceManager.hasEnrolledTemplates(userId) in isWeakUnlockMethodEnabled() 1714 && isWeakOrConvenienceSensor(mFaceManager.getSensorProperties().get(0))) { in isWeakUnlockMethodEnabled()
|