Searched refs:retrievedKey (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 92 WrappedKey retrievedKey = mRecoverableKeyStoreDb.getKey(uid, alias); in insertKey_replacesOldKey() local 93 assertArrayEquals(nonce, retrievedKey.getNonce()); in insertKey_replacesOldKey() 94 assertArrayEquals(keyMaterial, retrievedKey.getKeyMaterial()); in insertKey_replacesOldKey() 95 assertArrayEquals(keyMetadata, retrievedKey.getKeyMetadata()); in insertKey_replacesOldKey() 96 assertEquals(generationId, retrievedKey.getPlatformKeyGenerationId()); in insertKey_replacesOldKey() 105 retrievedKey = mRecoverableKeyStoreDb.getKey(uid, alias); in insertKey_replacesOldKey() 106 assertArrayEquals(nonce, retrievedKey.getNonce()); in insertKey_replacesOldKey() 107 assertArrayEquals(keyMaterial, retrievedKey.getKeyMaterial()); in insertKey_replacesOldKey() 108 assertArrayEquals(keyMetadata, retrievedKey.getKeyMetadata()); in insertKey_replacesOldKey() 109 assertEquals(generationId, retrievedKey.getPlatformKeyGenerationId()); in insertKey_replacesOldKey() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/keys/ |
D | RecoverableKeyStoreSecondaryKeyManagerTest.java | 106 Optional<RecoverableKeyStoreSecondaryKey> retrievedKey = in get_getsKeyGeneratedByController() local 109 assertThat(retrievedKey.isPresent()).isTrue(); in get_getsKeyGeneratedByController() 110 assertThat(retrievedKey.get().getAlias()).isEqualTo(key.getAlias()); in get_getsKeyGeneratedByController() 111 assertThat(retrievedKey.get().getSecretKey()).isEqualTo(key.getSecretKey()); in get_getsKeyGeneratedByController() 120 Optional<RecoverableKeyStoreSecondaryKey> retrievedKey = in get_forNonExistentKey_returnsEmptyOptional() local 123 assertThat(retrievedKey.isPresent()).isFalse(); in get_forNonExistentKey_returnsEmptyOptional()
|