/system/core/property_service/libpropertyinfoserializer/ |
D | trie_builder.cpp | 55 auto child = current_node->FindChild(name_pieces.front()); in AddToTrie() local 56 if (child == nullptr) { in AddToTrie() 57 child = current_node->AddChild(name_pieces.front()); in AddToTrie() 59 if (child == nullptr) { in AddToTrie() 63 current_node = child; in AddToTrie() 79 auto child = current_node->FindChild(name_pieces.front()); in AddToTrie() local 80 if (child == nullptr) { in AddToTrie() 81 child = current_node->AddChild(name_pieces.front()); in AddToTrie() 83 if (child == nullptr) { in AddToTrie() 87 if (child->context() != nullptr || child->type() != nullptr) { in AddToTrie() [all …]
|
D | trie_builder.h | 42 for (auto& child : children_) { in FindChild() 43 if (child.name() == name) return &child; in FindChild() 49 for (const auto& child : children_) { in FindChild() local 50 if (child.name() == name) return &child; in FindChild()
|
/system/chre/util/include/chre/util/ |
D | heap_impl.h | 55 size_t child = 2 * current + 1; // left child in siftDown() local 58 if (child + 1 < container.size() - 1 && in siftDown() 59 compare(container[child], container[child + 1])) { in siftDown() 60 child++; in siftDown() 65 if (child < container.size() - 1 && in siftDown() 66 compare(container[current], container[child])) { in siftDown() 67 container.swap(current, child); in siftDown() 68 current = child; in siftDown()
|
/system/extras/runconuid/ |
D | runconuid.cpp | 178 pid_t child; in main() local 181 child = fork(); in main() 183 if (child < 0) { in main() 193 if (child == 0) { in main() 197 if (ptrace(PTRACE_ATTACH, child, 0, 0) < 0) { in main() 199 kill(SIGKILL, child); in main() 211 ptrace(PTRACE_SETOPTIONS, child, 0, PTRACE_O_TRACESYSGOOD); in main() 214 ptrace(PTRACE_SYSCALL, child, 0, 0); in main() 215 waitpid(child, &status, 0); in main() 239 ptrace(PTRACE_DETACH, child, 0, 0); in main()
|
/system/extras/simpleperf/scripts/inferno/ |
D | data_types.py | 110 child = self.child_dict.get(key) 111 if child is None: 112 child = self.child_dict[key] = FlameGraphCallSite(callsite.method, callsite.dso, 114 return child 121 child = self.child_dict[key] 122 if child.num_events >= min_num_events: 123 child.trim_callchain(min_num_events) 124 self.children.append(child) 134 for child in self.children: 135 child_offset = child.generate_offset(child_offset)
|
D | svg_renderer.py | 123 for i, child in enumerate(flamegraph.children): 136 up_index = max(child.children, key=lambda x: x.weight()).id if child.children else 0 141 createSVGNode(process, child, depth, f, total_weight, height, color_scheme, nav) 143 renderSVGNodes(process, child, depth + 1, f, total_weight, height, color_scheme)
|
/system/libufdt/ |
D | ufdt_node.c | 38 res->child = NULL; in ufdt_node_construct() 39 res->last_child_p = &res->child; in ufdt_node_construct() 48 struct ufdt_node *it = ((struct ufdt_node_fdt_node *)node)->child; in ufdt_node_destruct() 59 int ufdt_node_add_child(struct ufdt_node *parent, struct ufdt_node *child) { in ufdt_node_add_child() argument 60 if (!parent || !child) return -1; in ufdt_node_add_child() 64 uint32_t child_tag = ufdt_node_tag(child); in ufdt_node_add_child() 69 *((struct ufdt_node_fdt_node *)parent)->last_child_p = child; in ufdt_node_add_child() 70 ((struct ufdt_node_fdt_node *)parent)->last_child_p = &child->sibling; in ufdt_node_add_child() 209 for (it = ((struct ufdt_node_fdt_node *)node_b)->child; it;) { in merge_children() 236 ((struct ufdt_node_fdt_node *)node_b)->child = NULL; in merge_children()
|
/system/core/libutils/include/utils/ |
D | LruCache.h | 72 Entry* child; variable 74 Entry(TKey _key, TValue _value) : key(_key), value(_value), parent(NULL), child(NULL) { in Entry() 257 for (Entry* p = mOldest; p != NULL; p = p->child) { in clear() 275 mYoungest->child = &entry; in attachToCache() 283 entry.parent->child = entry.child; in detachFromCache() 285 mOldest = entry.child; in detachFromCache() 287 if (entry.child != NULL) { in detachFromCache() 288 entry.child->parent = entry.parent; in detachFromCache() 294 entry.child = NULL; in detachFromCache()
|
/system/extras/simpleperf/ |
D | callchain.h | 131 std::unique_ptr<NodeT> child = AllocateNode( in SplitNode() local 133 child->children = std::move(parent->children); in SplitNode() 135 parent->children_period = child->period + child->children_period; in SplitNode() 138 parent->children.push_back(std::move(child)); in SplitNode()
|
D | CallChainJoiner.cpp | 150 void LRUCache::LinkParent(CacheNode* child, CacheNode* new_parent) { in LinkParent() argument 151 CacheNode* old_parent = GetParent(child); in LinkParent() 155 child->parent_index = GetNodeIndex(new_parent); in LinkParent() 165 void LRUCache::UnlinkParent(CacheNode* child) { in UnlinkParent() argument 166 CacheNode* old_parent = GetParent(child); in UnlinkParent() 170 child->parent_index = 0; in UnlinkParent()
|
D | CallChainJoiner.h | 127 void LinkParent(CacheNode* child, CacheNode* new_parent); 128 void UnlinkParent(CacheNode* child);
|
/system/core/libmemunreachable/tests/ |
D | ThreadCapture_test.cpp | 219 [&](pid_t child) { in TEST_P() argument 221 ASSERT_GT(child, 0); in TEST_P() 226 ThreadCapture thread_capture(child, heap); in TEST_P() 312 [&](pid_t child) { in TEST_F() argument 314 ASSERT_GT(child, 0); in TEST_F() 320 ThreadCapture thread_capture(child, heap); in TEST_F() 322 syscall(SYS_tgkill, child, tid, sig); in TEST_F()
|
/system/libufdt/include/ |
D | ufdt_types.h | 30 for ((it) = &(((struct ufdt_node_fdt_node *)(node))->child); *(it); \ 65 struct ufdt_node *child; member
|
/system/core/adb/ |
D | adb_utils_test.cpp | 37 static std::string subdir(const char* parent, const char* child) { in subdir() argument 40 str += child; in subdir()
|
/system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/ |
D | TreeNode.java | 79 for (V child : getChildren()) { in visitSelfThenChildrenRecursive() 80 child.visitSelfThenChildrenRecursive(visitor); in visitSelfThenChildrenRecursive()
|
D | CountryZoneTree.java | 437 ZoneNode child = node.getChildren().get(0); in compressTree() local 440 node.removeChild(child); in compressTree() 443 int periodCountAdjustment = child.getPeriodCount(); in compressTree() 444 ZoneNode descendant = child; in compressTree() 587 for (ZoneNode child : node.getChildren()) { in createGraphvizFile() 588 writeLine(nodeName + " -> " + enquote(child.getId()) + ";"); in createGraphvizFile()
|
/system/core/fastboot/ |
D | fs.cpp | 88 pid_t child; in exec_cmd() local 89 if ((child = fork()) == 0) { in exec_cmd() 93 if (child < 0) { in exec_cmd() 97 if (TEMP_FAILURE_RETRY(waitpid(child, &status, 0)) == -1) { in exec_cmd()
|
/system/libvintf/ |
D | parse_xml.cpp | 69 inline void appendChild(NodeType *parent, NodeType *child) { in appendChild() argument 70 parent->InsertEndChild(child); in appendChild() 73 inline void appendChild(DocType *parent, NodeType *child) { in appendChild() argument 74 parent->InsertEndChild(child); in appendChild() 104 for (NodeType *child = parent->FirstChildElement(name.c_str()); in getChildren() local 105 child != nullptr; in getChildren() 106 child = child->NextSiblingElement(name.c_str())) { in getChildren() 107 v.push_back(child); in getChildren() 282 NodeType *child = getChild(root, elementName); in parseTextElement() local 283 if (child == nullptr) { in parseTextElement() [all …]
|
/system/extras/simpleperf/runtest/ |
D | runtest.py | 42 def add_child(self, child): argument 43 self.children.append(child) 51 for child in self.children: 52 strs.extend(child._dump(indent + 1)) 127 def add_child(self, child): argument 128 self.children.append(child) 137 for child in self.children: 138 strs.extend(child._dump(indent + 1)) 154 for child in self.children: 157 if child.check_relation(node):
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 293 pid_t child; in wait_for_clone() local 294 if (ptrace(PTRACE_GETEVENTMSG, pid, 0, &child) != 0) { in wait_for_clone() 299 if (!wait_for_stop(child, &stop_signal)) { in wait_for_clone() 306 if (ptrace(PTRACE_CONT, child, 0, 0) != 0) { in wait_for_clone() 307 PLOG(FATAL) << "failed to resume child (pid = " << child << ")"; in wait_for_clone() 311 return child; in wait_for_clone()
|
/system/vold/ |
D | VolumeManager.cpp | 453 pid_t child; in remountUid() local 506 if (!(child = fork())) { in remountUid() 551 if (child == -1) { in remountUid() 555 TEMP_FAILURE_RETRY(waitpid(child, nullptr, 0)); in remountUid() 759 int child = fork(); in runCommandInNamespace() local 760 if (child == 0) { in runCommandInNamespace() 787 if (child == -1) { in runCommandInNamespace() 793 TEMP_FAILURE_RETRY(waitpid(child, &status, 0)); in runCommandInNamespace()
|
/system/extras/simpleperf/scripts/ |
D | report.py | 72 for child in self.children: 73 child_strs = child.dump() 266 for child in node.children: 267 self.display_call_tree(tree, id, child, indent + 1)
|
D | report_html.py | 269 child = self.children.get(func_id) 270 if not child: 271 child = self.children[func_id] = CallNode(func_id) 272 return child 276 for child in self.children.values(): 277 self.subtree_event_count += child.update_subtree_event_count() 284 child = self.children[key] 285 if child.subtree_event_count < min_limit: 288 child.cut_edge(min_limit, hit_func_ids) 297 result['c'] = [child.gen_sample_info() for child in self.children.values()]
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 641 sp<IChild> child = new SimpleChild(); in TEST_F() local 644 EXPECT_EQ(::android::OK, child->registerAsService(kInstanceName)); in TEST_F() 645 EXPECT_EQ(::android::OK, child->registerAsService(kOtherName)); in TEST_F() 647 EXPECT_TRUE(interfacesEqual(child, IChild::getService(kInstanceName))); in TEST_F() 648 EXPECT_TRUE(interfacesEqual(child, IParent::getService(kInstanceName))); in TEST_F() 658 EXPECT_TRUE(interfacesEqual(child, IChild::getService(kOtherName))); in TEST_F() 659 EXPECT_TRUE(interfacesEqual(child, IParent::getService(kOtherName))); in TEST_F() 765 sp<IChild> child = IChild::castFrom(service1); in TEST_F() local 766 EXPECT_NE(nullptr, child.get()); // it is actually a child in TEST_F() 768 EXPECT_TRUE(interfacesEqual(service1, child)); in TEST_F() [all …]
|
/system/core/property_service/libpropertyinfoparser/ |
D | property_info_parser.cpp | 70 bool TrieNode::FindChildForString(const char* name, uint32_t namelen, TrieNode* child) const { in FindChildForString() 87 *child = child_node(node_index); in FindChildForString()
|