/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | ElementImpl.java | 65 AttrImpl attr = attributes.get(i); in indexOfAttribute() local 66 if (Objects.equals(name, attr.getNodeName())) { in indexOfAttribute() 76 AttrImpl attr = attributes.get(i); in indexOfAttributeNS() local 77 if (Objects.equals(namespaceURI, attr.getNamespaceURI()) in indexOfAttributeNS() 78 && Objects.equals(localName, attr.getLocalName())) { in indexOfAttributeNS() 87 Attr attr = getAttributeNode(name); in getAttribute() local 89 if (attr == null) { in getAttribute() 93 return attr.getValue(); in getAttribute() 97 Attr attr = getAttributeNodeNS(namespaceURI, localName); in getAttributeNS() local 99 if (attr == null) { in getAttributeNS() [all …]
|
D | NodeImpl.java | 251 AttrImpl attr = (AttrImpl) node; in setNameNS() local 252 attr.namespaceAware = true; in setNameNS() 253 attr.namespaceURI = namespaceURI; in setNameNS() 254 attr.prefix = prefix; in setNameNS() 255 attr.localName = qualifiedName; in setNameNS() 291 AttrImpl attr = (AttrImpl) node; in setName() local 292 attr.namespaceAware = false; in setName() 293 attr.localName = name; in setName() 513 Node attr = attributes.item(i); in lookupPrefix() local 514 if (!"http://www.w3.org/2000/xmlns/".equals(attr.getNamespaceURI()) in lookupPrefix() [all …]
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | AttrGetOwnerElement.java | 63 Attr attr; in testGetOwnerElement2() local 67 attr = doc.createAttributeNS("http://www.w3.org/DOM/L1", "L1:att"); in testGetOwnerElement2() 68 element.setAttributeNodeNS(attr); in testGetOwnerElement2() 69 ownerElement = attr.getOwnerElement(); in testGetOwnerElement2() 76 Attr attr; in testGetOwnerElement3() local 78 attr = doc.createAttributeNS("http://www.w3.org/DOM", "dom:attr"); in testGetOwnerElement3() 79 ownerElement = attr.getOwnerElement(); in testGetOwnerElement3() 87 Attr attr; in testGetOwnerElement4() local 98 attr = element.getAttributeNodeNS("http://www.nist.gov", "zone"); in testGetOwnerElement4() 99 attrImp = (Attr) docImp.importNode(attr, true); in testGetOwnerElement4() [all …]
|
D | NamedNodeMapSetNamedItemNS.java | 133 Attr attr; in testSetNamedItemNS3() local 145 attr = (Attr) attributesAlt.getNamedItemNS(nullNS, "street"); in testSetNamedItemNS3() 151 attributes.setNamedItemNS(attr); in testSetNamedItemNS3() 233 Attr attr; in testSetNamedItemNS6() local 239 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", in testSetNamedItemNS6() 247 attributes.setNamedItemNS(attr); in testSetNamedItemNS6() 259 Attr attr; in testSetNamedItemNS7() local 265 attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", in testSetNamedItemNS7() 273 attributes.setNamedItemNS(attr); in testSetNamedItemNS7() 285 Attr attr; in testSetNamedItemNS8() local [all …]
|
D | NodeGetLocalName.java | 73 Attr attr; in testGetLocalName() local 82 attr = doc.createAttributeNS("http://www.w3.org/DOM/Test/attr", "attr"); in testGetLocalName() 86 localAttrName = attr.getLocalName(); in testGetLocalName()
|
D | NodeGetPrefix.java | 74 Attr attr; in testGetPrefix() local 83 attr = doc.createAttributeNS("http://www.w3.org/DOM/Test/attr", "attr"); in testGetPrefix() 87 attrNoPrefix = attr.getPrefix(); in testGetPrefix()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldAttributedCharacterIteratorTest.java | 37 HashSet<AttributedCharacterIterator.Attribute> attr = in test_getRunLimitLSet() local 39 attr.add(AttributedCharacterIterator.Attribute.LANGUAGE); in test_getRunLimitLSet() 41 2, it.getRunLimit(attr)); in test_getRunLimitLSet() 48 4, it.getRunLimit(attr)); in test_getRunLimitLSet() 50 attr.add(AttributedCharacterIterator.Attribute.READING); in test_getRunLimitLSet() 52 4, it.getRunLimit(attr)); in test_getRunLimitLSet() 70 for(AttributedCharacterIterator.Attribute attr:attributes) { in test_getAllAttributeKeys() 71 assertEquals(AttributedCharacterIterator.Attribute.LANGUAGE, attr); in test_getAllAttributeKeys() 176 HashSet<AttributedCharacterIterator.Attribute> attr = in test_getRunStartLjava_util_Set() local 178 attr.add(AttributedCharacterIterator.Attribute.LANGUAGE); in test_getRunStartLjava_util_Set() [all …]
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Manifest.java | 51 private Attributes attr = new Attributes(); field in Manifest 78 attr.putAll(man.getMainAttributes()); in Manifest() 87 return attr; in getMainAttributes() 133 attr.clear(); in clear() 149 attr.writeMain(dos); in write() 199 attr.read(fis, lbuf); in read() 246 Attributes attr = getAttributes(name); in read() local 247 if (attr == null) { in read() 248 attr = new Attributes(asize); in read() 249 entries.put(name, attr); in read() [all …]
|
D | JarEntry.java | 38 Attributes attr; field in JarEntry 73 this.attr = je.attr; in JarEntry() 87 return attr; in getAttributes()
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLClassLoader.java | 497 Attributes attr = man.getAttributes(path); in definePackage() local 498 if (attr != null) { in definePackage() 499 specTitle = attr.getValue(Name.SPECIFICATION_TITLE); in definePackage() 500 specVersion = attr.getValue(Name.SPECIFICATION_VERSION); in definePackage() 501 specVendor = attr.getValue(Name.SPECIFICATION_VENDOR); in definePackage() 502 implTitle = attr.getValue(Name.IMPLEMENTATION_TITLE); in definePackage() 503 implVersion = attr.getValue(Name.IMPLEMENTATION_VERSION); in definePackage() 504 implVendor = attr.getValue(Name.IMPLEMENTATION_VENDOR); in definePackage() 505 sealed = attr.getValue(Name.SEALED); in definePackage() 507 attr = man.getMainAttributes(); in definePackage() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FilesTest.java | 151 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr() local 152 Files.createFile(filesSetup.getTestPath(), attr); in test_createFile$String$Attr() local 153 assertEquals(attr.value(), Files.getAttribute(filesSetup.getTestPath(), attr.name())); in test_createFile$String$Attr() 159 Files.createFile(filePath2, attr, attr1); in test_createFile$String$Attr() 161 assertEquals(attr1.value(), Files.getAttribute(filePath2, attr.name())); in test_createFile$String$Attr() 165 Files.createFile(filesSetup.getDataFilePath(), attr); in test_createFile$String$Attr() local 173 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory_delegation() local 174 assertEquals(mockPath, Files.createDirectory(mockPath, attr)); in test_createDirectory_delegation() 175 verify(mockFileSystemProvider).createDirectory(mockPath, attr); in test_createDirectory_delegation() 202 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr() local [all …]
|
D | Files2Test.java | 224 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_getPosixFilePermissions() local 225 Files.createFile(filesSetup.getTestPath(), attr); in test_getPosixFilePermissions() local 226 assertEquals(attr.value(), Files.getPosixFilePermissions(filesSetup.getTestPath())); in test_getPosixFilePermissions() 240 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions() local 242 assertEquals(attr.value(), Files.getPosixFilePermissions(filesSetup.getDataFilePath())); in test_setPosixFilePermissions() 248 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions_NPE() local 863 Stream<Path> pathStream = Files.find(rootDir, 2, (path, attr) -> Files.isDirectory(path)); in test_find() 873 pathStream = Files.find(rootDir, 0, (path, attr) -> Files.isDirectory(path)); in test_find() 879 Files.find(rootDir, -1, (path, attr) -> Files.isDirectory(path)); in test_find() 887 pathStream = Files.find(rootDir, 2, (path, attr) -> false); in test_find() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Package.java | 501 Attributes attr = man.getAttributes(path); in Package() local 502 if (attr != null) { in Package() 503 specTitle = attr.getValue(Name.SPECIFICATION_TITLE); in Package() 504 specVersion = attr.getValue(Name.SPECIFICATION_VERSION); in Package() 505 specVendor = attr.getValue(Name.SPECIFICATION_VENDOR); in Package() 506 implTitle = attr.getValue(Name.IMPLEMENTATION_TITLE); in Package() 507 implVersion = attr.getValue(Name.IMPLEMENTATION_VERSION); in Package() 508 implVendor = attr.getValue(Name.IMPLEMENTATION_VENDOR); in Package() 509 sealed = attr.getValue(Name.SEALED); in Package() 511 attr = man.getMainAttributes(); in Package() [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | attrgetownerelement02.java | 75 Attr attr; in runTest() local 79 attr = doc.createAttributeNS("http://www.w3.org/DOM/L1", "L1:att"); in runTest() 80 newAttr = element.setAttributeNodeNS(attr); in runTest() 81 ownerElement = attr.getOwnerElement(); in runTest()
|
D | namednodemapsetnameditemns09.java | 75 Attr attr; in runTest() local 81 attr = doc.createAttributeNS("http://www.w3.org/DOM/Test", "test"); in runTest() 86 newNode = entities.setNamedItemNS(attr); in runTest() 96 newNode = notations.setNamedItemNS(attr); in runTest()
|
D | attrgetownerelement03.java | 80 Attr attr; in runTest() local 82 attr = doc.createAttributeNS("http://www.w3.org/DOM", "dom:attr"); in runTest() 83 ownerElement = attr.getOwnerElement(); in runTest()
|
D | documentimportnode01.java | 78 Attr attr; in runTest() local 87 attr = element.getAttributeNode("street"); in runTest() 88 importedAttr = doc.importNode(attr, false); in runTest()
|
D | attrgetownerelement01.java | 74 Attr attr; in runTest() local 86 attr = (Attr) attributes.getNamedItemNS(nullNS, "defaultAttr"); in runTest() 87 ownerElement = attr.getOwnerElement(); in runTest()
|
D | attrgetownerelement04.java | 74 Attr attr; in runTest() local 82 attr = element.getAttributeNodeNS("http://www.nist.gov", "zone"); in runTest() 83 attrImp = (Attr) docImp.importNode(attr, true); in runTest()
|
/libcore/ojluni/src/main/java/java/text/ |
D | CharacterIteratorFieldDelegate.java | 56 public void formatted(Format.Field attr, Object value, int start, int end, in formatted() argument 70 as.addAttribute(attr, value, aStart, Math.min( in formatted() 88 string.addAttribute(attr, value); in formatted() 95 public void formatted(int fieldID, Format.Field attr, Object value, in formatted() argument 97 formatted(attr, value, start, end, buffer); in formatted()
|
D | FieldPosition.java | 296 public void formatted(Format.Field attr, Object value, int start, in formatted() argument 298 if (!encounteredField && matchesField(attr)) { in formatted() 305 public void formatted(int fieldID, Format.Field attr, Object value, in formatted() argument 307 if (!encounteredField && matchesField(attr, fieldID)) { in formatted()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | X500Name.java | 451 DerValue attr = findAttribute(countryName_oid); in getCountry() local 453 return getString(attr); in getCountry() 464 DerValue attr = findAttribute(orgName_oid); in getOrganization() local 466 return getString(attr); in getOrganization() 477 DerValue attr = findAttribute(orgUnitName_oid); in getOrganizationalUnit() local 479 return getString(attr); in getOrganizationalUnit() 490 DerValue attr = findAttribute(commonName_oid); in getCommonName() local 492 return getString(attr); in getCommonName() 503 DerValue attr = findAttribute(localityName_oid); in getLocality() local 505 return getString(attr); in getLocality() [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | ManifestEntryVerifier.java | 110 Attributes attr = man.getAttributes(name); in setEntry() local 111 if (attr == null) { in setEntry() 115 attr = man.getAttributes("./"+name); in setEntry() 116 if (attr == null) { in setEntry() 117 attr = man.getAttributes("/"+name); in setEntry() 118 if (attr == null) in setEntry() 123 for (Map.Entry<Object,Object> se : attr.entrySet()) { in setEntry()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileModeAttribute.java | 71 for (FileAttribute<?> attr: attrs) { in toUnixMode() 72 String name = attr.name(); in toUnixMode() 74 throw new UnsupportedOperationException("'" + attr.name() + in toUnixMode() 77 mode = toUnixMode((Set<PosixFilePermission>)attr.value()); in toUnixMode()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldAttributesTest.java | 45 Attributes attr = new Attributes(); in test_Constructor() local 46 assertTrue(attr.size() >= 0); in test_Constructor() 50 Attributes attr = new Attributes(10); in test_ConstructorI() local 51 assertTrue(attr.size() >= 0); in test_ConstructorI()
|