Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/face/
DFaceStatusPreferenceControllerTest.java57 private FaceManager mFaceManager; field in FaceStatusPreferenceControllerTest
74 ShadowApplication.getInstance().setSystemService(Context.FACE_SERVICE, mFaceManager); in setUp()
86 when(mFaceManager.isHardwareDetected()).thenReturn(false); in getAvailabilityStatus_noFaceManger_DISABLED()
93 when(mFaceManager.isHardwareDetected()).thenReturn(true); in getAvailabilityStatus_hasFaceManger_AVAILABLE()
100 when(mFaceManager.isHardwareDetected()).thenReturn(false); in updateState_notSupported_shouldDoNothing()
109 when(mFaceManager.isHardwareDetected()).thenReturn(true); in updateState_noFace_shouldShowDefaultSummary()
121 when(mFaceManager.isHardwareDetected()).thenReturn(true); in updateState_hasFace_shouldShowSummary()
122 when(mFaceManager.getEnrolledFaces(anyInt())) in updateState_hasFace_shouldShowSummary()
124 when(mFaceManager.hasEnrolledTemplates(anyInt())) in updateState_hasFace_shouldShowSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetNewPasswordControllerTest.java68 private FaceManager mFaceManager; field in SetNewPasswordControllerTest
80 CURRENT_USER_ID, mPackageManager, mFingerprintManager, mFaceManager, in setUp()
86 when(mFaceManager.generateChallenge()).thenReturn(FACE_CHALLENGE); in setUp()
113 when(mFaceManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithFace()
115 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithFace()
180 when(mFaceManager.isHardwareDetected()).thenReturn(false); in launchChooseLockWithoutFace_noFaceSensor()
182 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithoutFace_noFaceSensor()
218 when(mFaceManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithoutFace_hasFaceEnrolled()
220 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFace_hasFaceEnrolled()
256 when(mFaceManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithoutFace_deviceAdminDisallowFaceForKeyguard()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollIntroduction.java43 private FaceManager mFaceManager; field in FaceEnrollIntroduction
50 mFaceManager = Utils.getFaceManagerOrNull(this); in onCreate()
160 if (mFaceManager != null) { in maxFacesEnrolled()
163 final int numEnrolledFaces = mFaceManager.getEnrolledFaces(mUserId).size(); in maxFacesEnrolled()
173 if (mFaceManager != null) { in checkMaxEnrolled()
185 mFaceManager = Utils.getFaceManagerOrNull(this); in getChallenge()
186 if (mFaceManager == null) { in getChallenge()
189 return mFaceManager.generateChallenge(); in getChallenge()
DFaceSettingsLockscreenBypassPreferenceController.java34 protected FaceManager mFaceManager; field in FaceSettingsLockscreenBypassPreferenceController
40 mFaceManager = context.getSystemService(FaceManager.class); in FaceSettingsLockscreenBypassPreferenceController()
68 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
81 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in getAvailabilityStatus()
82 return mFaceManager.hasEnrolledTemplates(getUserId()) in getAvailabilityStatus()
DFaceStatusPreferenceController.java31 protected final FaceManager mFaceManager; field in FaceStatusPreferenceController
39 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceStatusPreferenceController()
44 return mFaceManager != null && mFaceManager.isHardwareDetected(); in isDeviceSupported()
49 return mFaceManager.hasEnrolledTemplates(getUserId()); in hasEnrolledBiometrics()
DFaceSettingsAppPreferenceController.java41 private FaceManager mFaceManager; field in FaceSettingsAppPreferenceController
45 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsAppPreferenceController()
72 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
81 if(mFaceManager == null){ in getAvailabilityStatus()
87 final boolean hasEnrolledUser = mFaceManager.hasEnrolledTemplates(getUserId()); in getAvailabilityStatus()
DFaceSettingsAttentionPreferenceController.java40 private FaceManager mFaceManager; field in FaceSettingsAttentionPreferenceController
63 if (!mFaceManager.hasEnrolledTemplates(getUserId())) {
75 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsAttentionPreferenceController()
102 mFaceManager.getFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, in isChecked()
115 mFaceManager.setFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, isChecked, in setChecked()
DFaceEnrollSidecar.java36 private FaceManager mFaceManager; field in FaceEnrollSidecar
45 mFaceManager = Utils.getFaceManagerOrNull(activity); in onAttach()
52 mFaceManager.setActiveUser(mUserId); in startEnrollment()
55 mFaceManager.enroll(mUserId, mToken, mEnrollmentCancel, in startEnrollment()
DFaceSettingsRemoveButtonPreferenceController.java90 private final FaceManager mFaceManager; field in FaceSettingsRemoveButtonPreferenceController
103 final List<Face> faces = mFaceManager.getEnrolledFaces(mUserId);
122 final List<Face> faces = mFaceManager.getEnrolledFaces(mUserId);
132 mFaceManager.remove(faces.get(0), mUserId, mRemovalCallback);
143 mFaceManager = context.getSystemService(FaceManager.class); in FaceSettingsRemoveButtonPreferenceController()
DFaceSettings.java61 private FaceManager mFaceManager; field in FaceSettings
121 mFaceManager = getPrefContext().getSystemService(FaceManager.class); in onCreate()
180 final long challenge = mFaceManager.generateChallenge(); in onResume()
195 final boolean hasEnrolled = mFaceManager.hasEnrolledTemplates(mUserId); in onResume()
210 mFaceManager.setActiveUser(mUserId); in onActivityResult()
237 final int result = mFaceManager.revokeChallenge(); in onStop()
DFaceSettingsConfirmPreferenceController.java41 private FaceManager mFaceManager; field in FaceSettingsConfirmPreferenceController
50 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsConfirmPreferenceController()
70 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
DFaceSettingsKeyguardPreferenceController.java41 private FaceManager mFaceManager; field in FaceSettingsKeyguardPreferenceController
45 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsKeyguardPreferenceController()
81 } else if (!mFaceManager.hasEnrolledTemplates(getUserId())) { in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DFaceStatusPreferenceController.java31 protected final FaceManager mFaceManager; field in FaceStatusPreferenceController
39 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceStatusPreferenceController()
44 return mFaceManager != null && mFaceManager.isHardwareDetected(); in isDeviceSupported()
49 return mFaceManager.hasEnrolledTemplates(getUserId()); in hasEnrolledBiometrics()
DFaceEnrollIntroduction.java47 private FaceManager mFaceManager; field in FaceEnrollIntroduction
73 mFaceManager = Utils.getFaceManagerOrNull(this); in onCreate()
176 if (mFaceManager != null) { in checkMaxEnrolled()
179 final int numEnrolledFaces = mFaceManager.getEnrolledFaces(mUserId).size(); in checkMaxEnrolled()
191 mFaceManager = Utils.getFaceManagerOrNull(this); in getChallenge()
192 if (mFaceManager == null) { in getChallenge()
195 return mFaceManager.generateChallenge(); in getChallenge()
DFaceEnrollSidecar.java36 private FaceManager mFaceManager; field in FaceEnrollSidecar
45 mFaceManager = Utils.getFaceManagerOrNull(activity); in onAttach()
52 mFaceManager.setActiveUser(mUserId); in startEnrollment()
55 mFaceManager.enroll(mUserId, mToken, mEnrollmentCancel, in startEnrollment()
DFaceSettingsRemoveButtonPreferenceController.java90 private final FaceManager mFaceManager; field in FaceSettingsRemoveButtonPreferenceController
102 final List<Face> faces = mFaceManager.getEnrolledFaces(mUserId);
119 final List<Face> faces = mFaceManager.getEnrolledFaces(mUserId);
129 mFaceManager.remove(faces.get(0), mUserId, mRemovalCallback);
139 mFaceManager = context.getSystemService(FaceManager.class); in FaceSettingsRemoveButtonPreferenceController()
DFaceSettingsAttentionPreferenceController.java40 private FaceManager mFaceManager; field in FaceSettingsAttentionPreferenceController
71 mFaceManager = Utils.getFaceManagerOrNull(context); in FaceSettingsAttentionPreferenceController()
98 mFaceManager.getFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, in isChecked()
111 mFaceManager.setFeature(getUserId(), FaceManager.FEATURE_REQUIRE_ATTENTION, isChecked, in setChecked()
DFaceSettings.java58 private FaceManager mFaceManager; field in FaceSettings
102 mFaceManager = getPrefContext().getSystemService(FaceManager.class); in onCreate()
124 final long challenge = mFaceManager.generateChallenge(); in onCreate()
148 mFaceManager.setActiveUser(mUserId); in onActivityResult()
170 final int result = mFaceManager.revokeChallenge(); in onDestroy()
/packages/apps/Settings/src/com/android/settings/password/
DSetNewPasswordController.java65 private final FaceManager mFaceManager; field in SetNewPasswordController
104 mFaceManager = faceManager; in SetNewPasswordController()
116 && mFaceManager != null in dispatchSetNewPasswordIntent()
117 && mFaceManager.isHardwareDetected() in dispatchSetNewPasswordIntent()
118 && !mFaceManager.hasEnrolledTemplates(mTargetUserId) in dispatchSetNewPasswordIntent()
151 long challenge = mFaceManager.generateChallenge(); in getFaceChooseLockExtras()
DChooseLockGeneric.java158 private FaceManager mFaceManager; field in ChooseLockGeneric.ChooseLockGenericFragment
199 mFaceManager = Utils.getFaceManagerOrNull(getActivity()); in onCreate()
880 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in removeAllFaceForUserAndFinish()
881 if (mFaceManager.hasEnrolledTemplates(userId)) { in removeAllFaceForUserAndFinish()
882 mFaceManager.setActiveUser(userId); in removeAllFaceForUserAndFinish()
884 mFaceManager.remove(face, userId, in removeAllFaceForUserAndFinish()
910 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in removeManagedProfileFacesAndFinishIfNecessary()
911 mFaceManager.setActiveUser(UserHandle.myUserId()); in removeManagedProfileFacesAndFinishIfNecessary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DSetNewPasswordController.java65 private final FaceManager mFaceManager; field in SetNewPasswordController
104 mFaceManager = faceManager; in SetNewPasswordController()
116 && mFaceManager != null in dispatchSetNewPasswordIntent()
117 && mFaceManager.isHardwareDetected() in dispatchSetNewPasswordIntent()
118 && !mFaceManager.hasEnrolledTemplates(mTargetUserId) in dispatchSetNewPasswordIntent()
151 long challenge = mFaceManager.generateChallenge(); in getFaceChooseLockExtras()
DChooseLockGeneric.java158 private FaceManager mFaceManager; field in ChooseLockGeneric.ChooseLockGenericFragment
193 mFaceManager = Utils.getFaceManagerOrNull(getActivity()); in onCreate()
869 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in removeAllFaceForUserAndFinish()
870 if (mFaceManager.hasEnrolledTemplates(userId)) { in removeAllFaceForUserAndFinish()
871 mFaceManager.setActiveUser(userId); in removeAllFaceForUserAndFinish()
873 mFaceManager.remove(face, userId, in removeAllFaceForUserAndFinish()
899 if (mFaceManager != null && mFaceManager.isHardwareDetected()) { in removeManagedProfileFacesAndFinishIfNecessary()
900 mFaceManager.setActiveUser(UserHandle.myUserId()); in removeManagedProfileFacesAndFinishIfNecessary()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DFaceReEnrollDialog.java45 private FaceManager mFaceManager; field in FaceReEnrollDialog
65 mFaceManager = Utils.getFaceManagerOrNull(getApplicationContext()); in onCreate()
92 if (mFaceManager == null || !mFaceManager.hasEnrolledTemplates(userId)) { in removeFaceAndReEnroll()
95 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/tests/robotests/src/com/android/settings/security/
DTopLevelSecurityPreferenceControllerTest.java45 private FaceManager mFaceManager; field in TopLevelSecurityPreferenceControllerTest
54 .thenReturn(mFaceManager); in setUp()
62 when(mFaceManager.isHardwareDetected()).thenReturn(true); in geSummary_hasFace_hasStaticSummary()
125 when(mFaceManager.isHardwareDetected()).thenReturn(false); in geSummary_noFaceHardware_shouldSetSummaryWithNoBiometrics()

12