/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManager.java | 152 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 …]
|
D | PlatformDecryptionKey.java | 43 public PlatformDecryptionKey(int generationId, AndroidKeyStoreSecretKey key) { in PlatformDecryptionKey() argument 44 mGenerationId = generationId; in PlatformDecryptionKey()
|
D | PlatformEncryptionKey.java | 44 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/ |
D | RecoverableKeyStoreDbTest.java | 88 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/ |
D | CleanupManager.java | 166 int generationId = mDatabase.getPlatformKeyGenerationId(userId); in removeAllKeysForRecoveryAgent() local 167 Map<String, WrappedKey> allKeys = mDatabase.getAllKeys(userId, uid, generationId); in removeAllKeysForRecoveryAgent()
|
D | RecoverableKeyStoreDb.java | 162 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/ |
D | RemoteControlClient.java | 952 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/ |
D | ContrastColorUtil.java | 102 int generationId; in isGrayscaleIcon() local 109 generationId = bitmap.getGenerationId(); in isGrayscaleIcon() 112 mGrayscaleBitmapCache.put(bitmap, Pair.create(result, generationId)); in isGrayscaleIcon()
|