Home
last modified time | relevance | path

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

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/
DExplodeRenderingHelperTest.java20 import com.android.ide.eclipse.adt.internal.editors.mock.MockXmlNode;
42 MockXmlNode layout = createLinearLayout(true /*horizontal*/, in testSingleHorizontalLinearLayout()
43 new MockXmlNode[] { createButton(), createButton()} ); in testSingleHorizontalLinearLayout()
53 MockXmlNode layout = createLinearLayout(false /*horizontal*/, in testSingleVerticalLinearLayout()
54 new MockXmlNode[] { createButton(), createButton()} ); in testSingleVerticalLinearLayout()
69 MockXmlNode layout = createLinearLayout(false /*horizontal*/, in testEmbeddedLinearLayouts()
70 new MockXmlNode[] { in testEmbeddedLinearLayouts()
72 new MockXmlNode[] { createButton(), createButton()}), in testEmbeddedLinearLayouts()
74 new MockXmlNode[] { createButton(), createButton(), createButton()}), in testEmbeddedLinearLayouts()
89 MockXmlNode layout = createRelativeLayout( in testSimpleRelativeLayoutWithOneLinearLayouts()
[all …]
DUiElementPullParserTest.java25 import com.android.ide.eclipse.adt.internal.editors.mock.MockXmlNode;
109 MockXmlNode button1 = new MockXmlNode(null /* namespace */, "Button", Node.ELEMENT_NODE, in setUp()
122 MockXmlNode button2 = new MockXmlNode(null /* namespace */, "Button", Node.ELEMENT_NODE, in setUp()
131 MockXmlNode text = new MockXmlNode(null /* namespace */, "TextView", Node.ELEMENT_NODE, in setUp()
140 MockXmlNode relative = new MockXmlNode(null /* namespace */, "RelativeLayout", in setUp()
141 Node.ELEMENT_NODE, new MockXmlNode[] { button2, text }); in setUp()
144 MockXmlNode linear = new MockXmlNode(null /* namespace */, "LinearLayout", in setUp()
145 Node.ELEMENT_NODE, new MockXmlNode[] { button1, relative }); in setUp()
148 MockXmlNode root = new MockXmlNode(null /* namespace */, "root", Node.ELEMENT_NODE, in setUp()
149 new MockXmlNode[] { linear }); in setUp()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/manifest/model/
DUiElementNodeTest.java22 import com.android.ide.eclipse.adt.internal.editors.mock.MockXmlNode;
101 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, in testMandatoryOrder()
102 new MockXmlNode[] { in testMandatoryOrder()
103 new MockXmlNode(null /* namespace */, "application", Node.ELEMENT_NODE, null) in testMandatoryOrder()
122 MockXmlNode root = new MockXmlNode(null /* namespace */, "blah", Node.ELEMENT_NODE, null); in testLoadFrom_InvalidRoot()
132 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, in testLoadFrom_NewTree_1_Node()
133 new MockXmlNode[] { in testLoadFrom_NewTree_1_Node()
134 new MockXmlNode(null /* namespace */, "application", Node.ELEMENT_NODE, null) in testLoadFrom_NewTree_1_Node()
153 MockXmlNode root = new MockXmlNode(null /* namespace */, "manifest", Node.ELEMENT_NODE, in testLoadFrom_NewTree_2_Nodes()
154 new MockXmlNode[] { in testLoadFrom_NewTree_2_Nodes()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/mock/
DMockNodeList.java30 ArrayList<MockXmlNode> mChildren;
37 public MockNodeList(MockXmlNode[] children) { in MockNodeList()
38 mChildren = new ArrayList<MockXmlNode>(); in MockNodeList()
40 for (MockXmlNode n : children) { in MockNodeList()
59 public ArrayList<MockXmlNode> getArrayList() { in getArrayList()
DMockXmlNode.java32 public class MockXmlNode implements Node { class
38 private MockXmlNode mParent;
39 private MockXmlNode mPreviousSibling;
40 private MockXmlNode mNextSibling;
56 public MockXmlNode(String namespace, String localName, short node_type, in MockXmlNode() method in MockXmlNode
57 MockXmlNode[] children) { in MockXmlNode()
72 public MockXmlNode(String namespace, String localName, String value) { in MockXmlNode() method in MockXmlNode
77 mNodeList = new MockNodeList(new MockXmlNode[0]); in MockXmlNode()
82 MockXmlNode prev = null; in fixNavigation()
83 for (MockXmlNode n : mNodeList.getArrayList()) { in fixNavigation()
[all …]
DMockNamedNodeMap.java35 public MockXmlNode addAttribute(String namespace, String localName, String value) { in addAttribute()
36 MockXmlNode node = new MockXmlNode(namespace, localName, value); in addAttribute()