/libcore/ojluni/src/main/java/java/util/prefs/ |
D | XmlSupport.java | 103 Element preferences = doc.getDocumentElement() ; in export() 105 Element xmlRoot = (Element) in export() 116 Element e = xmlRoot; in export() 119 e = (Element) e.appendChild(doc.createElement("node")); in export() 139 private static void putPreferencesInXml(Element elt, Document doc, in putPreferencesInXml() 157 Element map = (Element) elt.appendChild(doc.createElement("map")); in putPreferencesInXml() 159 Element entry = (Element) in putPreferencesInXml() 178 Element xmlKid = (Element) in putPreferencesInXml() 216 Element xmlRoot = (Element) doc.getDocumentElement(); in importPreferences() 223 xmlRoot = (Element) elements.item(0); in importPreferences() [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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 …]
|
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()
|
/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/dalvik/src/main/java/dalvik/system/ |
D | DexPathList.java | 71 private Element[] dexElements; 220 final Element[] newElements = makeDexElements(splitDexPath(dexPath), optimizedDirectory, in addDexPath() 224 dexElements = concat(Element.class, dexElements, newElements); in addDexPath() 263 Element[] null_elements = null; in initByteBufferDexPath() 268 dexElements = new Element[] { new Element(dex) }; in initByteBufferDexPath() 285 dexElements = new Element[0]; in initByteBufferDexPath() 338 public static Element[] makeInMemoryDexElements(ByteBuffer[] dexFiles, in makeInMemoryDexElements() 340 Element[] elements = new Element[dexFiles.length]; in makeInMemoryDexElements() 346 elements[elementPos++] = new Element(dex); in makeInMemoryDexElements() 363 private static Element[] makeDexElements(List<File> files, File optimizedDirectory, in makeDexElements() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | XMLUtils.java | 79 Element propertiesElement = doc.getDocumentElement(); in load() 112 static void importProperties(Properties props, Element propertiesElement) { in importProperties() 119 if (!(entries.item(i) instanceof Element)) { in importProperties() 122 Element entry = (Element)entries.item(i); in importProperties() 143 Element properties = (Element) in save() 147 Element comments = (Element)properties.appendChild( in save() 154 Element entry = (Element)properties.appendChild( in save()
|
/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/luni/src/main/java/libcore/content/type/ |
D | MimeMap.java | 251 static class Element { class in MimeMap.Builder 261 private Element(String spec, boolean isMimeSpec) { in Element() method in MimeMap.Builder.Element 276 public static Element ofMimeSpec(String s) { return new Element(s, true); } in ofMimeSpec() 277 public static Element ofExtensionSpec(String s) { return new Element(s, false); } in ofExtensionSpec() 280 private static String maybePut(Map<String, String> map, Element keyElement, String value) { in maybePut() 330 Element mimeElement = Element.ofMimeSpec(mimeSpec); // validate mimeSpec unconditionally in put() 334 Element firstExtensionElement = Element.ofExtensionSpec(extensionSpecs.get(0)); in put() 338 Element element = Element.ofExtensionSpec(spec); in put()
|
/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()
|