/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AttestKeyTest.java | 210 private void testEcAttestKey(boolean useStrongBox) throws Exception { in testEcAttestKey() argument 211 if (useStrongBox) { in testEcAttestKey() 220 .setIsStrongBoxBacked(useStrongBox) in testEcAttestKey() 224 testAttestKey(useStrongBox, attestKeyAlias, attestKeyCertChain); in testEcAttestKey() 227 private void testRsaAttestKey(boolean useStrongBox) throws Exception { in testRsaAttestKey() argument 228 if (useStrongBox) { in testRsaAttestKey() 237 .setIsStrongBoxBacked(useStrongBox) in testRsaAttestKey() 241 testAttestKey(useStrongBox, attestKeyAlias, attestKeyCertChain); in testRsaAttestKey() 244 private void testAttestKey(boolean useStrongBox, String attestKeyAlias, in testAttestKey() argument 251 .setIsStrongBoxBacked(useStrongBox) in testAttestKey() [all …]
|
D | NoAttestKeyTest.java | 95 private void testAttestKeyFail(boolean useStrongBox, String algorithm) throws Exception { in testAttestKeyFail() argument 96 if (useStrongBox) { in testAttestKeyFail() 109 .setIsStrongBoxBacked(useStrongBox) in testAttestKeyFail() 117 + useStrongBox + " and algorithm = " + algorithm + " as the " in testAttestKeyFail() 127 assertFalse(useStrongBox); in testAttestKeyFail()
|
D | DeviceOwnerKeyManagementTest.java | 359 String[] signaturePaddings, boolean useStrongBox, in generateKeyAndCheckAttestation() argument 370 .setIsStrongBoxBacked(useStrongBox); in generateKeyAndCheckAttestation() 441 public void assertAllVariantsOfDeviceIdAttestation(boolean useStrongBox) throws Exception { in assertAllVariantsOfDeviceIdAttestation() argument 487 supportedKey.signaturePaddingSchemes, useStrongBox, devIdOpt); in assertAllVariantsOfDeviceIdAttestation() 520 expectedImei, expectedMeid, expectedSecondImei, useStrongBox); in assertAllVariantsOfDeviceIdAttestation() 524 expectedImei, expectedMeid, expectedSecondImei, useStrongBox); in assertAllVariantsOfDeviceIdAttestation() 532 assertThat(useStrongBox && !TestUtils.hasStrongBox(sContext)).isTrue(); in assertAllVariantsOfDeviceIdAttestation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | FingerprintBoundKeysTest.java | 73 protected boolean useStrongBox; field in FingerprintBoundKeysTest 108 useStrongBox = false; in onRequestPermissionsResult() 199 .setIsStrongBoxBacked(useStrongBox) in createKey() 235 protected boolean doValidityDurationTest(boolean useStrongBox) { in doValidityDurationTest() argument 366 mActivity.useStrongBox)); in onAuthenticationSucceeded() 367 if (mActivity.useStrongBox || !hasStrongBox) { in onAuthenticationSucceeded() 387 if (!mActivity.useStrongBox && hasStrongBox) { in onDismiss() 388 mActivity.useStrongBox = true; in onDismiss()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | AbstractUserAuthenticationMacTest.java | 31 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument 35 .setIsStrongBoxBacked(useStrongBox) in createUserAuthenticationKey()
|
D | AbstractUserAuthenticationAeadCipherTest.java | 35 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument 42 .setIsStrongBoxBacked(useStrongBox); in createUserAuthenticationKey()
|
D | AbstractUserAuthenticationSignatureTest.java | 33 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument 39 .setIsStrongBoxBacked(useStrongBox) in createUserAuthenticationKey()
|
D | AbstractUserAuthenticationCipherTest.java | 34 boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument 41 .setIsStrongBoxBacked(useStrongBox); in createUserAuthenticationKey()
|
D | Utils.java | 39 static void createBiometricBoundKey(String keyName, boolean useStrongBox) throws Exception { in createBiometricBoundKey() argument 52 .setIsStrongBoxBacked(useStrongBox) in createBiometricBoundKey() 58 static void createTimeBoundSecretKey_deprecated(String keyName, boolean useStrongBox) in createTimeBoundSecretKey_deprecated() argument 72 .setIsStrongBoxBacked(useStrongBox) in createTimeBoundSecretKey_deprecated()
|
D | CredentialCryptoTests.java | 115 private void testTimedKey(String keyName, boolean useStrongBox) { in testTimedKey() argument 118 Utils.createTimeBoundSecretKey_deprecated(keyName, useStrongBox /* useStrongBox */); in testTimedKey() 154 if (useStrongBox) { in testTimedKey()
|
D | AbstractUserAuthenticationKeyAgreementTest.java | 45 String keyName, int timeout, int authType, boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument 52 .setIsStrongBoxBacked(useStrongBox); in createUserAuthenticationKey()
|
D | BiometricStrongTests.java | 196 private void testBiometricBoundEncryption(String keyName, byte[] secret, boolean useStrongBox) { in testBiometricBoundEncryption() argument 199 Utils.createBiometricBoundKey(keyName, useStrongBox); in testBiometricBoundEncryption() 242 if (useStrongBox) { in testBiometricBoundEncryption()
|
D | AbstractUserAuthenticationTest.java | 73 boolean useStrongBox) throws Exception; in createUserAuthenticationKey() argument 271 private void testCredentialBoundEncryption(String keyName, int timeout, boolean useStrongBox, in testCredentialBoundEncryption() argument 293 createUserAuthenticationKey(keyName, timeout, getKeyAuthenticators(), useStrongBox); in testCredentialBoundEncryption()
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/ |
D | Utils.java | 201 public static void createTimeBoundSecretKey_deprecated(String keyName, boolean useStrongBox) in createTimeBoundSecretKey_deprecated() argument 215 .setIsStrongBoxBacked(useStrongBox) in createTimeBoundSecretKey_deprecated() 221 public static void createTimeBoundSecretKey(String keyName, int authTypes, boolean useStrongBox) in createTimeBoundSecretKey() argument 235 .setIsStrongBoxBacked(useStrongBox) in createTimeBoundSecretKey() 241 public static void generateBiometricBoundKey(String keyName, boolean useStrongBox) in generateBiometricBoundKey() argument 252 .setIsStrongBoxBacked(useStrongBox) in generateBiometricBoundKey()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | KeyManagementTest.java | 195 private KeyGenParameterSpec buildRsaKeySpec(String alias, boolean useStrongBox) { in buildRsaKeySpec() argument 203 .setIsStrongBoxBacked(useStrongBox) in buildRsaKeySpec() 232 private KeyGenParameterSpec buildEcKeySpec(String alias, boolean useStrongBox) { in buildEcKeySpec() argument 237 .setIsStrongBoxBacked(useStrongBox) in buildEcKeySpec() 341 String[] signaturePaddings, boolean useStrongBox, in generateKeyAndCheckAttestation() argument 352 .setIsStrongBoxBacked(useStrongBox); in generateKeyAndCheckAttestation() 450 public void assertAllVariantsOfDeviceIdAttestation(boolean useStrongBox) throws Exception { in assertAllVariantsOfDeviceIdAttestation() argument 496 supportedKey.signaturePaddingSchemes, useStrongBox, devIdOpt); in assertAllVariantsOfDeviceIdAttestation() 531 assertThat(useStrongBox && !hasStrongBox()).isTrue(); in assertAllVariantsOfDeviceIdAttestation()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | CredentialManagementAppTest.java | 401 private KeyGenParameterSpec buildRsaKeySpec(String alias, boolean useStrongBox) { in buildRsaKeySpec() argument 409 .setIsStrongBoxBacked(useStrongBox) in buildRsaKeySpec()
|