Home
last modified time | relevance | path

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

/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/database/
DProvisionedKeyDao.java88 abstract ProvisionedKey getUnassignedKeyForIrpc(String irpcHal, Instant minExpiry); in getUnassignedKeyForIrpc() argument
131 public ProvisionedKey getOrAssignKey(String irpcHal, Instant minExpiry, int clientUid, in getOrAssignKey() argument
138 ProvisionedKey availableKey = getUnassignedKeyForIrpc(irpcHal, minExpiry); in getOrAssignKey()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/
DRegistrationBinder.java97 final Instant minExpiry = Instant.now().plus(MIN_KEY_LIFETIME); in getKeyWorker() local
98 mProvisionedKeyDao.deleteExpiringKeys(minExpiry); in getKeyWorker()
104 assignedKey = tryToAssignKey(minExpiry, keyId); in getKeyWorker()
119 assignedKey = tryToAssignKey(minExpiry, keyId); in getKeyWorker()
154 private ProvisionedKey tryToAssignKey(Instant minExpiry, int keyId) { in tryToAssignKey() argument
161 minExpiry in tryToAssignKey()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DRegistrationBinderTest.java187 Instant minExpiry = Instant.now().plus(Settings.getExpiringBy(mContext));
195 .getOrAssignKey(notNull(), isInRange(minExpiry, maxExpiry), anyInt(), anyInt());
204 Instant minExpiry = Instant.now().plus(Settings.getExpiringBy(mContext));
214 .getOrAssignKey(notNull(), isInRange(minExpiry, maxExpiry), anyInt(), anyInt());
324 Instant minExpiry = Instant.now().plus(RegistrationBinder.MIN_KEY_LIFETIME);
331 verify(mMockDao).deleteExpiringKeys(isInRange(minExpiry, maxExpiry));
419 answer((hal, minExpiry, uid, keyId) -> {