Searched refs:getPlatformKeyGenerationId (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | WrappedKey.java | 177 public int getPlatformKeyGenerationId() { in getPlatformKeyGenerationId() method in WrappedKey 211 if (wrappedKey.getPlatformKeyGenerationId() != platformKeyGenerationId) { in unwrapKeys() 217 wrappedKey.getPlatformKeyGenerationId(), in unwrapKeys()
|
D | PlatformKeyManager.java | 126 return mDatabase.getPlatformKeyGenerationId(userId); in getGenerationId()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 96 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/ |
D | CleanupManager.java | 162 int generationId = mDatabase.getPlatformKeyGenerationId(userId); in removeAllKeysForRecoveryAgent()
|
D | RecoverableKeyStoreDb.java | 106 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/ |
D | WrappedKeyTest.java | 113 assertEquals(GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey()
|
D | PlatformKeyManagerTest.java | 272 mRecoverableKeyStoreDb.getPlatformKeyGenerationId(USER_ID_FIXTURE)); in init_savesGenerationIdToDatabase()
|