/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
H A D | CaptureRenderer.java | 25 private ViewNode node; field in class:CaptureRenderer 28 CaptureRenderer(ImageIcon icon, ViewNode node) { argument 30 this.node = node; 38 if (node.hasMargins) { 39 d.width += node.marginLeft + node.marginRight; 40 d.height += node.marginTop + node.marginBottom; 65 if ((node [all...] |
H A D | LayoutRenderer.java | 94 ViewNode node = (ViewNode) selection.iterator().next(); 97 ViewNode p = node.parent; 102 if (showExtras && node.image != null) { 103 s.drawImage(node.image, node.left, node.top, null); 105 s.drawRect(node.left, node.top, node.width - 1, node [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
H A D | EditTextRule.java | 40 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 42 super.onCreate(node, parent, insertType); 48 node.appendChild(REQUEST_FOCUS); 52 node.setAttribute(ANDROID_URI, ATTR_EMS, "10"); //$NON-NLS-1$ 79 public void handle(@NonNull INode node) { 80 INode focus = findFocus(findRoot(node)); 85 node.appendChild(REQUEST_FOCUS); 97 /** Returns true if the given node currently has focus */ 98 private static boolean hasFocus(INode node) { argument 99 INode focus = findFocus(node); 108 findRoot(INode node) argument 125 findFocus(INode node) argument [all...] |
H A D | ImageViewRule.java | 33 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 35 super.onCreate(node, parent, insertType); 41 node.editXml("Set Image", 47 parent.removeChild(node); 53 node.setAttribute(ANDROID_URI, ATTR_SRC, getSampleImageSrc());
|
H A D | MapViewRule.java | 35 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 37 super.onCreate(node, parent, insertType); 40 node.setAttribute(ANDROID_URI, "android:apiKey", //$NON-NLS-1$
|
H A D | ZoomButtonRule.java | 27 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 29 super.onCreate(node, parent, insertType); 32 node.setAttribute(ANDROID_URI, ATTR_SRC, "@android:drawable/btn_plus"); //$NON-NLS-1$
|
H A D | CalendarViewRule.java | 34 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 36 super.onCreate(node, parent, insertType); 41 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, getFillParentValueName()); 42 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT, getFillParentValueName());
|
H A D | GridViewRule.java | 34 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 36 super.onCreate(node, parent, insertType); 38 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, getFillParentValueName()); 39 node.setAttribute(ANDROID_URI, ATTR_NUM_COLUMNS, "3"); //$NON-NLS-1$
|
H A D | ImageButtonRule.java | 33 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 35 super.onCreate(node, parent, insertType); 41 node.editXml("Set Image", 50 node.setAttribute(ANDROID_URI, ATTR_SRC, getSampleImageSrc());
|
H A D | WebViewRule.java | 36 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 38 super.onCreate(node, parent, insertType); 42 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, matchParent); 43 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT, matchParent);
|
H A D | SlidingDrawerRule.java | 40 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 42 super.onCreate(node, parent, insertType); 46 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, matchParent); 47 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_HEIGHT, matchParent); 53 node.setAttribute(ANDROID_URI, ATTR_HANDLE, handleId); 54 node.setAttribute(ANDROID_URI, ATTR_CONTENT, contentId); 57 INode handle = node.appendChild(SdkConstants.FQCN_BUTTON); 62 INode content = node.appendChild(SdkConstants.FQCN_LINEAR_LAYOUT);
|
H A D | FragmentRule.java | 31 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 37 node.editXml("Add Fragment", 42 parent.removeChild(node);
|
H A D | IncludeRule.java | 30 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 36 node.editXml("Include Layout", 42 parent.removeChild(node);
|
H A D | ListViewRule.java | 36 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 38 super.onCreate(node, parent, insertType); 40 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, getFillParentValueName());
|
H A D | SeekBarRule.java | 33 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 35 super.onCreate(node, parent, insertType); 39 node.setAttribute(ANDROID_URI, ATTR_LAYOUT_WIDTH, getFillParentValueName());
|
H A D | PropertySettingNodeHandler.java | 24 * given value on a particular node. 39 public void handle(@NonNull INode node) { argument 40 node.setAttribute(mNamespaceUri, mAttribute, mValue);
|
H A D | DialerFilterRule.java | 37 public void onCreate(@NonNull INode node, @NonNull INode parent, argument 39 super.onCreate(node, parent, insertType); 44 INode hint = node.appendChild(FQCN_EDIT_TEXT); 49 INode primary = node.appendChild(FQCN_EDIT_TEXT); 58 //INode icon = node.appendChild("android.widget.ImageView"); //$NON-NLS-1$
|
H A D | ResizeState.java | 35 * The node being resized 37 public final INode node; field in class:ResizeState 40 * The layout containing the resized node 44 /** The proposed resized bounds of the node */ 47 /** The preferred wrap_content bounds of the node */ 90 * @param layout the parent layout containing the resized node 92 * @param node the node being resized 94 ResizeState(BaseLayoutRule rule, INode layout, Object layoutView, INode node) { argument 98 this.node [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/ |
H A D | UiModelTreeLabelProvider.java | 46 UiElementNode node = null; 51 node = (UiElementNode) element; 52 desc = node.getDescriptor(); 58 if (node != null && node.hasError()) { 78 UiElementNode node = (UiElementNode) element; 79 return node.getShortDescription();
|
H A D | UiModelTreeContentProvider.java | 46 * Returns all the UI node children of the given element or null if not the right kind 51 UiElementNode node = (UiElementNode) parentElement; 52 return node.getUiChildren().toArray(); 58 * Returns the parent of a given UI node or null if it's a root node or it's not the 59 * right kind of node. */ 63 UiElementNode node = (UiElementNode) element; 64 return node.getUiParent(); 70 * Returns true if the UI node has any UI children nodes. */ 74 UiElementNode node [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/ |
H A D | PropertiesTableModel.java | 29 public PropertiesTableModel(ViewNode node) { argument 30 properties = node.properties; 31 loadPrivateProperties(node); 34 private void loadPrivateProperties(ViewNode node) { argument 35 int x = node.left; 36 int y = node.top; 37 ViewNode p = node.parent;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
H A D | AddSuppressAttribute.java | 131 * Returns a quickfix to suppress a specific lint issue id on the node corresponding to 151 Node node; 153 node = DomUtilities.getNode(editor.getStructuredDocument(), 0); 154 if (node != null) { 155 node = node.getOwnerDocument().getDocumentElement(); 158 node = DomUtilities.getNode(editor.getStructuredDocument(), offset); 160 if (node == null) { 163 Document document = node.getOwnerDocument(); 164 while (node ! [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
H A D | LayoutMetadataTest.java | 51 Node node = uiNode.getXmlNode(); 53 assertNull(LayoutMetadata.getProperty(node, "foo")); 55 Element element = (Element) node; 67 private static String getText(IDocument document, Node node) throws Exception { argument 68 IndexedRegion region = (IndexedRegion) node; 85 UiElementNode node = findById(root, targetId); 86 assertNotNull(node); 87 Pair<IDocument, UiElementNode> pair = Pair.<IDocument, UiElementNode>of(document, node); 91 private static UiElementNode findById(UiElementNode node, String targetId) { argument 95 String id = node [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
H A D | ReplaceStringsVisitor.java | 84 public boolean visit(StringLiteral node) { argument 85 if (node.getLiteralValue().equals(mOldString)) { 91 useGetResource = examineVariableDeclaration(node) || 92 examineMethodInvocation(node) || 93 examineAssignment(node); 102 Expression context = methodHasContextArgument(node); 103 if (context == null && !isClassDerivedFromContext(node)) { 107 context = findContextFieldOrMethod(node); 129 mRewriter.replace(node, newNode, editGroup); 131 return super.visit(node); 145 examineVariableDeclaration(StringLiteral node) argument 172 examineAssignment(StringLiteral node) argument 195 examineMethodInvocation(StringLiteral node) argument 304 methodHasContextArgument(StringLiteral node) argument 323 isClassDerivedFromContext(StringLiteral node) argument 333 findContextFieldOrMethod(StringLiteral node) argument 435 findParentClass(ASTNode node, Class<T> clazz) argument [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
H A D | DomUtilities.java | 73 * @param node1 the first node to test 74 * @param node2 the second node to test 94 * Returns all elements below the given node (which can be a document, 95 * element, etc). This will include the node itself, if it is an element. 97 * @param node the node to search from 98 * @return all elements in the subtree formed by the node parameter 101 public static List<Element> getAllElements(@NonNull Node node) { argument 103 addElements(node, elements); 107 private static void addElements(@NonNull Node node, argument 125 getDepth(@onNull Node node) argument 141 hasElementChildren(@onNull Node node) argument 457 getNextElement(@onNull Node node) argument 472 getPreviousElement(@onNull Node node) argument 487 getParentElement(@onNull Node node) argument [all...] |