| /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 | 21 static list_node_t* list_free_node_(list_t* list, list_node_t* node); 56 for (const list_node_t* node = list_begin(list); node != list_end(list); in list_contains() local 57 node = list_next(node)) { in list_contains() 58 if (list_node(node) == data) return true; in list_contains() 95 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_insert_after() local 96 if (!node) return false; in list_insert_after() 98 node->next = prev_node->next; in list_insert_after() 99 node->data = data; in list_insert_after() 100 prev_node->next = node; in list_insert_after() 101 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 | 84 static void recycleNode(@Nullable AccessibilityNodeInfo node) { in recycleNode() argument 85 if (node != null) { in recycleNode() 86 node.recycle(); in recycleNode() 92 for (AccessibilityNodeInfo node : nodes) { in recycleNodes() 93 recycleNode(node); in recycleNodes() 100 for (AccessibilityNodeInfo node : nodes) { in recycleNodes() 101 recycleNode(node); in recycleNodes() 111 static AccessibilityNodeInfo refreshNode(@Nullable AccessibilityNodeInfo node) { in refreshNode() argument 112 if (node == null) { in refreshNode() 115 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 | 120 boolean isHostNode(@NonNull AccessibilityNodeInfo node) { in isHostNode() argument 121 return mSurfaceViewHelper.isHostNode(node); in isHostNode() 125 boolean isClientNode(@NonNull AccessibilityNodeInfo node) { in isClientNode() argument 126 return mSurfaceViewHelper.isClientNode(node); in isClientNode() 260 AccessibilityNodeInfo getRoot(@NonNull AccessibilityNodeInfo node) { in getRoot() argument 263 if (isHostNode(node)) { in getRoot() 264 AccessibilityNodeInfo child = mNodeCopier.copy(node); in getRoot() 265 AccessibilityNodeInfo parent = node.getParent(); in getRoot() 276 AccessibilityWindowInfo window = node.getWindow(); in getRoot() 286 AccessibilityNodeInfo child = mNodeCopier.copy(node); in getRoot() [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 …]
|
| D | NodeBuilder.java | 117 AccessibilityNodeInfo node = mock(AccessibilityNodeInfo.class); in build() local 118 when(node.getWindow()).thenReturn(builder.mWindow); in build() 119 when(node.getWindowId()).thenReturn(builder.mWindowId); in build() 121 when(node.getParent()).thenReturn(MockNodeCopierProvider.get().copy(builder.mParent)); in build() 123 when(node.getParent()).thenReturn( in build() 169 when(node.getPackageName()).thenReturn(builder.mPackageName); in build() 170 when(node.getClassName()).thenReturn(builder.mClassName); in build() 175 }).when(node).getBoundsInParent(any(Rect.class)); in build() 180 }).when(node).getBoundsInScreen(any(Rect.class)); in build() 181 when(node.getBoundsInScreen()).thenReturn(builder.mBoundsInScreen); in build() [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/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 | 75 using mediaprovider::fuse::node; 270 root(node::CreateRoot(_path, &lock, _ino, &tracker)), in fuse() 281 inline bool IsRoot(const node* node) const { return node == root; } in IsRoot() 296 inline node* FromInode(__u64 inode) { in FromInode() 301 return node::FromInode(inode, &tracker); in FromInode() 304 inline node* FromInodeNoThrow(__u64 inode) { in FromInodeNoThrow() 309 return node::FromInodeNoThrow(inode, &tracker); in FromInodeNoThrow() 312 inline __u64 ToInode(node* node) const { in ToInode() 313 if (IsRoot(node)) { in ToInode() 317 return node::ToInode(node); in ToInode() [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/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/test/fake/ |
| D | fake_osi.cc | 70 static list_node_t* list_free_node_(list_t* l, list_node_t* node) { in list_free_node_() argument 72 CHECK(node); in list_free_node_() 74 auto next = node->next_; in list_free_node_() 76 if (l->free_cb_) l->free_cb_(node->data_); in list_free_node_() 77 delete node; in list_free_node_() 134 for (auto node = l->head_; node;) { in FakeOsi() local 135 auto next = node->next_; in FakeOsi() 136 if (!callback(node->data_, context)) return node; in FakeOsi() 137 node = next; in FakeOsi() 143 auto node = test::mock::osi_list::list_foreach( in FakeOsi() local [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/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/ |
| D | StreamScheduler.cpp | 64 for (auto& node : mlistRegisteredNode) in Start() local 66 if (node != nullptr) in Start() 68 IMLOGD2("[Start] [%p] registered node [%s]", this, node->GetNodeName()); in Start() 105 for (auto& node : mlistRegisteredNode) in RunRegisteredNode() local 107 if (node != nullptr && node->GetState() == kNodeStateRunning && !node->IsRunTime()) in RunRegisteredNode() 109 if (node->IsSourceNode()) // process the source node in RunRegisteredNode() 111 node->ProcessData(); in RunRegisteredNode() 113 else if (node->GetDataCount() > 0) in RunRegisteredNode() 115 listNodesToRun.push_back(node); // store node to run in RunRegisteredNode() 152 for (auto& node : mlistRegisteredNode) in run() local [all …]
|
| /packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/ |
| D | VideoStreamGraphRtpRx.cpp | 124 for (auto& node : mListNodeStarted) in update() local 126 if (node != nullptr) in update() 128 IMLOGD1("[update] update node[%s]", node->GetNodeName()); in update() 129 ret = node->UpdateConfig(mConfig); in update() 132 IMLOGE2("[update] error in update node[%s], ret[%d]", node->GetNodeName(), ret); in update() 141 for (auto& node : mListNodeToStart) in update() local 143 if (node != nullptr) in update() 145 IMLOGD1("[update] update node[%s]", node->GetNodeName()); in update() 146 ret = node->UpdateConfig(mConfig); in update() 150 IMLOGE2("[update] error in update node[%s], ret[%d]", node->GetNodeName(), ret); in update() [all …]
|
| D | VideoStreamGraphRtpTx.cpp | 241 BaseNode* node = findNode(kNodeIdVideoSource); in setMediaQualityThreshold() local 243 if (node != nullptr) in setMediaQualityThreshold() 245 IVideoSourceNode* source = reinterpret_cast<IVideoSourceNode*>(node); in setMediaQualityThreshold() 262 BaseNode* node = findNode(kNodeIdVideoSource); in setSurface() local 264 if (node != nullptr) in setSurface() 266 IVideoSourceNode* source = reinterpret_cast<IVideoSourceNode*>(node); in setSurface() 317 for (auto& node : mListNodeStarted) in updateNodes() local 319 if (node != nullptr) in updateNodes() 321 IMLOGD1("[updateNodes] update node[%s]", node->GetNodeName()); in updateNodes() 322 result = node->UpdateConfig(config); in updateNodes() [all …]
|
| /packages/modules/Bluetooth/tools/pdl/src/ |
| D | parser.rs | 228 Some(node) if node.as_rule() == rule => Ok(node), in expect() 229 Some(node) => err_unexpected_rule(rule, node.as_rule()), in expect() 284 fn parse_endianness(node: Node<'_>, context: &Context) -> Result<crate::ast::Endianness, String> { in parse_endianness() 285 if node.as_rule() != Rule::endianness_declaration { in parse_endianness() 286 err_unexpected_rule(Rule::endianness_declaration, node.as_rule()) in parse_endianness() 289 loc: node.as_loc(context), in parse_endianness() 290 value: match node.as_str() { in parse_endianness() 299 fn parse_constraint(node: Node<'_>, context: &Context) -> Result<crate::ast::Constraint, String> { in parse_constraint() 300 if node.as_rule() != Rule::constraint { in parse_constraint() 301 err_unexpected_rule(Rule::constraint, node.as_rule()) in parse_constraint() [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 …]
|
| /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/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/text/ |
| D | TextStreamGraphRtpTx.cpp | 127 for (auto& node : mListNodeStarted) in update() local 129 if (node != nullptr && node->GetNodeId() == kNodeIdRtpEncoder) in update() 131 reinterpret_cast<RtpEncoderNode*>(node)->GetRtpContext(rtpContextParams); in update() 145 for (auto& node : mListNodeStarted) in update() local 147 if (node != nullptr) in update() 149 IMLOGD1("[update] update node[%s]", node->GetNodeName()); in update() 150 ret = node->UpdateConfig(mConfig); in update() 154 IMLOGE2("[update] error in update node[%s], ret[%d]", node->GetNodeName(), ret); in update() 163 for (auto& node : mListNodeToStart) in update() local 165 if (node != nullptr) in update() [all …]
|