Home
last modified time | relevance | path

Searched refs:generationId (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManager.java152 public void invalidatePlatformKey(int userId, int generationId) { in invalidatePlatformKey() argument
153 if (generationId != -1) { in invalidatePlatformKey()
155 mKeyStore.deleteEntry(getEncryptAlias(userId, generationId)); in invalidatePlatformKey()
156 mKeyStore.deleteEntry(getDecryptAlias(userId, generationId)); in invalidatePlatformKey()
186 int generationId = getGenerationId(userId); in regenerate() local
188 if (generationId == -1) { in regenerate()
191 invalidatePlatformKey(userId, generationId); in regenerate()
192 nextId = generationId + 1; in regenerate()
242 int generationId = getGenerationId(userId); in getEncryptKeyInternal() local
243 String alias = getEncryptAlias(userId, generationId); in getEncryptKeyInternal()
[all …]
DPlatformDecryptionKey.java43 public PlatformDecryptionKey(int generationId, AndroidKeyStoreSecretKey key) { in PlatformDecryptionKey() argument
44 mGenerationId = generationId; in PlatformDecryptionKey()
DPlatformEncryptionKey.java44 public PlatformEncryptionKey(int generationId, AndroidKeyStoreSecretKey key) { in PlatformEncryptionKey() argument
45 mGenerationId = generationId; in PlatformEncryptionKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java88 int generationId = 1; in insertKey_replacesOldKey() local
89 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey()
96 assertEquals(generationId, retrievedKey.getPlatformKeyGenerationId()); in insertKey_replacesOldKey()
101 generationId = 2; in insertKey_replacesOldKey()
102 wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey()
109 assertEquals(generationId, retrievedKey.getPlatformKeyGenerationId()); in insertKey_replacesOldKey()
167 int generationId = 6; in getKey_returnsInsertedKey() local
174 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, 120); in getKey_returnsInsertedKey()
182 assertEquals(generationId, retrievedKey.getPlatformKeyGenerationId()); in getKey_returnsInsertedKey()
190 int generationId = 6; in getAllKeys_getsKeysWithUserIdAndGenerationId() local
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DCleanupManager.java166 int generationId = mDatabase.getPlatformKeyGenerationId(userId); in removeAllKeysForRecoveryAgent() local
167 Map<String, WrappedKey> allKeys = mDatabase.getAllKeys(userId, uid, generationId); in removeAllKeysForRecoveryAgent()
DRecoverableKeyStoreDb.java162 int generationId = cursor.getInt( in getKey() local
176 return new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, recoveryStatus); in getKey()
327 public long setPlatformKeyGenerationId(int userId, int generationId) { in setPlatformKeyGenerationId() argument
331 values.put(UserMetadataEntry.COLUMN_NAME_PLATFORM_KEY_GENERATION_ID, generationId); in setPlatformKeyGenerationId()
/frameworks/base/media/java/android/media/
DRemoteControlClient.java952 private void onSeekTo(int generationId, long timeMs) { in onSeekTo() argument
954 if ((mCurrentClientGenId == generationId) && (mPositionUpdateListener != null)) { in onSeekTo()
960 private void onUpdateMetadata(int generationId, int key, Object value) { in onUpdateMetadata() argument
962 if ((mCurrentClientGenId == generationId) && (mMetadataUpdateListener != null)) { in onUpdateMetadata()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java102 int generationId; in isGrayscaleIcon() local
109 generationId = bitmap.getGenerationId(); in isGrayscaleIcon()
112 mGrayscaleBitmapCache.put(bitmap, Pair.create(result, generationId)); in isGrayscaleIcon()