Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 209) 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.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 …]
/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.cpp614 size_t AudioPolicyEffects::readParamValue(cnode *node, in readParamValue() argument
622 if (strncmp(node->name, SHORT_TAG, sizeof(SHORT_TAG) + 1) == 0) { in readParamValue()
627 *(short *)(*param + pos) = (short)atoi(node->value); in readParamValue()
630 } else if (strncmp(node->name, INT_TAG, sizeof(INT_TAG) + 1) == 0) { in readParamValue()
635 *(int *)(*param + pos) = atoi(node->value); in readParamValue()
638 } else if (strncmp(node->name, FLOAT_TAG, sizeof(FLOAT_TAG) + 1) == 0) { in readParamValue()
643 *(float *)(*param + pos) = (float)atof(node->value); in readParamValue()
646 } else if (strncmp(node->name, BOOL_TAG, sizeof(BOOL_TAG) + 1) == 0) { in readParamValue()
651 if (strncmp(node->value, "true", strlen("true") + 1) == 0) { in readParamValue()
659 } 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/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/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/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/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/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/services/bufferhub/
DBufferHubService.cpp52 std::shared_ptr<BufferNode> node = in allocateBuffer() local
56 if (node == nullptr || !node->isValid()) { in allocateBuffer()
63 sp<BufferClient> client = BufferClient::create(this, node); in allocateBuffer()
73 buildBufferInfo(bufferInfoStorage, node->id(), node->addNewActiveClientsBitToMask(), in allocateBuffer()
74 node->userMetadataSize(), node->metadata().ashmemFd(), in allocateBuffer()
75 node->eventFd().get()); in allocateBuffer()
81 memcpy(&allocatedBufferDesc, &node->bufferDesc(), sizeof(AHardwareBuffer_Desc)); in allocateBuffer()
83 /*bufferHandle=*/hidl_handle(node->bufferHandle()), in allocateBuffer()
163 std::shared_ptr<BufferNode> node = client->getBufferNode(); in importBuffer() local
166 memcpy(&bufferDesc, &node->bufferDesc(), sizeof(HardwareBufferDescription)); in importBuffer()
[all …]
/frameworks/base/media/java/android/media/
DTtmlRenderer.java220 private static void extractText(TtmlNode node, long startUs, long endUs, StringBuilder out, in extractText() argument
222 if (node.mName.equals(TtmlUtils.PCDATA) && inPTag) { in extractText()
223 out.append(node.mText); in extractText()
224 } else if (node.mName.equals(TtmlUtils.TAG_BR) && inPTag) { in extractText()
226 } else if (node.mName.equals(TtmlUtils.TAG_METADATA)) { in extractText()
228 } else if (node.isActive(startUs, endUs)) { in extractText()
229 boolean pTag = node.mName.equals(TtmlUtils.TAG_P); in extractText()
231 for (int i = 0; i < node.mChildren.size(); ++i) { in extractText()
232 extractText(node.mChildren.get(i), startUs, endUs, out, pTag || inPTag); in extractText()
253 private static void extractTtmlFragment(TtmlNode node, long startUs, long endUs, in extractTtmlFragment() argument
[all …]

123456789