/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
H A D | LayoutRenderer.java | 78 ViewNode root = scene.getRoot(); 79 if (root == null) { 83 int x = (getWidth() - insets.left - insets.right - root.width) / 2; 84 int y = (getHeight() - insets.top - insets.bottom - root.height) / 2; 88 g.drawRect(root.left, root.top, root.width - 1, root.height - 1); 89 g.clipRect(root.left - 1, root 112 drawChildren(Graphics g, ViewNode root, int x, int y) argument 158 findChild(ViewNode root, ViewNode besthit, int x, int y) argument [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/ |
H A D | ViewsTreeModel.java | 26 private final ViewNode root; field in class:ViewsTreeModel 28 public ViewsTreeModel(ViewNode root) { argument 29 this.root = root; 33 return root;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
H A D | TemplatePreviewPage.java | 39 CompositeChange root = new CompositeChange("Create template", 41 setChange(root);
|
H A D | TemplateManager.java | 53 /** @return the root folder containing templates */ 67 /** @return the root folder containing extra templates */ 101 * Returns a template file under the given root, if it exists 103 * @param root the root folder 105 * @return a template file under the given root, if it exists 108 public static File getTemplateLocation(@NonNull File root, @NonNull String relativePath) { argument 111 String rootPath = root.getPath(); 154 File root = getTemplateRootFolder(); 155 if (root ! [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/manifest/model/ |
H A D | UiElementNodeTest.java | 101 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, 106 ui.loadFromXmlNode(root); 118 * loadFrom() does nothing if the root node doesn't match what's expected 122 MockXmlNode root = new MockXmlNode(null /* namespace */, "blah", Node.ELEMENT_NODE, null); 123 ui.loadFromXmlNode(root); 132 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, 138 ui.loadFromXmlNode(root); 153 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, 160 ui.loadFromXmlNode(root); 182 MockXmlNode root [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
H A D | EditTextRule.java | 107 /** Returns the root/top level node in the view hierarchy that contains the given node */ 110 INode root = node; 111 while (root != null) { 112 INode parent = root.getParent(); 116 root = parent; 120 return root;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/ |
H A D | GLPropertyAccessor.java | 43 IGLProperty root = ((GLListProperty) state).get(mContextId); 46 IGLProperty successor = e.getProperty(root); 48 root = null; 51 root = successor; 54 return root;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/ |
H A D | NewXmlFileWizard.java | 179 String root = mMainPage.getRootElement(); 180 if (root == null) { 182 AdtPlugin.log(IStatus.ERROR, "Failed to create %1$s: missing root element", //$NON-NLS-1$ 187 String attrs = type.getDefaultAttrs(mValues.project, root); 188 String child = type.getChild(mValues.project, root); 189 return createXmlFile(file, xmlns, root, attrs, child, type.getResFolderType()); 192 /** Creates a new file using the given root element, namespace and root attributes */ 194 String root, String rootAttributes, String child, ResourceFolderType folderType) { 211 if (folderType == ResourceFolderType.LAYOUT && root 193 createXmlFile(IFile file, String xmlns, String root, String rootAttributes, String child, ResourceFolderType folderType) argument [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
H A D | SelectionManagerTest.java | 48 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); 55 root.setChildren(Arrays.asList(child1, child2)); 56 CanvasViewInfo rootView = CanvasViewInfo.create(root, true /* layoutlib5 */).getFirst(); 99 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); 106 root.setChildren(Arrays.asList(child1, child2)); 107 CanvasViewInfo rootView = CanvasViewInfo.create(root, true /* layoutlib5 */).getFirst();
|
H A D | CanvasViewInfoTest.java | 59 // All node hierarchies should be wrapped inside a document node at the root 82 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); 87 root.setChildren(Arrays.asList(child1, child2)); 89 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); 126 ViewInfo root = new ViewInfo("LinearLayout", null, 10, 10, 100, 100); 130 root.setChildren(Arrays.asList(child1, child2)); 135 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); 165 ViewInfo root = new ViewInfo("LinearLayout", rootNode, 10, 10, 100, 100); 170 root.setChildren(Arrays.asList(child1, child2)); 174 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib 736 dump(GraphicalEditorPart graphicalEditor, ViewInfo root) argument [all...] |
H A D | DomUtilitiesTest.java | 41 document1.appendChild(document1.createElement("root")); 42 document2.appendChild(document2.createElement("root")); 93 document.appendChild(document.createElement("root")); 94 Element root = document.getDocumentElement(); 95 root.appendChild(document.createTextNode(" ")); 97 root.appendChild(foo); 98 root.appendChild(document.createTextNode(" ")); 100 root.appendChild(bar); 102 root.appendChild(baz); 113 assertFalse(DomUtilities.isContiguous(Arrays.asList(root, ba [all...] |
/sdk/files/ |
H A D | android.el | 9 (defvar android-jdb-project-root-history '() 26 (defcustom android-project-root nil 27 "This is where your Android project root is stored." 41 (defun android-read-project-root () 44 (read-file-name "Android project root: " 45 android-project-root 51 (read-file-name "Android project root: " 52 android-project-root 56 (do ((entered-root (read-directory) (read-directory))) 57 ((and entered-root [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
H A D | SelectionOverlay.java | 84 // The root selection is never painted 98 CanvasViewInfo root = mCanvas.getViewHierarchy().getRoot(); 99 if (root != null) { 100 NodeProxy parent = mCanvas.getNodeFactory().create(root); 102 parent, Collections.<INode>emptyList(), root.getViewObject()); 113 CanvasViewInfo root = mCanvas.getViewHierarchy().getRoot(); 114 if (root != null) { 115 NodeProxy parent = mCanvas.getNodeFactory().create(root); 117 parent, Collections.<INode>emptyList(), root.getViewObject());
|
H A D | CanvasViewInfo.java | 156 * It is null for the root and non-null for children. 421 * Returns true iff this view info corresponds to a root element. 423 * @return True iff this is a root view info. 426 // Select the visual element -- unless it's the root. 427 // The root element is the one whose GRAND parent 431 // Special case: a gesture overlay is sometimes added as the root, but for all intents 432 // and purposes it is its layout child that is the real root so treat that one as the 433 // root as well (such that the whole layout canvas does not highlight as part of hovers 643 * @param root the root { 647 create(ViewInfo root, boolean layoutlib5) argument 674 create(ViewInfo root) argument 772 createView(CanvasViewInfo parent, ViewInfo root, int parentX, int parentY) argument 812 createView(CanvasViewInfo parent, ViewInfo root, int parentX, int parentY, UiViewElementNode node) argument [all...] |
H A D | CreateNewConfigJob.java | 87 IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); 88 IFolder folder = root.getFolder(newParentFolder.getFullPath());
|
H A D | IncludeOverlay.java | 73 CanvasViewInfo root = viewHierarchy.getRoot(); 74 Rectangle whole = root.getAbsRect();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
H A D | XmlStringFileHelper.java | 121 Node root = findChild(doc, null, SdkConstants.TAG_RESOURCES); 122 if (root != null) { 123 for (Node strNode = findChild(root, null,
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
H A D | LayoutMetadataTest.java | 83 UiElementNode root = xmlEditor.getUiRootNode(); 84 assertNotNull(root); 85 UiElementNode node = findById(root, targetId);
|
/sdk/emulator/opengl/host/libs/Translator/EGL/ |
H A D | EglX11Api.cpp | 179 Window root; local 183 if(!XGetGeometry(dpy,win,&root,&tmp,&tmp,&utmp,&utmp,&utmp,&utmp)) return false; 193 Window root; local 197 if(!XGetGeometry(dpy,pix ? pix->srfc() : 0,&root,&tmp,&tmp,&utmp,&utmp,&utmp,&utmp)) return false; 209 Window root; local 210 if(!XGetGeometry(dpy,win,&root,&x,&y,width,height,&border,&depth)) return false; 221 Window root; local 222 if(!XGetGeometry(dpy,pix,&root,&x,&y,width,height,&border,&depth)) return false;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
H A D | CompletionProposal.java | 199 Element root = dom.getDocumentElement(); 200 if (root != null) { 203 NamedNodeMap attributes = root.getAttributes(); 216 XmlUtils.lookupNamespacePrefix(root, mNsUri, prefix, true);
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
H A D | ViewHierarchyLoader.java | 136 private static void updateIndices(ViewNode root) { argument 137 if (root == null) return; 139 root.computeIndex(); 141 for (ViewNode node : root.children) {
|
H A D | ViewHierarchyScene.java | 39 private ViewNode root; field in class:ViewHierarchyScene 54 return root; 57 void setRoot(ViewNode root) { argument 58 this.root = root;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ |
H A D | AndroidClasspathContainerInitializer.java | 411 IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); 414 ProjectHelper.loadStringProperty(root, getAndroidSourceProperty(target)); 452 String androidApiURL = ProjectHelper.loadStringProperty(root, PROPERTY_ANDROID_API); 479 null, // default source attachment root path. 505 null, // default source attachment root path. 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, [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
H A D | RefactoringTest.java | 80 protected static Element findElementById(Element root, String id) { argument 81 if (id.equals(VisualRefactoring.getId(root))) { 82 return root; 85 for (Element child : DomUtilities.getChildren(root)) { 95 protected static List<Element> getElements(Element root, String... ids) { argument 98 Element element = findElementById(root, id);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
H A D | AndroidXmlFormattingStrategy.java | 271 Node root = null; 278 root = domDocument; 281 startNode = root; 282 endNode = root; 291 root = DomUtilities.getCommonAncestor(startNode, endNode); 292 initialDepth = root != null ? DomUtilities.getDepth(root) - 1 : 0; 323 indentationLevels = m.measure(initialDepth, root); 354 printer.prettyPrint(initialDepth, root, startNode, endNode, sb, isOpenTagOnly); 594 IWorkspaceRoot root 702 measure(int initialDepth, Node root) argument [all...] |