/libcore/luni/src/test/java/libcore/xml/ |
D | SimpleBuilderTest.java | 24 import org.w3c.dom.Element; 61 Element root = document.getDocumentElement(); in testGoodFile1() 71 Element one = (Element) list.item(0); in testGoodFile1() 72 Element two = (Element) list.item(1); in testGoodFile1() 73 Element three = (Element) list.item(2); in testGoodFile1() 74 Element four = (Element) list.item(3); in testGoodFile1() 114 Element root = document.getDocumentElement(); in testGoodFile2()
|
D | JaxenXPathTestSuite.java | 23 import org.w3c.dom.Element; 85 Element tests = DocumentBuilderFactory.newInstance() in suite() 89 for (Element document : elementsOf(tests.getElementsByTagName("document"))) { in suite() 92 for (final Element context : elementsOf(document.getElementsByTagName("context"))) { in suite() 104 InputSource inputSource, Element element) { in contextToTestSuite() 125 for (Element test : elementsOf(element.getChildNodes())) { in contextToTestSuite() 151 final XPath xpath, final Context context, final Element element) { in createFromTest() 170 final Element valueOf = (Element) valueOfElements.item(0); in createFromTest() 203 final XPath xpath, final Context context, final Element element) { 287 private final Element element; [all …]
|
D | XsltXPathConformanceTestSuite.java | 53 import org.w3c.dom.Element; 166 Element testSuiteElement = document.getDocumentElement(); in suite() 168 … for (Element testCatalog : elementsOf(testSuiteElement.getElementsByTagName("test-catalog"))) { in suite() 169 … Element majorPathElement = (Element) testCatalog.getElementsByTagName("major-path").item(0); in suite() 173 … for (Element testCaseElement : elementsOf(testCatalog.getElementsByTagName("test-case"))) { in suite() 184 private TestCase create(File base, Element testCaseElement) { in create() 203 … Element filePathElement = (Element) testCaseElement.getElementsByTagName("file-path").item(0); in create() 204 Element purposeElement = (Element) testCaseElement.getElementsByTagName("purpose").item(0); in create() 205 …Element specCitationElement = (Element) testCaseElement.getElementsByTagName("spec-citation").item… in create() 206 … Element scenarioElement = (Element) testCaseElement.getElementsByTagName("scenario").item(0); in create() [all …]
|
D | DomTest.java | 50 import org.w3c.dom.Element; 102 private Element menu; 103 private Element item; 106 private Element name; 110 private Element description; 114 private Element option1; 115 private Element option2; 118 private Element nutrition; 119 private Element vitamins; 122 private Element vitaminc; [all …]
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | NamedNodeMapSetNamedItemNS.java | 29 import org.w3c.dom.Element; 98 ((Element) /* Node */element).setAttributeNodeNS(newAttr1); in testSetNamedItemNS1() 107 Element element; in testSetNamedItemNS2() 131 Element element; in testSetNamedItemNS3() 132 Element elementAlt; in testSetNamedItemNS3() 139 element = (Element) elementList.item(1); in testSetNamedItemNS3() 143 elementAlt = (Element) elementListAlt.item(1); in testSetNamedItemNS3() 166 Element element; in testSetNamedItemNS4() 173 element = (Element) elementList.item(1); in testSetNamedItemNS4() 232 Element element; in testSetNamedItemNS6() [all …]
|
D | ElementSetAttributeNodeNS.java | 24 import org.w3c.dom.Element; 78 Element element; in testSetAttributeNodeNS1() 111 Element element; in testSetAttributeNodeNS2() 112 Element element2; in testSetAttributeNodeNS2() 124 element = (Element) elementList.item(1); in testSetAttributeNodeNS2() 127 element2 = (Element) elementList.item(2); in testSetAttributeNodeNS2() 136 Element element1; in testSetAttributeNodeNS3() 137 Element element2; in testSetAttributeNodeNS3() 146 element1 = (Element) elementList.item(1); in testSetAttributeNodeNS3() 148 element2 = (Element) elementList.item(2); in testSetAttributeNodeNS3() [all …]
|
D | HasAttributeNS.java | 24 import org.w3c.dom.Element; 78 Element testNode; in testHasAttributeNS1() 82 testNode = (Element) elementList.item(0); in testHasAttributeNS1() 91 Element testNode; in testHasAttributeNS2() 95 testNode = (Element) elementList.item(0); in testHasAttributeNS2() 104 Element testNode; in testHasAttributeNS3() 108 testNode = (Element) elementList.item(0); in testHasAttributeNS3() 134 Element testNode; in testHasAttributeNS5() 138 testNode = (Element) elementList.item(0); in testHasAttributeNS5()
|
D | NodeHasAttributes.java | 26 import org.w3c.dom.Element; 76 Element element; in testHasAttributes1() 81 element = (Element) elementList.item(0); in testHasAttributes1() 85 element = (Element) elementList.item(0); in testHasAttributes1() 100 Element element; in testHasAttributes3() 105 element = (Element) elementList.item(0); in testHasAttributes3() 116 Element element; in testHasAttributes4() 117 Element elementTest; in testHasAttributes4() 118 Element elementDoc; in testHasAttributes4() 136 elementTest = (Element) elementList.item(0); in testHasAttributes4()
|
D | GetAttributeNS.java | 24 import org.w3c.dom.Element; 97 Element testAddr; in testGetAttributeNS2() 103 testAddr = (Element) elementList.item(0); in testGetAttributeNS2() 107 testAddr = (Element) elementList.item(0); in testGetAttributeNS2() 116 Element testAddr; in testGetAttributeNS3() 120 testAddr = (Element) elementList.item(0); in testGetAttributeNS3() 133 Element testAddr; in testGetAttributeNS4() 139 testAddr = (Element) elementList.item(0); in testGetAttributeNS4() 148 Element testAddr; in testGetAttributeNS5() 152 testAddr = (Element) elementList.item(0); in testGetAttributeNS5()
|
D | HasAttribute.java | 3 import org.w3c.dom.Element; 52 Element testNode; in testHasAttribute1() 56 testNode = (Element) elementList.item(4); in testHasAttribute1() 76 Element testNode; in testHasAttribute3() 80 testNode = (Element) elementList.item(0); in testHasAttribute3() 87 Element testNode; in testHasAttribute4() 91 testNode = (Element) elementList.item(0); in testHasAttribute4()
|
D | SetAttributeNS.java | 24 import org.w3c.dom.Element; 92 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, in testSetAttributeNS1() 114 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, in testSetAttributeNS2() 174 ((Element) /* Node */testAddr).setAttributeNS("http://www.nist.gov", in testSetAttributeNS4() 176 addrAttr = ((Element) /* Node */testAddr).getAttributeNodeNS( in testSetAttributeNS4() 178 resultAttr = ((Element) /* Node */testAddr).getAttributeNS( in testSetAttributeNS4() 202 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, in testSetAttributeNS5() 204 resultAttr = ((Element) /* Node */testAddr).getAttributeNS( in testSetAttributeNS5() 221 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, in testSetAttributeNS6() 242 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, in testSetAttributeNS7() [all …]
|
D | ElementGetElementsByTagNameNS.java | 3 import org.w3c.dom.Element; 52 Element element; in testGetElementsByTagNameNS1() 62 Element element; in testGetElementsByTagNameNS4() 63 Element child1; in testGetElementsByTagNameNS4() 64 Element child2; in testGetElementsByTagNameNS4() 65 Element child3; in testGetElementsByTagNameNS4() 89 Element element; in testGetElementsByTagNameNS5()
|
D | AttrGetOwnerElement.java | 5 import org.w3c.dom.Element; 60 Element element; in testGetOwnerElement2() 61 Element ownerElement; in testGetOwnerElement2() 86 Element element; in testGetOwnerElement4() 96 element = (Element) addresses.item(1); in testGetOwnerElement4() 106 Element ownerElement; in testGetOwnerElement5() 107 Element parentElement; in testGetOwnerElement5() 118 parentElement = (Element) element.getParentNode(); in testGetOwnerElement5()
|
D | GetAttributeNodeNS.java | 24 import org.w3c.dom.Element; 79 Element testAddr; in testGetAttributeNodeNS1() 83 testAddr = (Element) elementList.item(0); in testGetAttributeNodeNS1() 91 Element testAddr; in testGetAttributeNodeNS2() 96 testAddr = (Element) elementList.item(0); in testGetAttributeNodeNS2()
|
D | ElementSetAttributeNS.java | 6 import org.w3c.dom.Element; 57 Element element; in testSetAttributeNS1() 74 Element element; in testSetAttributeNS2() 81 element = (Element) elementList.item(0); in testSetAttributeNS2() 95 Element element; in testSetAttributeNS3() 102 element = (Element) elementList.item(0); in testSetAttributeNS3() 118 Element element; in testSetAttributeNS4() 151 Element element; in testSetAttributeNS5() 170 Element element; in testSetAttributeNS8() 211 … ((Element) /*Node */testAddr).setAttributeNS(namespaceURI, qualifiedName, "newValue"); in testSetAttributeNSURINull()
|
D | ElementHasAttributeNS.java | 24 import org.w3c.dom.Element; 76 Element element; in _testHasAttributeNS1() 81 element = (Element) elementList.item(0); in _testHasAttributeNS1() 88 Element element; in testHasAttributeNS2() 101 Element element; in testHasAttributeNS3()
|
D | NodeSetPrefix.java | 30 import org.w3c.dom.Element; 84 Element element; in testSetPrefix1() 127 Element element; in testSetPrefix3() 168 Element element; in testSetPrefix5() 196 Element element; in testSetPrefix6() 230 Element element; in testSetPrefix8() 235 element = (Element) elementList.item(0); in testSetPrefix8() 251 Element element; in _testSetPrefix9()
|
D | NodeNormalize.java | 26 import org.w3c.dom.Element; 91 Element documentElement; in testNormalize() 92 Element element1; in testNormalize() 93 Element element2; in testNormalize() 94 Element element3; in testNormalize() 95 Element element4; in testNormalize() 96 Element element5; in testNormalize() 97 Element element6; in testNormalize() 98 Element element7; in testNormalize()
|
D | GetElementsByTagNameNS.java | 29 import org.w3c.dom.Element; 83 Element newElement; in testGetElementsByTagNameNS2() 89 newElement = (Element) newList.item(3); in testGetElementsByTagNameNS2() 177 Element docElem; in testGetElementsByTagNameNS8() 187 Element newElement; in testGetElementsByTagNameNS9() 190 Element docElem; in testGetElementsByTagNameNS9() 195 newElement = (Element) newList.item(3); in testGetElementsByTagNameNS9() 203 Element docElem; in testGetElementsByTagNameNS10() 238 Element docElem; in testGetElementsByTagNameNS11() 263 Element docElem; in testGetElementsByTagNameNS12() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | EnumSetTest.java | 41 assertTrue(Element.values().length > 64); in testLargeEnumSetSerialization() 51 EnumSet<Element> set = EnumSet.of(Element.H, Element.TB, Element.DY, Element.UUO); in testLargeEnumSetSerialization() 52 new SerializationTester<EnumSet<Element>>(set, s).test(); in testLargeEnumSetSerialization() 101 enum Element { enum in EnumSetTest
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Xml.java | 23 import org.w3c.dom.Element; 47 public static Element firstElementOf(Document doc) throws Exception { in firstElementOf() 48 return (Element) doc.getFirstChild(); in firstElementOf() 51 public static String attrOf(Element e) throws Exception { in attrOf()
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | hc_elementnormalize.java | 60 Element root; in runTest() 62 Element testName; in runTest() 69 testName = (Element) elementList.item(0); in runTest() 77 testName = (Element) elementList.item(0); in runTest()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | DexPathList.java | 59 private final Element[] dexElements; 203 private static Element[] makeDexElements(ArrayList<File> files, File optimizedDirectory, in makeDexElements() 205 ArrayList<Element> elements = new ArrayList<Element>(); in makeDexElements() 218 elements.add(new Element(file, true, null, null)); in makeDexElements() 248 elements.add(new Element(file, false, zip, dex)); in makeDexElements() 252 return elements.toArray(new Element[elements.size()]); in makeDexElements() 317 for (Element element : dexElements) { in findClass() 342 for (Element element : dexElements) { in findResource() 360 for (Element element : dexElements) { in findResources() 393 /*package*/ static class Element { class in DexPathList [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | elementsetattributenodens02.java | 73 Element element; in runTest() 74 Element element2; in runTest() 85 element = (Element) elementList.item(1); in runTest() 88 element2 = (Element) elementList.item(2); in runTest()
|
D | elementsetattributenodens03.java | 75 Element element1; in runTest() 76 Element element2; in runTest() 84 element1 = (Element) elementList.item(1); in runTest() 86 element2 = (Element) elementList.item(2); in runTest()
|