Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 75) sorted by relevance

123

/libcore/luni/src/test/java/libcore/sun/security/x509/
DUtils.java36 String prefix, in test_toString_bitArrayBasedClass() argument
38 testWithEachSinglePart(parts, objectCreator, prefix, suffix); in test_toString_bitArrayBasedClass()
39 testWithAllParts(parts, objectCreator, prefix, suffix); in test_toString_bitArrayBasedClass()
40 testWithNoParts(parts, objectCreator, prefix, suffix); in test_toString_bitArrayBasedClass()
41 testWithEveryOtherPart(parts, objectCreator, prefix, suffix); in test_toString_bitArrayBasedClass()
45 String[] parts, Function<byte[], Object> objectCreator, String prefix, String suffix) { in testWithEachSinglePart() argument
56 assertEquals(prefix + parts[i] + suffix, o.toString()); in testWithEachSinglePart()
61 String[] parts, Function<byte[], Object> objectCreator, String prefix, String suffix) { in testWithAllParts() argument
69 assertEquals(prefix + String.join("", parts) in testWithAllParts()
74 String[] parts, Function<byte[], Object> objectCreator, String prefix, String suffix) { in testWithNoParts() argument
[all …]
/libcore/luni/src/main/java/org/xml/sax/helpers/
DNamespaceSupport.java294 public boolean declarePrefix (String prefix, String uri) in declarePrefix() argument
296 if (prefix.equals("xml") || prefix.equals("xmlns")) { in declarePrefix()
299 currentContext.declarePrefix(prefix, uri); in declarePrefix()
372 public String getURI (String prefix) in getURI() argument
374 return currentContext.getURI(prefix); in getURI()
450 String prefix = (String) allPrefixes.nextElement(); in getPrefixes() local
451 if (uri.equals(getURI(prefix))) { in getPrefixes()
452 prefixes.add(prefix); in getPrefixes()
604 void declarePrefix(String prefix, String uri) { in declarePrefix() argument
616 prefix = prefix.intern(); in declarePrefix()
[all …]
DParserAdapter.java508 String prefix; in startElement() local
513 prefix = ""; in startElement()
519 prefix = attQName.substring(n+1); in startElement()
522 if (!nsSupport.declarePrefix(prefix, value)) { in startElement()
523 reportError("Illegal Namespace prefix: " + prefix); in startElement()
527 contentHandler.startPrefixMapping(prefix, value); in startElement()
541 String prefix; in startElement() local
545 prefix = ""; in startElement()
549 prefix = null; in startElement()
551 prefix = attQName.substring(6); in startElement()
[all …]
/libcore/ojluni/src/main/java/java/util/
DStringJoiner.java66 private final String prefix; field in StringJoiner
119 CharSequence prefix, in StringJoiner() argument
121 Objects.requireNonNull(prefix, "The prefix must not be null"); in StringJoiner()
125 this.prefix = prefix.toString(); in StringJoiner()
128 this.emptyValue = this.prefix + this.suffix; in StringJoiner()
216 builder.append(other.value, other.prefix.length(), length); in merge()
225 value = new StringBuilder().append(prefix); in prepareBuilder()
/libcore/ojluni/src/main/java/java/net/
DDefaultDatagramSocketImplFactory.java41 String prefix = null;
43 prefix = AccessController.doPrivileged(
45 if (prefix != null)
46 prefixImplClass = Class.forName("java.net."+prefix+"DatagramSocketImpl");
49 prefix +
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DAttrImpl.java43 String prefix; field in AttrImpl
64 return prefix != null in getName()
65 ? prefix + ":" + localName in getName()
94 return prefix; in getPrefix()
106 public void setPrefix(String prefix) { in setPrefix() argument
107 this.prefix = validatePrefix(prefix, namespaceAware, namespaceURI); in setPrefix()
DNodeImpl.java194 public void setPrefix(String prefix) throws DOMException { in setPrefix() argument
203 static String validatePrefix(String prefix, boolean namespaceAware, String namespaceURI) { in validatePrefix() argument
205 throw new DOMException(DOMException.NAMESPACE_ERR, prefix); in validatePrefix()
208 if (prefix != null) { in validatePrefix()
210 || !DocumentImpl.isXMLIdentifier(prefix) in validatePrefix()
211 … || "xml".equals(prefix) && !"http://www.w3.org/XML/1998/namespace".equals(namespaceURI) in validatePrefix()
212 … || "xmlns".equals(prefix) && !"http://www.w3.org/2000/xmlns/".equals(namespaceURI)) { in validatePrefix()
213 throw new DOMException(DOMException.NAMESPACE_ERR, prefix); in validatePrefix()
217 return prefix; in validatePrefix()
233 String prefix = null; in setNameNS() local
[all …]
/libcore/ojluni/src/main/java/java/nio/file/
DTempFileHelper.java57 private static Path generatePath(String prefix, String suffix, Path dir) { in generatePath() argument
60 Path name = dir.getFileSystem().getPath(prefix + Long.toString(n) + suffix); in generatePath()
81 String prefix, in create() argument
87 if (prefix == null) in create()
88 prefix = ""; in create()
127 f = generatePath(prefix, suffix, dir); in create()
156 String prefix, in createTempFile() argument
161 return create(dir, prefix, suffix, false, attrs); in createTempFile()
169 String prefix, in createTempDirectory() argument
173 return create(dir, prefix, null, true, attrs); in createTempDirectory()
/libcore/ojluni/src/main/java/sun/security/x509/
DX509AttributeName.java39 private String prefix = null; field in X509AttributeName
51 prefix = name; in X509AttributeName()
53 prefix = name.substring(0, i); in X509AttributeName()
62 return (prefix); in getPrefix()
/libcore/xml/src/main/java/com/android/org/kxml2/io/
DKXmlSerializer.java260 String prefix; in getPrefix()
263 prefix = ""; in getPrefix()
266 prefix = "n" + (auto++); in getPrefix()
270 if (prefix.equals(nspStack[i])) { in getPrefix()
271 prefix = null; in getPrefix()
276 while (prefix == null); in getPrefix()
281 setPrefix(prefix, namespace); in getPrefix()
283 return prefix; in getPrefix()
309 public void setPrefix(String prefix, String namespace) in setPrefix() argument
313 if (prefix == null) in setPrefix()
[all …]
/libcore/ojluni/src/main/java/java/time/
DZoneId.java370 public static ZoneId ofOffset(String prefix, ZoneOffset offset) { in ofOffset() argument
371 Objects.requireNonNull(prefix, "prefix"); in ofOffset()
373 if (prefix.length() == 0) { in ofOffset()
377 if (!prefix.equals("GMT") && !prefix.equals("UTC") && !prefix.equals("UT")) { in ofOffset()
378 throw new IllegalArgumentException("prefix should be GMT, UTC or UT, is: " + prefix); in ofOffset()
382 prefix = prefix.concat(offset.getId()); in ofOffset()
384 return new ZoneRegion(prefix, offset.getRules()); in ofOffset()
418 String prefix = zoneId.substring(0, prefixLength); in ofWithPrefix() local
420 return ofOffset(prefix, ZoneOffset.UTC); in ofWithPrefix()
428 return ofOffset(prefix, offset); in ofWithPrefix()
[all …]
/libcore/luni/src/test/java/tests/org/w3c/dom/
DPrefix.java79 String prefix; in testGetPrefix1() local
82 prefix = createdNode.getPrefix(); in testGetPrefix1()
83 assertNull("throw_Null", prefix); in testGetPrefix1()
90 String prefix; in testGetPrefix2() local
96 prefix = textNode.getPrefix(); in testGetPrefix2()
97 assertNull("textNodePrefix", prefix); in testGetPrefix2()
103 String prefix; in testGetPrefix3() local
108 prefix = testEmployee.getPrefix(); in testGetPrefix3()
109 assertEquals("prefix", "emp", prefix); in testGetPrefix3()
115 String prefix; in testGetPrefix4() local
[all …]
/libcore/luni/src/main/java/javax/xml/namespace/
DQName.java107 private String prefix; field in QName
193 public QName(String namespaceURI, String localPart, String prefix) { in QName() argument
209 if (prefix == null) { in QName()
212 this.prefix = prefix; in QName()
287 return prefix; in getPrefix()
480 if (prefix == null) { in readObject()
481 prefix = XMLConstants.DEFAULT_NS_PREFIX; in readObject()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMissingClassesTest.java27 String prefix = MissingClassesTest.class.getName(); in setUp() local
29 .withPrivateCopy(prefix + "$Loadable") in setUp()
30 .without(prefix + "$Unloadable") in setUp()
32 loadableClass = cl.loadClass(prefix + "$Loadable"); in setUp()
DClassLoaderReflectionTest.java53 String prefix = ClassLoaderReflectionTest.class.getName(); in setUp() local
54 ClassLoader loader = new ClassLoaderBuilder().withPrivateCopy(prefix).build(); in setUp()
55 aClass = loader.loadClass(prefix + "$A"); in setUp()
56 bClass = loader.loadClass(prefix + "$B"); in setUp()
57 cClass = loader.loadClass(prefix + "$C"); in setUp()
58 dClass = loader.loadClass(prefix + "$D"); in setUp()
59 eClass = loader.loadClass(prefix + "$E"); in setUp()
60 fClass = loader.loadClass(prefix + "$F"); in setUp()
61 aListClass = loader.loadClass(prefix + "$AList"); in setUp()
62 bStringClass = loader.loadClass(prefix + "$BString"); in setUp()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Dprefix01.java70 String prefix; in runTest() local
73 prefix = createdNode.getPrefix(); in runTest()
74 assertNull("throw_Null", prefix); in runTest()
DdocumentcreateattributeNS02.java71 String prefix; in runTest() local
78 prefix = attribute1.getPrefix(); in runTest()
83 assertEquals("documentcreateattributeNS02_att1_prefix", "xml", prefix); in runTest()
89 prefix = attribute2.getPrefix(); in runTest()
Dprefix04.java68 String prefix; in runTest() local
72 prefix = testEmployee.getPrefix(); in runTest()
73 assertNull("throw_Null", prefix); in runTest()
Dprefix02.java72 String prefix; in runTest() local
78 prefix = textNode.getPrefix(); in runTest()
79 assertNull("textNodePrefix", prefix); in runTest()
Dprefix03.java74 String prefix; in runTest() local
79 prefix = testEmployee.getPrefix(); in runTest()
80 assertEquals("prefix", "emp", prefix); in runTest()
DdocumentcreateelementNS01.java85 String prefix; in runTest() local
92 prefix = element.getPrefix(); in runTest()
97 assertEquals("documentcreateelementNS01_prefix", "XML", prefix); in runTest()
DgetElementsByTagNameNS02.java78 String prefix; in runTest() local
84 prefix = newElement.getPrefix(); in runTest()
85 assertEquals("prefix", "emp", prefix); in runTest()
DgetElementsByTagNameNS09.java80 String prefix; in runTest() local
88 prefix = newElement.getPrefix(); in runTest()
89 assertEquals("prefix", "emp", prefix); in runTest()
/libcore/ojluni/src/main/java/sun/security/util/
DDebug.java40 private String prefix; field in Debug
142 public static Debug getInstance(String option, String prefix) in getInstance() argument
146 d.prefix = prefix; in getInstance()
176 System.err.println(prefix + ": "+message); in println()
185 System.err.println(prefix + ":"); in println()
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
DDriver.java95 final String prefix = pp.getAttributePrefix(index); in getQName() local
96 if(prefix != null) { in getQName()
97 return prefix+':'+pp.getAttributeName(index); in getQName()
362 String prefix = null; in parseSubTree() local
385 prefix = pp.getPrefix(); in parseSubTree()
386 if(prefix != null) { in parseSubTree()
388 rawName.append(prefix); in parseSubTree()
395 prefix == null ? name : rawName.toString()); in parseSubTree()
415 prefix = pp.getPrefix(); in parseSubTree()
416 if(prefix != null) { in parseSubTree()
[all …]

123