Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 82) sorted by relevance

1234

/packages/modules/NeuralNetworks/tools/systrace_parser/parser/
Dtree.py29 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 …]
Dtracker.py124 node = self.mytree.pop(time)
125 if node.is_dummy(): # Placeholder item
128 if node.layer == LAYER_APPLICATION and node.phase in [PHASE_WARMUP, PHASE_BENCHMARK]:
130 function = node.app_phase + "::" + get_function_name_from_mark(node.mark)
132 [[float(node.start_time_s) * 1000.0,
133 float(node.end_time_s) * 1000.0]])
151 def recurse(node, prev_layer, prev_phase, indent, in_pe_layers): argument
153 node.start_time_s, node.mark, node.layer, node.phase()]
154 time = node.end_time_s
157 elapsed1 = node.elapsed_less_subtracted_ms()
[all …]
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DUtils.java74 static void recycleNode(@Nullable AccessibilityNodeInfo node) { in recycleNode() argument
75 if (node != null) { in recycleNode()
76 node.recycle(); in recycleNode()
82 for (AccessibilityNodeInfo node : nodes) { in recycleNodes()
83 recycleNode(node); in recycleNodes()
90 for (AccessibilityNodeInfo node : nodes) { in recycleNodes()
91 recycleNode(node); in recycleNodes()
101 static AccessibilityNodeInfo refreshNode(@Nullable AccessibilityNodeInfo node) { in refreshNode() argument
102 if (node == null) { in refreshNode()
105 boolean succeeded = node.refresh(); in refreshNode()
[all …]
DTreeTraverser.java43 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 …]
DNavigator.java106 boolean isHostNode(@NonNull AccessibilityNodeInfo node) { in isHostNode() argument
107 return mSurfaceViewHelper.isHostNode(node); in isHostNode()
111 boolean isClientNode(@NonNull AccessibilityNodeInfo node) { in isClientNode() argument
112 return mSurfaceViewHelper.isClientNode(node); in isClientNode()
244 AccessibilityNodeInfo getRoot(@NonNull AccessibilityNodeInfo node) { in getRoot() argument
247 if (isHostNode(node)) { in getRoot()
248 AccessibilityNodeInfo child = mNodeCopier.copy(node); in getRoot()
249 AccessibilityNodeInfo parent = node.getParent(); in getRoot()
260 AccessibilityWindowInfo window = node.getWindow(); in getRoot()
270 AccessibilityNodeInfo child = mNodeCopier.copy(node); in getRoot()
[all …]
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DTreeTraverserTest.java107 /* stopPredicate= */ null, /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor()
113 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor()
119 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor()
125 /* targetPredicate= */ node -> node.equals(mNode6)); in testFindNodeOrAncestor()
131 node -> node.equals(mNode1), in testFindNodeOrAncestor()
132 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor()
138 node -> node.equals(mNode0), in testFindNodeOrAncestor()
139 /* targetPredicate= */ node -> node.equals(mNode0)); in testFindNodeOrAncestor()
163 node -> { in testDepthFirstSearch()
164 targetPredicateCalledWithNodes.add(new AccessibilityNodeInfo(node)); in testDepthFirstSearch()
[all …]
DNodeBuilderTest.java61 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 …]
DNodeBuilder.java117 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 …]
DNavigatorTest.java118 assertThat(target.node).isEqualTo(button2); in testFindRotateTarget()
121 Utils.recycleNode(target.node); in testFindRotateTarget()
125 assertThat(target.node).isEqualTo(button3); in testFindRotateTarget()
128 Utils.recycleNode(target.node); in testFindRotateTarget()
272 assertThat(target.node).isEqualTo(text2); in testFindRotateTargetDoesNotSkipOffscreenNode()
273 Utils.recycleNode(target.node); in testFindRotateTargetDoesNotSkipOffscreenNode()
282 assertThat(target.node).isEqualTo(text3); in testFindRotateTargetDoesNotSkipOffscreenNode()
283 Utils.recycleNode(target.node); in testFindRotateTargetDoesNotSkipOffscreenNode()
316 assertThat(target.node).isEqualTo(button3); in testFindRotateTargetSkipNodeThatCannotPerformFocus()
318 Utils.recycleNode(target.node); in testFindRotateTargetSkipNodeThatCannotPerformFocus()
[all …]
/packages/providers/MediaProvider/jni/
Dnode_test.cpp12 using mediaprovider::fuse::node;
22 uint32_t GetRefCount(node* node) { return node->refcount_; } in GetRefCount() argument
28 static void destroy(node* node) { delete node; } in destroy() argument
30 static void acquire(node* node) { node->Acquire(); } in acquire() argument
32 typedef std::unique_ptr<node, decltype(&NodeTest::destroy)> unique_node_ptr;
34 unique_node_ptr CreateNode(node* parent, const std::string& path, const int transforms = 0) { in CreateNode()
36 node::Create(parent, path, "", true, true, transforms, 0, &lock_, 0, &tracker_), in CreateNode()
40 static class node* ForChild(class node* node, const std::string& name, in ForChild() argument
41 const std::function<bool(class node*)>& callback) { in ForChild()
42 return node->ForChild(name, callback); in ForChild()
[all …]
Dnode.cpp44 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 …]
Dnode-inl.h85 class node; variable
95 const node* node = reinterpret_cast<const class node*>(ino); in CheckTracked() local
97 CHECK(active_nodes_.find(node) != active_nodes_.end()); in CheckTracked()
101 void NodeDeleted(const node* node) { in NodeDeleted() argument
104 LOG(DEBUG) << "Node: " << reinterpret_cast<uintptr_t>(node) << " deleted."; in NodeDeleted()
106 CHECK(active_nodes_.find(node) != active_nodes_.end()); in NodeDeleted()
107 active_nodes_.erase(node); in NodeDeleted()
111 void NodeCreated(const node* node) { in NodeCreated() argument
114 LOG(DEBUG) << "Node: " << reinterpret_cast<uintptr_t>(node) << " created."; in NodeCreated()
116 CHECK(active_nodes_.find(node) == active_nodes_.end()); in NodeCreated()
[all …]
DFuseDaemon.cpp73 using mediaprovider::fuse::node;
253 root(node::CreateRoot(_path, &lock, _ino, &tracker)), in fuse()
259 inline bool IsRoot(const node* node) const { return node == root; } in IsRoot()
274 inline node* FromInode(__u64 inode) { in FromInode()
279 return node::FromInode(inode, &tracker); in FromInode()
282 inline __u64 ToInode(node* node) const { in ToInode()
283 if (IsRoot(node)) { in ToInode()
287 return node::ToInode(node); in ToInode()
294 node* const root;
321 static inline string get_name(node* n) { in get_name()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/omadm/
DPpsMoParser.java461 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/
DContactTernarySearchTree.java42 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/services/Car/cpp/evs/apps/default/
DConfigManager.cpp99 for (auto&& node : displayArray) { in initialize()
101 info.port = node.get("displayPort", 0).asUInt(); in initialize()
102 info.function = node.get("function", "").asCString(); in initialize()
103 info.frontRangeInCarSpace = node.get("frontRange", -1).asFloat(); in initialize()
104 info.rearRangeInCarSpace = node.get("rearRange", -1).asFloat(); in initialize()
137 for (auto&& node: cameraArray) { in initialize()
139 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize()
142 Json::Value usageNode = node.get("function", ""); in initialize()
145 float yaw = node.get("yaw", 0).asFloat(); in initialize()
146 float pitch = node.get("pitch", 0).asFloat(); in initialize()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DLinkedNode.java28 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 …]
DProfileData.java80 Node node = mRoot; in addSample() local
82 if (node.children == null) { in addSample()
83 node.children = new ArrayList<Node>(); in addSample()
87 ArrayList<Node> children = node.children; in addSample()
93 children.add(new Node(node, id)); in addSample()
96 node = children.get(j); in addSample()
99 node.sampleCount++; in addSample()
131 private void writeOneStack(Node node, int depth) throws IOException { in writeOneStack() argument
132 writeInt(node.sampleCount); in writeOneStack()
135 writeInt(node.id); in writeOneStack()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DBrowseTree.java197 synchronized boolean addChild(BrowseNode node) { in addChild() argument
198 if (node != null) { in addChild()
199 node.mParent = this; in addChild()
201 node.mBrowseScope = this.mBrowseScope; in addChild()
203 mChildren.add(node); in addChild()
204 mBrowseMap.put(node.getID(), node); in addChild() local
208 String imageUuid = node.getCoverArtUuid(); in addChild()
210 indicateCoverArtUsed(node.getID(), imageUuid); in addChild()
217 synchronized void removeChild(BrowseNode node) { in removeChild() argument
218 mChildren.remove(node); in removeChild()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/
Dweighting.cpp30 static inline void profile(const CorrectionType correctionType, DicNode *const node) { in profile() argument
34 PROF_OMISSION(node->mProfiler); in profile()
37 PROF_ADDITIONAL_PROXIMITY(node->mProfiler); in profile()
40 PROF_SUBSTITUTION(node->mProfiler); in profile()
43 PROF_NEW_WORD(node->mProfiler); in profile()
46 PROF_MATCH(node->mProfiler); in profile()
49 PROF_COMPLETION(node->mProfiler); in profile()
52 PROF_TERMINAL(node->mProfiler); in profile()
55 PROF_TERMINAL_INSERTION(node->mProfiler); in profile()
58 PROF_SPACE_SUBSTITUTION(node->mProfiler); in profile()
[all …]
/packages/services/Car/cpp/evs/support_library/
DConfigManager.cpp132 for (auto&& node: cameraArray) { in initialize()
134 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize()
137 Json::Value usageNode = node.get("function", ""); in initialize()
140 float yaw = node.get("yaw", 0).asFloat(); in initialize()
141 float pitch = node.get("pitch", 0).asFloat(); in initialize()
142 float hfov = node.get("hfov", 0).asFloat(); in initialize()
143 float vfov = node.get("vfov", 0).asFloat(); in initialize()
178 info.position[0] = node.get("x", 0).asFloat(); in initialize()
179 info.position[1] = node.get("y", 0).asFloat(); in initialize()
180 info.position[2] = node.get("z", 0).asFloat(); in initialize()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMoSerializer.java123 Element node = doc.createElement(TAG_NODE); in createNode() local
126 node.appendChild(nameNode); in createNode()
127 return node; in createNode()
141 Element node = doc.createElement(TAG_RTPROPERTIES); in createNodeForUrn() local
146 node.appendChild(type); in createNodeForUrn()
147 return node; in createNodeForUrn()
162 Element node = doc.createElement(TAG_NODE); in createNodeForValue() local
165 node.appendChild(nameNode); in createNodeForValue()
170 node.appendChild(valueNode); in createNodeForValue()
171 return node; in createNodeForValue()
/packages/modules/NeuralNetworks/tools/test_generator/
Dspec_visualizer.py128 for node in topological_order:
129 layers[node] = max([layers[i] for i in node.ins], default=-1) + 1
130 for node in reversed(topological_order):
131 layers[node] = min([layers[o] for o in node.outs], default=layers[node]+1) - 1
139 for node in topological_order:
140 coords[node] = (CoordX(layer_cnt[layers[node]]), CoordY(layers[node]))
141 layer_cnt[layers[node]] += 1
/packages/modules/Wifi/framework/tests/assets/pps/
DREADME.txt2 PerProviderSubscription_DuplicateHomeSP.xml - containing multiple HomeSP node
3 PerProviderSubscription_DuplicateValue.xml - FriendlyName node contains multiple Value
4 PerProviderSubscription_MissingValue.xml - FriendlyName node is missing Value
5 PerProviderSubscription_MissingName.xml - HomeSP node is missing NodeName
6 PerProviderSubscription_InvalidNode.xml - FQDN node contains both Value and a child node
7 PerProviderSubscription_InvalidName.xml - FriendlyName node have a typo in its name
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaBrowser.java216 TmaMediaItem node; in getMediaItemsWithDelay()
218 node = null; in getMediaItemsWithDelay()
220 node = getRoot(); in getMediaItemsWithDelay()
222 node = mLibrary.getMediaItemById(parentId); in getMediaItemsWithDelay()
225 if (node == null) { in getMediaItemsWithDelay()
230 addSearchResults(node, pat.matcher(""), hits, MAX_SEARCH_DEPTH); in getMediaItemsWithDelay()
233 List<TmaMediaItem> children = node.getChildren(); in getMediaItemsWithDelay()
239 int selfUpdateDelay = node.getSelfUpdateDelay(); in getMediaItemsWithDelay()
240 int toShow = (selfUpdateDelay > 0) ? 1 + node.mRevealCounter : childrenCount; in getMediaItemsWithDelay()
252 node.mRevealCounter = (node.mRevealCounter + 1) % (childrenCount); in getMediaItemsWithDelay()
[all …]

1234