/cts/tests/tests/hardware/src/android/hardware/biometrics/cts/ |
D | BiometricManagerTest.java | 66 private BiometricManager mBiometricManager; field in BiometricManagerTest 71 mBiometricManager = mContext.getSystemService(BiometricManager.class); in setUp() 78 mBiometricManager.canAuthenticate(), BiometricManager.BIOMETRIC_SUCCESS); in test_canAuthenticate() 81 mBiometricManager.canAuthenticate(DEVICE_CREDENTIAL | BIOMETRIC_WEAK), in test_canAuthenticate() 88 final CharSequence biometricLabel = mBiometricManager.getStrings(BIOMETRIC_WEAK) in test_getButtonLabel_isDifferentForDistinctAuthTypes() 90 final CharSequence credentialLabel = mBiometricManager.getStrings(DEVICE_CREDENTIAL) in test_getButtonLabel_isDifferentForDistinctAuthTypes() 102 final CharSequence biometricOrCredentialLabel = mBiometricManager.getStrings( in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType() 105 mBiometricManager.getStrings(BIOMETRIC_WEAK).getButtonLabel(); in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType() 106 final CharSequence credentialLabel = mBiometricManager.getStrings( in test_getButtonLabel_isNonEmptyIfPresentForSubAuthType() 123 final CharSequence biometricMessage = mBiometricManager.getStrings(BIOMETRIC_WEAK) in test_getPromptMessage_isDifferentForDistinctAuthTypes() [all …]
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/ |
D | BiometricSimpleTests.java | 88 mBiometricManager.createTestSession(prop.getSensorId())) { in testEnroll() 154 mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_WEAK)); in testCanAuthenticate_whenNoSensors() 156 mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_STRONG)); in testCanAuthenticate_whenNoSensors() 179 mBiometricManager.createTestSession(props.getSensorId())) { in testIsConfirmationRequired() 283 () -> mBiometricManager.canAuthenticate(authenticator)); in testInvalidInputs() 312 final int result = mBiometricManager.canAuthenticate(BiometricManager in testWhenCredentialNotEnrolled() 382 final int result = mBiometricManager.canAuthenticate(BiometricManager in testWhenCredentialEnrolled() 436 mBiometricManager.createTestSession(props.getSensorId())) { in testSimpleBiometricAuth_convenience() 444 mBiometricManager.canAuthenticate(authenticatorStrength)); in testSimpleBiometricAuth_convenience() 451 mBiometricManager.canAuthenticate(authenticatorStrength)); in testSimpleBiometricAuth_convenience() [all …]
|
D | BiometricServiceTests.java | 81 mBiometricManager.createTestSession(sensorId); in testAuthenticatorIdsInvalidated_forSensor() 106 final BiometricTestSession session = mBiometricManager.createTestSession(id); in testAuthenticatorIdsInvalidated_forSensor() 135 BiometricTestSession session = mBiometricManager.createTestSession( in testLockoutResetRequestedAfterCredentialUnlock() 189 BiometricTestSession session = mBiometricManager.createTestSession( in testLockoutResetRequestedAfterBiometricUnlock_whenStrong() 286 BiometricTestSession session = mBiometricManager.createTestSession( in testLockoutResetNotRequestedAfterBiometricUnlock_whenNotStrong() 344 mBiometricManager.createTestSession(prop.getSensorId()); in testBiometricsRemovedWhenCredentialRemoved() 362 BiometricTestSession session = mBiometricManager.createTestSession( in testRemoveBiometricEnrollments()
|
D | BiometricSecurityTests.java | 212 try (BiometricTestSession session = mBiometricManager.createTestSession(sensorId); in testBiometricStrength_forSensor_authAllowed() 221 int errCode = mBiometricManager.canAuthenticate(requestedStrength); in testBiometricStrength_forSensor_authAllowed() 253 try (BiometricTestSession session = mBiometricManager.createTestSession(sensorId); in testBiometricStrength_forSensor_authDisallowed() 261 int errCode = mBiometricManager.canAuthenticate(requestedStrength); in testBiometricStrength_forSensor_authDisallowed() 386 try (BiometricTestSession session = mBiometricManager.createTestSession(sensorId); in testBiometricStrengthDowngraded_forSensor() 407 int errCode = mBiometricManager.canAuthenticate(requestedStrength); in testBiometricStrengthDowngraded_forSensor() 423 int errCode = mBiometricManager.canAuthenticate(requestedStrength); in testBiometricStrengthDowngraded_forSensor() 546 try (BiometricTestSession session = mBiometricManager.createTestSession(sensorId); in testBiometricStrengthUpgraded_forSensor() 561 int errCode = mBiometricManager.canAuthenticate(requestedStrength); in testBiometricStrengthUpgraded_forSensor()
|
D | BiometricActivityTests.java | 74 mBiometricManager.createTestSession(prop.getSensorId()); in testBiometricOnly_authenticateFromForegroundActivity() 126 mBiometricManager.createTestSession(prop.getSensorId()); in testBiometricOnly_rejectThenErrorFromForegroundActivity() 199 mBiometricManager.createTestSession(prop.getSensorId()); in testBiometricOnly_rejectThenAuthenticate() 270 mBiometricManager.createTestSession(prop.getSensorId()); in testBiometricOnly_negativeButtonInvoked() 329 mBiometricManager.createTestSession(prop.getSensorId()); in testBiometricOrCredential_credentialButtonInvoked_biometricEnrolled() 354 BiometricTestSession session = mBiometricManager.createTestSession( in testBiometricOrCredential_credentialButtonInvoked_biometricNotEnrolled()
|
D | BiometricTestBase.java | 123 @NonNull protected BiometricManager mBiometricManager; field in BiometricTestBase 163 return mDevice.findObject(By.res(mBiometricManager.getUiPackage(), id)); in findView() 175 return mDevice.wait(Until.findObject(By.res(mBiometricManager.getUiPackage(), id)), in waitForView() 246 mBiometricManager.canAuthenticate(authenticatorStrength)).isEqualTo( in setUpNonConvenienceSensorEnrollment() 253 mBiometricManager.canAuthenticate(authenticatorStrength)).isEqualTo( in setUpNonConvenienceSensorEnrollment() 573 mBiometricManager = mInstrumentation.getContext().getSystemService(BiometricManager.class); in setUp() 577 mSensorProperties = mBiometricManager.getSensorProperties(); in setUp()
|
D | BiometricPromptContentViewTest.java | 118 mBiometricManager.createTestSession(props.getSensorId())) { in testMoreOptionsButton_simpleBiometricAuth_nonConvenience() 174 mBiometricManager.createTestSession(props.getSensorId())) { in testMoreOptionsButton_clickButton() 218 mBiometricManager.createTestSession(props.getSensorId())) { in testMoreOptionsButton_withoutPermissionException() 266 mBiometricManager.createTestSession(props.getSensorId())) { in testMoreOptionsButton_withoutSettingListenerException() 374 mBiometricManager.createTestSession(props.getSensorId())) { in testVerticalList_simpleBiometricAuth_nonConvenience()
|
D | BiometricPromptLogoTests.java | 170 mBiometricManager.createTestSession(props.getSensorId())) { in test_setLogoResAndBitmap_throwsException() 202 mBiometricManager.createTestSession(props.getSensorId())) { in test_setLogo()
|
D | BiometricCryptoTests.java | 106 mBiometricManager.createTestSession(prop.getSensorId())) { in testGenerateKeyWhenCredentialAndBiometricEnrolled()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | AbstractBaseTest.java | 49 BiometricManager mBiometricManager; field in AbstractBaseTest 54 mBiometricManager = getSystemService(BiometricManager.class); in onCreate() 96 int result = mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_WEAK); in checkAndEnroll() 103 result = mBiometricManager.canAuthenticate(requestedStrength); in checkAndEnroll()
|
D | AbstractUserAuthenticationTest.java | 106 private BiometricManager mBiometricManager; field in AbstractUserAuthenticationTest 126 mBiometricManager = getSystemService(BiometricManager.class); in onCreate() 277 final int canAuthenticate = mBiometricManager.canAuthenticate(allowedAuthenticators); in testCredentialBoundEncryption() 285 if (mBiometricManager.canAuthenticate(allowedAuthenticators) in testCredentialBoundEncryption() 399 return mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_STRONG) in hasStrongBiometrics()
|
D | BiometricWeakTests.java | 92 mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_WEAK); in onBiometricEnrollFinished()
|
D | BiometricStrongTests.java | 87 mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_STRONG); in onBiometricEnrollFinished()
|
/cts/hostsidetests/biometrics/app/src/android/server/biometrics/cts/app/ |
D | BiometricsAtomsHostSideTests.java | 74 private BiometricManager mBiometricManager; field in BiometricsAtomsHostSideTests 85 mBiometricManager = mInstrumentation.getContext().getSystemService(BiometricManager.class); in setup() 87 mSensorProperties = filterSensorProperties(mBiometricManager.getSensorProperties()); in setup() 88 mUiPackage = mBiometricManager.getUiPackage(); in setup() 139 try (BiometricTestSession session = mBiometricManager.createTestSession(sensorId)) { in testEnroll() 160 try (BiometricTestSession session = mBiometricManager.createTestSession(sensorId)) { in testAuthenticateWithBiometricPrompt()
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/ |
D | FingerprintManagerTest.java | 120 @Nullable private BiometricManager mBiometricManager; field in FingerprintManagerTest 130 mBiometricManager = mInstrumentation.getContext() in setUp() 135 assumeTrue(mBiometricManager != null); in setUp() 139 mSensorProperties = mBiometricManager.getSensorProperties().stream() in setUp() 195 try (BiometricTestSession session = mBiometricManager.createTestSession( in testEnroll()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | IdentityCredentialAuthentication.java | 65 private BiometricManager mBiometricManager; field in IdentityCredentialAuthentication 91 mBiometricManager = getSystemService(BiometricManager.class); in onRequestPermissionsResult() 178 final int result = mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_STRONG); in startTest()
|
D | IdentityCredentialAuthenticationMultiDocument.java | 67 private BiometricManager mBiometricManager; field in IdentityCredentialAuthenticationMultiDocument 118 mBiometricManager = getSystemService(BiometricManager.class); in onRequestPermissionsResult() 200 final int result = mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_STRONG); in startTest()
|
D | UnlockedDeviceRequiredKeysTest.java | 349 private BiometricManager mBiometricManager; field in UnlockedDeviceRequiredKeysTest.TestController 356 mBiometricManager = activity.getSystemService(BiometricManager.class); in TestController() 568 int biometricResponse = mBiometricManager.canAuthenticate( in verifyTestRequirements()
|
D | FingerprintBoundKeysTest.java | 75 private BiometricManager mBiometricManager; field in FingerprintBoundKeysTest 100 mBiometricManager = getSystemService(BiometricManager.class); in onCreate() 163 return mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_STRONG) in hasStrongBiometrics()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | AuthenticationBoundKeyTestActivity.java | 76 private BiometricManager mBiometricManager; field in AuthenticationBoundKeyTestActivity 98 mBiometricManager = (BiometricManager) getSystemService(BIOMETRIC_SERVICE); in onCreate() 199 return mBiometricManager.canAuthenticate(Authenticators.BIOMETRIC_STRONG) in hasStrongBiometrics()
|