/libcore/luni/src/test/java/libcore/xml/ |
D | SaxTest.java | 41 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces() 45 assertEquals(1, attributes.getLength()); in testNoPrefixesNoNamespaces() 46 assertEquals("", attributes.getURI(0)); in testNoPrefixesNoNamespaces() 47 assertOneOf("bar", "", attributes.getLocalName(0)); in testNoPrefixesNoNamespaces() 48 assertEquals("bar", attributes.getQName(0)); in testNoPrefixesNoNamespaces() 54 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces() 58 assertEquals(1, attributes.getLength()); in testNoPrefixesNoNamespaces() 59 assertEquals("", attributes.getURI(0)); in testNoPrefixesNoNamespaces() 60 assertOneOf("a:bar", "", attributes.getLocalName(0)); in testNoPrefixesNoNamespaces() 61 assertEquals("a:bar", attributes.getQName(0)); in testNoPrefixesNoNamespaces() [all …]
|
D | NamespacedAttributesLookupTest.java | 107 String uri, String localName, String qName, Attributes attributes) { in getStartElements() 119 for (int i = 0; i < attributes.getLength(); i++) { in getStartElements() 122 serialized.append(attributes.getURI(i)).append(","); in getStartElements() 123 serialized.append(attributes.getLocalName(i)); in getStartElements() 125 serialized.append(attributes.getQName(i)); in getStartElements() 129 .append(attributes.getValue("http://bar", "c")).append(",") in getStartElements() 131 .append(attributes.getValue("bar:c")) in getStartElements()
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | NamedNodeMapRemoveNamedItemNS.java | 77 NamedNodeMap attributes; in testRemoveNamedItemNS1() local 85 attributes = element.getAttributes(); in testRemoveNamedItemNS1() 86 attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov", in testRemoveNamedItemNS1() 88 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", in testRemoveNamedItemNS1() 117 NamedNodeMap attributes; in testRemoveNamedItemNS3() local 132 attributes = element.getAttributes(); in testRemoveNamedItemNS3() 133 attribute = (Attr) attributes.removeNamedItemNS( in testRemoveNamedItemNS3() 135 attribute = (Attr) attributes.getNamedItemNS( in testRemoveNamedItemNS3() 142 NamedNodeMap attributes; in _testRemoveNamedItemNS4() local 150 attributes = element.getAttributes(); in _testRemoveNamedItemNS4() [all …]
|
D | NamedNodeMapSetNamedItemNS.java | 85 NamedNodeMap attributes; in testSetNamedItemNS1() local 96 attributes = element.getAttributes(); in testSetNamedItemNS1() 99 attribute = (Attr) attributes.getNamedItemNS( in testSetNamedItemNS1() 106 NamedNodeMap attributes; in testSetNamedItemNS2() local 116 attributes = element.getAttributes(); in testSetNamedItemNS2() 117 attributes.setNamedItemNS(attribute1); in testSetNamedItemNS2() 118 attribute = (Attr) attributes.getNamedItemNS( in testSetNamedItemNS2() 127 NamedNodeMap attributes; in testSetNamedItemNS3() local 140 attributes = element.getAttributes(); in testSetNamedItemNS3() 151 attributes.setNamedItemNS(attr); in testSetNamedItemNS3() [all …]
|
D | NamedNodeMapGetNamedItemNS.java | 102 NamedNodeMap attributes; in testGetNamedItemNS2() local 111 attributes = element.getAttributes(); in testGetNamedItemNS2() 112 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", in testGetNamedItemNS2() 119 NamedNodeMap attributes; in testGetNamedItemNS3() local 132 attributes = element.getAttributes(); in testGetNamedItemNS3() 133 attribute = (Attr) attributes.getNamedItemNS( in testGetNamedItemNS3() 140 NamedNodeMap attributes; in testGetNamedItemNS4() local 151 attributes = element.getAttributes(); in testGetNamedItemNS4() 152 attribute = (Attr) attributes.getNamedItemNS( in testGetNamedItemNS4() 159 NamedNodeMap attributes; in testGetNamedItemNS5() local [all …]
|
D | SetNamedItemNS.java | 111 NamedNodeMap attributes; in testSetNamedItemNS2() local 119 attributes = testAddress.getAttributes(); in testSetNamedItemNS2() 124 attributes.setNamedItemNS(arg); in testSetNamedItemNS2() 138 NamedNodeMap attributes; in testSetNamedItemNS3() local 147 attributes = testAddress.getAttributes(); in testSetNamedItemNS3() 148 attributes.setNamedItemNS(arg); in testSetNamedItemNS3() 149 retnode = attributes.getNamedItemNS(namespaceURI, "newAttr"); in testSetNamedItemNS3() 203 NamedNodeMap attributes; in testSetNamedItemNS5() local 211 attributes = testAddress.getAttributes(); in testSetNamedItemNS5() 212 retnode = attributes.setNamedItemNS(arg); in testSetNamedItemNS5()
|
D | RemoveNamedItemNS.java | 81 NamedNodeMap attributes; in testRemoveNamedItemNS1() local 87 attributes = testAddress.getAttributes(); in testRemoveNamedItemNS1() 88 removedNode = attributes.removeNamedItemNS("http://www.usa.com", in testRemoveNamedItemNS1() 91 newAttr = (Attr) attributes.getNamedItem("dmstc:domestic"); in testRemoveNamedItemNS1() 100 NamedNodeMap attributes; in testRemoveNamedItemNS2() local 105 attributes = testAddress.getAttributes(); in testRemoveNamedItemNS2() 110 attributes.removeNamedItemNS(namespaceURI, in testRemoveNamedItemNS2()
|
D | GetNamedItemNS.java | 58 NamedNodeMap attributes; in testGetNamedItemNS1() local 64 attributes = testEmployee.getAttributes(); in testGetNamedItemNS1() 65 domesticAttr = (Attr) attributes.getNamedItemNS("http://www.usa.com", in testGetNamedItemNS1() 76 NamedNodeMap attributes; in testGetNamedItemNS2() local 81 attributes = testEmployee.getAttributes(); in testGetNamedItemNS2() 82 newAttr = (Attr) attributes.getNamedItemNS(namespaceURI, localName); in testGetNamedItemNS2()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | UnicodeLocaleExtension.java | 45 private final Set<String> attributes; field in UnicodeLocaleExtension 55 attributes = Collections.emptySet(); in UnicodeLocaleExtension() 59 UnicodeLocaleExtension(SortedSet<String> attributes, SortedMap<String, String> keywords) { in UnicodeLocaleExtension() argument 61 if (attributes != null) { in UnicodeLocaleExtension() 62 this.attributes = attributes; in UnicodeLocaleExtension() 64 this.attributes = Collections.emptySet(); in UnicodeLocaleExtension() 72 if (!this.attributes.isEmpty() || !this.keywords.isEmpty()) { in UnicodeLocaleExtension() 74 for (String attribute : this.attributes) { in UnicodeLocaleExtension() 91 if (attributes == Collections.EMPTY_SET) { in getUnicodeLocaleAttributes() 92 return attributes; in getUnicodeLocaleAttributes() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | ElementImpl.java | 51 private List<AttrImpl> attributes = new ArrayList<AttrImpl>(); field in ElementImpl 64 for (int i = 0; i < attributes.size(); i++) { in indexOfAttribute() 65 AttrImpl attr = attributes.get(i); in indexOfAttribute() 75 for (int i = 0; i < attributes.size(); i++) { in indexOfAttributeNS() 76 AttrImpl attr = attributes.get(i); in indexOfAttributeNS() 113 return attributes.get(i); in getAttributeNode() 123 return attributes.get(i); in getAttributeNodeNS() 137 for (Attr attr : attributes) { in getElementById() 217 return !attributes.isEmpty(); in hasAttributes() 224 attributes.remove(i); in removeAttribute() [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | hc_namednodemapchildnoderange.java | 66 NamedNodeMap attributes; in runTest() local 73 attributes = testEmployee.getAttributes(); in runTest() 74 length = (int) attributes.getLength(); in runTest() 80 child = attributes.item(2); in runTest() 84 child = attributes.item(0); in runTest() 86 child = attributes.item(1); in runTest() 88 child = attributes.item(3); in runTest()
|
D | namednodemapchildnoderange.java | 68 NamedNodeMap attributes; in runTest() local 74 attributes = testEmployee.getAttributes(); in runTest() 75 length = (int) attributes.getLength(); in runTest() 77 child = attributes.item(0); in runTest() 78 child = attributes.item(1); in runTest()
|
D | namednodemapremovenameditem.java | 77 NamedNodeMap attributes; in runTest() local 84 attributes = testAddress.getAttributes(); in runTest() 85 assertNotNull("attributesNotNull", attributes); in runTest() 86 removedNode = attributes.removeNamedItem("street"); in runTest() 87 streetAttr = (Attr) attributes.getNamedItem("street"); in runTest()
|
D | namednodemapremovenameditemgetvalue.java | 79 NamedNodeMap attributes; in runTest() local 86 attributes = testEmployee.getAttributes(); in runTest() 87 assertNotNull("attributesNotNull", attributes); in runTest() 88 removedNode = attributes.removeNamedItem("street"); in runTest() 89 streetAttr = (Attr) attributes.getNamedItem("street"); in runTest()
|
D | hc_namednodemapremovenameditem.java | 70 NamedNodeMap attributes; in runTest() local 77 attributes = testAddress.getAttributes(); in runTest() 78 removedNode = attributes.removeNamedItem("class"); in runTest() 79 streetAttr = (Attr) attributes.getNamedItem("class"); in runTest()
|
D | namednodemapsetnameditem.java | 76 NamedNodeMap attributes; in runTest() local 84 attributes = testAddress.getAttributes(); in runTest() 85 setNode = attributes.setNamedItem(newAttribute); in runTest() 86 districtNode = (Attr) attributes.getNamedItem("district"); in runTest()
|
D | namednodemapsetnameditemthatexists.java | 78 NamedNodeMap attributes; in runTest() local 86 attributes = testAddress.getAttributes(); in runTest() 87 setNode = attributes.setNamedItem(newAttribute); in runTest() 88 districtNode = (Attr) attributes.getNamedItem("street"); in runTest()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | namednodemapremovenameditemns04.java | 71 NamedNodeMap attributes; in runTest() local 79 attributes = element.getAttributes(); in runTest() 80 … attributeRemoved = (Attr) attributes.removeNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); in runTest() 81 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); in runTest() 83 … attributeRemoved = (Attr) attributes.removeNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc"); in runTest() 84 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc"); in runTest()
|
D | namednodemapsetnameditemns08.java | 74 NamedNodeMap attributes; in runTest() local 82 attributes = element.getAttributes(); in runTest() 83 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); in runTest() 85 attributes = element.getAttributes(); in runTest() 90 newNode = attributes.setNamedItemNS(attr); in runTest()
|
D | namednodemapsetnameditemns06.java | 72 NamedNodeMap attributes; in runTest() local 80 attributes = element.getAttributes(); in runTest() 81 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); in runTest() 83 attributes = element.getAttributes(); in runTest() 88 newNode = attributes.setNamedItemNS(attr); in runTest()
|
D | namednodemapsetnameditemns07.java | 78 NamedNodeMap attributes; in runTest() local 86 attributes = element.getAttributes(); in runTest() 87 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic"); in runTest() 89 attributes = element.getAttributes(); in runTest() 94 newNode = attributes.setNamedItemNS(attr); in runTest()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | XMLReaderAdapter.java | 462 void setAttributes (Attributes attributes) in setAttributes() argument 464 this.attributes = attributes; in setAttributes() 476 return attributes.getLength(); in getLength() 488 return attributes.getQName(i); in getName() 500 return attributes.getType(i); in getType() 512 return attributes.getValue(i); in getValue() 524 return attributes.getType(qName); in getType() 536 return attributes.getValue(qName); in getValue() 539 private Attributes attributes; field in XMLReaderAdapter.AttributesAdapter
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS9Attributes.java | 46 private final Hashtable<ObjectIdentifier, PKCS9Attribute> attributes = field in PKCS9Attributes 162 if (attributes.containsKey(oid)) in PKCS9Attributes() 168 attributes.put(oid, attribs[i]); in PKCS9Attributes() 216 if (attributes.get(oid) != null) in decode() 224 attributes.put(oid, attrib); in decode() 245 Object[] attribVals = attributes.values().toArray(); in generateDerEncoding() 265 return attributes.get(oid); in getAttribute() 272 return attributes.get(PKCS9Attribute.getOID(name)); in getAttribute() 280 PKCS9Attribute[] attribs = new PKCS9Attribute[attributes.size()]; in getAttributes()
|
/libcore/ojluni/src/main/java/java/text/ |
D | AttributedString.java | 143 Map<? extends Attribute, ?> attributes) in AttributedString() argument 145 if (text == null || attributes == null) { in AttributedString() 151 if (attributes.isEmpty()) in AttributedString() 156 int attributeCount = attributes.size(); in AttributedString() 164 … Iterator<? extends Map.Entry<? extends Attribute, ?>> iterator = attributes.entrySet().iterator(); in AttributedString() 234 Attribute[] attributes) { in AttributedString() argument 257 if (attributes == null) { in AttributedString() 260 for (int i = 0; i < attributes.length; i++) in AttributedString() 261 keys.add(attributes[i]); in AttributedString() 369 public void addAttributes(Map<? extends Attribute, ?> attributes, in addAttributes() argument [all …]
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlParser.java | 176 private String[] attributes = new String[16]; field in KXmlParser 198 String attrName = attributes[i + 2]; in adjustNsp() 219 nspStack[j + 1] = attributes[i + 3]; in adjustNsp() 221 if (attrName != null && attributes[i + 3].isEmpty()) { in adjustNsp() 228 attributes[i] = "http://www.w3.org/2000/xmlns/"; in adjustNsp() 232 attributes, in adjustNsp() 234 attributes, in adjustNsp() 246 String attrName = attributes[i + 2]; in adjustNsp() 264 attributes[i] = attrNs; in adjustNsp() 265 attributes[i + 1] = attrPrefix; in adjustNsp() [all …]
|