Home
last modified time | relevance | path

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

/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/
DStyleCycleDetector.java78 Attr parentNode = element.getAttributeNode(ATTR_PARENT); in visitElement() local
79 if (parentNode != null) { in visitElement()
80 String parent = parentNode.getValue(); in visitElement()
84 context.report(ISSUE, parentNode, context.getLocation(parentNode), in visitElement()
89 context.report(ISSUE, parentNode, context.getLocation(parentNode), in visitElement()
DUselessViewDetector.java152 Node parentNode = element.getParentNode(); in checkUselessMiddleLayout() local
153 if (parentNode.getNodeType() != Node.ELEMENT_NODE) { in checkUselessMiddleLayout()
158 Element parent = (Element) parentNode; in checkUselessMiddleLayout()
DButtonDetector.java378 Node parentNode = element.getParentNode(); in foundResource() local
380 List<Element> items = LintUtils.getChildren(parentNode); in foundResource()
587 Node parentNode = element.getParentNode(); in isWrongPosition() local
588 if (parentNode.getNodeType() != Node.ELEMENT_NODE) { in isWrongPosition()
591 Element parent = (Element) parentNode; in isWrongPosition()
DManifestOrderDetector.java274 Node parentNode = element.getParentNode(); in visitElement() local
278 if (!TAG_APPLICATION.equals(parentNode.getNodeName()) in visitElement()
311 if (parentNode != element.getOwnerDocument().getDocumentElement() in visitElement()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DTableLayoutRule.java97 final @NonNull INode parentNode, in addLayoutActions() argument
99 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
100 addTableLayoutActions(mRulesEngine, actions, parentNode, children); in addLayoutActions()
107 List<RuleAction> actions, final INode parentNode, in addTableLayoutActions() argument
116 parentNode.editXml("Add/Remove Table Row", new INodeHandler() { in addTableLayoutActions()
124 INode[] rows = parentNode.getChildren(); in addTableLayoutActions()
129 while (child != null && child.getParent() != parentNode) { in addTableLayoutActions()
145 newRow = parentNode.appendChild(FQCN_TABLE_ROW); in addTableLayoutActions()
147 newRow = parentNode.insertChildAt(FQCN_TABLE_ROW, index); in addTableLayoutActions()
157 while (child != null && child.getParent() != parentNode) { in addTableLayoutActions()
[all …]
DTableRowRule.java56 final @NonNull INode parentNode, in addLayoutActions() argument
58 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
64 INode grandParent = parentNode.getParent(); in addLayoutActions()
DGridLayoutRule.java155 final @NonNull INode parentNode, in addLayoutActions() argument
157 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
159 String namespace = getNamespace(parentNode); in addLayoutActions()
163 new PropertyCallback(Collections.singletonList(parentNode), in addLayoutActions()
167 "horizontal", "vertical"), getCurrentOrientation(parentNode), in addLayoutActions()
175 actions.add(createMarginAction(parentNode, children)); in addLayoutActions()
186 parentNode.editXml("Add/Remove Row/Column", new INodeHandler() { in addLayoutActions()
208 GridModel grid = GridModel.get(mRulesEngine, parentNode, null); in addLayoutActions()
533 public void paintSelectionFeedback(@NonNull IGraphics graphics, @NonNull INode parentNode, in paintSelectionFeedback() argument
535 super.paintSelectionFeedback(graphics, parentNode, childNodes, view); in paintSelectionFeedback()
[all …]
DLinearLayoutRule.java129 final @NonNull INode parentNode, in addLayoutActions() argument
131 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
135 new PropertyCallback(Collections.singletonList(parentNode), in addLayoutActions()
141 getCurrentOrientation(parentNode), in addLayoutActions()
149 if (!isVertical(parentNode)) { in addLayoutActions()
150 String current = parentNode.getStringAttr(ANDROID_URI, ATTR_BASELINE_ALIGNED); in addLayoutActions()
154 new PropertyCallback(Collections.singletonList(parentNode), in addLayoutActions()
165 actions.add(createMarginAction(parentNode, children)); in addLayoutActions()
178 parentNode.editXml("Change Weight", new INodeHandler() { in addLayoutActions()
197 distributeWeights(parentNode, parentNode.getChildren()); in addLayoutActions()
[all …]
DRelativeLayoutRule.java93 public List<String> getSelectionHint(@NonNull INode parentNode, @NonNull INode childNode) { in getSelectionHint() argument
131 public void paintSelectionFeedback(@NonNull IGraphics graphics, @NonNull INode parentNode, in paintSelectionFeedback() argument
133 super.paintSelectionFeedback(graphics, parentNode, childNodes, view); in paintSelectionFeedback()
137 childNodes = Arrays.asList(parentNode.getChildren()); in paintSelectionFeedback()
144 ConstraintPainter.paintSelectionFeedback(graphics, parentNode, childNodes, showDependents); in paintSelectionFeedback()
309 final @NonNull INode parentNode, in addLayoutActions() argument
311 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
313 actions.add(createGravityAction(Collections.<INode>singletonList(parentNode), in addLayoutActions()
316 actions.add(createMarginAction(parentNode, children)); in addLayoutActions()
326 parentNode.editXml("Center", new INodeHandler() { in addLayoutActions()
DBaseLayoutRule.java109 protected final RuleAction createMarginAction(final INode parentNode, in createMarginAction() argument
113 Collections.singletonList(parentNode) in createMarginAction()
123 parentNode.editXml("Change Margins", new INodeHandler() { in createMarginAction()
189 final @NonNull INode parentNode, in addLayoutActions() argument
191 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
194 Collections.singletonList(parentNode) in addLayoutActions()
215 parentNode.editXml(undoLabel, new INodeHandler() { in addLayoutActions()
282 public void onPasteBeforeChild(INode parentNode, Object parentView, INode targetNode, in onPasteBeforeChild() argument
284 DropFeedback feedback = onDropEnter(parentNode, parentView, elements); in onPasteBeforeChild()
286 Point parentP = parentNode.getBounds().getTopLeft(); in onPasteBeforeChild()
[all …]
DFrameLayoutRule.java168 final @NonNull INode parentNode,
170 super.addLayoutActions(actions, parentNode, children);
172 actions.add(createMarginAction(parentNode, children));
DAbsoluteLayoutRule.java50 public List<String> getSelectionHint(@NonNull INode parentNode, @NonNull INode childNode) { in getSelectionHint() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DRulesEngine.java219 NodeProxy parentNode, List<NodeProxy> children ) { in callAddLayoutActions() argument
221 IViewRule rule = loadRule(parentNode.getNode()); in callAddLayoutActions()
226 rule.addLayoutActions(actions, parentNode, children); in callAddLayoutActions()
245 public List<String> callGetSelectionHint(NodeProxy parentNode, NodeProxy childNode) { in callGetSelectionHint() argument
247 IViewRule rule = loadRule(parentNode.getNode()); in callGetSelectionHint()
251 return rule.getSelectionHint(parentNode, childNode); in callGetSelectionHint()
263 public void callPaintSelectionFeedback(GCWrapper gcWrapper, NodeProxy parentNode, in callPaintSelectionFeedback() argument
266 IViewRule rule = loadRule(parentNode.getNode()); in callPaintSelectionFeedback()
270 rule.paintSelectionFeedback(gcWrapper, parentNode, childNodes, view); in callPaintSelectionFeedback()
505 NodeProxy parentNode, NodeProxy childNode, in callCreateHooks() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DOutlineDropListener.java90 UiViewElementNode parentNode = parent.getUiViewNode(); in performDrop() local
92 UiViewElementNode node = parentNode; in performDrop()
97 parentNode = parent.getUiViewNode(); in performDrop()
101 for (UiElementNode child : parentNode.getUiChildren()) { in performDrop()
114 final NodeProxy targetNode = canvas.getNodeFactory().create(parentNode); in performDrop()
182 UiViewElementNode parentNode = parent.getUiViewNode(); in validateDrop() local
187 if (!DescriptorsUtils.canInsertChildren(parentNode.getDescriptor(), in validateDrop()
198 if (isAncestor(item.getViewInfo().getUiViewNode(), parentNode)) { in validateDrop()
DSelectionOverlay.java126 NodeProxy parentNode = (NodeProxy) parent; in paintHints() local
127 List<String> infos = rulesEngine.callGetSelectionHint(parentNode, node); in paintHints()
166 NodeProxy parentNode = (NodeProxy) parent; in paintSelectionFeedback() local
167 parents.add(parentNode); in paintSelectionFeedback()
DRenderService.java430 UiElementNode parentNode = ((NodeProxy) parent).getNode(); in measureChildren() local
431 UiElementPullParser topParser = new UiElementPullParser(parentNode, in measureChildren()
DOutlinePage.java1152 UiViewElementNode parentNode = target.getFirst(); in move() local
1153 final NodeProxy targetNode = canvas.getNodeFactory().create(parentNode); in move()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/values/
DValuesContentAssist.java140 Node parentNode, Node currentNode, UiElementNode uiParent, in computeTextValues() argument
142 super.computeTextValues(proposals, offset, parentNode, currentNode, uiParent, in computeTextValues()
145 if (parentNode.getNodeName().equals(TAG_ITEM) && in computeTextValues()
146 parentNode.getParentNode() != null && in computeTextValues()
147 TAG_STYLE.equals(parentNode.getParentNode().getNodeName())) { in computeTextValues()
160 Element element = (Element) parentNode; in computeTextValues()
206 if (parentNode.getNodeName().equals(TAG_ITEM)) { in computeTextValues()
216 Node typeNode = parentNode.getAttributes().getNamedItem(ATTR_TYPE); in computeTextValues()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DAndroidContentAssist.java157 Node parentNode = context.getFirst(); in computeCompletionProposals() local
159 assert parentNode != null || currentNode != null; in computeCompletionProposals()
164 rootUiNode == null ? null : rootUiNode.findXmlNode(parentNode); in computeCompletionProposals()
165 computeTextValues(proposals, offset, parentNode, currentNode, parentUiNode, in computeCompletionProposals()
176 parentNode, currentNode, parent, info, nextChar); in computeCompletionProposals()
178 computeNonAttributeProposals(viewer, offset, wordPrefix, proposals, parentNode, in computeCompletionProposals()
187 List<ICompletionProposal> proposals, Node parentNode, Node currentNode, String parent, in computeNonAttributeProposals() argument
214 parentNode != null ? parentNode : null, wordPrefix, needTag, in computeNonAttributeProposals()
221 int offset, String wordPrefix, UiElementNode currentUiNode, Node parentNode, in computeAttributeProposals() argument
247 addMatchingProposals(proposals, choices, offset, parentNode != null ? parentNode : null, in computeAttributeProposals()
[all …]
DHyperlinks.java1258 Node parentNode = context.getNode().getParentNode(); in detectHyperlinks() local
1259 if (parentNode != null && parentNode.getNodeType() == Node.ELEMENT_NODE) { in detectHyperlinks()
/sdk/rule_api/src/com/android/ide/common/api/
DIViewRule.java129 @NonNull INode parentNode, in addLayoutActions() argument
147 List<String> getSelectionHint(@NonNull INode parentNode, @NonNull INode childNode); in getSelectionHint() argument
159 @NonNull INode parentNode, in paintSelectionFeedback() argument
DAbstractViewRule.java52 public List<String> getSelectionHint(@NonNull INode parentNode, @NonNull INode childNode) { in getSelectionHint() argument
57 public void addLayoutActions(@NonNull List<RuleAction> actions, @NonNull INode parentNode, in addLayoutActions() argument
72 public void paintSelectionFeedback(@NonNull IGraphics graphics, @NonNull INode parentNode, in paintSelectionFeedback() argument
/sdk/templates/docs/
Djquery-1.8.0.min.js2parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return …
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/resources/platform/
DAttrsXmlParser.java294 Node parentNode = node.getAttributes().getNamedItem("parent"); //$NON-NLS-1$ in parseResources() local
295 String parents = parentNode == null ? null : parentNode.getNodeValue(); in parseResources()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DConstraintPainter.java111 public static void paintSelectionFeedback(IGraphics graphics, INode parentNode, in paintSelectionFeedback() argument
114 DependencyGraph dependencyGraph = new DependencyGraph(parentNode); in paintSelectionFeedback()