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/ |
D | ExplodeRenderingHelperTest.java | 20 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 …]
|
D | UiElementPullParserTest.java | 25 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/ |
D | UiElementNodeTest.java | 22 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/ |
D | MockNodeList.java | 30 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()
|
D | MockXmlNode.java | 32 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 …]
|
D | MockNamedNodeMap.java | 35 public MockXmlNode addAttribute(String namespace, String localName, String value) { in addAttribute() 36 MockXmlNode node = new MockXmlNode(namespace, localName, value); in addAttribute()
|