/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | Utils.java | 39 static void createBiometricBoundKey(String keyName, boolean useStrongBox) throws Exception { in createBiometricBoundKey() argument 47 keyGenerator.init(new KeyGenParameterSpec.Builder(keyName, in createBiometricBoundKey() 58 static void createTimeBoundSecretKey_deprecated(String keyName, boolean useStrongBox) in createTimeBoundSecretKey_deprecated() argument 67 keyGenerator.init(new KeyGenParameterSpec.Builder(keyName, in createTimeBoundSecretKey_deprecated() 78 static Cipher initCipher(String keyName) throws Exception { in initCipher() argument 81 SecretKey secretKey = (SecretKey) keyStore.getKey(keyName, null); in initCipher() 90 static Cipher initAeadCipher(String keyName) throws Exception { in initAeadCipher() argument 93 SecretKey secretKey = (SecretKey) keyStore.getKey(keyName, null); in initAeadCipher() 102 static Signature initSignature(String keyName) throws Exception { in initSignature() argument 106 KeyStore.Entry entry = keyStore.getEntry(keyName, null); in initSignature() [all …]
|
D | AbstractUserAuthenticationMacTest.java | 30 void createUserAuthenticationKey(String keyName, int timeout, int authType, in createUserAuthenticationKey() argument 33 keyName, KeyProperties.PURPOSE_SIGN); in createUserAuthenticationKey() 45 void initializeKeystoreOperation(String keyName) throws Exception { in initializeKeystoreOperation() argument 46 mMac = Utils.initMac(keyName); in initializeKeystoreOperation()
|
D | AbstractUserAuthenticationAeadCipherTest.java | 34 void createUserAuthenticationKey(String keyName, int timeout, int authType, in createUserAuthenticationKey() argument 37 keyName, KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT); in createUserAuthenticationKey() 51 void initializeKeystoreOperation(String keyName) throws Exception { in initializeKeystoreOperation() argument 52 mCipher = Utils.initAeadCipher(keyName); in initializeKeystoreOperation()
|
D | AbstractUserAuthenticationSignatureTest.java | 32 void createUserAuthenticationKey(String keyName, int timeout, int authType, in createUserAuthenticationKey() argument 35 keyName, KeyProperties.PURPOSE_SIGN); in createUserAuthenticationKey() 49 void initializeKeystoreOperation(String keyName) throws Exception { in initializeKeystoreOperation() argument 50 mSignature = Utils.initSignature(keyName); in initializeKeystoreOperation()
|
D | AbstractUserAuthenticationCipherTest.java | 33 void createUserAuthenticationKey(String keyName, int timeout, int authType, in createUserAuthenticationKey() argument 36 keyName, KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT); in createUserAuthenticationKey() 50 void initializeKeystoreOperation(String keyName) throws Exception { in initializeKeystoreOperation() argument 51 mCipher = Utils.initCipher(keyName); in initializeKeystoreOperation()
|
D | AbstractUserAuthenticationKeyAgreementTest.java | 45 String keyName, int timeout, int authType, boolean useStrongBox) throws Exception { in createUserAuthenticationKey() argument 48 keyName, KeyProperties.PURPOSE_AGREE_KEY); in createUserAuthenticationKey() 61 void initializeKeystoreOperation(String keyName) throws Exception { in initializeKeystoreOperation() argument 62 mKeyAgreement = Utils.initKeyAgreement(keyName); in initializeKeystoreOperation()
|
D | BiometricStrongTests.java | 185 private boolean isKeyInvalidated(String keyName) { in isKeyInvalidated() argument 187 Utils.initCipher(keyName); in isKeyInvalidated() 196 private void testBiometricBoundEncryption(String keyName, byte[] secret, boolean useStrongBox) { in testBiometricBoundEncryption() argument 199 Utils.createBiometricBoundKey(keyName, useStrongBox); in testBiometricBoundEncryption() 202 Cipher tryUseBeforeAuthCipher = Utils.initCipher(keyName); in testBiometricBoundEncryption() 215 final Cipher tryUseAfterAuthCipher = Utils.initCipher(keyName); in testBiometricBoundEncryption()
|
D | CredentialCryptoTests.java | 115 private void testTimedKey(String keyName, boolean useStrongBox) { in testTimedKey() argument 118 Utils.createTimeBoundSecretKey_deprecated(keyName, useStrongBox /* useStrongBox */); in testTimedKey() 126 final Cipher cipher = Utils.initCipher(keyName); in testTimedKey() 150 final Cipher cipher = Utils.initCipher(keyName); in testTimedKey()
|
D | AbstractUserAuthenticationTest.java | 72 abstract void createUserAuthenticationKey(String keyName, int timeout, int authType, in createUserAuthenticationKey() argument 89 abstract void initializeKeystoreOperation(String keyName) throws Exception; in initializeKeystoreOperation() argument 271 private void testCredentialBoundEncryption(String keyName, int timeout, boolean useStrongBox, in testCredentialBoundEncryption() argument 293 createUserAuthenticationKey(keyName, timeout, getKeyAuthenticators(), useStrongBox); in testCredentialBoundEncryption() 319 initializeKeystoreOperation(keyName); in testCredentialBoundEncryption() 355 initializeKeystoreOperation(keyName); in testCredentialBoundEncryption()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsSerializer.java | 328 String keyName = getKeyName(keyObj); in serializeEntry() local 332 return new MetadataEntry(keyName, JSONObject.NULL); in serializeEntry() 336 Logt.w(TAG, "Inf/NaN floating point value serialized: " + keyName); in serializeEntry() 339 return new MetadataEntry(keyName, keyValue); in serializeEntry() 342 return new MetadataEntry(keyName, keyValue); in serializeEntry() 344 return new MetadataEntry(keyName, serializeRational((Rational)keyValue)); in serializeEntry() 346 return new MetadataEntry(keyName, serializeSize((Size)keyValue)); in serializeEntry() 348 return new MetadataEntry(keyName, serializeSizeF((SizeF)keyValue)); in serializeEntry() 350 return new MetadataEntry(keyName, serializeRect((Rect)keyValue)); in serializeEntry() 352 return new MetadataEntry(keyName, serializeFace((Face)keyValue)); in serializeEntry() [all …]
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraMetadataGetter.java | 461 String keyName = getKeyName(keyObj); in serializeEntry() local 466 return new MetadataEntry(keyName, JSONObject.NULL); in serializeEntry() 470 Log.w(TAG, "Inf/NaN floating point value serialized: " + keyName); in serializeEntry() 473 return new MetadataEntry(keyName, keyValue); in serializeEntry() 476 return new MetadataEntry(keyName, keyValue); in serializeEntry() 478 return new MetadataEntry(keyName, serializeRational((Rational) keyValue)); in serializeEntry() 480 return new MetadataEntry(keyName, serializeSize((Size) keyValue)); in serializeEntry() 482 return new MetadataEntry(keyName, serializeSizeF((SizeF) keyValue)); in serializeEntry() 484 return new MetadataEntry(keyName, serializeRect((Rect) keyValue)); in serializeEntry() 486 return new MetadataEntry(keyName, serializeFace((Face) keyValue)); in serializeEntry() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | SimpleObjectsTest.java | 54 String keyName = "android.testing.Key"; in cameraKeysTest() local 58 new CaptureRequest.Key<>(keyName, Integer.class); in cameraKeysTest() 60 testRequestKey.getName(), keyName); in cameraKeysTest() 63 new CaptureResult.Key<>(keyName, Integer.class); in cameraKeysTest() 65 testResultKey.getName(), keyName); in cameraKeysTest() 68 new CameraCharacteristics.Key<>(keyName, Integer.class); in cameraKeysTest() 70 testCharacteristicsKey.getName(), keyName); in cameraKeysTest() 73 new CaptureRequest.Key<>(keyName, Integer.class); in cameraKeysTest() 77 new CaptureRequest.Key<>(keyName, Byte.class); in cameraKeysTest() 90 new CaptureResult.Key<>(keyName, Integer.class); in cameraKeysTest() [all …]
|
D | ExtendedCameraCharacteristicsTest.java | 4398 private static void assertKeyPrefixValid(String keyName) { 4401 "or valid TLD (vendor-extended keys)", keyName); 4420 private static <T> void assertStartsWithAndroidOrTLD(String msg, String keyName) { 4422 if (keyName.startsWith(PREFIX_ANDROID + delimiter)) { 4426 Matcher match = tldPattern.matcher(keyName); 4428 if (keyName.regionMatches(match.end(), delimiter, 0, delimiter.length())) { 4434 msg, PREFIX_ANDROID + delimiter, keyName));
|
/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 210 keyGenerator.init(new KeyGenParameterSpec.Builder(keyName, in createTimeBoundSecretKey_deprecated() 221 public static void createTimeBoundSecretKey(String keyName, int authTypes, boolean useStrongBox) in createTimeBoundSecretKey() argument 230 keyGenerator.init(new KeyGenParameterSpec.Builder(keyName, in createTimeBoundSecretKey() 241 public static void generateBiometricBoundKey(String keyName, boolean useStrongBox) in generateBiometricBoundKey() argument 246 keyName, in generateBiometricBoundKey() 264 public static BiometricPrompt.CryptoObject initializeCryptoObject(String keyName) in initializeCryptoObject() argument 269 keyName, null /* password */); in initializeCryptoObject()
|
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
D | CameraDeviceInfo.java | 414 String keyName = getKeyName(keyObj); in storeEntry() local 415 String protoName = keyName.replace('.', '_'); in storeEntry() 487 " for keyName: " + keyName); in storeEntry() 494 String keyName = getKeyName(keyObj); in storeArrayEntry() local 495 String protoName = keyName.replace('.', '_'); in storeArrayEntry() 569 " for keyName: " + keyName); in storeArrayEntry() 589 String keyName = getKeyName(keyObj); in storeCameraChars() local 590 if (charsKeyNames.contains(keyName)) { in storeCameraChars()
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | DeviceState.java | 900 private static String getDpcKeyFromAnnotation(Annotation annotation, String keyName) { 902 Method keyMethod = annotation.annotationType().getMethod(keyName); 905 Log.i(LOG_TAG, "Unable to get dpc key (" + keyName + ") value for "
|