Home
last modified time | relevance | path

Searched refs:mFingerprintManager (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollSuggestionActivityTest.java46 private FingerprintManager mFingerprintManager; field in FingerprintEnrollSuggestionActivityTest
58 .thenReturn(mFingerprintManager); in setUp()
64 when(mFingerprintManager.hasEnrolledFingerprints()).thenReturn(true); in testFingerprintEnrollmentIntroductionIsCompleteWhenFingerprintAdded()
65 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in testFingerprintEnrollmentIntroductionIsCompleteWhenFingerprintAdded()
73 when(mFingerprintManager.hasEnrolledFingerprints()).thenReturn(false); in testFingerprintEnrollmentIntroductionIsNotCompleteWhenNoFingerprintAdded()
74 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in testFingerprintEnrollmentIntroductionIsNotCompleteWhenNoFingerprintAdded()
82 when(mFingerprintManager.hasEnrolledFingerprints()).thenReturn(false); in testFingerprintEnrollmentIntroductionIsCompleteWhenHardwareNotDetected()
83 when(mFingerprintManager.isHardwareDetected()).thenReturn(false); in testFingerprintEnrollmentIntroductionIsCompleteWhenHardwareNotDetected()
98 when(mFingerprintManager.hasEnrolledFingerprints()).thenReturn(false); in testFingerprintEnrollmentIntroductionIsCompleteWhenFingerprintDisabled()
99 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in testFingerprintEnrollmentIntroductionIsCompleteWhenFingerprintDisabled()
DFingerprintStatusPreferenceControllerTest.java58 private FingerprintManager mFingerprintManager; field in FingerprintStatusPreferenceControllerTest
76 mFingerprintManager); in setUp()
88 when(mFingerprintManager.isHardwareDetected()).thenReturn(false); in getAvailabilityStatus_noFingerprintManger_DISABLED()
95 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in getAvailabilityStatus_hasFingerprintManger_AVAILABLE()
102 when(mFingerprintManager.isHardwareDetected()).thenReturn(false); in updateState_notSupported_shouldDoNothing()
111 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in updateState_noFingerprint_shouldShowDefaultSummary()
123 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in updateState_hasFingerprint_shouldShowSummary()
124 when(mFingerprintManager.getEnrolledFingerprints(anyInt())) in updateState_hasFingerprint_shouldShowSummary()
126 when(mFingerprintManager.hasEnrolledFingerprints(anyInt())).thenReturn(true); in updateState_hasFingerprint_shouldShowSummary()
DSetupFingerprintEnrollFinishTest.java52 private FingerprintManager mFingerprintManager; field in SetupFingerprintEnrollFinishTest
61 mFingerprintManager = (FingerprintManager) application.getSystemService( in setUp()
63 Shadows.shadowOf(mFingerprintManager).setIsHardwareDetected(true); in setUp()
108 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(0); in onActivityResult_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
118 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(1); in onActivityResult_fingerprintCountIsOne_fingerprintSuggestionActivityEnabled()
128 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(2); in clickNext_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
138 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(1); in clickNext_fingerprintCountIsOne_fngerprintSuggestionActivityEnabled()
148 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(2); in onBackPressed_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
158 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(1); in onBackPressed_fingerprintCountIsOne_fngerprintSuggestionActivityEnabled()
DFingerprintEnrollEnrollingTest.java53 private FingerprintManager mFingerprintManager; field in FingerprintEnrollEnrollingTest
60 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
92 verify(mFingerprintManager).enroll( in verifyAndCaptureEnrollmentCallback()
DFingerprintProfileStatusPreferenceControllerTest.java54 private FingerprintManager mFingerprintManager; field in FingerprintProfileStatusPreferenceControllerTest
69 mFingerprintManager); in setUp()
99 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in getAvailabilityStatus_userNotSupported_DISABLED()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DSwipeToNotificationPreferenceControllerTest.java50 private FingerprintManager mFingerprintManager; field in SwipeToNotificationPreferenceControllerTest
61 .thenReturn(mFingerprintManager); in setUp()
67 when(mFingerprintManager.isHardwareDetected()).thenReturn(false); in isAvailable_hardwareNotAvailable_shouldReturnFalse()
78 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in isAvailable_configIsTrue_shouldReturnTrue()
89 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in isAvailable_configIsFalse_shouldReturnFalse()
100 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in testIsChecked_configIsSet_shouldReturnTrue()
112 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in testIsChecked_configIsNotSet_shouldReturnFalse()
124 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in isSuggestionCompleted_configDisabled_shouldReturnTrue()
137 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in isSuggestionCompleted_notVisited_shouldReturnFalse()
153 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in isSuggestionCompleted_visited_shouldReturnTrue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetNewPasswordControllerTest.java66 private FingerprintManager mFingerprintManager; field in SetNewPasswordControllerTest
80 CURRENT_USER_ID, mPackageManager, mFingerprintManager, mFaceManager, in setUp()
83 when(mFingerprintManager.preEnroll()).thenReturn(FINGERPRINT_CHALLENGE); in setUp()
93 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithFingerprint()
95 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithFingerprint()
161 when(mFingerprintManager.isHardwareDetected()).thenReturn(false); in launchChooseLockWithoutFingerprint_noFingerprintSensor()
163 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithoutFingerprint_noFingerprintSensor()
199 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithoutFingerprint_hasFingerprintEnrolled()
201 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFingerprint_hasFingerprintEnrolled()
237 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in launchChooseLockWithoutFingerprint_deviceAdminDisallowFingerprintForKeyguard()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintStatusPreferenceController.java30 protected final FingerprintManager mFingerprintManager; field in FingerprintStatusPreferenceController
38 mFingerprintManager = Utils.getFingerprintManagerOrNull(context); in FingerprintStatusPreferenceController()
43 return mFingerprintManager != null && mFingerprintManager.isHardwareDetected(); in isDeviceSupported()
48 return mFingerprintManager.hasEnrolledFingerprints(getUserId()); in hasEnrolledBiometrics()
53 final int numEnrolled = mFingerprintManager.getEnrolledFingerprints(getUserId()).size(); in getSummaryTextEnrolled()
DFingerprintEnrollIntroduction.java43 private FingerprintManager mFingerprintManager; field in FingerprintEnrollIntroduction
48 mFingerprintManager = Utils.getFingerprintManagerOrNull(this); in onCreate()
119 if (mFingerprintManager != null) { in checkMaxEnrolled()
123 mFingerprintManager.getEnrolledFingerprints(mUserId).size(); in checkMaxEnrolled()
135 mFingerprintManager = Utils.getFingerprintManagerOrNull(this); in getChallenge()
136 if (mFingerprintManager == null) { in getChallenge()
139 return mFingerprintManager.preEnroll(); in getChallenge()
DFingerprintEnrollSidecar.java32 private FingerprintManager mFingerprintManager; field in FingerprintEnrollSidecar
37 mFingerprintManager = Utils.getFingerprintManagerOrNull(activity); in onAttach()
44 mFingerprintManager.setActiveUser(mUserId); in startEnrollment()
46 mFingerprintManager.enroll(mToken, mEnrollmentCancel, in startEnrollment()
DFingerprintSettings.java129 private FingerprintManager mFingerprintManager; field in FingerprintSettings.FingerprintSettingsFragment
253 || 0 == mFingerprintManager.getEnrolledFingerprints(mUserId).size()) { in retryFingerprint()
277 mFingerprintManager = Utils.getFingerprintManagerOrNull(activity); in onCreate()
289 mAuthenticateSidecar.setFingerprintManager(mFingerprintManager); in onCreate()
298 mRemovalSidecar.setFingerprintManager(mFingerprintManager); in onCreate()
376 final List<Fingerprint> items = mFingerprintManager.getEnrolledFingerprints(mUserId); in addFingerprintItemPreferences()
411 boolean tooMany = mFingerprintManager.getEnrolledFingerprints(mUserId).size() >= max; in updateAddPreference()
484 mFingerprintManager.getEnrolledFingerprints(mUserId).size() > 1; in onDeleteClick()
572 int result = mFingerprintManager.postEnroll(); in onDestroy()
616 long challenge = mFingerprintManager.preEnroll(); in launchChooseOrConfirmLock()
[all …]
DFingerprintRemoveSidecar.java41 FingerprintManager mFingerprintManager; field in FingerprintRemoveSidecar
83 mFingerprintManager.setActiveUser(userId); in startRemove()
86 mFingerprintManager.remove(fingerprint, userId, mRemoveCallback);; in startRemove()
94 mFingerprintManager = fingerprintManager; in setFingerprintManager()
DFingerprintAuthenticateSidecar.java33 private FingerprintManager mFingerprintManager; field in FingerprintAuthenticateSidecar
101 mFingerprintManager = fingerprintManager; in setFingerprintManager()
106 mFingerprintManager.authenticate(null, mCancellationSignal, 0 /* flags */, in startAuthentication()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintStatusPreferenceController.java30 protected final FingerprintManager mFingerprintManager; field in FingerprintStatusPreferenceController
38 mFingerprintManager = Utils.getFingerprintManagerOrNull(context); in FingerprintStatusPreferenceController()
43 return mFingerprintManager != null && mFingerprintManager.isHardwareDetected(); in isDeviceSupported()
48 return mFingerprintManager.hasEnrolledFingerprints(getUserId()); in hasEnrolledBiometrics()
53 final int numEnrolled = mFingerprintManager.getEnrolledFingerprints(getUserId()).size(); in getSummaryTextEnrolled()
DFingerprintEnrollIntroduction.java43 private FingerprintManager mFingerprintManager; field in FingerprintEnrollIntroduction
48 mFingerprintManager = Utils.getFingerprintManagerOrNull(this); in onCreate()
119 if (mFingerprintManager != null) { in checkMaxEnrolled()
123 mFingerprintManager.getEnrolledFingerprints(mUserId).size(); in checkMaxEnrolled()
135 mFingerprintManager = Utils.getFingerprintManagerOrNull(this); in getChallenge()
136 if (mFingerprintManager == null) { in getChallenge()
139 return mFingerprintManager.preEnroll(); in getChallenge()
DFingerprintEnrollSidecar.java32 private FingerprintManager mFingerprintManager; field in FingerprintEnrollSidecar
37 mFingerprintManager = Utils.getFingerprintManagerOrNull(activity); in onAttach()
44 mFingerprintManager.setActiveUser(mUserId); in startEnrollment()
46 mFingerprintManager.enroll(mToken, mEnrollmentCancel, in startEnrollment()
DFingerprintSettings.java129 private FingerprintManager mFingerprintManager; field in FingerprintSettings.FingerprintSettingsFragment
253 || 0 == mFingerprintManager.getEnrolledFingerprints(mUserId).size()) { in retryFingerprint()
277 mFingerprintManager = Utils.getFingerprintManagerOrNull(activity); in onCreate()
286 mAuthenticateSidecar.setFingerprintManager(mFingerprintManager); in onCreate()
295 mRemovalSidecar.setFingerprintManager(mFingerprintManager); in onCreate()
373 final List<Fingerprint> items = mFingerprintManager.getEnrolledFingerprints(mUserId); in addFingerprintItemPreferences()
408 boolean tooMany = mFingerprintManager.getEnrolledFingerprints(mUserId).size() >= max; in updateAddPreference()
481 mFingerprintManager.getEnrolledFingerprints(mUserId).size() > 1; in onDeleteClick()
569 int result = mFingerprintManager.postEnroll(); in onDestroy()
613 long challenge = mFingerprintManager.preEnroll(); in launchChooseOrConfirmLock()
[all …]
DFingerprintRemoveSidecar.java41 FingerprintManager mFingerprintManager; field in FingerprintRemoveSidecar
83 mFingerprintManager.setActiveUser(userId); in startRemove()
86 mFingerprintManager.remove(fingerprint, userId, mRemoveCallback);; in startRemove()
94 mFingerprintManager = fingerprintManager; in setFingerprintManager()
DFingerprintAuthenticateSidecar.java33 private FingerprintManager mFingerprintManager; field in FingerprintAuthenticateSidecar
101 mFingerprintManager = fingerprintManager; in setFingerprintManager()
106 mFingerprintManager.authenticate(null, mCancellationSignal, 0 /* flags */, in startAuthentication()
/packages/apps/Settings/src/com/android/settings/password/
DSetNewPasswordController.java63 private final FingerprintManager mFingerprintManager; field in SetNewPasswordController
103 mFingerprintManager = fingerprintManager; in SetNewPasswordController()
122 && mFingerprintManager != null in dispatchSetNewPasswordIntent()
123 && mFingerprintManager.isHardwareDetected() in dispatchSetNewPasswordIntent()
124 && !mFingerprintManager.hasEnrolledFingerprints(mTargetUserId) in dispatchSetNewPasswordIntent()
138 long challenge = mFingerprintManager.preEnroll(); in getFingerprintChooseLockExtras()
DChooseLockGeneric.java157 private FingerprintManager mFingerprintManager; field in ChooseLockGeneric.ChooseLockGenericFragment
198 mFingerprintManager = Utils.getFingerprintManagerOrNull(getActivity()); in onCreate()
813 if (mFingerprintManager != null && mFingerprintManager.isHardwareDetected()) { in removeAllFingerprintForUserAndFinish()
814 if (mFingerprintManager.hasEnrolledFingerprints(userId)) { in removeAllFingerprintForUserAndFinish()
815 mFingerprintManager.setActiveUser(userId); in removeAllFingerprintForUserAndFinish()
819 mFingerprintManager.remove(finger, userId, in removeAllFingerprintForUserAndFinish()
855 if (mFingerprintManager != null && mFingerprintManager.isHardwareDetected()) { in removeManagedProfileFingerprintsAndFinishIfNecessary()
856 mFingerprintManager.setActiveUser(UserHandle.myUserId()); in removeManagedProfileFingerprintsAndFinishIfNecessary()
951 if (mFingerprintManager != null && mFingerprintManager.isHardwareDetected()) { in getResIdForFactoryResetProtectionWarningMessage()
952 hasFingerprints = mFingerprintManager.hasEnrolledFingerprints(mUserId); in getResIdForFactoryResetProtectionWarningMessage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DSetNewPasswordController.java63 private final FingerprintManager mFingerprintManager; field in SetNewPasswordController
103 mFingerprintManager = fingerprintManager; in SetNewPasswordController()
122 && mFingerprintManager != null in dispatchSetNewPasswordIntent()
123 && mFingerprintManager.isHardwareDetected() in dispatchSetNewPasswordIntent()
124 && !mFingerprintManager.hasEnrolledFingerprints(mTargetUserId) in dispatchSetNewPasswordIntent()
138 long challenge = mFingerprintManager.preEnroll(); in getFingerprintChooseLockExtras()
DChooseLockGeneric.java157 private FingerprintManager mFingerprintManager; field in ChooseLockGeneric.ChooseLockGenericFragment
192 mFingerprintManager = Utils.getFingerprintManagerOrNull(getActivity()); in onCreate()
802 if (mFingerprintManager != null && mFingerprintManager.isHardwareDetected()) { in removeAllFingerprintForUserAndFinish()
803 if (mFingerprintManager.hasEnrolledFingerprints(userId)) { in removeAllFingerprintForUserAndFinish()
804 mFingerprintManager.setActiveUser(userId); in removeAllFingerprintForUserAndFinish()
808 mFingerprintManager.remove(finger, userId, in removeAllFingerprintForUserAndFinish()
844 if (mFingerprintManager != null && mFingerprintManager.isHardwareDetected()) { in removeManagedProfileFingerprintsAndFinishIfNecessary()
845 mFingerprintManager.setActiveUser(UserHandle.myUserId()); in removeManagedProfileFingerprintsAndFinishIfNecessary()
940 if (mFingerprintManager != null && mFingerprintManager.isHardwareDetected()) { in getResIdForFactoryResetProtectionWarningMessage()
941 hasFingerprints = mFingerprintManager.hasEnrolledFingerprints(mUserId); in getResIdForFactoryResetProtectionWarningMessage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DTopLevelSecurityPreferenceControllerTest.java43 private FingerprintManager mFingerprintManager; field in TopLevelSecurityPreferenceControllerTest
52 .thenReturn(mFingerprintManager); in setUp()
75 when(mFingerprintManager.isHardwareDetected()).thenReturn(true); in geSummary_hasFingerPrint_hasStaticSummary()
100 when(mFingerprintManager.isHardwareDetected()).thenReturn(false); in geSummary_noFpHardware_shouldSetSummaryWithNoBiometrics()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollIntroductionTest.java50 private FingerprintManager mFingerprintManager; field in FingerprintEnrollIntroductionTest
75 doReturn(generateFingerprintList(max)).when(mFingerprintManager) in testMaxFingerprint_shouldShowErrorMessage()
108 return mFingerprintManager; in getSystemService()

12