/system/extras/simpleperf/ |
D | callchain.cpp | 31 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()
|
D | callchain.h | 28 std::vector<SampleEntry*> chain; member
|
D | cmd_report.cpp | 769 …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/ |
D | asymmetric_key.cpp | 221 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 …]
|
D | soft_keymaster_context.cpp | 803 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 …]
|
D | android_keymaster_messages_test.cpp | 568 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()
|
D | android_keymaster_test_utils.h | 215 keymaster_error_t AttestKey(const std::string& attest_challenge, keymaster_cert_chain_t* chain);
|
D | android_keymaster_test.cpp | 3498 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/ |
D | FirewallController.cpp | 111 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()
|
D | BandwidthController.cpp | 330 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()
|
D | BandwidthController.h | 139 const char *chain, 147 std::string makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain);
|
/system/security/keystore/ |
D | IKeystoreService.cpp | 212 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 …]
|
D | key_store_service.cpp | 1243 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/ |
D | IKeystoreService.h | 102 keymaster_cert_chain_t chain; member
|
/system/connectivity/shill/doc/ |
D | service-api.txt | 759 the certificate authentication chain from the CA
|