Searched refs:assignedKey (Results 1 – 2 of 2) sorted by relevance
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | RkpdDatabaseTest.java | 227 ProvisionedKey assignedKey = mKeyDao.getKeyForClientAndIrpc(TEST_HAL_1, FAKE_CLIENT_UID, in testGetKeyForClientAndIrpc() local 229 assertThat(mProvisionedKey1).isEqualTo(assignedKey); in testGetKeyForClientAndIrpc() 231 assignedKey = mKeyDao.getKeyForClientAndIrpc(TEST_HAL_1, FAKE_CLIENT_UID_2, FAKE_KEY_ID); in testGetKeyForClientAndIrpc() 232 assertThat(mProvisionedKey2).isEqualTo(assignedKey); in testGetKeyForClientAndIrpc() 234 assignedKey = mKeyDao.getKeyForClientAndIrpc(TEST_HAL_1, FAKE_CLIENT_UID_3, FAKE_KEY_ID_2); in testGetKeyForClientAndIrpc() 235 assertThat(assignedKey).isNull(); in testGetKeyForClientAndIrpc() 298 ProvisionedKey assignedKey = mKeyDao.getOrAssignKey(TEST_HAL_1, Instant.now(), in testAssignKey() local 301 assertThat(assignedKey.keyId).isEqualTo(FAKE_KEY_ID); in testAssignKey() 302 assertThat(assignedKey.clientUid).isEqualTo(FAKE_CLIENT_UID); in testAssignKey() 306 assertThat(sameKey).isEqualTo(assignedKey); in testAssignKey() [all …]
|
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/ |
D | RegistrationBinder.java | 100 ProvisionedKey assignedKey = mProvisionedKeyDao.getKeyForClientAndIrpc( in getKeyWorker() local 103 if (assignedKey == null) { in getKeyWorker() 104 assignedKey = tryToAssignKey(minExpiry, keyId); in getKeyWorker() 107 if (assignedKey == null) { in getKeyWorker() 119 assignedKey = tryToAssignKey(minExpiry, keyId); in getKeyWorker() 127 if (assignedKey == null) { in getKeyWorker() 136 key.keyBlob = assignedKey.keyBlob; in getKeyWorker() 137 key.encodedCertChain = assignedKey.certificateChain; in getKeyWorker()
|