Searched defs:root (Results 1 - 25 of 44) sorted by relevance

12

/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
H A DViewHierarchyLoader.java136 private static void updateIndices(ViewNode root) { argument
137 if (root == null) return;
139 root.computeIndex();
141 for (ViewNode node : root.children) {
H A DViewHierarchyScene.java39 private ViewNode root; field in class:ViewHierarchyScene
54 return root;
57 void setRoot(ViewNode root) { argument
58 this.root = root;
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/
H A DLayoutDetector.java63 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/emulator/qtools/
H A Dparse_options.cpp10 const char *root = ""; variable
41 " -r <root> use <root> as the path for finding ELF executables\n"
107 root = optarg;
/sdk/files/
H A Dandroid.el9 (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/wizards/templates/
H A DTemplateManager.java48 /** @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/hierarchyviewer/src/com/android/hierarchyviewer/ui/
H A DLayoutRenderer.java78 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 DViewsTreeModel.java26 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/project/
H A DLibraryClasspathContainerInitializer.java228 null, // default source attachment root path.
365 private static File getFile(File root, String value) { argument
368 file = new File(root.getParentFile(), value);
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/
H A DSdkManagerTestCase.java108 * AVD Root, initialized "lazily" when the AVD root is first requested.
132 * @return Path to the temporary SDK root
249 * @param root directory to delete
251 private void deleteDir(File root) { argument
252 if (root.exists()) {
253 for (File file : root.listFiles()) {
260 root.delete();
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
H A DAaptParser.java206 "W/ResourceType\\(.*\\): Bad XML block: no root element node found"); //$NON-NLS-1$
237 // get the root of the project so that we can make IFile from full
470 // W/ResourceType(12345): Bad XML block: no root element node found
493 * @param root The root directory of the project, in OS specific format.
502 String message, String root, IProject project, String markerId, int severity) {
527 f2 = getResourceFromFullPath(location, root, project);
766 private static IResource getResourceFromFullPath(String filename, String root, argument
768 if (filename.startsWith(root)) {
769 String file = filename.substring(root
501 checkAndMark(String location, String lineStr, String message, String root, IProject project, String markerId, int severity) argument
[all...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
H A DAndroidXmlFormattingStrategy.java257 Node root = null;
263 root = domDocument;
266 startNode = root;
267 endNode = root;
271 root = DomUtilities.getCommonAncestor(startNode, endNode);
272 initialDepth = root != null ? DomUtilities.getDepth(root) - 1 : 0;
303 indentationLevels = m.measure(initialDepth, root);
333 printer.prettyPrint(initialDepth, root, startNode, endNode, sb, isOpenTagOnly);
614 * @param root th
617 measure(int initialDepth, Node root) argument
[all...]
H A DXmlPrettyPrinter.java140 * @param root the node to start pretty printing from (which may not itself be
148 public void prettyPrint(int rootDepth, Node root, Node startNode, Node endNode, argument
151 startNode = root;
154 endNode = root;
165 visitNode(rootDepth, root);
674 // We also place the namespace declaration on the same line as the root element,
816 // Insert new line inside tag if it's the first element inside the root tag
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
H A DExplodedRenderingHelper.java62 * @param root the root node (ie the top layout).
65 public ExplodedRenderingHelper(Node root, IProject iProject) { argument
77 computePadding(root, mPadding);
84 * @param root the root node (ie the top layout).
87 public ExplodedRenderingHelper(Node root, Set<String> layoutNames) { argument
90 computePadding(root, mPadding);
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
H A DDomUtilities.java472 private static void addLowercaseIds(@NonNull Element root, @NonNull Set<String> seen) { argument
473 if (root.hasAttributeNS(ANDROID_URI, ATTR_ID)) {
474 String id = root.getAttributeNS(ANDROID_URI, ATTR_ID);
732 // e.g. 4th child of root, 3rd child, 6th child, then pick node with tag "foo".
H A DCanvasViewInfo.java156 * 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 DOutlinePage.java155 * RootWrapper is a workaround: we can't set the input of the TreeView to its root
240 // We've injected some controls between the root of the outline page
241 // and the tree control, so return the actual root (a sash form) rather
551 * Invoked by {@link LayoutCanvas} to set the model (a.k.a. the root view info).
553 * @param rootViewInfo The root of the view info hierarchy. Can be null.
567 // Ensure that the root is expanded
657 * In theory, the root of the model should be the input of the {@link TreeViewer},
658 * which would be the root {@link CanvasViewInfo}.
660 * its own input as the single root node.
666 * The solution is to wrap the tree viewer input in a dummy root nod
672 setRoot(CanvasViewInfo root) argument
[all...]
H A DSelectionManager.java460 // The user clicked outside the bounds of the root element; in that case, just
461 // select the root element.
659 private void addSameType(CanvasViewInfo root, ElementDescriptor descriptor) { argument
660 if (root.getUiViewNode().getDescriptor() == descriptor) {
661 mSelections.add(createSelection(root));
664 for (CanvasViewInfo child : root.getChildren()) {
1166 CanvasViewInfo root = canvas.getViewHierarchy().getRoot();
1167 if (root != null) {
1168 UiViewElementNode uiViewNode = root.getUiViewNode();
1208 CanvasViewInfo root
[all...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
H A DChangeViewRefactoring.java251 protected List<Attr> findAttributes(Node root) { argument
253 NamedNodeMap attributes = root.getAttributes();
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/
H A DNewXmlFileWizard.java178 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/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
H A DRefactoringTest.java80 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.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
H A DCanvasViewInfoTest.java59 // 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...]
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/
H A DLayoutViewer.java256 private void paintRecursive(GC gc, DrawableViewNode node, int left, int top, boolean root) { argument
260 // Don't shift the root
261 if (!root) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
H A DBaseLayoutRule.java428 protected static void collectExistingIds(INode root, Set<String> existingIdSet) { argument
429 if (root == null) {
433 String id = root.getStringAttr(ANDROID_URI, ATTR_ID);
442 for (INode child : root.getChildren()) {
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/
H A DSdkUpdaterNoWindow.java48 * Creates an UpdateNoWindow object that will update using the given SDK root
506 * @param root The ProgressTask root
508 * @param start The start value in the root's coordinates
509 * @param span The span value in the root's coordinates
511 public ConsoleSubTaskMonitor(ConsoleTaskMonitor root, argument
515 mRoot = root;

Completed in 1414 milliseconds

12