| /packages/modules/NeuralNetworks/tools/systrace_parser/parser/ |
| D | tree.py | 29 node = self.current.add(start_time_s, mark, layer, phase, app_phase, subtract) 31 self.current = node 34 node = self.current.add_dummy(start_time_s) 36 self.current = node 49 def recurse(node): argument 50 if node.is_dummy(): 51 to_be_removed.append(node) 52 for c in node.children: 55 for node in to_be_removed: 56 node.remove() [all …]
|
| /packages/modules/Bluetooth/system/osi/src/ |
| D | list.cc | 22 static list_node_t* list_free_node_(list_t* list, list_node_t* node); 57 for (const list_node_t* node = list_begin(list); node != list_end(list); in list_contains() local 58 node = list_next(node)) { in list_contains() 59 if (list_node(node) == data) return true; in list_contains() 96 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_insert_after() local 97 if (!node) return false; in list_insert_after() 99 node->next = prev_node->next; in list_insert_after() 100 node->data = data; in list_insert_after() 101 prev_node->next = node; in list_insert_after() 102 if (list->tail == prev_node) list->tail = node; in list_insert_after() [all …]
|
| /packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
| D | Utils.java | 87 static void recycleNode(@Nullable AccessibilityNodeInfo node) { in recycleNode() argument 88 if (node != null) { in recycleNode() 89 node.recycle(); in recycleNode() 95 for (AccessibilityNodeInfo node : nodes) { in recycleNodes() 96 recycleNode(node); in recycleNodes() 103 for (AccessibilityNodeInfo node : nodes) { in recycleNodes() 104 recycleNode(node); in recycleNodes() 114 static AccessibilityNodeInfo refreshNode(@Nullable AccessibilityNodeInfo node) { in refreshNode() argument 115 if (node == null) { in refreshNode() 118 boolean succeeded = node.refresh(); in refreshNode() [all …]
|
| D | TreeTraverser.java | 43 AccessibilityNodeInfo findNodeOrAncestor(@NonNull AccessibilityNodeInfo node, in findNodeOrAncestor() argument 45 return findNodeOrAncestor(node, /* stopPredicate= */ null, targetPredicate); in findNodeOrAncestor() 57 AccessibilityNodeInfo findNodeOrAncestor(@NonNull AccessibilityNodeInfo node, in findNodeOrAncestor() argument 60 AccessibilityNodeInfo currentNode = copyNode(node); in findNodeOrAncestor() 80 AccessibilityNodeInfo depthFirstSearch(@NonNull AccessibilityNodeInfo node, in depthFirstSearch() argument 82 return depthFirstSearch(node, /* skipPredicate= */ null, targetPredicate); in depthFirstSearch() 94 AccessibilityNodeInfo depthFirstSearch(@NonNull AccessibilityNodeInfo node, in depthFirstSearch() argument 97 if (skipPredicate != null && skipPredicate.test(node)) { in depthFirstSearch() 100 if (targetPredicate.test(node)) { in depthFirstSearch() 101 return copyNode(node); in depthFirstSearch() [all …]
|
| D | Navigator.java | 125 boolean isHostNode(@NonNull AccessibilityNodeInfo node) { in isHostNode() argument 126 return mSurfaceViewHelper.isHostNode(node); in isHostNode() 130 boolean isClientNode(@NonNull AccessibilityNodeInfo node) { in isClientNode() argument 131 return mSurfaceViewHelper.isClientNode(node); in isClientNode() 265 AccessibilityNodeInfo getRoot(@NonNull AccessibilityNodeInfo node) { in getRoot() argument 268 if (isHostNode(node)) { in getRoot() 269 AccessibilityNodeInfo child = mNodeCopier.copy(node); in getRoot() 270 AccessibilityNodeInfo parent = node.getParent(); in getRoot() 281 AccessibilityWindowInfo window = node.getWindow(); in getRoot() 291 AccessibilityNodeInfo child = mNodeCopier.copy(node); in getRoot() [all …]
|
| /packages/modules/Bluetooth/system/btif/src/ |
| D | btif_uid.cc | 48 uid_set_node_t* node = set->head; in uid_set_destroy() local 49 while (node) { in uid_set_destroy() 50 uid_set_node_t* temp = node; in uid_set_destroy() 51 node = node->next; in uid_set_destroy() 61 uid_set_node_t* node = set->head; in uid_set_find_or_create_node() local 62 while (node && node->data.app_uid != app_uid) { in uid_set_find_or_create_node() 63 node = node->next; in uid_set_find_or_create_node() 66 if (!node) { in uid_set_find_or_create_node() 67 node = (uid_set_node_t*)osi_calloc(sizeof(uid_set_node_t)); in uid_set_find_or_create_node() 68 node->data.app_uid = app_uid; in uid_set_find_or_create_node() [all …]
|
| /packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
| D | TreeTraverserTest.java | 123 /* stopPredicate= */ null, /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 129 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 135 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 141 /* targetPredicate= */ node -> node.equals(mNode6)); in testFindNodeOrAncestor() 147 node -> node.equals(mNode1), in testFindNodeOrAncestor() 148 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 154 node -> node.equals(mNode0), in testFindNodeOrAncestor() 155 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor() 179 node -> { in testDepthFirstSearch() 180 targetPredicateCalledWithNodes.add(new AccessibilityNodeInfo(node)); in testDepthFirstSearch() [all …]
|
| D | NodeBuilderTest.java | 61 AccessibilityNodeInfo node = mNodeBuilder.build(); in testBuildDefaultNode() local 62 assertThat(node.isFocusable()).isTrue(); in testBuildDefaultNode() 63 assertThat(node.isFocused()).isFalse(); in testBuildDefaultNode() 64 assertThat(node.isVisibleToUser()).isTrue(); in testBuildDefaultNode() 65 assertThat(node.refresh()).isTrue(); in testBuildDefaultNode() 66 assertThat(node.isEnabled()).isTrue(); in testBuildDefaultNode() 67 assertThat(node.isScrollable()).isFalse(); in testBuildDefaultNode() 69 node.getBoundsInParent(boundsInParent); in testBuildDefaultNode() 72 node.getBoundsInScreen(boundsInScreen); in testBuildDefaultNode() 74 assertThat(node.getBoundsInScreen()).isEqualTo(NodeBuilder.DEFAULT_BOUNDS); in testBuildDefaultNode() [all …]
|
| /packages/providers/MediaProvider/jni/ |
| D | node.cpp | 44 void node::BuildPathForNodeRecursive(bool safe, const node* node, std::stringstream* path) const { in BuildPathForNodeRecursive() argument 45 if (node->parent_) { in BuildPathForNodeRecursive() 46 BuildPathForNodeRecursive(safe, node->parent_, path); in BuildPathForNodeRecursive() 49 if (safe && node->parent_) { in BuildPathForNodeRecursive() 50 (*path) << reinterpret_cast<uintptr_t>(node); in BuildPathForNodeRecursive() 52 (*path) << node->GetName(); in BuildPathForNodeRecursive() 55 if (node != this) { in BuildPathForNodeRecursive() 61 std::string node::BuildPath() const { in BuildPath() 69 std::string node::BuildSafePath() const { in BuildSafePath() 77 const node* node::LookupAbsolutePath(const node* root, const std::string& absolute_path) { in LookupAbsolutePath() [all …]
|
| D | node_test.cpp | 11 using mediaprovider::fuse::node; 21 uint32_t GetRefCount(node* node) { return node->refcount_; } in GetRefCount() argument 27 static void destroy(node* node) { delete node; } in destroy() argument 29 static void acquire(node* node) { node->Acquire(); } in acquire() argument 31 typedef std::unique_ptr<node, decltype(&NodeTest::destroy)> unique_node_ptr; 33 unique_node_ptr CreateNode(node* parent, const std::string& path, const int transforms = 0) { in CreateNode() 35 node::Create(parent, path, "", true, transforms, 0, &lock_, 0, &tracker_), in CreateNode() 39 static class node* ForChild(class node* node, const std::string& name, in ForChild() argument 40 const std::function<bool(class node*)>& callback) { in ForChild() 41 return node->ForChild(name, callback); in ForChild() [all …]
|
| D | node-inl.h | 94 class node; variable 104 const node* node = reinterpret_cast<const class node*>(ino); in Exists() local 106 return active_nodes_.find(node) != active_nodes_.end(); in Exists() 112 const node* node = reinterpret_cast<const class node*>(ino); in CheckTracked() local 114 CHECK(active_nodes_.find(node) != active_nodes_.end()); in CheckTracked() 118 void NodeDeleted(const node* node) { in NodeDeleted() argument 121 LOG(DEBUG) << "Node: " << reinterpret_cast<uintptr_t>(node) << " deleted."; in NodeDeleted() 123 CHECK(active_nodes_.find(node) != active_nodes_.end()); in NodeDeleted() 124 active_nodes_.erase(node); in NodeDeleted() 128 void NodeCreated(const node* node) { in NodeCreated() argument [all …]
|
| D | FuseDaemon.cpp | 74 using mediaprovider::fuse::node; 271 root(node::CreateRoot(_path, &lock, _ino, &tracker)), in fuse() 282 inline bool IsRoot(const node* node) const { return node == root; } in IsRoot() 297 inline node* FromInode(__u64 inode) { in FromInode() 302 return node::FromInode(inode, &tracker); in FromInode() 305 inline node* FromInodeNoThrow(__u64 inode) { in FromInodeNoThrow() 310 return node::FromInodeNoThrow(inode, &tracker); in FromInodeNoThrow() 313 inline __u64 ToInode(node* node) const { in ToInode() 314 if (IsRoot(node)) { in ToInode() 318 return node::ToInode(node); in ToInode() [all …]
|
| /packages/modules/Virtualization/libs/libfdt/src/ |
| D | libfdt.rs | 109 fn next_node(&self, node: NodeOffset, depth: usize) -> Result<Option<(NodeOffset, usize)>> { in next_node() 111 let node = node.into(); in next_node() localVariable 114 let ret = unsafe { libfdt_bindgen::fdt_next_node(fdt, node, &mut depth) }; in next_node() 128 fn parent_offset(&self, node: NodeOffset) -> Result<NodeOffset> { in parent_offset() 130 let node = node.into(); in parent_offset() localVariable 132 let ret = unsafe { libfdt_bindgen::fdt_parent_offset(fdt, node) }; in parent_offset() 141 fn supernode_atdepth_offset(&self, node: NodeOffset, depth: usize) -> Result<NodeOffset> { in supernode_atdepth_offset() 143 let node = node.into(); in supernode_atdepth_offset() localVariable 148 unsafe { libfdt_bindgen::fdt_supernode_atdepth_offset(fdt, node, depth, nodedepth) }; in supernode_atdepth_offset() 169 fn first_subnode(&self, node: NodeOffset) -> Result<Option<NodeOffset>> { in first_subnode() [all …]
|
| /packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/omadm/ |
| D | PpsMoParser.java | 461 private static PasspointConfiguration parsePpsNode(XMLNode node) in parsePpsNode() argument 466 for (XMLNode child : node.getChildren()) { in parsePpsNode() 525 private static String parseUrn(XMLNode node) throws ParsingException { in parseUrn() argument 526 if (node.getChildren().size() != 1) in parseUrn() 529 XMLNode typeNode = node.getChildren().get(0); in parseUrn() 582 private static PPSNode buildPpsNode(XMLNode node) throws ParsingException { in buildPpsNode() argument 589 for (XMLNode child : node.getChildren()) { in buildPpsNode() 639 private static String getPpsNodeValue(PPSNode node) throws ParsingException { in getPpsNodeValue() argument 640 if (!node.isLeaf()) { in getPpsNodeValue() 641 throw new ParsingException("Cannot get value from a non-leaf node: " + node.getName()); in getPpsNodeValue() [all …]
|
| /packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/ |
| D | ContactTernarySearchTree.java | 42 private Node put(Node node, String key, int value, int position) { in put() argument 44 if (node == null) { in put() 45 node = new Node(); in put() 46 node.key = c; in put() 48 if (c < node.key) { in put() 49 node.left = put(node.left, key, value, position); in put() 50 } else if (c > node.key) { in put() 51 node.right = put(node.right, key, value, position); in put() 53 node.values.add(value); in put() 54 node.mid = put(node.mid, key, value, position + 1); in put() [all …]
|
| /packages/modules/Virtualization/libs/libfdt/tests/ |
| D | api_test.rs | 91 let nested_node = fdt.node(nested_node_path).unwrap().unwrap(); in node_name() 103 let subnode_names: Vec<_> = root_subnodes.map(|node| node.name()).collect(); in node_subnodes() 132 let node = fdt.node(cstr!("/cpus/PowerPC,970@1")).unwrap().unwrap(); in node_supernode_at_depth() localVariable 137 while let Ok(supernode) = node.supernode_at_depth(depth) { in node_supernode_at_depth() 189 let node = fdt.node_with_phandle(phandle).unwrap().unwrap(); in node_with_phandle() localVariable 190 assert_eq!(node.name(), Ok(cstr!("node_zz"))); in node_with_phandle() 194 let node = fdt.node_with_phandle(phandle).unwrap().unwrap(); in node_with_phandle() localVariable 195 assert_eq!(node.name(), Ok(cstr!("node_abc"))); in node_with_phandle() 205 let node: FdtNodeMut = fdt.node_mut_with_phandle(phandle).unwrap().unwrap(); in node_mut_with_phandle() localVariable 206 assert_eq!(node.as_node().name(), Ok(cstr!("node_zz"))); in node_mut_with_phandle() [all …]
|
| /packages/modules/Bluetooth/tools/lint/checks/src/com/android/bluetooth/lint/ |
| D | GuardedLogLineDetector.kt | 133 override fun visitCallExpression(node: UCallExpression) { in createUastHandler() 134 val callingClass = findOwningUClass(node) in createUastHandler() 139 if (!isLoggingFunction(node)) { in createUastHandler() 143 var ifStatement = findNextContainingUIfExpression(node.uastParent) in createUastHandler() 169 private fun findOwningUClass(node: UElement?): UClass? { in findOwningUClass() 170 if (node == null) { in findOwningUClass() 174 if (node is UClass) { in findOwningUClass() 175 return node in findOwningUClass() 178 return findOwningUClass(node.uastParent) in findOwningUClass() 185 private fun findNextContainingUIfExpression(node: UElement?): UIfExpression? { in findNextContainingUIfExpression() [all …]
|
| /packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/ |
| D | StreamScheduler.cpp | 60 for (auto& node : mListRegisteredNode) in Start() local 62 if (node != nullptr) in Start() 64 IMLOGD2("[Start] [%p] registered node [%s]", this, node->GetNodeName()); in Start() 107 for (auto& node : mListRegisteredNode) in RunRegisteredNode() local 109 if (node != nullptr && node->GetState() == kNodeStateRunning && !node->IsRunTime()) in RunRegisteredNode() 111 if (node->IsSourceNode()) // process the source node in RunRegisteredNode() 113 node->ProcessData(); in RunRegisteredNode() 116 else if (node->GetDataCount() > 0) in RunRegisteredNode() 118 listNodesToRun.push_back(node); // store node to run in RunRegisteredNode() 123 for (auto& node : listNodesToRun) in RunRegisteredNode() local [all …]
|
| /packages/modules/Bluetooth/system/blueberry/utils/ui_pages/ |
| D | ui_core.py | 293 def _get_node_attribute(node: ui_node.UINode, name: str) -> Optional[str]: 295 attribute = node.attributes.get(name) 301 def _search_node(node: ui_node.UINode) -> None: 307 rid = node.resource_id.strip() 308 clz = node.clz.strip() 311 if _get_node_attribute(node, 'clickable') == 'true': 312 clickable_nodes.append(node) 313 if _get_node_attribute(node, 'enabled') == 'true': 314 enabled_nodes.append(node) 316 all_nodes.append(node) [all …]
|
| /packages/modules/Bluetooth/system/gd/packet/parser/ |
| D | struct_parser_generator.cc | 27 for (const auto& node : variable_struct_fields_) { in StructParserGenerator() local 28 if (node.struct_def_->parent_ != nullptr) { in StructParserGenerator() 30 if (node.struct_def_->parent_->name_ == parent.struct_def_->name_) { in StructParserGenerator() 31 parent.children_.push_back(&node); in StructParserGenerator() 38 void StructParserGenerator::explore_children(const TreeNode& node, std::ostream& s) const { in explore_children() argument 39 auto field = node.packet_field_; in explore_children() 40 if (!node.children_.empty()) { in explore_children() 43 for (const auto& child : node.children_) { in explore_children() 68 for (const auto& node : variable_struct_fields_) { in Generate() local 69 if (node.children_.empty()) { in Generate() [all …]
|
| /packages/modules/Bluetooth/floss/pandora/floss/ |
| D | cras_utils.py | 257 for node in nodes: 258 if node['Active']: 259 if node['IsInput']: 260 input_nodes.append(node['Id']) 262 output_nodes.append(node['Id']) 356 for node in nodes: 357 if callback(node): 358 node_type = str(node['Type']) 361 if node['IsInput']: 376 def is_selected(node): argument [all …]
|
| /packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/ |
| D | VideoStreamGraphRtpRx.cpp | 127 for (auto& node : mListNodeStarted) in update() local 129 if (node != nullptr) in update() 131 IMLOGD1("[update] update node[%s]", node->GetNodeName()); in update() 132 ret = node->UpdateConfig(mConfig); in update() 135 IMLOGE2("[update] error in update node[%s], ret[%d]", node->GetNodeName(), ret); in update() 144 for (auto& node : mListNodeToStart) in update() local 146 if (node != nullptr) in update() 148 IMLOGD1("[update] update node[%s]", node->GetNodeName()); in update() 149 ret = node->UpdateConfig(mConfig); in update() 153 IMLOGE2("[update] error in update node[%s], ret[%d]", node->GetNodeName(), ret); in update() [all …]
|
| /packages/modules/Bluetooth/system/test/fake/ |
| D | fake_osi.cc | 74 static list_node_t* list_free_node_(list_t* l, list_node_t* node) { in list_free_node_() argument 76 log::assert_that(node != nullptr, "assert failed: node != nullptr"); in list_free_node_() 78 auto next = node->next_; in list_free_node_() 80 if (l->free_cb_) l->free_cb_(node->data_); in list_free_node_() 81 delete node; in list_free_node_() 138 for (auto node = l->head_; node;) { in FakeOsi() local 139 auto next = node->next_; in FakeOsi() 140 if (!callback(node->data_, context)) return node; in FakeOsi() 141 node = next; in FakeOsi() 147 auto node = test::mock::osi_list::list_foreach( in FakeOsi() local [all …]
|
| /packages/apps/Gallery2/src/com/android/gallery3d/util/ |
| D | LinkedNode.java | 28 public void insert(LinkedNode node) { in insert() argument 29 node.mNext = mNext; in insert() 30 mNext.mPrev = node; in insert() 31 node.mPrev = this; in insert() 32 mNext = node; in insert() 46 public void insertLast(T node) { in insertLast() argument 47 mHead.mPrev.insert(node); in insertLast() 58 public T nextOf(T node) { in nextOf() argument 59 return (T) (node.mNext == mHead ? null : node.mNext); in nextOf() 62 public T previousOf(T node) { in previousOf() argument [all …]
|
| /packages/services/Car/cpp/evs/apps/default/src/ |
| D | ConfigManager.cpp | 91 for (auto&& node : displayArray) { in initialize() 93 info.port = node.get("displayPort", 0).asUInt(); in initialize() 94 info.function = node.get("function", "").asCString(); in initialize() 95 info.frontRangeInCarSpace = node.get("frontRange", -1).asFloat(); in initialize() 96 info.rearRangeInCarSpace = node.get("rearRange", -1).asFloat(); in initialize() 129 for (auto&& node : cameraArray) { in initialize() 131 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize() 134 Json::Value usageNode = node.get("function", ""); in initialize() 137 float yaw = node.get("yaw", 0).asFloat(); in initialize() 138 float pitch = node.get("pitch", 0).asFloat(); in initialize() [all …]
|