Home
last modified time | relevance | path

Searched refs:getPlatformKeyGenerationId (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DWrappedKey.java177 public int getPlatformKeyGenerationId() { in getPlatformKeyGenerationId() method in WrappedKey
211 if (wrappedKey.getPlatformKeyGenerationId() != platformKeyGenerationId) { in unwrapKeys()
217 wrappedKey.getPlatformKeyGenerationId(), in unwrapKeys()
H A DPlatformKeyManager.java126 return mDatabase.getPlatformKeyGenerationId(userId); in getGenerationId()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
H A DRecoverableKeyStoreDbTest.java96 assertEquals(generationId, retrievedKey.getPlatformKeyGenerationId()); in insertKey_replacesOldKey()
109 assertEquals(generationId, retrievedKey.getPlatformKeyGenerationId()); in insertKey_replacesOldKey()
182 assertEquals(generationId, retrievedKey.getPlatformKeyGenerationId()); in getKey_returnsInsertedKey()
214 assertEquals(generationId, retrievedKey1.getPlatformKeyGenerationId()); in getAllKeys_getsKeysWithUserIdAndGenerationId()
221 assertEquals(generationId, retrievedKey2.getPlatformKeyGenerationId()); in getAllKeys_getsKeysWithUserIdAndGenerationId()
264 assertEquals(generationId, mRecoverableKeyStoreDb.getPlatformKeyGenerationId(userId)); in getPlatformKeyGenerationId_returnsGenerationId()
269 assertEquals(-1, mRecoverableKeyStoreDb.getPlatformKeyGenerationId(42)); in getPlatformKeyGenerationId_returnsMinusOneIfNoEntry()
278 assertEquals(2, mRecoverableKeyStoreDb.getPlatformKeyGenerationId(userId)); in setPlatformKeyGenerationId_replacesOldEntry()
319 assertEquals(generationId, mRecoverableKeyStoreDb.getPlatformKeyGenerationId(userId)); in setUserSerialNumbers_keepsPlatformKeyGenerationId()
367 assertEquals(generationId, mRecoverableKeyStoreDb.getPlatformKeyGenerationId(userId)); in setPlatformKeyGenerationId_keepsUserSerialNumber()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
H A DCleanupManager.java162 int generationId = mDatabase.getPlatformKeyGenerationId(userId); in removeAllKeysForRecoveryAgent()
H A DRecoverableKeyStoreDb.java106 values.put(KeysEntry.COLUMN_NAME_GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); in insertKey()
472 public int getPlatformKeyGenerationId(int userId) { in getPlatformKeyGenerationId() method in RecoverableKeyStoreDb
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DWrappedKeyTest.java113 assertEquals(GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey()
H A DPlatformKeyManagerTest.java270 mRecoverableKeyStoreDb.getPlatformKeyGenerationId(USER_ID_FIXTURE)); in init_savesGenerationIdToDatabase()