Home
last modified time | relevance | path

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

12345678910>>...12

/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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/render/
DShadeViewDifferTest.kt60 node(controller1), in testAddInitialViews()
61 node(controller2, node(controller3), node(controller4)), in testAddInitialViews()
62 node(controller5) in testAddInitialViews()
70 node(controller1), in testDetachViews()
71 node(controller2, node(controller3), node(controller4)), in testDetachViews()
72 node(controller5) in testDetachViews()
77 applySpecAndCheck(node(controller5)) in testDetachViews()
84 node(controller1), in testReparentChildren()
85 node(controller2, node(controller3), node(controller4)), in testReparentChildren()
86 node(controller5) in testReparentChildren()
[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/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.java197 private static void dumpNodeRec(AccessibilityNodeInfo node, XmlSerializer serializer,int index, in dumpNodeRec() argument
200 if (!nafExcludedClass(node) && !nafCheck(node)) in dumpNodeRec()
203 serializer.attribute("", "text", safeCharSeqToString(node.getText())); in dumpNodeRec()
204 serializer.attribute("", "resource-id", safeCharSeqToString(node.getViewIdResourceName())); in dumpNodeRec()
205 serializer.attribute("", "class", safeCharSeqToString(node.getClassName())); in dumpNodeRec()
206 serializer.attribute("", "package", safeCharSeqToString(node.getPackageName())); in dumpNodeRec()
207 serializer.attribute("", "content-desc", safeCharSeqToString(node.getContentDescription())); in dumpNodeRec()
208 serializer.attribute("", "checkable", Boolean.toString(node.isCheckable())); in dumpNodeRec()
209 serializer.attribute("", "checked", Boolean.toString(node.isChecked())); in dumpNodeRec()
210 serializer.attribute("", "clickable", Boolean.toString(node.isClickable())); in dumpNodeRec()
[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.java314 Node node = mNodes.get(i);
315 if (node != mRootNode) {
316 childList.add(node.mAnimation);
333 Node node = mNodes.get(i);
334 Animator animation = node.mAnimation;
583 Node node = mNodes.get(i);
584 if (node == mRootNode) {
585 node.mEndTime = mStartDelay;
587 node.mStartTime = node.mStartTime == DURATION_INFINITE ?
588 DURATION_INFINITE : node.mStartTime + delta;
[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/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/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp558 size_t AudioPolicyEffects::readParamValue(cnode *node, in readParamValue() argument
566 if (strncmp(node->name, SHORT_TAG, sizeof(SHORT_TAG) + 1) == 0) { in readParamValue()
571 *(short *)(*param + pos) = (short)atoi(node->value); in readParamValue()
574 } else if (strncmp(node->name, INT_TAG, sizeof(INT_TAG) + 1) == 0) { in readParamValue()
579 *(int *)(*param + pos) = atoi(node->value); in readParamValue()
582 } else if (strncmp(node->name, FLOAT_TAG, sizeof(FLOAT_TAG) + 1) == 0) { in readParamValue()
587 *(float *)(*param + pos) = (float)atof(node->value); in readParamValue()
590 } else if (strncmp(node->name, BOOL_TAG, sizeof(BOOL_TAG) + 1) == 0) { in readParamValue()
595 if (strncmp(node->value, "true", strlen("true") + 1) == 0) { in readParamValue()
603 } else if (strncmp(node->name, STRING_TAG, sizeof(STRING_TAG) + 1) == 0) { in readParamValue()
[all …]
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h123 virtual void onMaybeRemovedFromTree(RenderNode* node) {} in onMaybeRemovedFromTree() argument
157 sp<RenderNode> node = new RenderNode(); in createNode() local
158 RenderProperties& props = node->mutateStagingProperties(); in createNode()
164 canvas->finishRecording(node.get()); in createNode()
166 node->setPropertyFieldsDirty(0xFFFFFFFF); in createNode()
167 return node; in createNode()
174 sp<RenderNode> node = new RenderNode(); in createNode() local
175 RenderProperties& props = node->mutateStagingProperties(); in createNode()
180 node->setStagingDisplayList(canvas.finishRecording()); in createNode()
182 node->setPropertyFieldsDirty(0xFFFFFFFF); in createNode()
[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/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/apct-tests/perftests/autofill/src/android/view/autofill/
DAutofillTestHelper.java38 ViewNode node = findNodeByResourceId(context.getStructure(), resourceId); in findNodeByResourceId() local
39 if (node != null) { in findNodeByResourceId()
40 return node; in findNodeByResourceId()
55 final ViewNode node = findNodeByResourceId(rootNode, id); in findNodeByResourceId() local
56 if (node != null) { in findNodeByResourceId()
57 return node; in findNodeByResourceId()
66 private static ViewNode findNodeByResourceId(ViewNode node, String id) { in findNodeByResourceId() argument
67 if (id.equals(node.getIdEntry())) { in findNodeByResourceId()
68 return node; in findNodeByResourceId()
70 final int childrenSize = node.getChildCount(); in findNodeByResourceId()
[all …]
/frameworks/base/core/java/android/content/
DUriMatcher.java179 UriMatcher node = this; in addURI() local
182 ArrayList<UriMatcher> children = node.mChildren; in addURI()
189 node = child; in addURI()
196 node.mChildren.add(child); in addURI()
197 node = child; in addURI()
200 node.mCode = code; in addURI()
227 UriMatcher node = this;
235 ArrayList<UriMatcher> list = node.mChildren;
239 node = null;
247 node = n;
[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()
47 RenderNode node = RenderNode.create("LinearLayout", null); in testIsValid() local
49 node.hasDisplayList(); in testIsValid()
56 RenderNode node = RenderNode.create("LinearLayout", null); in testStartEnd() local
58 node.beginRecording(100, 100); in testStartEnd()
59 node.endRecording(); in testStartEnd()
84 RenderNode node = RenderNode.create("LinearLayout", null); in testHasIdentityMatrix() local
86 node.hasIdentityMatrix(); in testHasIdentityMatrix()
93 RenderNode node = RenderNode.create("LinearLayout", null); in testSetOutline() local
[all …]
/frameworks/base/tools/lint/framework/checks/src/main/java/com/google/android/lint/
DCallingIdentityTokenDetector.kt92 override fun visitLocalVariable(node: ULocalVariable) { in <lambda>()
93 val initializer = node.uastInitializer?.skipParenthesizedExprDown() in <lambda>()
96 val location = context.getLocation(node as UElement) in <lambda>()
97 val variableName = node.getName() in <lambda>()
98 if (!node.isFinal) { in <lambda>()
118 val firstCallToken = findFirstTokenInScope(node) in <lambda>()
131 val finallyClause = (getNextStatementOfLocalVariable(node) as? UTryExpression) in <lambda>()
142 node.sourcePsi?.getUseScope(), in <lambda>()
148 override fun visitCallExpression(node: UCallExpression) { in <lambda>()
150 isMethodCall(node, Method.BINDER_CLEAR_CALLING_IDENTITY) -> { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/checks/src/com/android/internal/systemui/lint/
DDemotingTestWithoutBugDetector.kt41 override fun visitAnnotation(node: UAnnotation) { in createUastHandler()
43 if (node.qualifiedName in DEMOTING_ANNOTATION_BUG_ID) { in createUastHandler()
44 if (!containsBugId(node)) { in createUastHandler()
45 val location = context.getLocation(node) in createUastHandler()
49 context.report(ISSUE, node, location, message) in createUastHandler()
53 if (node.qualifiedName == DEMOTING_ANNOTATION_IGNORE) { in createUastHandler()
54 if (!containsBugString(node)) { in createUastHandler()
55 val location = context.getLocation(node) in createUastHandler()
58 context.report(ISSUE, node, location, message) in createUastHandler()
65 private fun containsBugId(node: UAnnotation): Boolean { in containsBugId()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java375 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(mView); in createNodeForHost() local
376 mView.onInitializeAccessibilityNodeInfo(node); in createNodeForHost()
377 final int realNodeCount = node.getChildCount(); in createNodeForHost()
380 onPopulateNodeForHost(node); in createNodeForHost()
396 node.addChild(mView, virtualViewIds.get(i)); in createNodeForHost()
399 return node; in createNodeForHost()
436 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(); in createNodeForChild() local
439 node.setEnabled(true); in createNodeForChild()
440 node.setClassName(DEFAULT_CLASS_NAME); in createNodeForChild()
441 node.setBoundsInParent(INVALID_PARENT_BOUNDS); in createNodeForChild()
[all …]
/frameworks/base/libs/hwui/tests/microbench/
DRenderNodeBench.cpp29 auto node = new RenderNode(); in BM_RenderNode_create() local
30 node->incStrong(0); in BM_RenderNode_create()
31 benchmark::DoNotOptimize(node); in BM_RenderNode_create()
32 node->decStrong(0); in BM_RenderNode_create()
38 sp<RenderNode> node = new RenderNode(); in BM_RenderNode_recordSimple() local
40 canvas->finishRecording(node.get()); in BM_RenderNode_recordSimple()
43 canvas->resetRecording(100, 100, node.get()); in BM_RenderNode_recordSimple()
45 canvas->finishRecording(node.get()); in BM_RenderNode_recordSimple()
/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/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/libs/binary_translation/base/include/berberis/base/
Dmmap_pool.h40 Node* node = g_nodes_with_available_blocks_.Pop(); in Alloc() local
41 if (!node) { in Alloc()
45 void* block = node->block; in Alloc()
46 g_nodes_without_blocks_.Push(node); in Alloc()
51 Node* node = g_nodes_without_blocks_.Pop(); in Free() local
52 if (!node) { in Free()
55 node->block = block; in Free()
56 g_nodes_with_available_blocks_.Push(node); in Free()
73 for (auto& node : nodes_arr) { in FreeNodes()
74 LockFreeStack<Node>::Push(&node); in FreeNodes()

12345678910>>...12