Lines Matching refs:writableCredential
67 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
68 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
74 result = writableCredential->getAttestationCertificate( in TEST_P()
89 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
90 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
98 result = writableCredential->getAttestationCertificate( in TEST_P()
118 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
119 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
140 result = writableCredential->setRemotelyProvisionedAttestationKey(attestationKey, in TEST_P()
149 result = writableCredential->getAttestationCertificate( in TEST_P()
193 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
194 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
197 result = writableCredential->setRemotelyProvisionedAttestationKey(attestationKey, in TEST_P()
202 result = writableCredential->setRemotelyProvisionedAttestationKey(attestationKey, in TEST_P()
210 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
211 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
215 test_utils::AttestationData attData(writableCredential, challenge, in TEST_P()
222 test_utils::AttestationData attData2(writableCredential, challenge2, in TEST_P()
232 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
233 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
238 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
239 result = writableCredential->startPersonalization(5, entryCounts); in TEST_P()
244 result = writableCredential->startPersonalization(7, entryCounts); in TEST_P()
255 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
256 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
261 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
262 result = writableCredential->startPersonalization(1, entryCounts); in TEST_P()
269 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
270 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
275 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
276 result = writableCredential->startPersonalization(1, entryCounts); in TEST_P()
283 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
284 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
289 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
290 result = writableCredential->startPersonalization(25, entryCounts); in TEST_P()
297 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
298 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
303 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
304 result = writableCredential->startPersonalization(5, entryCounts); in TEST_P()
318 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
324 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
336 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
337 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
341 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
342 result = writableCredential->startPersonalization(3, entryCounts); in TEST_P()
360 result = writableCredential->addAccessControlProfile( in TEST_P()
396 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
397 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
401 test_utils::AttestationData attData(writableCredential, challenge, in TEST_P()
412 writableCredential->setExpectedProofOfProvisioningSize(expectedPoPSize); in TEST_P()
413 result = writableCredential->startPersonalization(1, entryCounts); in TEST_P()
420 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
429 ASSERT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
436 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
484 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
485 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
489 test_utils::AttestationData attData(writableCredential, challenge, in TEST_P()
508 writableCredential->setExpectedProofOfProvisioningSize(expectedPoPSize); in TEST_P()
509 result = writableCredential->startPersonalization(testProfiles.size(), entryCounts); in TEST_P()
514 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
539 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
546 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
645 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
646 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
650 test_utils::AttestationData attData(writableCredential, challenge, in TEST_P()
667 writableCredential->setExpectedProofOfProvisioningSize(expectedPoPSize); in TEST_P()
668 result = writableCredential->startPersonalization(3, entryCounts); in TEST_P()
677 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
690 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
697 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
709 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
710 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
714 test_utils::AttestationData attData(writableCredential, challenge, in TEST_P()
724 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
725 result = writableCredential->startPersonalization(3, entryCounts); in TEST_P()
741 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
752 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
758 EXPECT_TRUE(test_utils::addEntry(writableCredential, testEntry2, hwInfo.dataChunkSize, in TEST_P()
770 EXPECT_FALSE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
777 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
787 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
788 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_, in TEST_P()
792 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
793 Status result = writableCredential->startPersonalization(1, entryCounts); in TEST_P()
800 result = writableCredential->addAccessControlProfile(32, // id in TEST_P()
811 result = writableCredential->addAccessControlProfile(-1, // id in TEST_P()