/libcore/ojluni/src/main/java/java/text/ |
D | FieldPosition.java | 96 private Format.Field attribute; field in FieldPosition 122 public FieldPosition(Format.Field attribute) { in FieldPosition() argument 123 this(attribute, -1); in FieldPosition() 142 public FieldPosition(Format.Field attribute, int fieldID) { in FieldPosition() argument 143 this.attribute = attribute; in FieldPosition() 156 return attribute; in getFieldAttribute() 226 if (attribute == null) { in equals() 227 if (other.attribute != null) { in equals() 231 else if (!attribute.equals(other.attribute)) { in equals() 253 "[field=" + field + ",attribute=" + attribute + in toString() [all …]
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | ElementGetAttributeNodeNS.java | 57 Attr attribute; in testGetAttributeNodeNS1() local 71 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", in testGetAttributeNodeNS1() 73 attrValue = attribute.getNodeValue(); in testGetAttributeNodeNS1() 74 attrName = attribute.getName(); in testGetAttributeNodeNS1() 75 attNodeName = attribute.getNodeName(); in testGetAttributeNodeNS1() 76 attrLocalName = attribute.getLocalName(); in testGetAttributeNodeNS1() 77 attrNS = attribute.getNamespaceURI(); in testGetAttributeNodeNS1() 90 Attr attribute; in testGetAttributeNodeNS2() local 95 attribute = doc.createAttributeNS("http://www.w3.org/DOM/Level2", in testGetAttributeNodeNS2() 97 element.setAttributeNodeNS(attribute); in testGetAttributeNodeNS2() [all …]
|
D | NamedNodeMapRemoveNamedItemNS.java | 79 Attr attribute; in testRemoveNamedItemNS1() local 86 attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov", in testRemoveNamedItemNS1() 88 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", in testRemoveNamedItemNS1() 90 assertNull("namednodemapremovenameditemns01", attribute); in testRemoveNamedItemNS1() 119 Attr attribute; in testRemoveNamedItemNS3() local 133 attribute = (Attr) attributes.removeNamedItemNS( in testRemoveNamedItemNS3() 135 attribute = (Attr) attributes.getNamedItemNS( in testRemoveNamedItemNS3() 137 nodeName = attribute.getNodeName(); in testRemoveNamedItemNS3() 144 Attr attribute; in _testRemoveNamedItemNS4() local 152 attribute = (Attr) attributes.getNamedItemNS( in _testRemoveNamedItemNS4() [all …]
|
D | ElementSetAttributeNodeNS.java | 113 Attr attribute; in testSetAttributeNodeNS2() local 125 attribute = element.getAttributeNodeNS(nullNS, "street"); in testSetAttributeNodeNS2() 126 attributeCloned = (Attr) attribute.cloneNode(true); in testSetAttributeNodeNS2() 138 Attr attribute; in testSetAttributeNodeNS3() local 147 attribute = element1.getAttributeNodeNS(nullNS, "street"); in testSetAttributeNodeNS3() 153 element2.setAttributeNodeNS(attribute); in testSetAttributeNodeNS3() 164 Attr attribute; in testSetAttributeNodeNS4() local 169 attribute = doc.createAttributeNS("http://www.w3.org/DOM/Test", "attr"); in testSetAttributeNodeNS4() 170 element1.setAttributeNodeNS(attribute); in testSetAttributeNodeNS4() 175 element2.setAttributeNodeNS(attribute); in testSetAttributeNodeNS4() [all …]
|
D | NamedNodeMapGetNamedItemNS.java | 104 Attr attribute; in testGetNamedItemNS2() local 112 attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov", in testGetNamedItemNS2() 114 attrName = attribute.getNodeName(); in testGetNamedItemNS2() 121 Attr attribute; in testGetNamedItemNS3() local 133 attribute = (Attr) attributes.getNamedItemNS( in testGetNamedItemNS3() 135 attrName = attribute.getNodeName(); in testGetNamedItemNS3() 142 Attr attribute; in testGetNamedItemNS4() local 152 attribute = (Attr) attributes.getNamedItemNS( in testGetNamedItemNS4() 154 attrName = attribute.getNodeName(); in testGetNamedItemNS4() 161 Attr attribute; in testGetNamedItemNS5() local [all …]
|
D | ElementSetAttributeNS.java | 58 Attr attribute; in testSetAttributeNS1() local 65 attribute = element.getAttributeNodeNS( in testSetAttributeNS1() 67 attrName = attribute.getNodeName(); in testSetAttributeNS1() 68 attrValue = attribute.getNodeValue(); in testSetAttributeNS1() 75 Attr attribute; in testSetAttributeNS2() local 84 attribute = element.getAttributeNodeNS( in testSetAttributeNS2() 86 attrName = attribute.getNodeName(); in testSetAttributeNS2() 87 attrValue = attribute.getNodeValue(); in testSetAttributeNS2() 96 Attr attribute; in testSetAttributeNS3() local 108 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Test/1", in testSetAttributeNS3() [all …]
|
D | GetAttributeNodeNS.java | 80 Attr attribute; in testGetAttributeNodeNS1() local 85 attribute = testAddr.getAttributeNodeNS(namespaceURI, localName); in testGetAttributeNodeNS1() 86 assertNull("throw_Null", attribute); in testGetAttributeNodeNS1() 92 Attr attribute; in testGetAttributeNodeNS2() local 98 attribute = testAddr.getAttributeNodeNS("http://www.nist.gov", in testGetAttributeNodeNS2() 100 attrName = attribute.getNodeName(); in testGetAttributeNodeNS2()
|
D | ElementHasAttribute.java | 75 Attr attribute; in testHasAttribute3() local 79 attribute = doc.createAttribute("domestic"); in testHasAttribute3() 82 element.setAttributeNode(attribute); in testHasAttribute3() 90 Attr attribute; in testHasAttribute4() local 94 attribute = doc.createAttribute("domestic"); in testHasAttribute4() 95 element.setAttributeNode(attribute); in testHasAttribute4()
|
D | ElementHasAttributeNS.java | 90 Attr attribute; in testHasAttributeNS2() local 94 attribute = doc.createAttributeNS("http://www.w3.org/DOM", "domestic"); in testHasAttributeNS2() 95 element.setAttributeNode(attribute); in testHasAttributeNS2() 103 Attr attribute; in testHasAttributeNS3() local 110 attribute = doc.createAttributeNS(nullNS, "domestic"); in testHasAttributeNS3() 111 element.setAttributeNode(attribute); in testHasAttributeNS3()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | AttributedCharacterIteratorAttributeTest.java | 37 MyAttribute attribute = new MyAttribute("attribute"); in test_constructor() local 39 assertEquals("Attribute has wrong name", "attribute", attribute.getExposedName()); in test_constructor() 41 attribute = new MyAttribute(null); in test_constructor() 42 assertEquals("Attribute has wrong name", null, attribute.getExposedName()); in test_constructor() 54 MyAttribute attribute = new MyAttribute("test"); in test_equals() local 56 assertTrue(attribute.equals(attribute)); in test_equals() 60 assertFalse(attribute.equals(new MyAttribute("test"))); in test_equals() 62 attribute = new MyAttribute(null); in test_equals() 63 assertFalse(attribute.equals(new MyAttribute(null))); in test_equals() 79 MyAttribute attribute; in test_readResolve() local [all …]
|
D | Support_Format.java | 89 AttributedCharacterIterator.Attribute attribute = it.next(); in findFields() local 90 Object value = iterator.getAttribute(attribute); in findFields() 91 result.add(new FieldContainer(start, end, attribute, value)); in findFields() 105 final Attribute attribute; field in Support_Format.FieldContainer 109 public FieldContainer(int start, int end, Attribute attribute) { in FieldContainer() argument 110 this(start, end, attribute, attribute); in FieldContainer() 114 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument 115 this(start, end, attribute, new Integer(value)); in FieldContainer() 119 public FieldContainer(int start, int end, Attribute attribute, Object value) { in FieldContainer() argument 122 this.attribute = attribute; in FieldContainer() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Format.java | 92 AttributedCharacterIterator.Attribute attribute = it.next(); in findFields() local 93 Object value = iterator.getAttribute(attribute); in findFields() 94 result.add(new FieldContainer(start, end, attribute, value)); in findFields() 108 AttributedCharacterIterator.Attribute attribute; field in Support_Format.FieldContainer 114 AttributedCharacterIterator.Attribute attribute) { in FieldContainer() argument 115 this(start, end, attribute, attribute); in FieldContainer() 119 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument 120 this(start, end, attribute, new Integer(value)); in FieldContainer() 124 public FieldContainer(int start, int end, Attribute attribute, in FieldContainer() argument 128 this.attribute = attribute; in FieldContainer() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | FileOwnerAttributeViewImpl.java | 28 import java.nio.file.attribute.*; 61 public void setAttribute(String attribute, Object value) in setAttribute() argument 64 if (attribute.equals(OWNER_NAME)) { in setAttribute() 68 attribute + "' not recognized"); in setAttribute() 75 for (String attribute: attributes) { in readAttributes() 76 if (attribute.equals("*") || attribute.equals(OWNER_NAME)) { in readAttributes() 80 attribute + "' not recognized"); in readAttributes()
|
D | AbstractFileSystemProvider.java | 45 private static String[] split(String attribute) { in split() argument 47 int pos = attribute.indexOf(':'); in split() 50 s[1] = attribute; in split() 52 s[0] = attribute.substring(0, pos++); in split() 53 s[1] = (pos == attribute.length()) ? "" : attribute.substring(pos); in split() 68 String attribute, in setAttribute() argument 73 String[] s = split(attribute); in setAttribute() 75 throw new IllegalArgumentException(attribute); in setAttribute()
|
/libcore/ojluni/annotations/hiddenapi/java/util/zip/ |
D | ZipEntry.java | 76 public java.util.zip.ZipEntry setLastModifiedTime(java.nio.file.attribute.FileTime time) { in setLastModifiedTime() 80 public java.nio.file.attribute.FileTime getLastModifiedTime() { in getLastModifiedTime() 84 public java.util.zip.ZipEntry setLastAccessTime(java.nio.file.attribute.FileTime time) { in setLastAccessTime() 88 public java.nio.file.attribute.FileTime getLastAccessTime() { in getLastAccessTime() 92 public java.util.zip.ZipEntry setCreationTime(java.nio.file.attribute.FileTime time) { in setCreationTime() 96 public java.nio.file.attribute.FileTime getCreationTime() { in getCreationTime() 176 java.nio.file.attribute.FileTime atime; 184 java.nio.file.attribute.FileTime ctime; 195 java.nio.file.attribute.FileTime mtime;
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | elementgetattributenodens01.java | 76 Attr attribute; in runTest() local 88 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", "att"); in runTest() 89 attrValue = attribute.getNodeValue(); in runTest() 90 attrName = attribute.getName(); in runTest() 91 attNodeName = attribute.getNodeName(); in runTest() 92 attrLocalName = attribute.getLocalName(); in runTest() 93 attrNS = attribute.getNamespaceURI(); in runTest()
|
D | nodeissupported02.java | 68 Attr attribute; in runTest() local 84 attribute = doc.createAttribute("TestAttr"); in runTest() 87 success = attribute.isSupported(featureXML, version); in runTest() 89 success = attribute.isSupported(featureXML, version1); in runTest() 94 success = attribute.isSupported(featureCore, version); in runTest() 96 success = attribute.isSupported(featureCore, version1); in runTest() 97 success = attribute.isSupported(featureCore, version2); in runTest()
|
D | elementgetattributenodens02.java | 72 Attr attribute; in runTest() local 77 attribute = doc.createAttributeNS("http://www.w3.org/DOM/Level2", "l2:att"); in runTest() 78 newAttribute1 = element.setAttributeNodeNS(attribute); in runTest() 79 attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2", "att"); in runTest() 80 attrValue = attribute.getNodeValue(); in runTest()
|
D | namednodemapremovenameditemns02.java | 79 Attr attribute; in runTest() local 88 attribute = (Attr) attributes.removeNamedItemNS(nullNS, "defaultAttr"); in runTest() 89 attribute = (Attr) attributes.getNamedItemNS(nullNS, "defaultAttr"); in runTest() 90 attrValue = attribute.getNodeValue(); in runTest() 91 assertNotNull("namednodemapremovenameditemns02", attribute); in runTest()
|
D | namednodemapremovenameditemns04.java | 73 Attr attribute; in runTest() local 81 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "xmlns"); in runTest() 82 assertNull("namednodemapremovenameditemns04_1", attribute); in runTest() 84 attribute = (Attr) attributes.getNamedItemNS("http://www.w3.org/2000/xmlns/", "dmstc"); in runTest() 85 assertNull("namednodemapremovenameditemns04_2", attribute); in runTest()
|
D | namednodemapgetnameditemns06.java | 75 Attr attribute; in runTest() local 87 attribute = (Attr) attributesMap1.getNamedItemNS("http://www.w3.org/DOM/L1", "street"); in runTest() 88 attrName = attribute.getNodeName(); in runTest() 90 attribute = (Attr) attributesMap2.getNamedItemNS("http://www.w3.org/DOM/L1", "street"); in runTest() 91 attrName = attribute.getNodeName(); in runTest()
|
D | documentcreateattributeNS01.java | 67 Attr attribute; in runTest() local 75 attribute = doc.createAttributeNS(namespaceURI, qualifiedName); in runTest() 76 nodeName = attribute.getNodeName(); in runTest() 77 nodeValue = attribute.getNodeValue(); in runTest()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | AttributesTest.java | 250 Attributes attribute = new Attributes(); in test_putLjava_lang_ObjectLjava_lang_Object_Null() local 252 assertFalse(attribute.containsKey(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null() 253 assertFalse(attribute.containsValue(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null() 254 attribute.put(null, null); in test_putLjava_lang_ObjectLjava_lang_Object_Null() 255 attribute.put(null, null); in test_putLjava_lang_ObjectLjava_lang_Object_Null() 256 assertEquals(1, attribute.size()); in test_putLjava_lang_ObjectLjava_lang_Object_Null() 257 assertTrue(attribute.containsKey(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null() 258 assertTrue(attribute.containsValue(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null() 259 assertNull(attribute.get(null)); in test_putLjava_lang_ObjectLjava_lang_Object_Null() 262 attribute.put(null, value); in test_putLjava_lang_ObjectLjava_lang_Object_Null() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/file/attribute/ |
D | AclEntryTest.java | 17 package libcore.java.nio.file.attribute; 23 import java.nio.file.attribute.AclEntry; 24 import java.nio.file.attribute.UserPrincipal; 25 import java.nio.file.attribute.AclEntryType; 26 import java.nio.file.attribute.AclEntryPermission; 27 import java.nio.file.attribute.AclEntryFlag;
|
/libcore/ojluni/annotations/mmodule/java/util/zip/ |
D | ZipEntry.annotated.java | 30 import java.nio.file.attribute.FileTime; 50 public java.util.zip.ZipEntry setLastModifiedTime(java.nio.file.attribute.FileTime time) { throw ne… in setLastModifiedTime() 52 public java.nio.file.attribute.FileTime getLastModifiedTime() { throw new RuntimeException("Stub!")… in getLastModifiedTime() 54 public java.util.zip.ZipEntry setLastAccessTime(java.nio.file.attribute.FileTime time) { throw new … in setLastAccessTime() 56 public java.nio.file.attribute.FileTime getLastAccessTime() { throw new RuntimeException("Stub!"); } in getLastAccessTime() 58 public java.util.zip.ZipEntry setCreationTime(java.nio.file.attribute.FileTime time) { throw new Ru… in setCreationTime() 60 public java.nio.file.attribute.FileTime getCreationTime() { throw new RuntimeException("Stub!"); } in getCreationTime()
|