Searched refs:minExpiry (Results 1 – 3 of 3) sorted by relevance
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/database/ |
D | ProvisionedKeyDao.java | 88 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/ |
D | RegistrationBinder.java | 97 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/ |
D | RegistrationBinderTest.java | 187 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) -> {
|