/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | AttributesTest.java | 26 import java.util.jar.Attributes; 30 private Attributes a; 34 a = new Attributes(); in setUp() 45 Attributes a2 = new Attributes(a); in test_ConstructorLjava_util_jar_Attributes() 69 assertTrue("Should have returned true", a.containsKey(new Attributes.Name("1"))); in test_containsKeyLjava_lang_Object() 100 assertTrue("a) Should contain key", keySet.contains(new Attributes.Name("1"))); in test_entrySet() 101 assertTrue("b) Should contain key", keySet.contains(new Attributes.Name("2"))); in test_entrySet() 102 assertTrue("c) Should contain key", keySet.contains(new Attributes.Name("3"))); in test_entrySet() 103 assertTrue("d) Should contain key", keySet.contains(new Attributes.Name("4"))); in test_entrySet() 121 a = new Attributes(); in test_isEmpty() [all …]
|
D | ManifestTest.java | 26 import java.util.jar.Attributes; 94 private void assertAttribute(Attributes attr, String name, String value) { in assertAttribute() 99 Attributes main = manifest.getMainAttributes(); in checkManifest() 152 Map<String, Attributes> entries = mf.getEntries(); in testStreamConstructor() 155 Attributes namedEntryAttributes = (Attributes) (entries.get("")); in testStreamConstructor() 218 new Attributes.Name(ATT_ATT_NAME))); in testGetAttributes() 226 Map<String, Attributes> myMap = m.getEntries(); in testGetEntries() 229 new Attributes.Name(ATT_ATT_NAME))); in testGetEntries() 237 Attributes a = m.getMainAttributes(); in testGetMainAttributes() 239 .get(Attributes.Name.MANIFEST_VERSION)); in testGetMainAttributes() [all …]
|
D | JarOutputStreamTest.java | 22 import java.util.jar.Attributes; 46 Attributes att = man.getMainAttributes(); in test_JarOutputStreamLjava_io_OutputStreamLjava_util_jar_Manifest() 47 att.put(Attributes.Name.MANIFEST_VERSION, "1.0"); in test_JarOutputStreamLjava_io_OutputStreamLjava_util_jar_Manifest() 48 att.put(Attributes.Name.MAIN_CLASS, "foo.bar.execjartest.Foo"); in test_JarOutputStreamLjava_io_OutputStreamLjava_util_jar_Manifest() 49 att.put(Attributes.Name.CLASS_PATH, barZip.getName()); in test_JarOutputStreamLjava_io_OutputStreamLjava_util_jar_Manifest()
|
D | AttributesNameTest.java | 20 import java.util.jar.Attributes; 32 new Attributes.Name( in testAttributesNameConstructor()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldAttributesNameTest.java | 20 import java.util.jar.Attributes; 30 new Attributes.Name(null); in test_AttributesName_Constructor() 38 Attributes.Name attr1 = new Attributes.Name("Attr"); in test_equalsLjava_lang_Object() 39 Attributes.Name attr2 = new Attributes.Name("Attr"); in test_equalsLjava_lang_Object() 42 attr2 = new Attributes.Name("Attr1"); in test_equalsLjava_lang_Object() 47 Attributes.Name attr1 = new Attributes.Name("Attr1"); in test_hashCode() 48 Attributes.Name attr2 = new Attributes.Name("Attr2"); in test_hashCode() 56 Attributes.Name attr1 = new Attributes.Name(str1); in test_toString() 57 Attributes.Name attr2 = new Attributes.Name("Attr2"); in test_toString()
|
D | OldAttributesTest.java | 20 import java.util.jar.Attributes; 24 private Attributes a; 28 a = new Attributes(); in setUp() 45 Attributes attr = new Attributes(); in test_Constructor() 50 Attributes attr = new Attributes(10); in test_ConstructorI() 56 .get(new Attributes.Name("1"))); in test_getLjava_lang_Object_true() 63 .getValue(new Attributes.Name("1"))); in test_getValueLjava_util_jar_Attributes_Name() 65 .getValue(new Attributes.Name("0"))); in test_getValueLjava_util_jar_Attributes_Name() 69 Attributes b = (Attributes) a.clone(); in test_hashCode() 72 b = (Attributes) a.clone(); in test_hashCode() [all …]
|
D | OldManifestTest.java | 28 import java.util.jar.Attributes; 46 private void assertAttribute(Attributes attr, String name, String value) { in assertAttribute() 51 Attributes main = manifest.getMainAttributes(); in checkManifest() 150 assertEquals("image/pr0n", doRoundTrip(Attributes.Name.MANIFEST_VERSION)); in test_write_no_version() 157 m1.getMainAttributes().put(Attributes.Name.CONTENT_TYPE, "image/pr0n"); in doRoundTrip() 167 return (String) m2.getMainAttributes().get(Attributes.Name.CONTENT_TYPE); in doRoundTrip() 173 m1.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, "1.0"); in test_write_two_versions() 174 m1.getMainAttributes().put(Attributes.Name.SIGNATURE_VERSION, "2.0"); in test_write_two_versions()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | URLJarFile.java | 61 private Attributes superAttr; 62 private Map<String, Attributes> superEntries; 150 Attributes attr = man.getMainAttributes(); in getManifest() 155 Map<String, Attributes> entries = man.getEntries(); in getManifest() 157 Attributes at = superEntries.get(key); in getManifest() 158 entries.put(key, (Attributes) at.clone()); in getManifest() 264 public Attributes getAttributes() throws IOException { in getAttributes() 266 Map<String, Attributes> e = URLJarFile.this.superEntries; in getAttributes() 268 Attributes a = e.get(getName()); in getAttributes() 270 return (Attributes)a.clone(); in getAttributes()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | SaxTest.java | 26 import org.xml.sax.Attributes; 41 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces() 54 String qName, Attributes attributes) { in testNoPrefixesNoNamespaces() 69 String qName, Attributes attributes) { in testNoPrefixesYesNamespaces() 82 String qName, Attributes attributes) { in testNoPrefixesYesNamespaces() 101 String qName, Attributes attributes) { in testYesPrefixesYesNamespaces() 114 String qName, Attributes attributes) { in testYesPrefixesYesNamespaces() 132 String qName, Attributes attributes) { in testYesPrefixesNoNamespaces() 145 String qName, Attributes attributes) { in testYesPrefixesNoNamespaces() 193 String uri, String localName, String qName, Attributes attributes) { in testDisableExternalEntities() [all …]
|
D | NamespacedAttributesLookupTest.java | 20 import org.xml.sax.Attributes; 107 String uri, String localName, String qName, Attributes attributes) { in getStartElements()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Manifest.java | 51 private Attributes attr = new Attributes(); 54 private Map<String, Attributes> entries = new HashMap<>(); 86 public Attributes getMainAttributes() { in getMainAttributes() 99 public Map<String,Attributes> getEntries() { in getEntries() 125 public Attributes getAttributes(String name) { in getAttributes() 151 Iterator<Map.Entry<String, Attributes>> it = entries.entrySet().iterator(); in write() 153 Map.Entry<String, Attributes> e = it.next(); in write() 246 Attributes attr = getAttributes(name); in read() 248 attr = new Attributes(asize); in read()
|
D | Attributes.java | 54 public class Attributes implements Map<Object,Object>, Cloneable { class 63 public Attributes() { in Attributes() method in Attributes 73 public Attributes(int size) { in Attributes() method in Attributes 83 public Attributes(Attributes attr) { in Attributes() method in Attributes 116 return (String)get(new Attributes.Name(name)); in getValue() 148 return map.put((Attributes.Name)name, (String)value); in put() 213 if (!Attributes.class.isInstance(attr)) in putAll() 291 return new Attributes(this); in clone()
|
D | JarEntry.java | 38 Attributes attr; 86 public Attributes getAttributes() throws IOException { in getAttributes()
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Attributes2.java | 8 import org.xml.sax.Attributes; 39 public interface Attributes2 extends Attributes
|
D | Attributes2Impl.java | 8 import org.xml.sax.Attributes; 72 public Attributes2Impl (Attributes atts) in Attributes2Impl() 201 public void setAttributes (Attributes atts) in setAttributes()
|
/libcore/ojluni/src/main/java/java/net/ |
D | JarURLConnection.java | 31 import java.util.jar.Attributes; 264 public Attributes getAttributes() throws IOException { in getAttributes() 282 public Attributes getMainAttributes() throws IOException { in getMainAttributes()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | XMLReaderAdapter.java | 10 import org.xml.sax.Attributes; 333 String qName, Attributes atts) in startElement() 462 void setAttributes (Attributes attributes) in setAttributes() 539 private Attributes attributes;
|
D | AttributesImpl.java | 9 import org.xml.sax.Attributes; 48 public class AttributesImpl implements Attributes 75 public AttributesImpl (Attributes atts) in AttributesImpl() 347 public void setAttributes (Attributes atts) in setAttributes()
|
D | DefaultHandler.java | 10 import org.xml.sax.Attributes; 271 String qName, Attributes attributes) in startElement()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldJarURLConnectionTest.java | 33 import java.util.jar.Attributes; 60 java.util.jar.Attributes a = juc.getAttributes(); in test_getAttributes() 62 .get(new java.util.jar.Attributes.Name("Digest-Algorithms"))); in test_getAttributes() 104 Map<String, Attributes> attr = manifest.getEntries(); in test_getManifest() 271 java.util.jar.Attributes a = juc.getMainAttributes(); in test_getMainAttributes() 273 .get(java.util.jar.Attributes.Name.MANIFEST_VERSION)); in test_getMainAttributes()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | SignatureFileVerifier.java | 50 import java.util.jar.Attributes; 284 sf.getMainAttributes().getValue(Attributes.Name.SIGNATURE_VERSION); in processImpl() 306 Iterator<Map.Entry<String,Attributes>> entries = in processImpl() 321 Map.Entry<String,Attributes> e = entries.next(); in processImpl() 356 Attributes mattr = sf.getMainAttributes(); in verifyManifestHash() 400 Attributes mattr = sf.getMainAttributes(); in verifyManifestMainAttrs() 461 private boolean verifySection(Attributes sfAttr, in verifySection()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | XercesHTML2DocumentBuilderFactory.java | 26 import org.xml.sax.Attributes; 119 private Attributes currentAttributes; 142 Attributes attributes) throws SAXException { in startElement()
|
D | XercesHTMLDocumentBuilderFactory.java | 26 import org.xml.sax.Attributes; 119 private Attributes currentAttributes; 142 Attributes attributes) throws SAXException { in startElement()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | JarURLConnectionTest.java | 60 java.util.jar.Attributes a = juc.getJarEntry().getAttributes(); in test_getAttributes() 62 .get(new java.util.jar.Attributes.Name("Digest-Algorithms"))); in test_getAttributes() 200 java.util.jar.Attributes a = juc.getMainAttributes(); in test_getMainAttributes() 202 .get(java.util.jar.Attributes.Name.MANIFEST_VERSION)); in test_getMainAttributes()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatAttributes.java | 19 import org.xml.sax.Attributes; 26 abstract class ExpatAttributes implements Attributes {
|