Home
last modified time | relevance | path

Searched refs:activeKeys (Results 1 – 3 of 3) sorted by relevance

/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/encryption/
DFederatedComputeEncryptionKeyManager.java301 List<FederatedComputeEncryptionKey> activeKeys = mEncryptionKeyDao in getOrFetchActiveKeys() local
303 if (activeKeys.size() > 0) { in getOrFetchActiveKeys()
304 return activeKeys; in getOrFetchActiveKeys()
309 activeKeys = mEncryptionKeyDao.getLatestExpiryNKeys(keyCount); in getOrFetchActiveKeys()
310 if (activeKeys.size() > 0) { in getOrFetchActiveKeys()
311 return activeKeys; in getOrFetchActiveKeys()
320 return activeKeys; in getOrFetchActiveKeys()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/encryption/
DFederatedComputeKeyFetchManagerTest.java424 List<FederatedComputeEncryptionKey> activeKeys = mEncryptionKeyDao.getLatestExpiryNKeys(2); in testFetchAndPersistActiveKeys_nonScheduledWithDeletion() local
425 assertThat(activeKeys.size()).isEqualTo(1); in testFetchAndPersistActiveKeys_nonScheduledWithDeletion()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/
DFederatedComputeWorker.java477 List<FederatedComputeEncryptionKey> activeKeys =
483 activeKeys.isEmpty()
485 : activeKeys.get(new Random().nextInt(activeKeys.size()));