Home
last modified time | relevance | path

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

12

/system/extras/simpleperf/
Dcallchain.h34 std::vector<EntryT*> chain; member
66 if (match_length < p->chain.size()) { in AddCallChain()
110 if (is_same_sample(node->chain.front(), sample)) { in FindMatchingNode()
118 NodeT* node, const std::vector<EntryT*>& chain, size_t chain_start, in GetMatchingLengthInNode()
121 for (i = 0, j = chain_start; i < node->chain.size() && j < chain.size(); in GetMatchingLengthInNode()
123 if (!is_same_sample(node->chain[i], chain[j])) { in GetMatchingLengthInNode()
132 parent->chain, parent_length, parent->period, parent->children_period); in SplitNode()
136 parent->chain.resize(parent_length); in SplitNode()
141 std::unique_ptr<NodeT> AllocateNode(const std::vector<EntryT*>& chain, in AllocateNode()
145 for (size_t i = chain_start; i < chain.size(); ++i) { in AllocateNode()
[all …]
DCallChainJoiner.cpp47 std::vector<CacheNode*> chain; in AddCallChain() local
50 chain.push_back(node); in AddCallChain()
57 if (chain.size() < cache_stat_.matched_node_count_to_extend_callchain) { in AddCallChain()
60 size_t chain_pos = chain.size() - 2; in AddCallChain()
62 if (GetParent(chain[chain_pos]) != chain[chain_pos + 1]) { in AddCallChain()
71 for (size_t i = 0; i + 1 < chain.size(); ++i) { in AddCallChain()
72 LinkParent(chain[i], chain[i + 1]); in AddCallChain()
76 CacheNode* top = chain.back(); in AddCallChain()
78 if (top->sp == chain.back()->sp) { in AddCallChain()
83 for (auto it = chain.rbegin(); it != chain.rend() && (*it)->sp == top->sp; ++it) { in AddCallChain()
[all …]
DSampleDisplayer.h155 PrintSampleName(node->chain[0]).c_str()); in DisplayCallGraphEntry()
156 for (size_t i = 1; i < node->chain.size(); ++i) { in DisplayCallGraphEntry()
158 PrintSampleName(node->chain[i]).c_str()); in DisplayCallGraphEntry()
/system/netd/server/
DBandwidthController.cpp361 const std::string& chain, IptJumpOp jumpHandling, in manipulateSpecialApps() argument
365 StringAppendF(&cmd, "%s %s -m owner --uid-owner %s%s\n", opToString(op), chain.c_str(), in manipulateSpecialApps()
376 constexpr char chain[] = "bw_costly_shared"; in setInterfaceSharedQuota() local
396 StringPrintf("-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
397 StringPrintf("-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
398 StringPrintf("-A bw_FORWARD -i %s --jump %s", iface.c_str(), chain), in setInterfaceSharedQuota()
399 StringPrintf("-A bw_FORWARD -o %s --jump %s", iface.c_str(), chain), in setInterfaceSharedQuota()
404 chain, maxBytes, cost)); in setInterfaceSharedQuota()
433 constexpr char chain[] = "bw_costly_shared"; in removeInterfaceSharedQuota() local
447 StringPrintf("-D bw_INPUT -i %s --jump %s", iface.c_str(), chain), in removeInterfaceSharedQuota()
[all …]
DFirewallController.cpp129 int FirewallController::enableChildChains(ChildChain chain, bool enable) { in enableChildChains() argument
132 switch(chain) { in enableChildChains()
147 return gCtls->trafficCtrl.toggleUidOwnerMap(chain, enable); in enableChildChains()
198 FirewallType FirewallController::getFirewallType(ChildChain chain) { in getFirewallType() argument
199 switch(chain) { in getFirewallType()
213 int FirewallController::setUidRule(ChildChain chain, int uid, FirewallRule rule) { in setUidRule() argument
216 FirewallType firewallType = getFirewallType(chain); in setUidRule()
228 switch(chain) { in setUidRule()
242 ALOGW("Unknown child chain: %d", chain); in setUidRule()
246 return gCtls->trafficCtrl.changeUidOwnerRule(chain, uid, rule, firewallType); in setUidRule()
[all …]
DBandwidthControllerTest.cpp286 const std::string chain = "bw_costly_" + iface; in makeInterfaceQuotaCommands() local
287 const char* c_chain = chain.c_str(); in makeInterfaceQuotaCommands()
305 const std::string chain = "bw_costly_" + iface; in removeInterfaceQuotaCommands() local
306 const char* c_chain = chain.c_str(); in removeInterfaceQuotaCommands()
343 const std::string chain = "bw_costly_shared"; in makeInterfaceSharedQuotaCommands() local
344 const char* c_chain = chain.c_str(); in makeInterfaceSharedQuotaCommands()
363 const std::string chain = "bw_costly_shared"; in removeInterfaceSharedQuotaCommands() local
364 const char* c_chain = chain.c_str(); in removeInterfaceSharedQuotaCommands()
DTrafficController.h93 int changeUidOwnerRule(ChildChain chain, const uid_t uid, FirewallRule rule, FirewallType type);
111 int toggleUidOwnerMap(ChildChain chain, bool enable);
DTrafficControllerTest.cpp165 void checkUidOwnerRuleForChain(ChildChain chain, BpfMap<uint32_t, uint8_t>& targetMap) { in checkUidOwnerRuleForChain() argument
167 EXPECT_EQ(0, mTc.changeUidOwnerRule(chain, uid, DENY, BLACKLIST)); in checkUidOwnerRuleForChain()
173 EXPECT_EQ(0, mTc.changeUidOwnerRule(chain, uid, ALLOW, WHITELIST)); in checkUidOwnerRuleForChain()
178 EXPECT_EQ(0, mTc.changeUidOwnerRule(chain, uid, DENY, WHITELIST)); in checkUidOwnerRuleForChain()
184 EXPECT_EQ(0, mTc.changeUidOwnerRule(chain, uid, ALLOW, BLACKLIST)); in checkUidOwnerRuleForChain()
190 EXPECT_EQ(-ENOENT, mTc.changeUidOwnerRule(chain, uid, ALLOW, BLACKLIST)); in checkUidOwnerRuleForChain()
DTrafficController.cpp450 int TrafficController::changeUidOwnerRule(ChildChain chain, uid_t uid, FirewallRule rule, in changeUidOwnerRule() argument
458 switch (chain) { in changeUidOwnerRule()
473 ALOGE("change uid(%u) rule of %d failed: %s, rule: %d, type: %d", uid, chain, in changeUidOwnerRule()
534 int TrafficController::toggleUidOwnerMap(ChildChain chain, bool enable) { in toggleUidOwnerMap() argument
539 switch (chain) { in toggleUidOwnerMap()
553 ALOGE("Failed to toggleUidOwnerMap(%d): %s", chain, res.msg().c_str()); in toggleUidOwnerMap()
DBandwidthController.h92 int manipulateSpecialApps(const std::vector<std::string>& appStrUids, const std::string& chain,
/system/iot/attestation/atap/test/
Datap_util_unittest.cpp55 static void validate_cert_chain(const uint8_t* buf, AtapCertChain* chain) { in validate_cert_chain() argument
56 uint32_t chain_size = cert_chain_serialized_size(chain) - sizeof(uint32_t); in validate_cert_chain()
59 for (size_t i = 0; i < chain->entry_count; ++i) { in validate_cert_chain()
60 validate_blob(&buf[index], &chain->entries[i]); in validate_cert_chain()
61 index += sizeof(uint32_t) + chain->entries[i].data_length; in validate_cert_chain()
65 static void alloc_test_cert_chain(AtapCertChain* chain) { in alloc_test_cert_chain() argument
66 chain->entry_count = 3; in alloc_test_cert_chain()
67 for (size_t i = 0; i < chain->entry_count; ++i) { in alloc_test_cert_chain()
68 alloc_test_blob(&chain->entries[i]); in alloc_test_cert_chain()
129 AtapCertChain chain; in TEST_F() local
[all …]
/system/extras/simpleperf/scripts/inferno/
Ddata_types.py40 chain = []
45 chain.append(CallSite(entry.symbol.symbol_name, entry.symbol.dso_name))
47 chain.append(CallSite(symbol.symbol_name, symbol.dso_name))
48 self.flamegraph.add_callchain(chain, sample.period)
101 def add_callchain(self, chain, num_events): argument
104 for callsite in chain:
/system/tools/hidl/
DEnumType.cpp43 std::vector<const EnumType*> chain = typeChain(); in forEachValueFromRoot() local
44 for (auto it = chain.rbegin(); it != chain.rend(); ++it) { in forEachValueFromRoot()
193 std::vector<const EnumType*> chain = typeChain(); in lookupIdentifier() local
194 for (auto it = chain.begin(); it != chain.end(); ++it) { in lookupIdentifier()
251 std::vector<const EnumType*> chain = typeChain(); in emitTypeDeclarations() local
253 for (auto it = chain.rbegin(); it != chain.rend(); ++it) { in emitTypeDeclarations()
471 std::vector<const EnumType*> chain = typeChain(); in emitJavaTypeDeclarations() local
473 for (auto it = chain.rbegin(); it != chain.rend(); ++it) { in emitJavaTypeDeclarations()
556 std::vector<const EnumType*> chain = typeChain(); in emitVtsTypeDeclarations() local
558 for (auto it = chain.rbegin(); it != chain.rend(); ++it) { in emitVtsTypeDeclarations()
[all …]
DgenerateVts.cpp81 std::vector<const Interface *> chain = iface->typeChain(); in generateVts() local
87 for (auto it = chain.rbegin(); it != chain.rend(); ++it) { in generateVts()
DInterface.cpp265 std::vector<const Interface *> chain = typeChain(); in fillDescriptorChainMethod() local
268 for (const Interface *iface : chain) { in fillDescriptorChainMethod()
276 std::vector<const Interface *> chain = typeChain(); in fillDescriptorChainMethod() local
279 for (size_t i = 0; i < chain.size(); ++i) { in fillDescriptorChainMethod()
282 out << chain[i]->fullJavaName() << ".kInterfaceName"; in fillDescriptorChainMethod()
292 Formatter& out, const std::string& prefix, const std::vector<const Interface*>& chain, in emitDigestChain() argument
294 out.join(chain.begin(), chain.end(), ",\n", [&](const auto& iface) { in emitDigestChain()
320 std::vector<const Interface *> chain = typeChain(); in fillHashChainMethod() local
323 emitDigestChain(out, "(" + digestType->getInternalDataCppType() + ")", chain, in fillHashChainMethod()
330 std::vector<const Interface *> chain = typeChain(); in fillHashChainMethod() local
[all …]
DInterface.h158 Formatter& out, const std::string& prefix, const std::vector<const Interface*>& chain,
/system/security/keystore/include/keystore/
DKeymasterCertificateChain.h28 : chain(std::move(other)) {} in KeymasterCertificateChain()
35 hardware::hidl_vec<hardware::hidl_vec<uint8_t>> chain;
/system/keymaster/km_openssl/
Dattestation_utils.cpp92 inline bool certCopier(keymaster_blob_t** out, const keymaster_cert_chain_t& chain, in certCopier() argument
94 for (size_t i = 0; i < chain.entry_count; ++i) { in certCopier()
95 *(*out)++ = certBlobifier(chain.entries[i], fail); in certCopier()
101 inline bool certCopier(keymaster_blob_t** out, keymaster_cert_chain_t&& chain, bool* fail) { in certCopier() argument
102 for (size_t i = 0; i < chain.entry_count; ++i) { in certCopier()
103 *(*out)++ = certBlobifier(std::move(chain.entries[i]), fail); in certCopier()
105 delete[] chain.entries; in certCopier()
106 chain.entries = nullptr; in certCopier()
107 chain.entry_count = 0; in certCopier()
/system/extras/perfprofd/scripts/
Dperf_proto_stack_sqlite_flame.py141 chain = None
154 chain = self.root
155 chain = chain.add(row[2], row[3])
156 chain.count = chain.count + 1
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp587 keymaster_cert_chain_t* chain = &deserialized->certificate_chain; in TEST() local
589 EXPECT_NE(nullptr, chain->entries); in TEST()
590 EXPECT_EQ(3U, chain->entry_count); in TEST()
591 EXPECT_EQ(3U, chain->entries[0].data_length); in TEST()
592 EXPECT_EQ(0, memcmp("foo", chain->entries[0].data, 3)); in TEST()
593 EXPECT_EQ(3U, chain->entries[1].data_length); in TEST()
594 EXPECT_EQ(0, memcmp("bar", chain->entries[1].data, 3)); in TEST()
595 EXPECT_EQ(3U, chain->entries[2].data_length); in TEST()
596 EXPECT_EQ(0, memcmp("baz", chain->entries[2].data, 3)); in TEST()
/system/security/keystore/binder/android/security/
DIKeystoreService.aidl77 int attestKey(String alias, in KeymasterArguments params, out KeymasterCertificateChain chain); in attestKey() argument
78 int attestDeviceIds(in KeymasterArguments params, out KeymasterCertificateChain chain); in attestDeviceIds() argument
/system/netd/server/dns/
DDnsTlsSocket.cpp266 STACK_OF(X509) *chain = SSL_get_peer_cert_chain(ssl.get()); in sslConnect()
267 if (!chain) { in sslConnect()
273 for (size_t i = 0; i < sk_X509_num(chain); ++i) { in sslConnect()
276 X509* cert = sk_X509_value(chain, i); in sslConnect()
/system/sepolicy/prebuilts/api/28.0/private/
Dnetutils_wrapper.te22 # the whole chain including the xt_bpf rules. They need to access to the pinned
/system/sepolicy/private/
Dnetutils_wrapper.te22 # the whole chain including the xt_bpf rules. They need to access to the pinned
/system/security/keystore/
Dkeystore_aidl_hidl_marshalling_utils.cpp247 chain = keystore::readCertificateChainFromParcel(*in); in readFromParcel()
252 return keystore::writeCertificateChainToParcel(chain, out); in writeToParcel()

12