Home
last modified time | relevance | path

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

123456789

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
DAsn1NodeTest.java40 Asn1Node node = Asn1Node.newBuilder(0x65).build(); in testCreateConstructedNodeWithShortTag() local
41 assertEquals(0x65, node.getTag()); in testCreateConstructedNodeWithShortTag()
42 assertTrue(node.isConstructed()); in testCreateConstructedNodeWithShortTag()
43 assertEquals(2, node.getEncodedLength()); in testCreateConstructedNodeWithShortTag()
44 assertEquals(0, node.getDataLength()); in testCreateConstructedNodeWithShortTag()
45 assertArrayEquals(new byte[] {0x65, 0x00}, node.toBytes()); in testCreateConstructedNodeWithShortTag()
51 Asn1Node node = Asn1Node.newBuilder(0x3F34).build(); in testCreateConstructedNodeWithLongTag() local
52 assertEquals(0x3F34, node.getTag()); in testCreateConstructedNodeWithLongTag()
53 assertTrue(node.isConstructed()); in testCreateConstructedNodeWithLongTag()
54 assertEquals(3, node.getEncodedLength()); in testCreateConstructedNodeWithLongTag()
[all …]
/frameworks/ml/nn/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.py119 node = self.mytree.pop(time)
120 if node.is_dummy(): # Dummy item
123 if node.layer == LAYER_APPLICATION and node.phase in [PHASE_WARMUP, PHASE_BENCHMARK]:
125 function = node.app_phase + "::" + get_function_name_from_mark(node.mark)
127 [[float(node.start_time_s) * 1000.0,
128 float(node.end_time_s) * 1000.0]])
144 def recurse(node, prev_layer, prev_phase, indent, in_pe_layers): argument
146 node.start_time_s, node.mark, node.layer, node.phase()]
147 time = node.end_time_s
150 elapsed1 = node.elapsed_less_subtracted_ms()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java151 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in getChildCount() local
152 if(node == null) { in getChildCount()
155 return node.getChildCount(); in getChildCount()
167 AccessibilityNodeInfo node = null; in findAccessibilityNodeInfo() local
171 node = getQueryController().findAccessibilityNodeInfo(getSelector()); in findAccessibilityNodeInfo()
172 if (node != null) { in findAccessibilityNodeInfo()
183 return node; in findAccessibilityNodeInfo()
338 private Rect getVisibleBounds(AccessibilityNodeInfo node) { in getVisibleBounds() argument
339 if (node == null) { in getVisibleBounds()
346 Rect nodeRect = AccessibilityNodeInfoHelper.getVisibleBoundsInScreen(node, w, h); in getVisibleBounds()
[all …]
DAccessibilityNodeInfoDumper.java101 private static void dumpNodeRec(AccessibilityNodeInfo node, XmlSerializer serializer,int index, in dumpNodeRec() argument
104 if (!nafExcludedClass(node) && !nafCheck(node)) in dumpNodeRec()
107 serializer.attribute("", "text", safeCharSeqToString(node.getText())); in dumpNodeRec()
108 serializer.attribute("", "resource-id", safeCharSeqToString(node.getViewIdResourceName())); in dumpNodeRec()
109 serializer.attribute("", "class", safeCharSeqToString(node.getClassName())); in dumpNodeRec()
110 serializer.attribute("", "package", safeCharSeqToString(node.getPackageName())); in dumpNodeRec()
111 serializer.attribute("", "content-desc", safeCharSeqToString(node.getContentDescription())); in dumpNodeRec()
112 serializer.attribute("", "checkable", Boolean.toString(node.isCheckable())); in dumpNodeRec()
113 serializer.attribute("", "checked", Boolean.toString(node.isChecked())); in dumpNodeRec()
114 serializer.attribute("", "clickable", Boolean.toString(node.isClickable())); in dumpNodeRec()
[all …]
/frameworks/rs/
DrsMap.h57 LinkNode* node = bucket[index]; variable
60 while (node != nullptr) {
61 if (node->entry.first == key) {
62 return node->entry.second;
64 prev = node;
65 node = node->next;
68 node = new LinkNode();
69 node->entry.first = key;
70 node->next = nullptr;
72 bucket[index] = node;
[all …]
/frameworks/compile/mclinker/unittests/
DInputTreeTest.cpp68 InputTree::iterator node = m_pTestee->root(); in TEST_F() local
69 InputTree::const_iterator const_node = node; in TEST_F()
70 --node; in TEST_F()
73 ASSERT_TRUE(isGroup(node)); in TEST_F()
78 --node; in TEST_F()
80 m_pTestee->enterGroup(node, InputTree::Downward); in TEST_F()
82 InputTree::const_iterator const_node2 = node; in TEST_F()
84 ASSERT_FALSE(node.isRoot()); in TEST_F()
86 ASSERT_FALSE(isGroup(node)); in TEST_F()
95 InputTree::iterator node = m_pTestee->root(); in TEST_F() local
[all …]
DFactoriesTest.cpp40 NodeAlloc::NodeType* node = m_pNodeAlloc->produce(); in TEST_F() local
43 node = m_pNodeAlloc->produce(); in TEST_F()
46 node = m_pNodeAlloc->produce(); in TEST_F()
52 NodeAlloc::NodeType* node = 0; in TEST_F() local
54 node = m_pNodeAlloc->produce(); in TEST_F()
55 node->data = (int*)malloc(sizeof(int)); in TEST_F()
56 *(node->data) = i; in TEST_F()
71 NodeAlloc::NodeType* node = 0; in TEST_F() local
73 node = m_pNodeAlloc->produce(); in TEST_F()
74 node->data = (int*)malloc(sizeof(int)); in TEST_F()
[all …]
/frameworks/av/media/libeffects/factory/
DEffectsConfigLoader.c41 static int loadEffect(cnode *node);
80 cnode *node; in loadLibraries() local
82 node = config_find(root, LIBRARIES_TAG); in loadLibraries()
83 if (node == NULL) { in loadLibraries()
86 node = node->first_child; in loadLibraries()
87 while (node) { in loadLibraries()
88 loadLibrary(node, node->name); in loadLibraries()
89 node = node->next; in loadLibraries()
153 cnode *node; in loadLibrary() local
160 node = config_find(root, PATH_TAG); in loadLibrary()
[all …]
/frameworks/base/core/java/android/animation/
DAnimatorSet.java306 Node node = mNodes.get(i);
307 if (node != mRootNode) {
308 childList.add(node.mAnimation);
325 Node node = mNodes.get(i);
326 Animator animation = node.mAnimation;
573 Node node = mNodes.get(i);
574 if (node == mRootNode) {
575 node.mEndTime = mStartDelay;
577 node.mStartTime = node.mStartTime == DURATION_INFINITE ?
578 DURATION_INFINITE : node.mStartTime + delta;
[all …]
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp49 void Visit(xml::Element* node) override { in Visit() argument
50 if (!node->namespace_uri.empty()) { in Visit()
52 xml::ExtractPackageFromNamespace(node->namespace_uri); in Visit()
55 std::string package = maybe_package.value().package + "." + node->name; in Visit()
57 AddClass(node->line_number, package, ctor_signature_); in Visit()
60 } else if (util::IsJavaClassName(node->name)) { in Visit()
61 AddClass(node->line_number, node->name, ctor_signature_); in Visit()
64 for (const auto& child : node->children) { in Visit()
68 for (const auto& attr : node->attributes) { in Visit()
72 AddReference(node->line_number, ref); in Visit()
[all …]
/frameworks/base/tools/incident_report/
Dgeneric_message.cpp30 Node node; in addInt32() local
31 node.type = TYPE_VALUE32; in addInt32()
32 node.value32 = value; in addInt32()
33 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt32()
39 Node node; in addInt64() local
40 node.type = TYPE_VALUE64; in addInt64()
41 node.value64 = value; in addInt64()
42 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt64()
49 Node node; in addMessage() local
50 node.type = TYPE_MESSAGE; in addMessage()
[all …]
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/
DPpsMoParser.java412 private static PasspointConfiguration parsePpsNode(XMLNode node) in parsePpsNode() argument
417 for (XMLNode child : node.getChildren()) { in parsePpsNode()
476 private static String parseUrn(XMLNode node) throws ParsingException { in parseUrn() argument
477 if (node.getChildren().size() != 1) in parseUrn()
480 XMLNode typeNode = node.getChildren().get(0); in parseUrn()
533 private static PPSNode buildPpsNode(XMLNode node) throws ParsingException { in buildPpsNode() argument
540 for (XMLNode child : node.getChildren()) { in buildPpsNode()
590 private static String getPpsNodeValue(PPSNode node) throws ParsingException { in getPpsNodeValue() argument
591 if (!node.isLeaf()) { in getPpsNodeValue()
592 throw new ParsingException("Cannot get value from a non-leaf node: " + node.getName()); in getPpsNodeValue()
[all …]
/frameworks/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp610 size_t AudioPolicyEffects::readParamValue(cnode *node, in readParamValue() argument
618 if (strncmp(node->name, SHORT_TAG, sizeof(SHORT_TAG) + 1) == 0) { in readParamValue()
623 *(short *)(*param + pos) = (short)atoi(node->value); in readParamValue()
626 } else if (strncmp(node->name, INT_TAG, sizeof(INT_TAG) + 1) == 0) { in readParamValue()
631 *(int *)(*param + pos) = atoi(node->value); in readParamValue()
634 } else if (strncmp(node->name, FLOAT_TAG, sizeof(FLOAT_TAG) + 1) == 0) { in readParamValue()
639 *(float *)(*param + pos) = (float)atof(node->value); in readParamValue()
642 } else if (strncmp(node->name, BOOL_TAG, sizeof(BOOL_TAG) + 1) == 0) { in readParamValue()
647 if (strncmp(node->value, "true", strlen("true") + 1) == 0) { in readParamValue()
655 } else if (strncmp(node->name, STRING_TAG, sizeof(STRING_TAG) + 1) == 0) { in readParamValue()
[all …]
/frameworks/compile/mclinker/include/mcld/
DInputTree.h100 bfs_iterator it = bfs_iterator(BinaryTreeBase<Input>::m_Root.node.left); in bfs_begin()
107 return bfs_iterator(BinaryTreeBase<Input>::m_Root.node.right); in bfs_end()
112 const_bfs_iterator(BinaryTreeBase<Input>::m_Root.node.left); in bfs_begin()
119 return const_bfs_iterator(BinaryTreeBase<Input>::m_Root.node.right); in bfs_end()
123 dfs_iterator it = dfs_iterator(BinaryTreeBase<Input>::m_Root.node.left); in dfs_begin()
130 return dfs_iterator(BinaryTreeBase<Input>::m_Root.node.right); in dfs_end()
135 const_dfs_iterator(BinaryTreeBase<Input>::m_Root.node.left); in dfs_begin()
142 return const_dfs_iterator(BinaryTreeBase<Input>::m_Root.node.right); in dfs_end()
145 iterator root() { return iterator(&(BinaryTreeBase<Input>::m_Root.node)); } in root()
151 const_cast<NodeBase*>(&BinaryTreeBase<Input>::m_Root.node)); in root()
[all …]
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h132 virtual void onMaybeRemovedFromTree(RenderNode* node) {} in onMaybeRemovedFromTree() argument
174 sp<RenderNode> node = new RenderNode(); in createNode() local
175 RenderProperties& props = node->mutateStagingProperties(); in createNode()
181 node->setStagingDisplayList(canvas->finishRecording()); in createNode()
183 node->setPropertyFieldsDirty(0xFFFFFFFF); in createNode()
184 return node; in createNode()
191 sp<RenderNode> node = new RenderNode(); in createNode() local
192 RenderProperties& props = node->mutateStagingProperties(); in createNode()
197 node->setStagingDisplayList(canvas.finishRecording()); in createNode()
199 node->setPropertyFieldsDirty(0xFFFFFFFF); in createNode()
[all …]
/frameworks/base/libs/hwui/utils/
DLinearAllocator.cpp109 auto node = mDtorList; in ~LinearAllocator() local
110 mDtorList = node->next; in ~LinearAllocator()
111 node->dtor(node->addr); in ~LinearAllocator()
179 auto node = new (allocImpl(sizeof(DestructorNode))) DestructorNode(); in addToDestructionList() local
180 node->dtor = dtor; in addToDestructionList()
181 node->addr = addr; in addToDestructionList()
182 node->next = mDtorList; in addToDestructionList()
183 mDtorList = node; in addToDestructionList()
187 auto node = mDtorList; in runDestructorFor() local
189 while (node) { in runDestructorFor()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java106 Node node = root; in addFieldPath() local
111 if (!createNewBranch && node != root && node.children.isEmpty()) { in addFieldPath()
115 if (node.children.containsKey(part)) { in addFieldPath()
116 node = node.children.get(part); in addFieldPath()
120 node.children.put(part, tmp); in addFieldPath()
121 node = tmp; in addFieldPath()
125 node.children.clear(); in addFieldPath()
154 private void getFieldPaths(Node node, String path, List<String> paths) { in getFieldPaths() argument
155 if (node.children.isEmpty()) { in getFieldPaths()
159 for (Entry<String, Node> entry : node.children.entrySet()) { in getFieldPaths()
[all …]
/frameworks/base/core/java/android/content/
DUriMatcher.java178 UriMatcher node = this; in addURI() local
181 ArrayList<UriMatcher> children = node.mChildren; in addURI()
188 node = child; in addURI()
195 node.mChildren.add(child); in addURI()
196 node = child; in addURI()
199 node.mCode = code; in addURI()
226 UriMatcher node = this;
234 ArrayList<UriMatcher> list = node.mChildren;
238 node = null;
246 node = n;
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java374 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(mView); in createNodeForHost() local
375 mView.onInitializeAccessibilityNodeInfo(node); in createNodeForHost()
376 final int realNodeCount = node.getChildCount(); in createNodeForHost()
379 onPopulateNodeForHost(node); in createNodeForHost()
395 node.addChild(mView, virtualViewIds.get(i)); in createNodeForHost()
398 return node; in createNodeForHost()
435 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(); in createNodeForChild() local
438 node.setEnabled(true); in createNodeForChild()
439 node.setClassName(DEFAULT_CLASS_NAME); in createNodeForChild()
440 node.setBoundsInParent(INVALID_PARENT_BOUNDS); in createNodeForChild()
[all …]
/frameworks/compile/mclinker/include/mcld/ADT/
DBinTree.h272 NodeBase node;
275 TreeImpl() : NodeFactory<DataType>() { node.left = node.right = &node; } in TreeImpl()
287 if ((*data).left == &pClient.node) in summon()
288 (*data).left = &node; in summon()
289 if ((*data).right == &pClient.node) in summon()
290 (*data).right = &node; in summon()
304 result->left = result->right = &m_Root.node; in createNode()
371 return bfs_iterator(BinaryTreeBase<DataType>::m_Root.node.left); in bfs_begin()
375 return bfs_iterator(BinaryTreeBase<DataType>::m_Root.node.right); in bfs_end()
379 return const_bfs_iterator(BinaryTreeBase<DataType>::m_Root.node.left); in bfs_begin()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/
DViewNodeTest.java52 ViewNode node = structure.getNode(); in testUnsupportedProperties() local
55 assertThat(node.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
58 assertThat(node.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
61 assertThat(node.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
64 assertThat(node.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
67 assertThat(node.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
70 assertThat(node.getWebDomain()).isNull(); in testUnsupportedProperties()
75 assertThat(node.getHtmlInfo()).isNull(); in testUnsupportedProperties()
83 assertThat(node.getElevation()).isWithin(1.0e-10f).of(0f); in testUnsupportedProperties()
85 assertThat(node.getAlpha()).isWithin(1.0e-10f).of(1.0f); in testUnsupportedProperties()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DRenderNodePerfTest.java36 final RenderNode node = RenderNode.create("benchmark", null); in testMeasureRenderNodeJniOverhead() local
40 node.setTranslationX(1.0f); in testMeasureRenderNodeJniOverhead()
63 RenderNode node = RenderNode.create("LinearLayout", null); in testIsValid() local
65 node.hasDisplayList(); in testIsValid()
72 RenderNode node = RenderNode.create("LinearLayout", null); in testStartEnd() local
74 node.beginRecording(100, 100); in testStartEnd()
75 node.endRecording(); in testStartEnd()
100 RenderNode node = RenderNode.create("LinearLayout", null); in testHasIdentityMatrix() local
102 node.hasIdentityMatrix(); in testHasIdentityMatrix()
109 RenderNode node = RenderNode.create("LinearLayout", null); in testSetOutline() local
[all …]
/frameworks/native/vulkan/libvulkan/
Ddebug_report.cpp41 Node* node, in RemoveCallback() argument
47 while (prev && prev->next != node) in RemoveCallback()
50 prev->next = node->next; in RemoveCallback()
53 allocator.pfnFree(allocator.pUserData, node); in RemoveCallback()
64 const Node* node = &head_; in Message() local
65 while ((node = node->next)) { in Message()
66 if ((node->flags & flags) != 0) { in Message()
67 node->callback(flags, object_type, object, location, message_code, in Message()
68 layer_prefix, message, node->user_data); in Message()
132 auto node = callbacks.AddCallback( in CreateDebugReportCallbackEXT() local
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dfield_mask_util.cc234 void MergeToFieldMask(const string& prefix, const Node* node, FieldMask* out);
237 void MergeLeafNodesToTree(const string& prefix, const Node* node,
241 void MergeMessage(const Node* node, const Message& source,
246 void TrimMessage(const Node* node, Message* message);
267 void FieldMaskTree::MergeToFieldMask(const string& prefix, const Node* node, in MergeToFieldMask() argument
269 if (node->children.empty()) { in MergeToFieldMask()
277 for (map<string, Node*>::const_iterator it = node->children.begin(); in MergeToFieldMask()
278 it != node->children.end(); ++it) { in MergeToFieldMask()
290 Node* node = &root_; in AddPath() local
292 if (!new_branch && node != &root_ && node->children.empty()) { in AddPath()
[all …]

123456789