/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/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
H A D | WrongLocationDetector.java | 62 Element root = document.getDocumentElement(); 63 if (root != null && root.getTagName().equals(TAG_RESOURCES)) { 64 context.report(ISSUE, root, context.getLocation(root),
|
H A D | StateListDetector.java | 84 Element root = document.getDocumentElement(); 85 if (root != null && root.getTagName().equals("selector")) { //$NON-NLS-1$ 86 List<Element> children = LintUtils.getChildren(root);
|
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/ |
H A D | LayoutDetector.java | 63 protected boolean hasPadding(@NonNull Element root) { argument 64 return root.hasAttributeNS(ANDROID_URI, ATTR_PADDING) 65 || root.hasAttributeNS(ANDROID_URI, ATTR_PADDING_LEFT) 66 || root.hasAttributeNS(ANDROID_URI, ATTR_PADDING_RIGHT) 67 || root.hasAttributeNS(ANDROID_URI, ATTR_PADDING_TOP) 68 || root.hasAttributeNS(ANDROID_URI, ATTR_PADDING_BOTTOM);
|
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/util/ |
H A D | DrawableViewNode.java | 220 // Get the root 221 DrawableViewNode root = this; 222 while (root.parent != null) { 223 root = root.parent; 228 if (top + NODE_HEIGHT <= root.top) { 230 } else if (top >= root.top + NODE_HEIGHT) { 236 double distanceRatio = 1 - (root.top + NODE_HEIGHT - top) / (2.0 * NODE_HEIGHT); 237 treeTop = root.top - treeHeight + distanceRatio * (treeHeight + NODE_HEIGHT); 252 root [all...] |
/sdk/emulator/qtools/ |
H A D | parse_options.h | 9 extern const char *root;
|
H A D | parse_options.cpp | 10 const char *root = ""; variable 41 " -r <root> use <root> as the path for finding ELF executables\n" 107 root = optarg;
|
H A D | bb_dump.cpp | 32 trace->SetRoot(root);
|
/sdk/common/tests/src/com/android/utils/ |
H A D | XmlUtilsTest.java | 38 Element rootElement = document.createElement("root"); 44 Element root = document.getDocumentElement(); 45 root.appendChild(document.createTextNode(" ")); 47 root.appendChild(foo); 48 root.appendChild(document.createTextNode(" ")); 50 root.appendChild(bar); 52 root.appendChild(baz);
|
/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 | 48 /** @return the root folder containing templates */ 62 /** @return the root folder containing extra templates */ 96 * Returns a template file under the given root, if it exists 98 * @param root the root folder 100 * @return a template file under the given root, if it exists 103 public static File getTemplateLocation(@NonNull File root, @NonNull String relativePath) { argument 106 String rootPath = root.getPath(); 149 File root = getTemplateRootFolder(); 150 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 | 178 String root = mMainPage.getRootElement(); 179 if (root == null) { 181 AdtPlugin.log(IStatus.ERROR, "Failed to create %1$s: missing root element", //$NON-NLS-1$ 186 String attrs = type.getDefaultAttrs(mValues.project, root); 187 String child = type.getChild(mValues.project, root); 188 return createXmlFile(file, xmlns, root, attrs, child, type.getResFolderType()); 191 /** Creates a new file using the given root element, namespace and root attributes */ 193 String root, String rootAttributes, String child, ResourceFolderType folderType) { 210 if (folderType == ResourceFolderType.LAYOUT && root 192 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/sdkmanager/libs/sdklib/src/com/android/sdklib/ |
H A D | SystemImage.java | 104 * For this reason this method requires the root SDK as well as the platform and the ABI type. 116 File root = FileOp.append( 121 return root; 123 return FileOp.append(root, abiType);
|
/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...] |
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/ui/ |
H A D | AddonSitesDialog.java | 132 Composite root = new Composite(tabFolder, SWT.NONE); 133 sitesTabItem.setControl(root); 134 GridLayoutBuilder.create(root).columns(3); 136 Label label = new Label(root, SWT.NONE); 145 mSitesTableViewer = CheckboxTableViewer.newCheckList(root, SWT.BORDER | SWT.FULL_SELECTION); 196 Button selectAll = new Button(root, SWT.NONE); 207 label = new Label(root, SWT.NONE); 210 Button deselectAll = new Button(root, SWT.NONE); 222 Composite root = new Composite(tabFolder, SWT.NONE); 223 userTabItem.setControl(root); [all...] |
/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,
|