Searched refs:TEST_ALIAS (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
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() 119 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, NON_NULL_METADATA); in generateAndStoreKey_returnsRawMaterialOfCorrectLength() 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() 143 assertNull(mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS).getKeyMetadata()); in importKey_storesNullMetadata() [all …]
|
D | RecoverableKeyStoreManagerTest.java | 144 private static final String TEST_ALIAS = "nick"; field in RecoverableKeyStoreManagerTest 244 mRecoverableKeyStoreManager.importKey(TEST_ALIAS, keyMaterial); in importKey_storesTheKey() 246 assertThat(mRecoverableKeyStoreDb.getKey(uid, TEST_ALIAS)).isNotNull(); in importKey_storesTheKey() 254 mRecoverableKeyStoreManager.importKey(TEST_ALIAS, keyMaterial); in importKey_throwsIfInvalidLength() 264 mRecoverableKeyStoreManager.importKey(TEST_ALIAS, /*keyBytes=*/ null); in importKey_throwsIfNullKey() 278 TEST_ALIAS, keyMaterial, KEY_METADATA_NULL); in importKeyWithMetadata_nullMetadata_storesTheKey() 280 assertThat(mRecoverableKeyStoreDb.getKey(uid, TEST_ALIAS)).isNotNull(); in importKeyWithMetadata_nullMetadata_storesTheKey() 291 TEST_ALIAS, keyMaterial, KEY_METADATA_NON_NULL); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 293 assertThat(mRecoverableKeyStoreDb.getKey(uid, TEST_ALIAS)).isNotNull(); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 302 TEST_ALIAS, keyMaterial, KEY_METADATA_NON_NULL); in importKeyWithMetadata_throwsIfInvalidLength() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiKeystoreTest.java | 50 public static final String TEST_ALIAS = "someAliasString"; field in WifiKeystoreTest 81 WifiKeystore.put(TEST_ALIAS, TEST_VALUE); in testPut() 93 assertArrayEquals(TEST_VALUE, WifiKeystore.get(TEST_ALIAS)); in testGet_wifiBlobStoreDb() 107 assertArrayEquals(TEST_VALUE, WifiKeystore.get(TEST_ALIAS)); in testGet_legacyDb() 122 assertNotNull(WifiKeystore.get(TEST_ALIAS)); in testGet_notFound() 135 assertTrue(WifiKeystore.remove(TEST_ALIAS)); in testRemove_success() 140 assertTrue(WifiKeystore.remove(TEST_ALIAS)); in testRemove_success() 145 assertTrue(WifiKeystore.remove(TEST_ALIAS)); in testRemove_success() 157 assertFalse(WifiKeystore.remove(TEST_ALIAS)); in testRemove_notFound() 168 String[] legacyDbAliases = new String[]{TEST_ALIAS + "2", TEST_ALIAS + "3"}; in testList() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbHelperTest.java | 47 private static final String TEST_ALIAS = "test-alias"; field in RecoverableKeyStoreDbHelperTest 190 values.put(KeysEntry.COLUMN_NAME_ALIAS, TEST_ALIAS); in checkAllColumns_v4() 239 values.put(KeysEntry.COLUMN_NAME_ALIAS, TEST_ALIAS); in checkAllColumns_latest()
|