Home
last modified time | relevance | path

Searched refs:getPlatformKeyGenerationId (Results 1 – 8 of 8) 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.java128 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()
316 assertEquals(generationId, mRecoverableKeyStoreDb.getPlatformKeyGenerationId(userId)); in setUserSerialNumbers_keepsPlatformKeyGenerationId()
376 assertThat(mRecoverableKeyStoreDb.getPlatformKeyGenerationId(userId)).isEqualTo(-1); in removeUserFromAllTables_removesData()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DCleanupManager.java166 int generationId = mDatabase.getPlatformKeyGenerationId(userId); in removeAllKeysForRecoveryAgent()
DRecoverableKeyStoreDb.java106 values.put(KeysEntry.COLUMN_NAME_GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); in insertKey()
424 public int getPlatformKeyGenerationId(int userId) { in getPlatformKeyGenerationId() method in RecoverableKeyStoreDb
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java114 assertEquals(GENERATION_ID, wrappedKey.getPlatformKeyGenerationId()); in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey()
DPlatformKeyManagerTest.java255 mRecoverableKeyStoreDb.getPlatformKeyGenerationId(USER_ID_FIXTURE)); in init_savesGenerationIdToDatabase()
/frameworks/base/services/
Dart-profile8485 PLcom/android/server/locksettings/recoverablekeystore/WrappedKey;->getPlatformKeyGenerationId()I
8533 …ver/locksettings/recoverablekeystore/storage/RecoverableKeyStoreDb;->getPlatformKeyGenerationId(I)I