Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 174) sorted by relevance

1234567

/libcore/luni/src/test/java/libcore/xml/
DSaxTest.java41 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 …]
DNamespacedAttributesLookupTest.java107 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/libcore/java/util/
DLocaleInternalsTest.java67 Set<String> attributes = new HashSet<String>(); in test_parseUnicodeExtension() local
70 Locale.parseUnicodeExtension("foooo".split("-"), keywords, attributes); in test_parseUnicodeExtension()
71 assertTrue(attributes.contains("foooo")); in test_parseUnicodeExtension()
74 attributes.clear(); in test_parseUnicodeExtension()
77 keywords, attributes); in test_parseUnicodeExtension()
78 assertTrue(attributes.contains("foooo")); in test_parseUnicodeExtension()
79 assertTrue(attributes.contains("baa")); in test_parseUnicodeExtension()
80 assertTrue(attributes.contains("baaabaaa")); in test_parseUnicodeExtension()
84 attributes.clear(); in test_parseUnicodeExtension()
86 Locale.parseUnicodeExtension("ko-koko".split("-"), keywords, attributes); in test_parseUnicodeExtension()
[all …]
/libcore/luni/src/test/java/tests/org/w3c/dom/
DNamedNodeMapRemoveNamedItemNS.java77 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 …]
DNamedNodeMapSetNamedItemNS.java85 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 …]
DNamedNodeMapGetNamedItemNS.java102 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 …]
DRemoveNamedItemNS.java81 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()
DSetNamedItemNS.java111 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()
DGetNamedItemNS.java58 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/dom/src/test/java/org/w3c/domts/level1/core/
Dhc_namednodemapchildnoderange.java66 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()
Dnamednodemapchildnoderange.java68 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()
Dnamednodemapremovenameditem.java77 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()
Dnamednodemapremovenameditemgetvalue.java79 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()
Dhc_namednodemapremovenameditem.java70 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()
Dnamednodemapsetnameditemthatexists.java78 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()
Dnamednodemapsetnameditem.java76 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()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DElementImpl.java47 private List<AttrImpl> attributes = new ArrayList<AttrImpl>(); field in ElementImpl
60 for (int i = 0; i < attributes.size(); i++) { in indexOfAttribute()
61 AttrImpl attr = attributes.get(i); in indexOfAttribute()
71 for (int i = 0; i < attributes.size(); i++) { in indexOfAttributeNS()
72 AttrImpl attr = attributes.get(i); in indexOfAttributeNS()
109 return attributes.get(i); in getAttributeNode()
119 return attributes.get(i); in getAttributeNodeNS()
133 for (Attr attr : attributes) { in getElementById()
213 return !attributes.isEmpty(); in hasAttributes()
220 attributes.remove(i); in removeAttribute()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs8/
DPrivateKeyInfo.java54 private final List<?> attributes; field in PrivateKeyInfo
58 byte[] privateKey, List attributes) { in PrivateKeyInfo() argument
62 this.attributes = attributes; in PrivateKeyInfo()
67 List attributes, byte[] encoding) { in PrivateKeyInfo() argument
68 this(version, privateKeyAlgorithm, privateKey, attributes); in PrivateKeyInfo()
81 return attributes; in getAttributes()
126 values[3] = privateKeyInfo.attributes;
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Dnamednodemapremovenameditemns04.java71 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()
Dnamednodemapsetnameditemns06.java72 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()
Dnamednodemapsetnameditemns08.java74 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()
Dnamednodemapsetnameditemns07.java78 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/
DXMLReaderAdapter.java454 void setAttributes (Attributes attributes) in setAttributes() argument
456 this.attributes = attributes; in setAttributes()
468 return attributes.getLength(); in getLength()
480 return attributes.getQName(i); in getName()
492 return attributes.getType(i); in getType()
504 return attributes.getValue(i); in getValue()
516 return attributes.getType(qName); in getType()
528 return attributes.getValue(qName); in getValue()
531 private Attributes attributes; field in XMLReaderAdapter.AttributesAdapter
/libcore/luni/src/main/java/java/text/
DAttributedString.java71 AttributedCharacterIterator.Attribute[] attributes, int begin, in AttributedIterator() argument
80 if (attributes != null) { in AttributedIterator()
82 (attributes.length * 4 / 3) + 1); in AttributedIterator()
83 for (int i = attributes.length; --i >= 0;) { in AttributedIterator()
84 set.add(attributes[i]); in AttributedIterator()
284 public int getRunLimit(Set<? extends Attribute> attributes) { in getRunLimit() argument
286 Iterator<? extends Attribute> it = attributes.iterator(); in getRunLimit()
332 public int getRunStart(Set<? extends Attribute> attributes) { in getRunStart() argument
334 Iterator<? extends Attribute> it = attributes.iterator(); in getRunStart()
398 Set<AttributedCharacterIterator.Attribute> attributes = iterator in AttributedString() local
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs10/
DCertificationRequestInfo.java53 private final List<?> attributes; field in CertificationRequestInfo
59 SubjectPublicKeyInfo subjectPublicKeyInfo, List<?> attributes, byte [] encoding) { in CertificationRequestInfo() argument
63 this.attributes = attributes; in CertificationRequestInfo()
98 if (attributes != null) { in toString()
99 res.append(attributes.toString()); in toString()
130 values[3] = certReqInfo.attributes;

1234567