Searched refs:currentInstant (Results 1 – 3 of 3) sorted by relevance
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | EncryptionKeyDaoTest.java | 178 Instant currentInstant = Instant.now().plusSeconds(5L); in test_getLatestExpiryNActiveKeyOfType_returnsNFreshestKey() local 182 ENCRYPTION_KEY_TYPE_AUCTION, currentInstant, 2); in test_getLatestExpiryNActiveKeyOfType_returnsNFreshestKey() 189 ENCRYPTION_KEY_TYPE_QUERY, currentInstant, 2); in test_getLatestExpiryNActiveKeyOfType_returnsNFreshestKey() 196 ENCRYPTION_KEY_TYPE_JOIN, currentInstant, 2); in test_getLatestExpiryNActiveKeyOfType_returnsNFreshestKey() 227 Instant currentInstant = Instant.now().plusSeconds(5L); in test_getExpiredKeysForType_returnsExpiredKeys_success() local 230 ENCRYPTION_KEY_TYPE_AUCTION, currentInstant); in test_getExpiredKeysForType_returnsExpiredKeys_success() 236 mEncryptionKeyDao.getExpiredKeysForType(ENCRYPTION_KEY_TYPE_JOIN, currentInstant); in test_getExpiredKeysForType_returnsExpiredKeys_success() 242 mEncryptionKeyDao.getExpiredKeysForType(ENCRYPTION_KEY_TYPE_QUERY, currentInstant); in test_getExpiredKeysForType_returnsExpiredKeys_success() 267 Instant currentInstant = Instant.now().plusSeconds(5L); in test_getExpiredKeys_returnsExpiredKeys() local 268 List<DBEncryptionKey> expiredKeys = mEncryptionKeyDao.getExpiredKeys(currentInstant); in test_getExpiredKeys_returnsExpiredKeys()
|
D | ProtectedServersEncryptionConfigDaoTest.java | 231 Instant currentInstant = Instant.now().plusSeconds(5L); in test_getLatestExpiryNActiveKeyOfType_returnsNFreshestKey() local 235 ENCRYPTION_KEY_TYPE_AUCTION, COORDINATOR_URL, currentInstant, 2); in test_getLatestExpiryNActiveKeyOfType_returnsNFreshestKey() 242 ENCRYPTION_KEY_TYPE_QUERY, COORDINATOR_URL, currentInstant, 2); in test_getLatestExpiryNActiveKeyOfType_returnsNFreshestKey() 249 ENCRYPTION_KEY_TYPE_JOIN, COORDINATOR_URL, currentInstant, 2); in test_getLatestExpiryNActiveKeyOfType_returnsNFreshestKey() 282 Instant currentInstant = Instant.now().plusSeconds(5L); in test_getExpiredKeysForType_returnsExpiredKeys_success() local 285 ENCRYPTION_KEY_TYPE_AUCTION, COORDINATOR_URL, currentInstant); in test_getExpiredKeysForType_returnsExpiredKeys_success() 292 ENCRYPTION_KEY_TYPE_JOIN, COORDINATOR_URL, currentInstant); in test_getExpiredKeysForType_returnsExpiredKeys_success() 299 ENCRYPTION_KEY_TYPE_QUERY, COORDINATOR_URL, currentInstant); in test_getExpiredKeysForType_returnsExpiredKeys_success() 324 Instant currentInstant = Instant.now().plusSeconds(5L); in test_getExpiredKeys_returnsExpiredKeys() local 326 mProtectedServersEncryptionConfigDao.getAllExpiredKeys(currentInstant); in test_getExpiredKeys_returnsExpiredKeys()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/ |
D | BackgroundKeyFetchWorker.java | 272 Instant currentInstant = mClock.instant(); in doRun() local 276 return getAbsentAndExpiredKeyTypes(currentInstant.plusMillis(inAdvanceIntervalMs)) in doRun() 279 fetchNewKeys(keyTypesToFetch, currentInstant, shouldStop), in doRun() 283 return getExpiredKeyTypes(currentInstant) in doRun() 286 fetchNewKeys(expiredKeyTypes, currentInstant, shouldStop), in doRun()
|