Home
last modified time | relevance | path

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

1234

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DDomUtilities.java45 import org.w3c.dom.Element;
101 public static List<Element> getAllElements(@NonNull Node node) { in getAllElements()
102 List<Element> elements = new ArrayList<Element>(64); in getAllElements()
107 private static void addElements(@NonNull Node node, @NonNull List<Element> elements) { in addElements()
108 if (node instanceof Element) { in addElements()
109 elements.add((Element) node); in addElements()
391 public static Pair<Element, Element> getElementRange(@NonNull IDocument document, in getElementRange()
393 Element beginElement = null; in getElementRange()
394 Element endElement = null; in getElementRange()
421 beginElement = (Element) beginNode; in getElementRange()
[all …]
DLayoutMetadata.java47 import org.w3c.dom.Element;
151 Element element = (Element) node; in getProperty()
181 final Element element = (Element) node; in setProperty()
236 @NonNull final Element equivalentElement, in setPropertyInEditor()
246 Element element = DomUtilities.findCorresponding(equivalentElement, doc); in setPropertyInEditor()
267 @NonNull final Element element, in setPropertyInFile()
272 Element other = DomUtilities.findCorresponding(element, doc); in setPropertyInFile()
339 if (xmlNode instanceof Element && xmlNode.getNodeName().endsWith(GRID_VIEW)) { in getNodeBinding()
340 Element element = (Element) xmlNode; in getNodeBinding()
DPreviewIconFactory.java54 import org.w3c.dom.Element;
147 private List<List<Element>> partitionRenderElements(Document document) { in partitionRenderElements()
148 List<List<Element>> elements = new ArrayList<List<Element>>(); in partitionRenderElements()
150 List<Element> shared = new ArrayList<Element>(); in partitionRenderElements()
151 Element root = document.getDocumentElement(); in partitionRenderElements()
160 Element element = (Element) node; in partitionRenderElements()
245 Element documentElement = document.getDocumentElement(); in render()
246 List<List<Element>> elements = partitionRenderElements(document); in render()
247 for (List<Element> elementGroup : elements) { in render()
252 for (Element element : elementGroup) { in render()
[all …]
/sdk/apps/DeviceConfig/src/com/example/android/deviceconfig/
DConfigGenerator.java37 import org.w3c.dom.Element;
174 Element devices = doc.createElement(PREFIX + NODE_DEVICES); in generateConfig()
180 Element device = doc.createElement(PREFIX + NODE_DEVICE); in generateConfig()
183 Element name = doc.createElement(PREFIX + NODE_NAME); in generateConfig()
186 Element manufacturer = doc.createElement(PREFIX + NODE_MANUFACTURER); in generateConfig()
190 Element hardware = doc.createElement(PREFIX + NODE_HARDWARE); in generateConfig()
193 Element screen = doc.createElement(PREFIX + NODE_SCREEN); in generateConfig()
196 Element screenSize = doc.createElement(PREFIX + NODE_SCREEN_SIZE); in generateConfig()
218 Element diagonalLength = doc.createElement(PREFIX + NODE_DIAGONAL_LENGTH); in generateConfig()
226 Element pixelDensity = doc.createElement(PREFIX + NODE_PIXEL_DENSITY); in generateConfig()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DDomUtilitiesTest.java22 import org.w3c.dom.Element;
45 Element root1 = document1.getDocumentElement(); in testIsEquivalent()
47 Element root2 = document2.getDocumentElement(); in testIsEquivalent()
57 Element foo1 = document1.createElement("foo"); in testIsEquivalent()
58 Element foo2 = document2.createElement("foo"); in testIsEquivalent()
94 Element root = document.getDocumentElement(); in testIsContiguous()
96 Element foo = document.createElement("foo"); in testIsContiguous()
99 Element bar = document.createElement("bar"); in testIsContiguous()
101 Element baz = document.createElement("baz"); in testIsContiguous()
130 Element a = document.getDocumentElement(); in testGetCommonAncestor()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DSetScrollViewSizeFix.java30 import org.w3c.dom.Element;
52 if (node instanceof Element && node.getParentNode() instanceof Element) { in apply()
53 Element element = (Element) node; in apply()
54 Element parent = (Element) node.getParentNode(); in apply()
DLinearLayoutWeightFix.java31 import org.w3c.dom.Element;
53 if (node instanceof Element && node.getParentNode() instanceof Element) { in apply()
54 Element element = (Element) node; in apply()
55 Element parent = (Element) node.getParentNode(); in apply()
DRemoveUselessViewFix.java35 import org.w3c.dom.Element;
57 if (node instanceof Element && node.getParentNode() instanceof Element) { in apply()
58 Element element = (Element) node; in apply()
59 Element parent = (Element) node.getParentNode(); in apply()
DObsoleteLayoutParamsFix.java26 import org.w3c.dom.Element;
54 if (node instanceof Element) { in apply()
55 Element element = (Element) node; in apply()
DSetPropertyFix.java37 import org.w3c.dom.Element;
54 protected String getProposal(Element element) { in getProposal()
72 if (node instanceof Element) { in apply()
73 Element element = (Element) node; in apply()
DTypographyFix.java29 import org.w3c.dom.Element;
59 if (node instanceof Element) { in apply()
60 Element element = (Element) node; in apply()
DAddSuppressAttribute.java42 import org.w3c.dom.Element;
58 private final Element mElement;
71 @NonNull Element element, in AddSuppressAttribute()
175 Element element = (Element) node; in createFixes()
231 Element element = (Element) node; in createFixForAll()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DChangeLayoutRefactoring.java74 import org.w3c.dom.Element;
109 ChangeLayoutRefactoring(List<Element> selectedElements, LayoutEditorDelegate delegate) { in ChangeLayoutRefactoring()
184 protected List<Element> initElements() { in initElements()
185 List<Element> elements = super.initElements(); in initElements()
190 for (Element element : elements) { in initElements()
194 List<Element> replacement = new ArrayList<Element>(elements.size()); in initElements()
195 for (Element e : elements) { in initElements()
200 Element first = null; in initElements()
204 first = (Element) node; in initElements()
236 Element layout = getPrimaryElement(); in computeChanges()
[all …]
DRelativeLayoutConversionHelper.java75 import org.w3c.dom.Element;
107 private final Element mLayout;
110 private List<Element> mDeletedElements;
113 Element layout, boolean flatten, MultiTextEdit rootEdit, CanvasViewInfo rootView) { in RelativeLayoutConversionHelper()
142 List<Element> getDeletedElements() { in getDeletedElements()
218 private void deleteRemovedElements(List<Element> delete) { in deleteRemovedElements()
220 for (Element element : delete) { in deleteRemovedElements()
312 Element element = view.getElement(); in computeKnownConstraints()
322 Element layout = (Element) parent; in computeKnownConstraints()
340 private float getWeight(Element linearLayoutChild) { in getWeight()
[all …]
DUnwrapRefactoring.java43 import org.w3c.dom.Element;
57 private Element mContainer;
77 UnwrapRefactoring(List<Element> selectedElements, LayoutEditorDelegate editor) { in UnwrapRefactoring()
100 Element first = mElements.get(0); in checkInitialConditions()
115 List<Element> elements = DomUtilities.getChildren(mContainer); in checkInitialConditions()
121 } else if (useParent && (parent instanceof Element)) { in checkInitialConditions()
122 mContainer = (Element) parent; in checkInitialConditions()
127 for (Element element : mElements) { in checkInitialConditions()
186 List<Element> elements = DomUtilities.getChildren(mContainer); in computeChanges()
188 Element newRoot = elements.get(0); in computeChanges()
[all …]
DGridLayoutConverter.java77 import org.w3c.dom.Element;
113 private final Element mLayout;
123 Element layout, boolean flatten, MultiTextEdit rootEdit, CanvasViewInfo rootView) { in GridLayoutConverter()
282 Element child = view.mElement; in removeUndefinedAttrs()
309 private void deleteRemovedElements(List<Element> delete) { in deleteRemovedElements()
311 for (Element element : delete) { in deleteRemovedElements()
338 Element element = view.getElement(); in assignCellAttributes()
402 Element element = view.getElement(); in processGravities()
451 private void convert0dipToWrapContent(Element child) { in convert0dipToWrapContent()
479 private CanvasViewInfo findViewForElement(CanvasViewInfo info, Element element) { in findViewForElement()
[all …]
DUseCompoundDrawableRefactoring.java72 import org.w3c.dom.Element;
111 UseCompoundDrawableRefactoring(List<Element> selectedElements, LayoutEditorDelegate editor) { in UseCompoundDrawableRefactoring()
154 Element layout = mElements.get(0); in checkInitialConditions()
155 List<Element> children = DomUtilities.getChildren(layout); in checkInitialConditions()
160 Element first = children.get(0); in checkInitialConditions()
161 Element second = children.get(1); in checkInitialConditions()
223 Element layout = mElements.get(0); in computeChanges()
224 List<Element> children = DomUtilities.getChildren(layout); in computeChanges()
225 Element first = children.get(0); in computeChanges()
226 Element second = children.get(1); in computeChanges()
[all …]
DVisualRefactoring.java88 import org.w3c.dom.Element;
118 protected final List<Element> mElements;
126 protected final Map<Element, String> mGeneratedIdMap = new HashMap<Element, String>();
153 VisualRefactoring(List<Element> elements, LayoutEditorDelegate delegate) { in VisualRefactoring()
168 for (Element element : elements) { in VisualRefactoring()
408 Element primary = getPrimaryElement(); in getRootId()
478 Element root = document.getDocumentElement(); in findNamespaceAttributes()
534 protected String stripTopLayoutAttributes(Element primary, int start, String xml) { in stripTopLayoutAttributes()
654 protected List<Element> getElements() { in getElements()
658 protected List<Element> initElements() { in initElements()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DOutlineLabelProvider.java33 import org.w3c.dom.Element;
45 if (element instanceof Element) { in getImage()
46 Element e = (Element) element; in getImage()
65 if (element instanceof Element) { in getText()
66 Element e = (Element) element; in getText()
110 private String getAttributeNS(Element e, String uri, String name) throws DOMException { in getAttributeNS()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRefactoringTest.java45 import org.w3c.dom.Element;
80 protected static Element findElementById(Element root, String id) { in findElementById()
85 for (Element child : DomUtilities.getChildren(root)) { in findElementById()
86 Element result = findElementById(child, id); in findElementById()
95 protected static List<Element> getElements(Element root, String... ids) { in getElements()
96 List<Element> selectedElements = new ArrayList<Element>(); in getElements()
98 Element element = findElementById(root, id); in getElements()
197 protected UiViewElementNode createModel(UiViewElementNode parent, Element element) { in createModel()
198 List<Element> children = DomUtilities.getChildren(element); in createModel()
203 for (Element child : children) { in createModel()
[all …]
DChangeLayoutRefactoringTest.java27 import org.w3c.dom.Element;
121 Element element = info.mElement; in checkRefactoring()
123 List<Element> selectedElements = Collections.singletonList(element); in checkRefactoring()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/model/
DUiManifestElementNode.java27 import org.w3c.dom.Element;
74 getXmlNode() instanceof Element && in getShortDescription()
83 Element elem = (Element) getXmlNode(); in getShortDescription()
122 private String _Element_getAttributeNS(Element element, in _Element_getAttributeNS()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/values/uimodel/
DUiItemElementNode.java24 import org.w3c.dom.Element;
45 if (xmlNode != null && xmlNode instanceof Element && xmlNode.hasAttributes()) { in getShortDescription()
47 Element elem = (Element) xmlNode; in getShortDescription()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DTemplateMetadata.java59 import org.w3c.dom.Element;
92 Element element = (Element) parameters.item(index); in TemplateMetadata()
195 Element element = (Element) formfactorDeclarations.item(0); in getFormFactor()
210 Element element = (Element) categories.item(0); in getCategory()
234 Element icon = (Element) icons.item(0); in getIconState()
327 Element icon = (Element) icons.item(0); in updateIconName()
335 private static RGB getRgb(@NonNull Element element, @NonNull String name) { in getRgb()
346 private static String getAttributeOrNull(@NonNull Element element, @NonNull String name) { in getAttributeOrNull()
365 Element bestMatch = null; in getThumbnailPath()
368 Element thumb = (Element) thumbs.item(i); in getThumbnailPath()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DTestNode.java42 import org.w3c.dom.Element;
294 private static TestNode createFromNode(Element element) { in createFromNode()
298 for (Element child : DomUtilities.getChildren(element)) { in createFromNode()
332 private final Element mElement;
334 public TestXmlNode(String fqcn, Element element) { in TestXmlNode()
363 Element child = mElement.getOwnerDocument().createElement(getTagName(viewFqcn)); in appendChild()
373 Element child = mElement.getOwnerDocument().createElement(getTagName(viewFqcn)); in insertChildAt()
374 List<Element> children = DomUtilities.getChildren(mElement); in insertChildAt()
376 Element before = children.get(index); in insertChildAt()
408 List<Element> children = DomUtilities.getChildren(mElement); in removeChild()
[all …]

1234