Home
last modified time | relevance | path

Searched refs:chain (Results 1 – 15 of 15) sorted by relevance

/system/extras/simpleperf/
Dcallchain.cpp31 const std::vector<SampleEntry*>& chain, size_t chain_start) { in GetMatchingLengthInNode() argument
33 for (i = 0, j = chain_start; i < node->chain.size() && j < chain.size(); ++i, ++j) { in GetMatchingLengthInNode()
34 if (!MatchSampleByName(node->chain[i], chain[j])) { in GetMatchingLengthInNode()
44 if (MatchSampleByName(node->chain.front(), sample)) { in FindMatchingNode()
51 static std::unique_ptr<CallChainNode> AllocateNode(const std::vector<SampleEntry*>& chain, in AllocateNode() argument
55 for (size_t i = chain_start; i < chain.size(); ++i) { in AllocateNode()
56 node->chain.push_back(chain[i]); in AllocateNode()
65 AllocateNode(parent->chain, parent_length, parent->period, parent->children_period); in SplitNode()
69 parent->chain.resize(parent_length); in SplitNode()
88 if (match_length < p->chain.size()) { in AddCallChain()
Dcallchain.h28 std::vector<SampleEntry*> chain; member
Dcmd_report.cpp769 …fprintf(report_fp_, "%s%s%s\n", prefix.c_str(), percentage_s.c_str(), node->chain[0]->symbol->Dema… in PrintCallGraphEntry()
771 for (size_t i = 1; i < node->chain.size(); ++i) { in PrintCallGraphEntry()
772 fprintf(report_fp_, "%s%s\n", prefix.c_str(), node->chain[i]->symbol->DemangledName()); in PrintCallGraphEntry()
/system/keymaster/
Dasymmetric_key.cpp221 static bool allocate_cert_chain(size_t entry_count, keymaster_cert_chain_t* chain, in allocate_cert_chain() argument
223 if (chain->entries) { in allocate_cert_chain()
224 for (size_t i = 0; i < chain->entry_count; ++i) in allocate_cert_chain()
225 delete[] chain->entries[i].data; in allocate_cert_chain()
226 delete[] chain->entries; in allocate_cert_chain()
229 chain->entry_count = entry_count; in allocate_cert_chain()
230 chain->entries = new keymaster_blob_t[entry_count]; in allocate_cert_chain()
231 if (!chain->entries) { in allocate_cert_chain()
242 keymaster_cert_chain_t* chain, keymaster_error_t* error) { in copy_attestation_chain() argument
249 if (!allocate_cert_chain(attest_key_chain->entry_count + 1, chain, error)) in copy_attestation_chain()
[all …]
Dsoft_keymaster_context.cpp803 UniquePtr<keymaster_cert_chain_t, CertificateChainDelete> chain(new keymaster_cert_chain_t); in AttestationChain() local
804 if (!chain.get()) in AttestationChain()
806 memset(chain.get(), 0, sizeof(keymaster_cert_chain_t)); in AttestationChain()
808 chain->entries = new keymaster_blob_t[kCertificateChainLength]; in AttestationChain()
809 if (!chain->entries) in AttestationChain()
812 memset(chain->entries, 0, sizeof(chain->entries[0]) * kCertificateChainLength); in AttestationChain()
813 chain->entry_count = kCertificateChainLength; in AttestationChain()
819 chain->entries[entry].data = dup_array(kRsaAttestCert); in AttestationChain()
820 if (!chain->entries[entry].data) in AttestationChain()
822 chain->entries[entry].data_length = array_length(kRsaAttestCert); in AttestationChain()
[all …]
Dandroid_keymaster_messages_test.cpp568 keymaster_cert_chain_t* chain = &deserialized->certificate_chain; in TEST() local
570 EXPECT_NE(nullptr, chain->entries); in TEST()
571 EXPECT_EQ(3U, chain->entry_count); in TEST()
572 EXPECT_EQ(3U, chain->entries[0].data_length); in TEST()
573 EXPECT_EQ(0, memcmp("foo", chain->entries[0].data, 3)); in TEST()
574 EXPECT_EQ(3U, chain->entries[1].data_length); in TEST()
575 EXPECT_EQ(0, memcmp("bar", chain->entries[1].data, 3)); in TEST()
576 EXPECT_EQ(3U, chain->entries[2].data_length); in TEST()
577 EXPECT_EQ(0, memcmp("baz", chain->entries[2].data, 3)); in TEST()
Dandroid_keymaster_test_utils.h215 keymaster_error_t AttestKey(const std::string& attest_challenge, keymaster_cert_chain_t* chain);
Dandroid_keymaster_test.cpp3498 static bool verify_chain(const keymaster_cert_chain_t& chain) { in verify_chain() argument
3499 for (size_t i = 0; i < chain.entry_count - 1; ++i) { in verify_chain()
3500 keymaster_blob_t& key_cert_blob = chain.entries[i]; in verify_chain()
3501 keymaster_blob_t& signing_cert_blob = chain.entries[i + 1]; in verify_chain()
/system/netd/server/
DFirewallController.cpp111 int FirewallController::enableChildChains(ChildChain chain, bool enable) { in enableChildChains() argument
114 switch(chain) { in enableChildChains()
224 FirewallType FirewallController::getFirewallType(ChildChain chain) { in getFirewallType() argument
225 switch(chain) { in getFirewallType()
239 int FirewallController::setUidRule(ChildChain chain, int uid, FirewallRule rule) { in setUidRule() argument
245 FirewallType firewallType = getFirewallType(chain); in setUidRule()
257 switch(chain) { in setUidRule()
277 ALOGW("Unknown child chain: %d", chain); in setUidRule()
DBandwidthController.cpp330 std::string BandwidthController::makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain) { in makeIptablesSpecialAppCmd() argument
340 ALOGE("Append op not supported for %s uids", chain); in makeIptablesSpecialAppCmd()
352 asprintf(&buff, "%s %s -m owner --uid-owner %d", opFlag, chain, uid); in makeIptablesSpecialAppCmd()
384 const char *chain, in manipulateSpecialApps() argument
411 ALOGE(failLogTemplate, appStrUids[uidNum], appUids[uidNum], chain); in manipulateSpecialApps()
419 iptCmd = makeIptablesSpecialAppCmd(op, uid, chain); in manipulateSpecialApps()
421 ALOGE(failLogTemplate, appStrUids[uidNum], uid, chain); in manipulateSpecialApps()
429 iptCmd = makeIptablesSpecialAppCmd(IptOpDelete, appUids[uidNum], chain); in manipulateSpecialApps()
DBandwidthController.h139 const char *chain,
147 std::string makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain);
/system/security/keystore/
DIKeystoreService.cpp212 memset(&chain, 0, sizeof(chain)); in KeymasterCertificateChain()
216 keymaster_free_cert_chain(&chain); in ~KeymasterCertificateChain()
244 keymaster_free_cert_chain(&chain); in readFromParcel()
252 chain.entries = reinterpret_cast<keymaster_blob_t*>(malloc(sizeof(keymaster_blob_t) * ucount)); in readFromParcel()
253 if (!chain.entries) { in readFromParcel()
258 memset(chain.entries, 0, sizeof(keymaster_blob_t) * ucount); in readFromParcel()
260 if (!readKeymasterBlob(in, &chain.entries[i])) { in readFromParcel()
262 keymaster_free_cert_chain(&chain); in readFromParcel()
269 out->writeInt32(chain.entry_count); in writeToParcel()
270 for (size_t i = 0; i < chain.entry_count; ++i) { in writeToParcel()
[all …]
Dkey_store_service.cpp1243 outChain->chain = {nullptr, 0}; in attestKey()
1244 int32_t rc = dev->attest_key(dev, &key, &in_params, &outChain->chain); in attestKey()
/system/security/keystore/include/keystore/
DIKeystoreService.h102 keymaster_cert_chain_t chain; member
/system/connectivity/shill/doc/
Dservice-api.txt759 the certificate authentication chain from the CA