Home
last modified time | relevance | path

Searched refs:writableCredential (Results 1 – 5 of 5) sorted by relevance

/hardware/interfaces/identity/aidl/vts/
DVtsIWritableIdentityCredentialTests.cpp63 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()
[all …]
DVtsAttestationTests.cpp70 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
71 ASSERT_TRUE(setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
78 result = writableCredential->getAttestationCertificate( in TEST_P()
94 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
95 ASSERT_TRUE(setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
103 result = writableCredential->getAttestationCertificate( in TEST_P()
119 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
120 ASSERT_TRUE(setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
128 result = writableCredential->getAttestationCertificate( in TEST_P()
DVtsIdentityTestUtils.h36 AttestationData(sp<IWritableIdentityCredential>& writableCredential, string challenge, in AttestationData()
45 result = writableCredential->getAttestationCertificate( in AttestationData()
96 bool setupWritableCredential(sp<IWritableIdentityCredential>& writableCredential,
105 sp<IWritableIdentityCredential>& writableCredential,
108 bool addEntry(sp<IWritableIdentityCredential>& writableCredential, const TestEntryData& entry,
DVtsIdentityTestUtils.cpp36 bool setupWritableCredential(sp<IWritableIdentityCredential>& writableCredential, in setupWritableCredential() argument
44 Status result = credentialStore->createCredential(docType, testCredential, &writableCredential); in setupWritableCredential()
46 if (result.isOk() && writableCredential != nullptr) { in setupWritableCredential()
89 sp<IWritableIdentityCredential>& writableCredential, in addAccessControlProfiles() argument
100 result = writableCredential->addAccessControlProfile( in addAccessControlProfiles()
130 bool addEntry(sp<IWritableIdentityCredential>& writableCredential, const TestEntryData& entry, in addEntry() argument
136 result = writableCredential->beginAddEntry(entry.profileIds, entry.nameSpace, entry.name, in addEntry()
152 result = writableCredential->addEntryValue(chunk, &encryptedContent); in addEntry()
DVtsHalIdentityEndToEndTest.cpp176 sp<IWritableIdentityCredential> writableCredential; in TEST_P() local
177 ASSERT_TRUE(test_utils::setupWritableCredential(writableCredential, credentialStore_)); in TEST_P()
180 test_utils::AttestationData attData(writableCredential, challenge, {}); in TEST_P()
192 writableCredential->setExpectedProofOfProvisioningSize(expectedProofOfProvisioningSize); in TEST_P()
194 writableCredential->startPersonalization(testProfiles.size(), testEntriesEntryCounts) in TEST_P()
198 test_utils::addAccessControlProfiles(writableCredential, testProfiles); in TEST_P()
206 ASSERT_TRUE(test_utils::addEntry(writableCredential, entry, hwInfo.dataChunkSize, in TEST_P()
213 writableCredential->finishAddingEntries(&credentialData, &proofOfProvisioningSignature) in TEST_P()
275 writableCredential = nullptr; in TEST_P()