Home
last modified time | relevance | path

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

12345678

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DConfigParsingUtils.cpp36 cnode *node = root->first_child; in loadAudioPortGain() local
40 while (node) { in loadAudioPortGain()
41 if (strcmp(node->name, GAIN_MODE) == 0) { in loadAudioPortGain()
42 gain->setMode(GainModeConverter::maskFromString(node->value)); in loadAudioPortGain()
43 } else if (strcmp(node->name, GAIN_CHANNELS) == 0) { in loadAudioPortGain()
46 if (InputChannelConverter::fromString(node->value, mask)) { in loadAudioPortGain()
50 if (OutputChannelConverter::fromString(node->value, mask)) { in loadAudioPortGain()
54 } else if (strcmp(node->name, GAIN_MIN_VALUE) == 0) { in loadAudioPortGain()
55 gain->setMinValueInMb(atoi(node->value)); in loadAudioPortGain()
56 } else if (strcmp(node->name, GAIN_MAX_VALUE) == 0) { in loadAudioPortGain()
[all …]
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp37 void Visit(xml::Element* node) override { in Visit() argument
38 if (!node->namespace_uri.empty()) { in Visit()
40 xml::ExtractPackageFromNamespace(node->namespace_uri); in Visit()
43 std::string package = maybe_package.value().package + "." + node->name; in Visit()
45 AddClass(node->line_number, package); in Visit()
48 } else if (util::IsJavaClassName(node->name)) { in Visit()
49 AddClass(node->line_number, node->name); in Visit()
52 for (const auto& child : node->children) { in Visit()
78 void Visit(xml::Element* node) override { in Visit() argument
81 if (node->namespace_uri.empty()) { in Visit()
[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/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/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp413 size_t AudioPolicyEffects::readParamValue(cnode *node, in readParamValue() argument
421 if (strncmp(node->name, SHORT_TAG, sizeof(SHORT_TAG) + 1) == 0) { in readParamValue()
426 *(short *)(*param + pos) = (short)atoi(node->value); in readParamValue()
429 } else if (strncmp(node->name, INT_TAG, sizeof(INT_TAG) + 1) == 0) { in readParamValue()
434 *(int *)(*param + pos) = atoi(node->value); in readParamValue()
437 } else if (strncmp(node->name, FLOAT_TAG, sizeof(FLOAT_TAG) + 1) == 0) { in readParamValue()
442 *(float *)(*param + pos) = (float)atof(node->value); in readParamValue()
445 } else if (strncmp(node->name, BOOL_TAG, sizeof(BOOL_TAG) + 1) == 0) { in readParamValue()
450 if (strncmp(node->value, "true", strlen("true") + 1) == 0) { in readParamValue()
458 } else if (strncmp(node->name, STRING_TAG, sizeof(STRING_TAG) + 1) == 0) { in readParamValue()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
DParameterManagerWrapper.cpp142 cnode *node; in loadCriterionType() local
143 for (node = root->first_child; node != NULL; node = node->next) { in loadCriterionType()
145 ALOG_ASSERT(node != NULL, "error in parsing file"); in loadCriterionType()
146 const char *typeName = node->name; in loadCriterionType()
147 char *valueNames = strndup(node->value, strlen(node->value)); in loadCriterionType()
187 cnode *node = config_find(root, gInclusiveCriterionTypeTag.c_str()); in loadInclusiveCriterionType() local
188 if (node == NULL) { in loadInclusiveCriterionType()
191 loadCriterionType(node, true); in loadInclusiveCriterionType()
197 cnode *node = config_find(root, gExclusiveCriterionTypeTag.c_str()); in loadExclusiveCriterionType() local
198 if (node == NULL) { in loadExclusiveCriterionType()
[all …]
/frameworks/support/design/src/android/support/design/widget/
DDirectedAcyclicGraph.java45 void addNode(@NonNull T node) { in addNode() argument
46 if (!mGraph.containsKey(node)) { in addNode()
47 mGraph.put(node, null); in addNode()
54 boolean contains(@NonNull T node) { in contains() argument
55 return mGraph.containsKey(node); in contains()
67 void addEdge(@NonNull T node, @NonNull T incomingEdge) { in addEdge() argument
68 if (!mGraph.containsKey(node) || !mGraph.containsKey(incomingEdge)) { in addEdge()
73 ArrayList<T> edges = mGraph.get(node); in addEdge()
77 mGraph.put(node, edges); in addEdge()
89 List getIncomingEdges(@NonNull T node) { in getIncomingEdges() argument
[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/support/design/jvm-tests/src/android/support/design/widget/
DDirectedAcyclicGraphTest.java47 final TestNode node = new TestNode("node"); in test_addNode() local
48 mGraph.addNode(node); in test_addNode()
50 assertTrue(mGraph.contains(node)); in test_addNode()
55 final TestNode node = new TestNode("node"); in test_addNodeAgain() local
56 mGraph.addNode(node); in test_addNodeAgain()
57 mGraph.addNode(node); in test_addNodeAgain()
60 assertTrue(mGraph.contains(node)); in test_addNodeAgain()
65 final TestNode node = new TestNode("node"); in test_addEdge() local
68 mGraph.addNode(node); in test_addEdge()
70 mGraph.addEdge(node, edge); in test_addEdge()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DRenderNodePerfTest.java38 final RenderNode node = RenderNode.create("benchmark", null); in testMeasureRenderNodeJniOverhead() local
42 node.setTranslationX(1.0f); in testMeasureRenderNodeJniOverhead()
50 RenderNode node = RenderNode.create(null, null); in testCreateRenderNodeNoName() local
51 node.destroy(); in testCreateRenderNodeNoName()
59 RenderNode node = RenderNode.create("LinearLayout", null); in testCreateRenderNode() local
60 node.destroy(); in testCreateRenderNode()
67 RenderNode node = RenderNode.create("LinearLayout", null); in testIsValid() local
69 node.isValid(); in testIsValid()
76 RenderNode node = RenderNode.create("LinearLayout", null); in testStartEnd() local
78 DisplayListCanvas canvas = node.start(100, 100); in testStartEnd()
[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.h163 virtual void onMaybeRemovedFromTree(RenderNode* node) {} in onMaybeRemovedFromTree() argument
218 sp<RenderNode> node = new RenderNode(); in createNode() local
219 RenderProperties& props = node->mutateStagingProperties(); in createNode()
225 node->setStagingDisplayList(canvas->finishRecording()); in createNode()
227 node->setPropertyFieldsDirty(0xFFFFFFFF); in createNode()
228 return node; in createNode()
240 sp<RenderNode> node = new RenderNode(); in createNode() local
241 RenderProperties& props = node->mutateStagingProperties(); in createNode()
246 node->setStagingDisplayList(canvas.finishRecording()); in createNode()
248 node->setPropertyFieldsDirty(0xFFFFFFFF); in createNode()
[all …]
/frameworks/base/core/java/android/content/
DUriMatcher.java177 UriMatcher node = this; in addURI() local
180 ArrayList<UriMatcher> children = node.mChildren; in addURI()
187 node = child; in addURI()
202 node.mChildren.add(child); in addURI()
203 node = child; in addURI()
206 node.mCode = code; in addURI()
222 UriMatcher node = this;
230 ArrayList<UriMatcher> list = node.mChildren;
234 node = null;
242 node = n;
[all …]
/frameworks/support/core-ui/java/android/support/v4/widget/
DExploreByTouchHelper.java325 final AccessibilityNodeInfoCompat node = obtainAccessibilityNodeInfo(virtualViewId); in getBoundsInParent() local
326 node.getBoundsInParent(outBounds); in getBoundsInParent()
335 public void obtainBounds(AccessibilityNodeInfoCompat node, Rect outBounds) {
336 node.getBoundsInParent(outBounds);
675 final AccessibilityNodeInfoCompat node = obtainAccessibilityNodeInfo(virtualViewId); in createEventForChild() local
678 event.getText().add(node.getText()); in createEventForChild()
679 event.setContentDescription(node.getContentDescription()); in createEventForChild()
680 event.setScrollable(node.isScrollable()); in createEventForChild()
681 event.setPassword(node.isPassword()); in createEventForChild()
682 event.setEnabled(node.isEnabled()); in createEventForChild()
[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/libs/hwui/utils/
DLinearAllocator.cpp124 auto node = mDtorList; in ~LinearAllocator() local
125 mDtorList = node->next; in ~LinearAllocator()
126 node->dtor(node->addr); in ~LinearAllocator()
195 auto node = new (allocImpl(sizeof(DestructorNode))) DestructorNode(); in addToDestructionList() local
196 node->dtor = dtor; in addToDestructionList()
197 node->addr = addr; in addToDestructionList()
198 node->next = mDtorList; in addToDestructionList()
199 mDtorList = node; in addToDestructionList()
203 auto node = mDtorList; in runDestructorFor() local
205 while (node) { in runDestructorFor()
[all …]
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/
DFieldReadWriteWriter.kt78 parentNodes.values.forEach { node -> in <lambda>() method
79 val fieldParent = node.fieldParent!! in <lambda>()
84 node.directFields = fieldsWithIndices.filter { it.field.parent == fieldParent } in <lambda>()
85 node.parentNode = grandParentNode in <lambda>()
86 grandParentNode.subNodes.add(node) in <lambda>()
94 fun visitNode(node: Node) { in <lambda>()
96 node.directFields.forEach { in <lambda>()
98 ownerVar = node.varName, in <lambda>()
103 node.subNodes.forEach(::visitNode) in <lambda>()
106 val fieldParent = node.fieldParent in <lambda>()
[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/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 …]

12345678