Home
last modified time | relevance | path

Searched refs:newNode (Results 1 – 6 of 6) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DBaseLayoutRuleTest.java168 INode newNode = TestNode.create("a.w.B").id("@+id/foo").set("u", "key", "value").set("u", in testAddAttributes1() local
175 layout.addAttributes(newNode, oldElement, idMap, filter); in testAddAttributes1()
176 assertEquals("value", newNode.getStringAttr("u", "key")); in testAddAttributes1()
177 assertEquals("nothiddenvalue", newNode.getStringAttr("u", "nothidden")); in testAddAttributes1()
186 INode newNode = TestNode.create("a.w.B").id("@+id/foo").set("u", "key", "value").set("u", in testAddAttributes2() local
203 layout.addAttributes(newNode, oldElement, idMap, filter); in testAddAttributes2()
204 assertEquals("value", newNode.getStringAttr("u", "key")); in testAddAttributes2()
237 INode newNode = TestNode.create("a.w.B").id("@+id/foo"); in testAddInnerElements() local
240 layout.addInnerElements(newNode, oldElement, idMap); in testAddInnerElements()
241 assertEquals(2, newNode.getChildren().length); in testAddInnerElements()
[all …]
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/sources/
DSdkRepoSource.java472 Element newNode = null; in duplicateNode() local
478 newNode = newDoc.createElementNS(namespaceUri, nodeName); in duplicateNode()
479 newNode.setPrefix(prefix); in duplicateNode()
481 newNode = newDoc.createElement(nodeName); in duplicateNode()
484 newRootNode.appendChild(newNode); in duplicateNode()
505 newNode.getAttributes().setNamedItemNS(newAttr); in duplicateNode()
507 newNode.getAttributes().setNamedItem(newAttr); in duplicateNode()
514 duplicateNode(newNode, (Element) child, namespaceUri, prefix); in duplicateNode()
518 newNode.appendChild(newText); in duplicateNode()
522 return newNode; in duplicateNode()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
DReplaceStringsVisitor.java97 ASTNode newNode = mAst.newQualifiedName(qualifierName, idName); in visit() local
121 mi2.arguments().add(newNode); in visit()
123 newNode = mi2; in visit()
129 mRewriter.replace(node, newNode, editGroup); in visit()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DRulesEngine.java529 final IViewRule childRule, final INode newNode) { in callCreateHooks() argument
538 parentRule, parentNode, childRule, newNode); in callCreateHooks()
545 parentRule.onChildInserted(newNode, parentNode, insertType); in callCreateHooks()
553 childRule.onCreate(newNode, parentNode, insertType); in callCreateHooks()
DNodeProxy.java323 NodeProxy newNode = mFactory.create(uiNewView); in insertOrAppend() local
326 engine.callCreateHooks(editor, this, newNode, null); in insertOrAppend()
329 return newNode; in insertOrAppend()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DBaseLayoutRule.java526 protected static void addAttributes(INode newNode, IDragElement oldElement, in addAttributes() argument
534 IAttributeInfo attrInfo = newNode.getAttributeInfo(uri, name); in addAttributes()
547 newNode.setAttribute(uri, name, value); in addAttributes()
557 protected static void addInnerElements(INode newNode, IDragElement oldElement, in addInnerElements() argument
562 INode childNode = newNode.appendChild(fqcn); in addInnerElements()