Lines Matching refs:wc
156 sp<IWritableIdentityCredential> wc; in provisionData() local
157 ASSERT_TRUE(credentialStore_->createCredential(docType, testCredential, &wc).isOk()); in provisionData()
162 ASSERT_TRUE(wc->getAttestationCertificate(attestationApplicationId, attestationChallenge, in provisionData()
168 ASSERT_TRUE(wc->setExpectedProofOfProvisioningSize(proofOfProvisioningSize).isOk()); in provisionData()
171 wc->startPersonalization(4 /* numAccessControlProfiles */, in provisionData()
183 ASSERT_TRUE(wc->addAccessControlProfile(0, cert_A, false, 0, 0, &sacp0_).isOk()); in provisionData()
186 ASSERT_TRUE(wc->addAccessControlProfile(1, cert_B, false, 0, 0, &sacp1_).isOk()); in provisionData()
189 ASSERT_TRUE(wc->addAccessControlProfile(2, cert_C, false, 0, 0, &sacp2_).isOk()); in provisionData()
192 ASSERT_TRUE(wc->addAccessControlProfile(3, {}, false, 0, 0, &sacp3_).isOk()); in provisionData()
195 ASSERT_TRUE(wc->beginAddEntry({0}, "ns", "Accessible by A", 1).isOk()); in provisionData()
196 ASSERT_TRUE(wc->addEntryValue({9}, &encContentAccessibleByA_).isOk()); in provisionData()
199 ASSERT_TRUE(wc->beginAddEntry({0, 1}, "ns", "Accessible by A or B", 1).isOk()); in provisionData()
200 ASSERT_TRUE(wc->addEntryValue({9}, &encContentAccessibleByAorB_).isOk()); in provisionData()
203 ASSERT_TRUE(wc->beginAddEntry({1}, "ns", "Accessible by B", 1).isOk()); in provisionData()
204 ASSERT_TRUE(wc->addEntryValue({9}, &encContentAccessibleByB_).isOk()); in provisionData()
207 ASSERT_TRUE(wc->beginAddEntry({2}, "ns", "Accessible by C", 1).isOk()); in provisionData()
208 ASSERT_TRUE(wc->addEntryValue({9}, &encContentAccessibleByC_).isOk()); in provisionData()
211 ASSERT_TRUE(wc->beginAddEntry({3}, "ns", "Accessible by All", 1).isOk()); in provisionData()
212 ASSERT_TRUE(wc->addEntryValue({9}, &encContentAccessibleByAll_).isOk()); in provisionData()
215 ASSERT_TRUE(wc->beginAddEntry({}, "ns", "Accessible by None", 1).isOk()); in provisionData()
216 ASSERT_TRUE(wc->addEntryValue({9}, &encContentAccessibleByNone_).isOk()); in provisionData()
219 ASSERT_TRUE(wc->finishAddingEntries(&credentialData_, &proofOfProvisioningSignature).isOk()); in provisionData()