/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/face/ |
D | FaceStatusPreferenceControllerTest.java | 69 private FaceManager mFaceManager; field in FaceStatusPreferenceControllerTest 90 ShadowApplication.getInstance().setSystemService(Context.FACE_SERVICE, mFaceManager); in setUp() 102 when(mFaceManager.isHardwareDetected()).thenReturn(false); in getAvailabilityStatus_noFaceManger_DISABLED() 109 when(mFaceManager.isHardwareDetected()).thenReturn(true); in getAvailabilityStatus_hasFaceManger_AVAILABLE() 116 when(mFaceManager.isHardwareDetected()).thenReturn(false); in updateState_notSupported_shouldDoNothing() 125 when(mFaceManager.isHardwareDetected()).thenReturn(true); in updateState_noFace_shouldShowDefaultSummary() 136 when(mFaceManager.isHardwareDetected()).thenReturn(true); in updateState_hasFace_shouldShowSummary() 137 when(mFaceManager.getEnrolledFaces(anyInt())) in updateState_hasFace_shouldShowSummary() 139 when(mFaceManager.hasEnrolledTemplates(anyInt())) in updateState_hasFace_shouldShowSummary() 151 when(mFaceManager.isHardwareDetected()).thenReturn(true); in updateState_parentalConsentRequired_preferenceDisabled()
|
D | FaceSettingsLockscreenBypassPreferenceControllerTest.java | 54 private FaceManager mFaceManager; field in FaceSettingsLockscreenBypassPreferenceControllerTest 69 when(mContext.getSystemService(eq(Context.FACE_SERVICE))).thenReturn(mFaceManager); in setUp() 74 ReflectionHelpers.setField(mController, "mFaceManager", mFaceManager); in setUp() 86 when(mFaceManager.isHardwareDetected()).thenReturn(true); in isAvailable_whenHardwareDetected() 121 when(mFaceManager.isHardwareDetected()).thenReturn(true); in preferenceDisabled_byAdmin()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceEnrollIntroduction.java | 56 private FaceManager mFaceManager; field in FaceEnrollIntroduction 121 mFaceManager = Utils.getFaceManagerOrNull(this); in onCreate() 132 mFaceManager.generateChallenge(mUserId, (sensorId, userId, challenge) -> { in onCreate() 225 if (mFaceManager != null) { in maxFacesEnrolled() 227 mFaceManager.getSensorPropertiesInternal(); in maxFacesEnrolled() 230 final int numEnrolledFaces = mFaceManager.getEnrolledFaces(mUserId).size(); in maxFacesEnrolled() 240 if (mFaceManager != null) { in checkMaxEnrolled() 252 mFaceManager = Utils.getFaceManagerOrNull(this); in getChallenge() 253 if (mFaceManager == null) { in getChallenge() 257 mFaceManager.generateChallenge(mUserId, callback::onChallengeGenerated); in getChallenge()
|
D | FaceSettingsLockscreenBypassPreferenceController.java | 37 protected FaceManager mFaceManager; field in FaceSettingsLockscreenBypassPreferenceController 43 mFaceManager = context.getSystemService(FaceManager.class); in FaceSettingsLockscreenBypassPreferenceController() 77 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState() 95 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in getAvailabilityStatus() 96 return mFaceManager.hasEnrolledTemplates(getUserId()) in getAvailabilityStatus()
|
D | FaceSettingsAppPreferenceController.java | 41 private FaceManager mFaceManager; field in FaceSettingsAppPreferenceController 45 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsAppPreferenceController() 72 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState() 86 if(mFaceManager == null){ in getAvailabilityStatus() 92 final boolean hasEnrolledUser = mFaceManager.hasEnrolledTemplates(getUserId()); in getAvailabilityStatus()
|
D | FaceSettingsAttentionPreferenceController.java | 39 private FaceManager mFaceManager; field in FaceSettingsAttentionPreferenceController 74 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsAttentionPreferenceController() 101 mFaceManager.getFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, in isChecked() 114 mFaceManager.setFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, isChecked, in setChecked()
|
D | FaceSettingsRemoveButtonPreferenceController.java | 97 private final FaceManager mFaceManager; field in FaceSettingsRemoveButtonPreferenceController 110 final List<Face> faces = mFaceManager.getEnrolledFaces(mUserId); 129 final List<Face> faces = mFaceManager.getEnrolledFaces(mUserId); 139 mFaceManager.remove(faces.get(0), mUserId, mRemovalCallback); 150 mFaceManager = context.getSystemService(FaceManager.class); in FaceSettingsRemoveButtonPreferenceController()
|
D | FaceEnrollSidecar.java | 36 private FaceManager mFaceManager; field in FaceEnrollSidecar 45 mFaceManager = Utils.getFaceManagerOrNull(activity); in onAttach() 51 mFaceManager.enroll(mUserId, mToken, mEnrollmentCancel, in startEnrollment()
|
D | FaceSettingsConfirmPreferenceController.java | 40 private FaceManager mFaceManager; field in FaceSettingsConfirmPreferenceController 49 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsConfirmPreferenceController() 69 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
|
D | FaceSettingsKeyguardPreferenceController.java | 43 private FaceManager mFaceManager; field in FaceSettingsKeyguardPreferenceController 47 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsKeyguardPreferenceController() 85 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
|
D | FaceSettings.java | 69 private FaceManager mFaceManager; field in FaceSettings 151 mFaceManager = context.getSystemService(FaceManager.class); in onCreate() 228 final boolean hasEnrolled = mFaceManager.hasEnrolledTemplates(mUserId); in onResume() 249 mFaceManager.generateChallenge(mUserId, (sensorId, userId, challenge) -> { in onActivityResult() 276 mFaceManager.revokeChallenge(mSensorId, mUserId, mChallenge); in onStop()
|
D | FaceStatusPreferenceController.java | 44 protected final FaceManager mFaceManager; field in FaceStatusPreferenceController 62 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceStatusPreferenceController() 87 return mFaceManager.hasEnrolledTemplates(getUserId()); in hasEnrolledBiometrics()
|
D | FaceEnrollEducation.java | 47 private FaceManager mFaceManager; field in FaceEnrollEducation 85 mFaceManager = Utils.getFaceManagerOrNull(this); in onCreate() 167 final int numEnrolledFaces = mFaceManager.getEnrolledFaces(mUserId).size(); in onResume()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetNewPasswordControllerTest.java | 62 private FaceManager mFaceManager; field in SetNewPasswordControllerTest 74 CURRENT_USER_ID, mPackageManager, mFingerprintManager, mFaceManager, in setUp() 103 when(mFaceManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithFace() 105 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithFace() 170 when(mFaceManager.isHardwareDetected()).thenReturn(false); in launchChooseLockWithoutFace_noFaceSensor() 172 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithoutFace_noFaceSensor() 208 when(mFaceManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithoutFace_hasFaceEnrolled() 210 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFace_hasFaceEnrolled() 246 when(mFaceManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithoutFace_deviceAdminDisallowFaceForKeyguard() 248 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFace_deviceAdminDisallowFaceForKeyguard()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | FaceReEnrollDialog.java | 45 private FaceManager mFaceManager; field in FaceReEnrollDialog 69 mFaceManager = Utils.getFaceManagerOrNull(getApplicationContext()); in onCreate() 96 if (mFaceManager == null || !mFaceManager.hasEnrolledTemplates(userId)) { in removeFaceAndReEnroll() 99 mFaceManager.remove(new Face("", 0, 0), userId, new FaceManager.RemovalCallback() { in removeFaceAndReEnroll()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | FaceSetupSlice.java | 58 private FaceManager mFaceManager; field in FaceSetupSlice 80 mFaceManager = Utils.getFaceManagerOrNull(mContext); in getSlice() 81 if (mFaceManager == null) { in getSlice() 87 final boolean hasEnrolledTemplates = mFaceManager.hasEnrolledTemplates(userId); in getSlice() 129 final boolean hasEnrolledTemplates = mFaceManager.hasEnrolledTemplates( in getIntent()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | SetNewPasswordController.java | 64 private final FaceManager mFaceManager; field in SetNewPasswordController 103 mFaceManager = faceManager; in SetNewPasswordController() 123 final boolean shouldShowFaceEnroll = mFaceManager != null in dispatchSetNewPasswordIntent() 124 && mFaceManager.isHardwareDetected() in dispatchSetNewPasswordIntent() 125 && !mFaceManager.hasEnrolledTemplates(mTargetUserId) in dispatchSetNewPasswordIntent()
|
D | ChooseLockGeneric.java | 157 private FaceManager mFaceManager; field in ChooseLockGeneric.ChooseLockGenericFragment 213 mFaceManager = Utils.getFaceManagerOrNull(activity); in onCreate() 933 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in getResIdForFactoryResetProtectionWarningMessage() 934 hasFace = mFaceManager.hasEnrolledTemplates(mUserId); in getResIdForFactoryResetProtectionWarningMessage()
|
/packages/apps/Settings/src/com/android/settings/biometrics/combination/ |
D | BiometricSettingsAppPreferenceController.java | 40 private FaceManager mFaceManager; field in BiometricSettingsAppPreferenceController 45 mFaceManager = Utils.getFaceManagerOrNull(context); in BiometricSettingsAppPreferenceController() 75 if (mFaceManager == null || mFingerprintManager == null) { in getAvailabilityStatus() 80 final boolean hasFaceEnrolledUser = mFaceManager.hasEnrolledTemplates(mUserId); in getAvailabilityStatus()
|
D | CombinedBiometricStatusPreferenceController.java | 50 FaceManager mFaceManager; field in CombinedBiometricStatusPreferenceController 70 mFaceManager = Utils.getFaceManagerOrNull(context); in CombinedBiometricStatusPreferenceController() 129 final boolean faceEnrolled = mFaceManager != null in getSummaryTextNoneEnrolled() 130 && mFaceManager.hasEnrolledTemplates(getUserId()); in getSummaryTextNoneEnrolled()
|
D | BiometricsSettingsBase.java | 57 @Nullable private FaceManager mFaceManager; field in BiometricsSettingsBase 72 mFaceManager = Utils.getFaceManagerOrNull(getActivity()); in onCreate() 120 mFaceManager.generateChallenge(mUserId, (sensorId, userId, challenge) -> { in onPreferenceTreeClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/combination/ |
D | CombinedBiometricStatusPreferenceControllerTest.java | 63 private FaceManager mFaceManager; field in CombinedBiometricStatusPreferenceControllerTest 87 ShadowApplication.getInstance().setSystemService(Context.FACE_SERVICE, mFaceManager); in setUp() 100 when(mFaceManager.isHardwareDetected()).thenReturn(true); in updateState_parentalConsentRequired_preferenceDisabled()
|