Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/face/
DFaceStatusPreferenceControllerTest.java69 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()
DFaceSettingsLockscreenBypassPreferenceControllerTest.java54 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/
DFaceEnrollIntroduction.java56 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()
DFaceSettingsLockscreenBypassPreferenceController.java37 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()
DFaceSettingsAppPreferenceController.java41 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()
DFaceSettingsAttentionPreferenceController.java39 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()
DFaceSettingsRemoveButtonPreferenceController.java97 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()
DFaceEnrollSidecar.java36 private FaceManager mFaceManager; field in FaceEnrollSidecar
45 mFaceManager = Utils.getFaceManagerOrNull(activity); in onAttach()
51 mFaceManager.enroll(mUserId, mToken, mEnrollmentCancel, in startEnrollment()
DFaceSettingsConfirmPreferenceController.java40 private FaceManager mFaceManager; field in FaceSettingsConfirmPreferenceController
49 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsConfirmPreferenceController()
69 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
DFaceSettingsKeyguardPreferenceController.java43 private FaceManager mFaceManager; field in FaceSettingsKeyguardPreferenceController
47 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsKeyguardPreferenceController()
85 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
DFaceSettings.java69 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()
DFaceStatusPreferenceController.java44 protected final FaceManager mFaceManager; field in FaceStatusPreferenceController
62 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceStatusPreferenceController()
87 return mFaceManager.hasEnrolledTemplates(getUserId()); in hasEnrolledBiometrics()
DFaceEnrollEducation.java47 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/
DSetNewPasswordControllerTest.java62 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/
DFaceReEnrollDialog.java45 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/
DFaceSetupSlice.java58 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/
DSetNewPasswordController.java64 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()
DChooseLockGeneric.java157 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/
DBiometricSettingsAppPreferenceController.java40 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()
DCombinedBiometricStatusPreferenceController.java50 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()
DBiometricsSettingsBase.java57 @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/
DCombinedBiometricStatusPreferenceControllerTest.java63 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()