Home
last modified time | relevance | path

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

1234

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DTableLayoutRule.java65 public void onChildInserted(@NonNull INode child, @NonNull INode parent, in onChildInserted() argument
127 for (INode child : children) { in addTableLayoutActions()
129 while (child != null && child.getParent() != parentNode) { in addTableLayoutActions()
130 child = child.getParent(); in addTableLayoutActions()
132 if (child != null) { in addTableLayoutActions()
135 if (rows[i] == child) { in addTableLayoutActions()
156 for (INode child : children) { in addTableLayoutActions()
157 while (child != null && child.getParent() != parentNode) { in addTableLayoutActions()
158 child = child.getParent(); in addTableLayoutActions()
160 if (child != null) { in addTableLayoutActions()
[all …]
DTabHostRule.java73 INode child = frame.appendChild(FQCN_LINEAR_LAYOUT); in onCreate() local
74 child.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, fillParent); in onCreate()
75 child.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT, fillParent); in onCreate()
76 child.setAttribute(ANDROID_URI, ATTR_ID, in onCreate()
DScrollViewRule.java44 public void onChildInserted(@NonNull INode child, @NonNull INode parent, in onChildInserted() argument
46 super.onChildInserted(child, parent, insertType); in onChildInserted()
50 child.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, fillParent); in onChildInserted()
51 child.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT, fillParent); in onChildInserted()
DHorizontalScrollViewRule.java44 public void onChildInserted(@NonNull INode child, @NonNull INode parent, in onChildInserted() argument
46 super.onChildInserted(child, parent, insertType); in onChildInserted()
50 child.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, fillParent); in onChildInserted()
51 child.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT, fillParent); in onChildInserted()
DBaseLayoutRule.java136 for (INode child : targets) { in createMarginAction()
137 child.setAttribute(uri, ATTR_LAYOUT_MARGIN, margins[0]); in createMarginAction()
138 child.setAttribute(uri, ATTR_LAYOUT_MARGIN_LEFT, margins[1]); in createMarginAction()
139 child.setAttribute(uri, ATTR_LAYOUT_MARGIN_RIGHT, margins[2]); in createMarginAction()
140 child.setAttribute(uri, ATTR_LAYOUT_MARGIN_TOP, margins[3]); in createMarginAction()
141 child.setAttribute(uri, ATTR_LAYOUT_MARGIN_BOTTOM, margins[4]); in createMarginAction()
230 for (INode child : targets) { in addLayoutActions()
231 child.setAttribute(ANDROID_URI, attribute, value); in addLayoutActions()
442 for (INode child : root.getChildren()) { in collectExistingIds()
443 collectExistingIds(child, existingIdSet); in collectExistingIds()
[all …]
DRelativeLayoutRule.java267 public DropFeedback onResizeBegin(@NonNull INode child, @NonNull INode parent, in onResizeBegin() argument
270 ResizeHandler state = new ResizeHandler(parent, child, mRulesEngine, in onResizeBegin()
276 public void onResizeUpdate(@Nullable DropFeedback feedback, @NonNull INode child, in onResizeUpdate() argument
284 state.updateResize(feedback, child, newBounds, modifierMask); in onResizeUpdate()
288 public void onResizeEnd(@Nullable DropFeedback feedback, @NonNull INode child, in onResizeEnd() argument
295 child.editXml("Resize", new INodeHandler() { in onResizeEnd()
330 for (INode child : children) { in addLayoutActions()
331 centerVertically(child); in addLayoutActions()
334 for (INode child : children) { in addLayoutActions()
335 centerHorizontally(child); in addLayoutActions()
DTableRowRule.java46 public void onChildInserted(@NonNull INode child, @NonNull INode parent, in onChildInserted() argument
73 public DropFeedback onResizeBegin(@NonNull INode child, @NonNull INode parent, in onResizeBegin() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DCanvasViewInfo.java591 private void addChild(@NonNull CanvasViewInfo child) { in addChild() argument
592 mChildren.add(child); in addChild()
596 private void addChildAt(int index, @NonNull CanvasViewInfo child) { in addChildAt() argument
597 mChildren.add(index, child); in addChildAt()
607 public boolean removeChild(@NonNull CanvasViewInfo child) { in removeChild() argument
608 return mChildren.remove(child); in removeChild()
721 for (CanvasViewInfo child : merged) { in create()
722 Rectangle rect = child.getAbsRect(); in create()
863 for (ViewInfo child : children) { in createSubtree()
864 Object cookie = child.getCookie(); in createSubtree()
[all …]
DViewHierarchy.java294 for (CanvasViewInfo child : vi.getChildren()) { in updateNodeProxies()
295 updateNodeProxies(child); in updateNodeProxies()
331 for (CanvasViewInfo child : vi.getChildren()) { in addInvisibleParents()
332 addInvisibleParents(child, invisibleNodes); in addInvisibleParents()
420 for (CanvasViewInfo child : canvasViewInfo.getChildren()) { in addWithin()
421 addWithin(child, canvasRectangle, infos); in addWithin()
502 CanvasViewInfo child = children.get(i); in findViewInfoAt_Recursive() local
503 CanvasViewInfo v = findViewInfoAt_Recursive(p, child); in findViewInfoAt_Recursive()
551 for (CanvasViewInfo child : parent.getChildren()) { in findAltViewInfoAt_Recursive()
552 r = child.getSelectionRect(); in findAltViewInfoAt_Recursive()
[all …]
DOutlineDropListener.java101 for (UiElementNode child : parentNode.getUiChildren()) { in performDrop()
102 if (child == node) { in performDrop()
208 private boolean isAncestor(UiElementNode parent, UiElementNode child) { in isAncestor() argument
209 while (child != null) { in isAncestor()
210 if (child == parent) { in isAncestor()
213 child = child.getUiParent(); in isAncestor()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DTestNode.java93 public TestNode add(TestNode child) { in add() argument
94 mChildren.add(child); in add()
95 child.mParent = this; in add()
101 for (TestNode child : children) { in add()
102 mChildren.add(child); in add()
103 child.mParent = this; in add()
191 TestNode child = new TestNode(viewFqcn); in insertChildAt() local
193 mChildren.add(child); in insertChildAt()
195 mChildren.add(index, child); in insertChildAt()
197 child.mParent = this; in insertChildAt()
[all …]
DTestDragElement.java79 for (TestDragElement child : children) { in add()
80 mChildren.add(child); in add()
81 child.mParent = this; in add()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/
DViewsTreeModel.java44 public boolean isLeaf(Object child) { in isLeaf() argument
45 ViewNode node = (ViewNode) child; in isLeaf()
49 public void valueForPathChanged(TreePath treePath, Object child) { in valueForPathChanged() argument
52 public int getIndexOfChild(Object parent, Object child) { in getIndexOfChild() argument
54 return ((ViewNode) parent).children.indexOf(child); in getIndexOfChild()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DResizeHandler.java94 for (INode child : layout.getChildren()) { in ResizeHandler()
95 if (child != resized) { in ResizeHandler()
96 String id = child.getStringAttr(ANDROID_URI, ATTR_ID); in ResizeHandler()
97 addBounds(child, id, in ResizeHandler()
98 !mHorizontalDeps.contains(child), in ResizeHandler()
99 !mVerticalDeps.contains(child)); in ResizeHandler()
181 public void updateResize(DropFeedback feedback, INode child, Rect newBounds, in updateResize() argument
190 String childId = child.getStringAttr(ANDROID_URI, ATTR_ID); in updateResize()
196 hEdge = new Segment(b.y, b.x, b.x2(), child, childId, mHorizontalEdgeType, NO_MARGIN); in updateResize()
198 hEdge = new Segment(b.y2(), b.x, b.x2(), child, childId, mHorizontalEdgeType, in updateResize()
[all …]
DDeletionHandler.java72 for (INode child : mChildren) { in DeletionHandler()
73 String id = child.getStringAttr(ANDROID_URI, ATTR_ID); in DeletionHandler()
75 mNodeMap.put(stripIdPrefix(id), child); in DeletionHandler() local
131 for (INode child : mChildren) { in updateConstraints()
132 if (mDeleted.contains(child)) { in updateConstraints()
136 for (IAttribute attribute : child.getLiveAttributes()) { in updateConstraints()
145 child.setAttribute(ANDROID_URI, name, null); in updateConstraints()
151 transfer(deleted, child, type, 0); in updateConstraints()
DMoveHandler.java78 for (INode child : layout.getChildren()) { in MoveHandler()
79 Rect bc = child.getBounds(); in MoveHandler()
93 String id = child.getStringAttr(ANDROID_URI, ATTR_ID); in MoveHandler()
97 boolean addHorizontal = !mHorizontalDeps.contains(child); in MoveHandler()
98 boolean addVertical = !mVerticalDeps.contains(child); in MoveHandler()
100 addBounds(child, id, addHorizontal, addVertical); in MoveHandler()
102 addBaseLine(child, id); in MoveHandler()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRelativeLayoutConversionHelper.java361 for (Element child : DomUtilities.getChildren(linearLayout)) { in getWeightSum()
362 sum += getWeight(child); in getWeightSum()
383 for (Element child : DomUtilities.getChildren(layout)) { in analyzeLinearLayout()
384 View view = edgeList.getView(child); in analyzeLinearLayout()
405 Element child = children.get(index); in analyzeLinearLayout() local
407 View childView = edgeList.getView(child); in analyzeLinearLayout()
418 float weight = getWeight(child); in analyzeLinearLayout()
443 analyzeGravity(edgeList, layout, isVertical, child, childView); in analyzeLinearLayout()
444 convert0dipToWrapContent(child); in analyzeLinearLayout()
462 if (isAncestor(referenced.getElement(), child)) { in analyzeLinearLayout()
[all …]
DChangeLayoutRefactoring.java339 for (Element child : DomUtilities.getChildren(layout)) { in addMissingWrapContentAttributes()
340 if (skip != null && skip.contains(child)) { in addMissingWrapContentAttributes()
344 if (!child.hasAttributeNS(ANDROID_URI, ATTR_LAYOUT_WIDTH)) { in addMissingWrapContentAttributes()
345 setAttribute(rootEdit, child, ANDROID_URI, in addMissingWrapContentAttributes()
348 if (!child.hasAttributeNS(ANDROID_URI, ATTR_LAYOUT_HEIGHT)) { in addMissingWrapContentAttributes()
349 setAttribute(rootEdit, child, ANDROID_URI, in addMissingWrapContentAttributes()
368 Element child = (Element) node; in convertLinearToTable() local
374 String oldName = child.getNodeName(); in convertLinearToTable()
376 removeOrientationAttribute(rootEdit, child); in convertLinearToTable()
416 Element child = (Element) node; in convertLinearToRelative() local
[all …]
DGridLayoutConverter.java282 Element child = view.mElement; in removeUndefinedAttrs() local
284 List<Attr> attributes = mRefactoring.findLayoutAttributes(child); in removeUndefinedAttrs()
290 mRefactoring.removeAttribute(mRootEdit, child, attribute.getNamespaceURI(), in removeUndefinedAttrs()
451 private void convert0dipToWrapContent(Element child) { in convert0dipToWrapContent() argument
460 Attr height = child.getAttributeNodeNS(ANDROID_URI, ATTR_LAYOUT_HEIGHT); in convert0dipToWrapContent()
465 Attr width = child.getAttributeNodeNS(ANDROID_URI, ATTR_LAYOUT_WIDTH); in convert0dipToWrapContent()
484 for (CanvasViewInfo child : info.getChildren()) { in findViewForElement()
485 CanvasViewInfo result = findViewForElement(child, element); in findViewForElement()
809 for (CanvasViewInfo child : view.getChildren()) { in scan()
810 Element childElement = getElement(child); in scan()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/
DUiDocumentNode.java146 for (UiElementNode child : document.getUiChildren()) { in getAllElements()
147 addElements(child, elements); in getAllElements()
155 for (UiElementNode child : node.getUiChildren()) { in addElements()
156 addElements(child, elements); in addElements()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DTypographyFix.java64 Node child = childNodes.item(i); in apply() local
65 if (child.getNodeType() == Node.TEXT_NODE) { in apply()
66 IndexedRegion region = (IndexedRegion) child; in apply()
69 TypographyDetector.getEdits(mId, message, child); in apply()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DViewMetadataRepository.java172 Element child = (Element) children.item(1); in getFullClassName() local
173 String childId = child.getAttributeNS(ANDROID_URI, ATTR_ID); in getFullClassName()
234 Element child = (Element) childNode; in getCategories() local
235 ViewData view = createViewData(fillTypes, child, in getCategories()
253 Element child, String defaultFqcn, FillPreference defaultFill, in createViewData() argument
255 String fqcn = child.getAttribute("class"); //$NON-NLS-1$ in createViewData()
259 String fill = child.getAttribute("fill"); //$NON-NLS-1$ in createViewData()
267 String skip = child.getAttribute("skip"); //$NON-NLS-1$ in createViewData()
269 String render = child.getAttribute("render"); //$NON-NLS-1$ in createViewData()
273 String displayName = child.getAttribute("name"); //$NON-NLS-1$ in createViewData()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/resources/platform/
DAttrsXmlParser.java585 for (Node child = attrNode.getFirstChild(); child != null; child = child.getNextSibling()) { in parseEnumFlagValues()
586 if (child.getNodeType() == Node.ELEMENT_NODE && child.getNodeName().equals(filter)) { in parseEnumFlagValues()
587 Node nameNode = child.getAttributes().getNamedItem("name"); //$NON-NLS-1$ in parseEnumFlagValues()
599 Node valueNode = child.getAttributes().getNamedItem("value"); //$NON-NLS-1$ in parseEnumFlagValues()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRefactoringTest.java85 for (Element child : DomUtilities.getChildren(root)) { in findElementById()
86 Element result = findElementById(child, id); in findElementById()
203 for (Element child : children) { in createModel()
204 createModel(node, child); in createModel()
257 for (UiElementNode child : childNodes) { in create()
258 children.add(create(child, lineIterator)); in create()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/pages/
DOverviewPage.java154 for (ElementDescriptor child : manifest.getDescriptor().getChildren()) { in computeManifestExtraFilters()
155 if (!excludes.contains(child)) { in computeManifestExtraFilters()
156 descriptorFilters.add(child); in computeManifestExtraFilters()

1234