Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DWrappedKey.java177 public int getPlatformKeyGenerationId() { in getPlatformKeyGenerationId() method in WrappedKey
211 if (wrappedKey.getPlatformKeyGenerationId() != platformKeyGenerationId) { in unwrapKeys()
217 wrappedKey.getPlatformKeyGenerationId(), in unwrapKeys()
DPlatformKeyManager.java126 return mDatabase.getPlatformKeyGenerationId(userId); in getGenerationId()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
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 …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DCleanupManager.java162 int generationId = mDatabase.getPlatformKeyGenerationId(userId); in removeAllKeysForRecoveryAgent()
DRecoverableKeyStoreDb.java106 values.put(KeysEntry.COLUMN_NAME_GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); in insertKey()
472 public int getPlatformKeyGenerationId(int userId) { in getPlatformKeyGenerationId() method in RecoverableKeyStoreDb
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java113 assertEquals(GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey()
DPlatformKeyManagerTest.java272 mRecoverableKeyStoreDb.getPlatformKeyGenerationId(USER_ID_FIXTURE)); in init_savesGenerationIdToDatabase()