/libcore/luni/src/test/java/libcore/xml/ |
D | PullParserTest.java | 28 XmlPullParser parser = newPullParser(); in testAttributeNoValueWithRelaxed() local 29 parser.setFeature("http://xmlpull.org/v1/doc/features.html#relaxed", true); in testAttributeNoValueWithRelaxed() 30 parser.setInput(new StringReader("<input checked></input>")); in testAttributeNoValueWithRelaxed() 31 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeNoValueWithRelaxed() 32 assertEquals("input", parser.getName()); in testAttributeNoValueWithRelaxed() 33 assertEquals("checked", parser.getAttributeName(0)); in testAttributeNoValueWithRelaxed() 34 assertEquals("checked", parser.getAttributeValue(0)); in testAttributeNoValueWithRelaxed() 38 XmlPullParser parser = newPullParser(); in testAttributeUnquotedValueWithRelaxed() local 39 parser.setFeature("http://xmlpull.org/v1/doc/features.html#relaxed", true); in testAttributeUnquotedValueWithRelaxed() 40 parser.setInput(new StringReader("<input checked=true></input>")); in testAttributeUnquotedValueWithRelaxed() [all …]
|
D | PullParserDtdTest.java | 40 XmlPullParser parser = newPullParser(xml); in testDeclaringParameterEntities() local 41 while (parser.next() != XmlPullParser.END_DOCUMENT) { in testDeclaringParameterEntities() 63 XmlPullParser parser = newPullParser(xml); in testGeneralAndParameterEntityWithTheSameName() local 64 assertEquals(XmlPullParser.START_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName() 65 assertEquals(XmlPullParser.TEXT, parser.next()); in testGeneralAndParameterEntityWithTheSameName() 66 assertEquals("aaa", parser.getText()); in testGeneralAndParameterEntityWithTheSameName() 67 assertEquals(XmlPullParser.END_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName() 68 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); in testGeneralAndParameterEntityWithTheSameName() 75 XmlPullParser parser = newPullParser(xml); in testInternalEntities() local 76 assertEquals(XmlPullParser.START_TAG, parser.next()); in testInternalEntities() [all …]
|
D | SimpleParserTest.java | 39 private SAXParser parser; field in SimpleParserTest 60 parser = factory.newSAXParser(); in setUp() 61 parser.getXMLReader().setContentHandler(contentHandler); in setUp() 76 parser = null; in tearDown() 152 SAXParser parser = factory.newSAXParser(); in testWorkingFile1() local 153 parser.getXMLReader().setContentHandler(contentHandler); in testWorkingFile1() 155 parser.parse(getClass().getResourceAsStream("/SimpleParserTest.xml"), in testWorkingFile1() 179 SAXParser parser = factory.newSAXParser(); in testWorkingFile2() local 180 parser.getXMLReader().setContentHandler(contentHandler); in testWorkingFile2() 181 parser.parse(getClass().getResourceAsStream("/SimpleParserTest.xml"), in testWorkingFile2() [all …]
|
D | SaxTest.java | 187 SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); in testDisableExternalEntities() local 188 XMLReader reader = parser.getXMLReader(); in testDisableExternalEntities() 205 SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); in parse() local 206 XMLReader reader = parser.getXMLReader(); in parse()
|
D | XmlPullParserFactoryTest.java | 36 XmlPullParser parser = factory.newPullParser(); in testDefaultNewInstance() local 39 assertNotNull(parser); in testDefaultNewInstance() 41 assertTrue(parser instanceof KXmlParser); in testDefaultNewInstance()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | LSDocumentBuilderFactory.java | 32 private final Object parser; field in LSDocumentBuilderFactory 57 Object parser) throws in applySetting() argument 66 public abstract boolean hasSetting(Object parser); in hasSetting() argument 93 public void applySetting(DocumentBuilderSetting setting, Object parser) throws in applySetting() argument 103 public boolean hasSetting(Object parser) { in hasSetting() argument 131 Object parser, in setParameter() argument 136 Method domConfigMethod = parser.getClass().getMethod("getDomConfig", in setParameter() 138 Object domConfig = domConfigMethod.invoke(parser, new Object[0]); in setParameter() 152 protected static Object getParameter(Object parser, in getParameter() argument 154 Method domConfigMethod = parser.getClass().getMethod("getDomConfig", in getParameter() [all …]
|
D | XercesHTML2DocumentBuilderFactory.java | 202 SAXParser parser = factory.newSAXParser(); in load() local 205 parser.parse(url.toString(), handler); in load()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
D | DocumentBuilderImpl.java | 105 KXmlParser parser = new KXmlParser(); in parse() local 107 parser.keepNamespaceAttributes(); in parse() 108 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, namespaceAware); in parse() 111 parser.setInput(source.getByteStream(), inputEncoding); in parse() 113 parser.setInput(source.getCharacterStream()); in parse() 119 parser.setInput(urlConnection.getInputStream(), inputEncoding); in parse() 124 if (parser.nextToken() == XmlPullParser.END_DOCUMENT) { in parse() 128 parse(parser, document, document, XmlPullParser.END_DOCUMENT); in parse() 130 parser.require(XmlPullParser.END_DOCUMENT, null, null); in parse() 154 IoUtils.closeQuietly(parser); in parse() [all …]
|
D | SAXParserImpl.java | 38 private Parser parser; field in SAXParserImpl 72 if (parser == null) { in getParser() 73 parser = new XMLReaderAdapter(reader); in getParser() 76 return parser; in getParser()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserTest.java | 116 SAXParser parser; field in SAXParserTest 140 SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); in initFiles() local 141 validating = parser.isValidating(); in initFiles() 185 parser = spf.newSAXParser(); in setUp() 186 assertNotNull(parser); in setUp() 310 parser.parse(list_wf[i], dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler() 317 parser.parse(list_nwf[i], dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler() 326 parser.parse((File) null, dh); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler() 333 parser.parse(list_wf[0], (DefaultHandler) null); in test_parseLjava_io_FileLorg_xml_sax_helpers_DefaultHandler() 345 parser.parse(list_wf[i], dh); in testParseFileHandlerBase() [all …]
|
D | DocumentBuilderFactoryTest.java | 377 DocumentBuilder parser = null; in test_setCoalescingZ() local 380 parser = dbf.newDocumentBuilder(); in test_setCoalescingZ() 382 parser.setErrorHandler(errorHandler); in test_setCoalescingZ() 384 Document document = parser.parse(getClass().getResourceAsStream( in test_setCoalescingZ() 395 parser.setErrorHandler(null); in test_setCoalescingZ() 408 parser = dbf.newDocumentBuilder(); in test_setCoalescingZ() 410 parser.setErrorHandler(errorHandler); in test_setCoalescingZ() 412 Document document = parser.parse(getClass().getResourceAsStream( in test_setCoalescingZ() 425 parser.setErrorHandler(null); in test_setCoalescingZ() 440 DocumentBuilder parser = null; in test_setExpandEntityReferencesZ() local [all …]
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserException.java | 36 public XmlPullParserException(String msg, XmlPullParser parser, Throwable chain) { in XmlPullParserException() argument 38 + (parser == null ? "" : "(position:"+parser.getPositionDescription()+") ") in XmlPullParserException() 41 if (parser != null) { in XmlPullParserException() 42 this.row = parser.getLineNumber(); in XmlPullParserException() 43 this.column = parser.getColumnNumber(); in XmlPullParserException()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | DistinguishedNameParserTest.java | 56 DistinguishedNameParser parser = new DistinguishedNameParser(principal); in assertCns() local 59 assertEquals(dn, Arrays.asList(expected), parser.getAllMostSpecificFirst("cn")); in assertCns() 63 assertEquals(dn, expected[0], parser.findMostSpecific("cn")); in assertCns() 65 assertNull(dn, parser.findMostSpecific("cn")); in assertCns()
|
/libcore/libart/src/main/java/java/lang/reflect/ |
D | AbstractMethod.java | 242 GenericSignatureParser parser = in getMethodOrConstructorGenericInfo() local 245 parser.parseForMethod((GenericDeclaration) this, signatureAttribute, exceptionTypes); in getMethodOrConstructorGenericInfo() 247 parser.parseForConstructor((GenericDeclaration) this, in getMethodOrConstructorGenericInfo() 251 return new GenericInfo(parser.exceptionTypes, parser.parameterTypes, in getMethodOrConstructorGenericInfo() 252 parser.returnType, parser.formalTypeParameters); in getMethodOrConstructorGenericInfo()
|
D | Field.java | 214 GenericSignatureParser parser = new GenericSignatureParser(cl); in getGenericType() local 215 parser.parseForField(declaringClass, signatureAttribute); in getGenericType() 216 Type genericType = parser.fieldType; in getGenericType()
|
/libcore/luni/src/main/native/ |
D | org_apache_harmony_xml_ExpatParser.cpp | 199 static ParsingContext* toParsingContext(XML_Parser parser) { in toParsingContext() argument 200 return reinterpret_cast<ParsingContext*>(XML_GetUserData(parser)); in toParsingContext() 207 static jlong fromXMLParser(XML_Parser parser) { in fromXMLParser() argument 208 return reinterpret_cast<uintptr_t>(parser); in fromXMLParser() 868 static int handleExternalEntity(XML_Parser parser, const char* context, in handleExternalEntity() argument 870 ParsingContext* parsingContext = toParsingContext(parser); in handleExternalEntity() 974 XML_Parser parser; in ExpatParser_initialize() local 981 parser = XML_ParserCreateNS(encoding.c_str(), '|'); in ExpatParser_initialize() 983 parser = XML_ParserCreate(encoding.c_str()); in ExpatParser_initialize() 986 if (parser != NULL) { in ExpatParser_initialize() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | XmlEntitiesBenchmark.java | 58 XmlPullParser parser = xmlPullParserFactory.newPullParser(); in timeXmlParser() local 59 parser.setInput(new StringReader(xml)); in timeXmlParser() 60 while (parser.next() != XmlPullParser.END_DOCUMENT) { in timeXmlParser()
|
D | ParseBenchmark.java | 91 private Parser parser; field in ParseBenchmark 95 parser = api.newParser(); in setUp() 100 parser.parse(text); in timeParse()
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
D | SAXParser.java | 352 Parser parser = this.getParser(); in parse() local 354 parser.setDocumentHandler(hb); in parse() 355 parser.setEntityResolver(hb); in parse() 356 parser.setErrorHandler(hb); in parse() 357 parser.setDTDHandler(hb); in parse() 359 parser.parse(is); in parse()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | ParserAdapter.java | 119 public ParserAdapter (Parser parser) in ParserAdapter() argument 121 setup(parser); in ParserAdapter() 132 private void setup (Parser parser) in setup() argument 134 if (parser == null) { in setup() 138 this.parser = parser; in setup() 401 parser.parse(input); in parse() 711 parser.setEntityResolver(entityResolver); in setupParser() 714 parser.setDTDHandler(dtdHandler); in setupParser() 717 parser.setErrorHandler(errorHandler); in setupParser() 719 parser.setDocumentHandler(this); in setupParser() [all …]
|
/libcore/dom/src/test/resources/META-INF/ |
D | MANIFEST.MF | 3 ercesImpl.jar xerces.jar xml4j.jar xmlparserv2.jar crimson.jar parser 5 ar crimson-parser.jar avalon-run.jar
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatReader.java | 302 ExpatParser parser = new ExpatParser( in parse() local 309 parser.parseDocument(in); in parse() 314 ExpatParser parser = in parse() local 316 parser.parseDocument(in); in parse()
|
/libcore/luni/src/main/java/java/lang/ |
D | HexStringParser.java | 89 HexStringParser parser = new HexStringParser(DOUBLE_EXPONENT_WIDTH, DOUBLE_MANTISSA_WIDTH); in parseDouble() local 90 long result = parser.parse(hexString, true); in parseDouble() 98 HexStringParser parser = new HexStringParser(FLOAT_EXPONENT_WIDTH, FLOAT_MANTISSA_WIDTH); in parseFloat() local 99 int result = (int) parser.parse(hexString, false); in parseFloat()
|
/libcore/libart/src/main/java/java/lang/ |
D | Class.java | 1167 GenericSignatureParser parser = new GenericSignatureParser(getClassLoader()); in getGenericInterfaces() local 1168 parser.parseForClass(this, annotationSignature); in getGenericInterfaces() 1169 result = Types.getTypeArray(parser.interfaceTypes, false); in getGenericInterfaces() 1191 GenericSignatureParser parser = new GenericSignatureParser(getClassLoader()); in getGenericSuperclass() local 1192 parser.parseForClass(this, annotationSignature); in getGenericSuperclass() 1193 genericSuperclass = parser.superclassType; in getGenericSuperclass() 1413 GenericSignatureParser parser = new GenericSignatureParser(getClassLoader()); in getTypeParameters() local 1414 parser.parseForClass(this, annotationSignature); in getTypeParameters() 1415 return parser.formalTypeParameters; in getTypeParameters()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
D | ParserAdapterTest.java | 63 private Parser parser = new MockParser(logger); field in ParserAdapterTest 65 private ParserAdapter adapter = new ParserAdapter(parser); 100 ParserAdapter adapter = new ParserAdapter(parser); in testParserAdapterParser()
|