Home
last modified time | relevance | path

Searched refs:XmlPullParser (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/test/java/libcore/xml/
DPullParserDtdTest.java22 import org.xmlpull.v1.XmlPullParser;
40 XmlPullParser parser = newPullParser(xml); in testDeclaringParameterEntities()
41 while (parser.next() != XmlPullParser.END_DOCUMENT) { in testDeclaringParameterEntities()
63 XmlPullParser parser = newPullParser(xml); in testGeneralAndParameterEntityWithTheSameName()
64 assertEquals(XmlPullParser.START_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
65 assertEquals(XmlPullParser.TEXT, parser.next()); 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()
76 assertEquals(XmlPullParser.START_TAG, parser.next()); in testInternalEntities()
[all …]
DPullParserTest.java22 import org.xmlpull.v1.XmlPullParser;
28 XmlPullParser parser = newPullParser(); in testAttributeNoValueWithRelaxed()
31 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeNoValueWithRelaxed()
38 XmlPullParser parser = newPullParser(); in testAttributeUnquotedValueWithRelaxed()
41 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeUnquotedValueWithRelaxed()
48 XmlPullParser parser = newPullParser(); in testUnterminatedEntityWithRelaxed()
51 assertEquals(XmlPullParser.START_TAG, parser.next()); in testUnterminatedEntityWithRelaxed()
55 assertEquals(XmlPullParser.TEXT, parser.next()); in testUnterminatedEntityWithRelaxed()
60 XmlPullParser parser = newPullParser(); in testEntitiesAndNamespaces()
68 XmlPullParser parser = newPullParser(); in testEntitiesAndNamespacesWithRelaxed()
[all …]
DKxmlPullParserDtdTest.java20 import org.xmlpull.v1.XmlPullParser;
24 @Override XmlPullParser newPullParser() throws XmlPullParserException { in newPullParser()
26 result.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true); in newPullParser()
DKxmlPullParserTest.java20 import org.xmlpull.v1.XmlPullParser;
24 @Override XmlPullParser newPullParser() { in newPullParser()
DXmlPullParserFactoryTest.java27 import org.xmlpull.v1.XmlPullParser;
36 XmlPullParser parser = factory.newPullParser(); in testDefaultNewInstance()
228 public static class XmlPullParserStub implements XmlPullParser {
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DDocumentBuilderImpl.java43 import org.xmlpull.v1.XmlPullParser;
108 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, namespaceAware); 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()
189 while (token != endToken && token != XmlPullParser.END_DOCUMENT) { in parse()
190 if (token == XmlPullParser.PROCESSING_INSTRUCTION) { in parse()
204 } else if (token == XmlPullParser.DOCDECL) { in parse()
210 } else if (token == XmlPullParser.COMMENT) { in parse()
218 } else if (token == XmlPullParser.IGNORABLE_WHITESPACE) { in parse()
[all …]
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
DDriver.java33 import org.xmlpull.v1.XmlPullParser;
73 protected XmlPullParser pp;
85 public Driver(XmlPullParser pp) throws XmlPullParserException { in Driver()
173 return pp.getFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES); in getFeature()
175 return pp.getFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES); in getFeature()
177 return pp.getFeature(XmlPullParser.FEATURE_VALIDATION); in getFeature()
193 pp.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, value); in setFeature()
195 if(pp.getFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES) != value) { in setFeature()
196 pp.setFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES, value); in setFeature()
199 pp.setFeature(XmlPullParser.FEATURE_VALIDATION, value); in setFeature()
[all …]
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java81 features.put (XmlPullParser.FEATURE_PROCESS_NAMESPACES, awareness); in setNamespaceAware()
93 return getFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES); in isNamespaceAware()
105 features.put(XmlPullParser.FEATURE_VALIDATION, validating); in setValidating()
117 return getFeature(XmlPullParser.FEATURE_VALIDATION); in isValidating()
126 public XmlPullParser newPullParser() throws XmlPullParserException { in newPullParser()
127 final XmlPullParser pp = getParserInstance(); in newPullParser()
139 private XmlPullParser getParserInstance() throws XmlPullParserException { in getParserInstance()
148 return (XmlPullParser) parserClass.newInstance(); in getParserInstance()
DXmlPullParserException.java36 public XmlPullParserException(String msg, XmlPullParser parser, Throwable chain) { in XmlPullParserException()
DXmlPullParser.java141 public interface XmlPullParser { interface
/libcore/luni/src/main/java/libcore/timezone/
DTimeZoneFinder.java19 import org.xmlpull.v1.XmlPullParser;
308 XmlPullParser parser = xmlPullParserFactory.newPullParser(); in processXml()
362 private static boolean processCountryZones(XmlPullParser parser, in processCountryZones()
407 private static List<TimeZoneMapping> parseTimeZoneMappings(XmlPullParser parser) in parseTimeZoneMappings()
443 private static Long parseLongAttribute(XmlPullParser parser, String attributeName, in parseLongAttribute()
462 private static Boolean parseBooleanAttribute(XmlPullParser parser, in parseBooleanAttribute()
476 private static void findRequiredStartTag(XmlPullParser parser, String elementName) in findRequiredStartTag()
482 private static boolean findOptionalStartTag(XmlPullParser parser, String elementName) in findOptionalStartTag()
495 XmlPullParser parser, String elementName, boolean elementRequired) in findStartTag()
499 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT) { in findStartTag()
[all …]
/libcore/benchmarks/src/benchmarks/
DXmlParseBenchmark.java37 import org.xmlpull.v1.XmlPullParser;
52 private Constructor<? extends XmlPullParser> kxmlConstructor;
53 private Constructor<? extends XmlPullParser> expatConstructor;
134 private int testXmlPull(Constructor<? extends XmlPullParser> constructor, int reps) in testXmlPull()
139 XmlPullParser xmlPullParser = constructor.newInstance(); in testXmlPull()
142 while ((type = xmlPullParser.next()) != XmlPullParser.END_DOCUMENT) { in testXmlPull()
143 if (type == XmlPullParser.START_TAG) { in testXmlPull()
/libcore/benchmarks/src/benchmarks/regression/
DXmlEntitiesBenchmark.java25 import org.xmlpull.v1.XmlPullParser;
59 XmlPullParser parser = xmlPullParserFactory.newPullParser(); in timeXmlParser()
61 while (parser.next() != XmlPullParser.END_DOCUMENT) { in timeXmlParser()
/libcore/luni/src/main/java/libcore/util/
DXmlObjectFactory.java23 import org.xmlpull.v1.XmlPullParser;
50 public static XmlPullParser newXmlPullParser() { in newXmlPullParser()
/libcore/xml/src/main/java/com/android/org/kxml2/io/
DKXmlParser.java33 import org.xmlpull.v1.XmlPullParser;
39 public class KXmlParser implements XmlPullParser, Closeable {
1762 if (XmlPullParser.FEATURE_PROCESS_NAMESPACES.equals(feature)) { in getFeature()
2095 if (XmlPullParser.FEATURE_PROCESS_NAMESPACES.equals(feature)) { in setFeature()
2097 } else if (XmlPullParser.FEATURE_PROCESS_DOCDECL.equals(feature)) { in setFeature()
/libcore/
Dnon_openjdk_java_files.bp286 "xml/src/main/java/org/xmlpull/v1/XmlPullParser.java",
/libcore/mmodules/core_platform_api/api/platform/
Dcurrent-api.txt1329 method public static org.xmlpull.v1.XmlPullParser newXmlPullParser();