/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyGeneratorTest.java | 59 private static final String TEST_ALIAS = "karlin"; field in RecoverableKeyGeneratorTest 99 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, NULL_METADATA); in generateAndStoreKey_storesWrappedKey_nullMetadata() 101 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesWrappedKey_nullMetadata() 109 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, NON_NULL_METADATA); in generateAndStoreKey_storesWrappedKey_nonNullMetadata() 111 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesWrappedKey_nonNullMetadata() 127 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, NULL_METADATA); in generateAndStoreKey_storesTheWrappedVersionOfTheRawMaterial() 129 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesTheWrappedVersionOfTheRawMaterial() 140 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, in importKey_storesNullMetadata() 149 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, in importKey_storesNonNullMetadata() 160 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, rawMaterial, in importKey_storesTheWrappedVersionOfTheRawMaterial() [all …]
|
H A D | RecoverableKeyStoreManagerTest.java | 133 private static final String TEST_ALIAS = "nick"; field in RecoverableKeyStoreManagerTest 248 TEST_ALIAS, keyMaterial, KEY_METADATA_NULL); in importKeyWithMetadata_nullMetadata_storesTheKey() 317 mRecoverableKeyStoreManager.removeKey(TEST_ALIAS); in removeKey_removesAKey() 330 mRecoverableKeyStoreManager.removeKey(TEST_ALIAS); in removeKey_updatesShouldCreateSnapshot() 341 mRecoverableKeyStoreManager.removeKey(TEST_ALIAS); in removeKey_failureDoesNotUpdateShouldCreateSnapshot() 920 .setAlias(TEST_ALIAS) in recoverKeyChainSnapshot_throwsIfNoSessionIsPresent() 968 .setAlias(TEST_ALIAS) in recoverKeyChainSnapshot_throwsIfFailedToDecryptAllApplicationKeys() 1019 .setAlias(TEST_ALIAS) in recoverKeyChainSnapshot_returnsDecryptedKeys() 1051 .setAlias(TEST_ALIAS) in recoverKeyChainSnapshot_worksOnOtherApplicationKeysIfOneDecryptionFails() 1272 TEST_ALIAS, in encryptedApplicationKey() [all …]
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
H A D | RecoverableKeyStoreSecondaryKeyTest.java | 47 private static final String TEST_ALIAS = "test"; field in RecoverableKeyStoreSecondaryKeyTest 59 mSecondaryKey = new RecoverableKeyStoreSecondaryKey(TEST_ALIAS, mGeneratedSecretKey); in setUp() 76 assertThat(alias).isEqualTo(TEST_ALIAS); in getAlias() 97 () -> new RecoverableKeyStoreSecondaryKey(TEST_ALIAS, null)); in constructor_withNullSecretKey_throwsNullPointerException() 161 ShadowRecoveryController.setRecoveryStatus(TEST_ALIAS, status); in setStatus()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
H A D | RecoverableKeyStoreDbHelperTest.java | 47 private static final String TEST_ALIAS = "test-alias"; field in RecoverableKeyStoreDbHelperTest 177 values.put(KeysEntry.COLUMN_NAME_ALIAS, TEST_ALIAS); in checkAllColumns_v4() 226 values.put(KeysEntry.COLUMN_NAME_ALIAS, TEST_ALIAS); in checkAllColumns_latest()
|
/aosp12/system/security/keystore2/src/ |
H A D | database.rs | 3888 static TEST_ALIAS: &str = "my super duper key"; variable 3901 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_full_keyentry_domain_app() 3916 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_full_keyentry_domain_app() 3931 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_full_keyentry_domain_app() 3955 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_certificate_entry_domain_app() 3969 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_certificate_entry_domain_app() 3987 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_certificate_entry_domain_app() 4002 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_certificate_entry_domain_app() 4044 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_full_keyentry_domain_selinux() 4235 alias: Some(TEST_ALIAS.to_string()), in test_insert_and_load_full_keyentry_from_grant_by_key_id() [all …]
|
/aosp12/system/security/keystore2/legacykeystore/ |
H A D | lib.rs | 529 static TEST_ALIAS: &str = &"test_alias"; const 697 db.put(3, &TEST_ALIAS, TEST_BLOB3).expect("Failed to add entry (3)."); in concurrent_legacy_keystore_entry_test() 699 db.remove(3, &TEST_ALIAS).expect("Remove failed (3)."); in concurrent_legacy_keystore_entry_test() 713 db.get(3, &TEST_ALIAS).expect("Failed to get entry (4)."); in concurrent_legacy_keystore_entry_test()
|