Home
last modified time | relevance | path

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

1234

/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/
DLayoutRenderer.java78 ViewNode root = scene.getRoot(); in paintComponent() local
79 if (root == null) { in paintComponent()
83 int x = (getWidth() - insets.left - insets.right - root.width) / 2; in paintComponent()
84 int y = (getHeight() - insets.top - insets.bottom - root.height) / 2; in paintComponent()
88 g.drawRect(root.left, root.top, root.width - 1, root.height - 1); in paintComponent()
89 g.clipRect(root.left - 1, root.top - 1, root.width + 1, root.height + 1); in paintComponent()
90 drawChildren(g, root, -root.scrollX, -root.scrollY); in paintComponent()
112 private void drawChildren(Graphics g, ViewNode root, int x, int y) { in drawChildren() argument
114 for (ViewNode node : root.children) { in drawChildren()
139 ViewNode root = scene.getRoot(); in selectChild() local
[all …]
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/
DViewsTreeModel.java26 private final ViewNode root; field in ViewsTreeModel
28 public ViewsTreeModel(ViewNode root) { in ViewsTreeModel() argument
29 this.root = root; in ViewsTreeModel()
33 return root; in getRoot()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/manifest/model/
DUiElementNodeTest.java101 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, in testMandatoryOrder() local
106 ui.loadFromXmlNode(root); in testMandatoryOrder()
122 MockXmlNode root = new MockXmlNode(null /* namespace */, "blah", Node.ELEMENT_NODE, null); in testLoadFrom_InvalidRoot() local
123 ui.loadFromXmlNode(root); in testLoadFrom_InvalidRoot()
132 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, in testLoadFrom_NewTree_1_Node() local
138 ui.loadFromXmlNode(root); in testLoadFrom_NewTree_1_Node()
153 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, in testLoadFrom_NewTree_2_Nodes() local
160 ui.loadFromXmlNode(root); in testLoadFrom_NewTree_2_Nodes()
182 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, in testLoadFrom_NewTree_N_Nodes() local
205 ui.loadFromXmlNode(root); in testLoadFrom_NewTree_N_Nodes()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DCanvasViewInfoTest.java82 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); in normal() local
87 root.setChildren(Arrays.asList(child1, child2)); in normal()
89 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); in normal()
126 ViewInfo root = new ViewInfo("LinearLayout", null, 10, 10, 100, 100); in showIn() local
130 root.setChildren(Arrays.asList(child1, child2)); in showIn()
135 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); in showIn()
165 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); in testIncludeTag() local
170 root.setChildren(Arrays.asList(child1, child2)); in testIncludeTag()
174 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); in testIncludeTag()
207 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); in testNoIncludeTag() local
[all …]
DSelectionManagerTest.java48 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); in testBasic() local
55 root.setChildren(Arrays.asList(child1, child2)); in testBasic()
56 CanvasViewInfo rootView = CanvasViewInfo.create(root, true /* layoutlib5 */).getFirst(); in testBasic()
99 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); in testSelectParent() local
106 root.setChildren(Arrays.asList(child1, child2)); in testSelectParent()
107 CanvasViewInfo rootView = CanvasViewInfo.create(root, true /* layoutlib5 */).getFirst(); in testSelectParent()
DDomUtilitiesTest.java94 Element root = document.getDocumentElement(); in testIsContiguous() local
95 root.appendChild(document.createTextNode(" ")); in testIsContiguous()
97 root.appendChild(foo); in testIsContiguous()
98 root.appendChild(document.createTextNode(" ")); in testIsContiguous()
100 root.appendChild(bar); in testIsContiguous()
102 root.appendChild(baz); in testIsContiguous()
113 assertFalse(DomUtilities.isContiguous(Arrays.asList(root, baz))); in testIsContiguous()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/
DNewXmlFileWizard.java179 String root = mMainPage.getRootElement(); in createXmlFile() local
180 if (root == null) { in createXmlFile()
187 String attrs = type.getDefaultAttrs(mValues.project, root); in createXmlFile()
188 String child = type.getChild(mValues.project, root); in createXmlFile()
189 return createXmlFile(file, xmlns, root, attrs, child, type.getResFolderType()); in createXmlFile()
194 String root, String rootAttributes, String child, ResourceFolderType folderType) { in createXmlFile() argument
211 if (folderType == ResourceFolderType.LAYOUT && root.equals(GRID_LAYOUT)) { in createXmlFile()
215 root = SupportLibraryHelper.getTagFor(project, FQCN_GRID_LAYOUT); in createXmlFile()
216 if (root.equals(FQCN_GRID_LAYOUT)) { in createXmlFile()
217 root = GRID_LAYOUT; in createXmlFile()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/
DGLPropertyAccessor.java43 IGLProperty root = ((GLListProperty) state).get(mContextId); in getProperty() local
46 IGLProperty successor = e.getProperty(root); in getProperty()
48 root = null; in getProperty()
51 root = successor; in getProperty()
54 return root; in getProperty()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DEditTextRule.java110 INode root = node; in findRoot() local
111 while (root != null) { in findRoot()
112 INode parent = root.getParent(); in findRoot()
116 root = parent; in findRoot()
120 return root; in findRoot()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSelectionOverlay.java98 CanvasViewInfo root = mCanvas.getViewHierarchy().getRoot(); in paint() local
99 if (root != null) { in paint()
100 NodeProxy parent = mCanvas.getNodeFactory().create(root); in paint()
102 parent, Collections.<INode>emptyList(), root.getViewObject()); in paint()
113 CanvasViewInfo root = mCanvas.getViewHierarchy().getRoot(); in paint() local
114 if (root != null) { in paint()
115 NodeProxy parent = mCanvas.getNodeFactory().create(root); in paint()
117 parent, Collections.<INode>emptyList(), root.getViewObject()); in paint()
DCanvasViewInfo.java647 public static Pair<CanvasViewInfo,List<Rectangle>> create(ViewInfo root, boolean layoutlib5) { in create() argument
648 return new Builder(layoutlib5).create(root); in create()
674 private Pair<CanvasViewInfo,List<Rectangle>> create(ViewInfo root) { in create() argument
675 Object cookie = root.getCookie(); in create()
683 CanvasViewInfo rootView = createView(null, root, 0, 0); in create()
684 addKeyedSubtrees(rootView, root, 0, 0); in create()
745 CanvasViewInfo rootView = addKeyedSubtrees(null, root, 0, 0); in create()
772 private CanvasViewInfo createView(CanvasViewInfo parent, ViewInfo root, int parentX, in createView() argument
774 Object cookie = root.getCookie(); in createView()
782 CanvasViewInfo view = createView(parent, root, parentX, parentY, node); in createView()
[all …]
/sdk/files/
Dandroid.el61 (defun android-jdb (port root)
71 (setq android-project-root root)
76 (format "%s/src" root))))
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DTemplatePreviewPage.java39 CompositeChange root = new CompositeChange("Create template", in setVisible() local
41 setChange(root); in setVisible()
DTemplateManager.java108 public static File getTemplateLocation(@NonNull File root, @NonNull String relativePath) { in getTemplateLocation() argument
111 String rootPath = root.getPath(); in getTemplateLocation()
154 File root = getTemplateRootFolder(); in getTemplates() local
155 if (root != null) { in getTemplates()
156 File[] files = new File(root, folder).listFiles(); in getTemplates()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategy.java271 Node root = null; in format() local
278 root = domDocument; in format()
281 startNode = root; in format()
282 endNode = root; in format()
291 root = DomUtilities.getCommonAncestor(startNode, endNode); in format()
292 initialDepth = root != null ? DomUtilities.getDepth(root) - 1 : 0; in format()
323 indentationLevels = m.measure(initialDepth, root); in format()
354 printer.prettyPrint(initialDepth, root, startNode, endNode, sb, isOpenTagOnly); in format()
594 IWorkspaceRoot root = workspace.getRoot(); in isAndroid() local
595 IResource member = root.findMember(location); in isAndroid()
[all …]
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
DViewHierarchyLoader.java136 private static void updateIndices(ViewNode root) { in updateIndices() argument
137 if (root == null) return; in updateIndices()
139 root.computeIndex(); in updateIndices()
141 for (ViewNode node : root.children) { in updateIndices()
DViewHierarchyScene.java39 private ViewNode root; field in ViewHierarchyScene
54 return root; in getRoot()
57 void setRoot(ViewNode root) { in setRoot() argument
58 this.root = root; in setRoot()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
DAndroidClasspathContainerInitializer.java411 IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
414 ProjectHelper.loadStringProperty(root, getAndroidSourceProperty(target));
452 String androidApiURL = ProjectHelper.loadStringProperty(root, PROPERTY_ANDROID_API);
515 ProjectHelper.saveStringProperty(root, PROPERTY_ANDROID_API, apiURL);
518 ProjectHelper.saveStringProperty(root, getAndroidSourceProperty(target),
763 IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
765 ProjectHelper.saveStringProperty(root,
769 ProjectHelper.saveStringProperty(root,
774 ProjectHelper.saveStringProperty(root, PROPERTY_ANDROID_API,
787 ProjectHelper.saveStringProperty(root,
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DLayoutMetadataTest.java83 UiElementNode root = xmlEditor.getUiRootNode(); in getNode() local
84 assertNotNull(root); in getNode()
85 UiElementNode node = findById(root, targetId); in getNode()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRefactoringTest.java80 protected static Element findElementById(Element root, String id) { in findElementById() argument
81 if (id.equals(VisualRefactoring.getId(root))) { in findElementById()
82 return root; in findElementById()
85 for (Element child : DomUtilities.getChildren(root)) { in findElementById()
95 protected static List<Element> getElements(Element root, String... ids) { in getElements() argument
98 Element element = findElementById(root, id); in getElements()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
DXmlStringFileHelper.java121 Node root = findChild(doc, null, SdkConstants.TAG_RESOURCES); in internalGetResIdsForFile() local
122 if (root != null) { in internalGetResIdsForFile()
123 for (Node strNode = findChild(root, null, in internalGetResIdsForFile()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DCompletionProposal.java199 Element root = dom.getDocumentElement(); in apply() local
200 if (root != null) { in apply()
203 NamedNodeMap attributes = root.getAttributes(); in apply()
216 XmlUtils.lookupNamespacePrefix(root, mNsUri, prefix, true); in apply()
/sdk/settings/
DREADME.txt1 Copy this in eclipse project as a .settings folder at the root.
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DAddSuppressAnnotation.java328 CompilationUnit root = SharedASTProvider.getAST(compilationUnit, in createFixes() local
330 if (root == null) { in createFixes()
356 NodeFinder nodeFinder = new NodeFinder(root, offset, length); in createFixes()
362 coveringNode = root; in createFixes()
363 if (root.types() != null && root.types().size() > 0) { in createFixes()
364 Object type = root.types().get(0); in createFixes()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dcolor1-expected-completion45.txt2 <selector ></selector> : Required. This must be the root element. Contains one or more <item> eleme…

1234