Lines Matching refs:writableCredential

63     sp<IWritableIdentityCredential> writableCredential;  in TEST_P()  local
64 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
69 result = writableCredential->getAttestationCertificate( in TEST_P()
84 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
85 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
92 result = writableCredential->getAttestationCertificate( in TEST_P()
108 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
109 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
112 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
118 test_utils::AttestationData attData2(writableCredential, challenge2, {}); in TEST_P()
127 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
128 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
132 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
133 result = writableCredential->startPersonalization(5, entryCounts); in TEST_P()
138 result = writableCredential->startPersonalization(7, entryCounts); in TEST_P()
149 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
150 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
154 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
155 result = writableCredential->startPersonalization(1, entryCounts); in TEST_P()
162 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
163 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
167 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
168 result = writableCredential->startPersonalization(1, entryCounts); in TEST_P()
175 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
176 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
180 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
181 result = writableCredential->startPersonalization(25, entryCounts); in TEST_P()
188 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
189 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
193 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
194 result = writableCredential->startPersonalization(5, entryCounts); in TEST_P()
208 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
214 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
226 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
227 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
230 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
231 result = writableCredential->startPersonalization(3, entryCounts); in TEST_P()
249 result = writableCredential->addAccessControlProfile( in TEST_P()
285 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
286 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
289 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
299 writableCredential->setExpectedProofOfProvisioningSize(expectedPoPSize); in TEST_P()
300 result = writableCredential->startPersonalization(1, entryCounts); in TEST_P()
307 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
316 ASSERT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
323 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
372 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
373 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
376 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
394 writableCredential->setExpectedProofOfProvisioningSize(expectedPoPSize); in TEST_P()
395 result = writableCredential->startPersonalization(testProfiles.size(), entryCounts); in TEST_P()
400 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
425 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
432 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
531 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
532 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
535 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
551 writableCredential->setExpectedProofOfProvisioningSize(expectedPoPSize); in TEST_P()
552 result = writableCredential->startPersonalization(3, entryCounts); in TEST_P()
561 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
574 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
581 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
593 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
594 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
597 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
606 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
607 result = writableCredential->startPersonalization(3, entryCounts); in TEST_P()
623 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
634 EXPECT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
640 EXPECT_TRUE(test_utils::addEntry(writableCredential, testEntry2, hwInfo.dataChunkSize, in TEST_P()
652 EXPECT_FALSE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
659 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature); in TEST_P()
669 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
670 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
673 writableCredential->setExpectedProofOfProvisioningSize(123456); in TEST_P()
674 Status result = writableCredential->startPersonalization(1, entryCounts); in TEST_P()
681 result = writableCredential->addAccessControlProfile(32, // id in TEST_P()
692 result = writableCredential->addAccessControlProfile(-1, // id in TEST_P()